Is there a bug in VS 2005 VB.net?

cdurbin

Member
Joined
Dec 21, 2005
Messages
20
Location
Kentucky
Programming Experience
10+
I am having more strange behavour. I can run a couple of programs with no problems, and then turn around and run another program with some copied code and it behaves different. When I try to display a panel, sometimes it works, and sometimes it does not. The code to display a panel is below, and I set debug on the line paneltoshow.visible = true. After that line runs in debug, the value is False even though the value paneltoshow.left is changed to 0 on the next line...

PublicSub ShowPanel(ByVal PanelToShow As Panel)
If PanelToShow.Name <> "pnlEnterPass"Then
CurrentPanel = PanelToShow
EndIf
'Hide all of the Panels
pnlCustInfo.Left = 300
pnlComments.Left = 300
pnlMain.Left = 300
PnlCalc1.Left = 300
pnlKeyItems.Left = 300
pnlSelItems.Left = 300
pnlinput2.Left = 300
Splash.Left = 300
pnlViewAllOrders.Left = 300
pnlEnterPass.Left = 300
pnlCustInfo.Visible =
False
pnlComments.Visible = False
pnlMain.Visible = False
pnlinput2.Visible = False
pnlKeyItems.Visible = False
pnlSelItems.Visible = False
Splash.Visible = False
PnlCalc1.Visible = False
pnlViewAllOrders.Visible = False
pnlEnterPass.Visible = False
'Display Selected Panel
PanelToShow.Visible = True
PanelToShow.Left = 0
EndSub
 
Back
Top