Weird bug
-
I found this bug today, and I wanted to get some insight on why this would be happening. Also, if anyone else would like to try to re-produce it on their box and see if they get the same results. I have created 2 panels. Both panels contain a linkbutton. The second panel is set to VISIBLE = FALSE as default When the link buttons are pressed, the Panels visibility are changed, allowing you to swap back and forth between panels. The problem I encountered is when i changed the font size of the LinkButton to XX-SMALL. After doing so, the panels no longer changed state. Anyone here able to explain why this happens? Some VB Code for the panel switching:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Panel2.Visible = True
Panel1.Visible = False
End SubPrivate Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Panel1.Visible = True
Panel2.Visible = False
End SubJon G www.Gizmocoder.com
-
I found this bug today, and I wanted to get some insight on why this would be happening. Also, if anyone else would like to try to re-produce it on their box and see if they get the same results. I have created 2 panels. Both panels contain a linkbutton. The second panel is set to VISIBLE = FALSE as default When the link buttons are pressed, the Panels visibility are changed, allowing you to swap back and forth between panels. The problem I encountered is when i changed the font size of the LinkButton to XX-SMALL. After doing so, the panels no longer changed state. Anyone here able to explain why this happens? Some VB Code for the panel switching:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Panel2.Visible = True
Panel1.Visible = False
End SubPrivate Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Panel1.Visible = True
Panel2.Visible = False
End SubJon G www.Gizmocoder.com
Re-assign you click events to the appropriate delegates. This seems to happen a lot with VS 2003. Open your pages in design view and double-click on the buttons and recompile .. that shoul work zimcoder What Democracy?? Jesus Christ is King and if you do not like... well you can go to hell!