Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Weird bug

Weird bug

Scheduled Pinned Locked Moved ASP.NET
helpcomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jon G
    wrote on last edited by
    #1

    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 Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Panel1.Visible = True
    Panel2.Visible = False
    End Sub

    Jon G www.Gizmocoder.com

    Z 1 Reply Last reply
    0
    • J Jon G

      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 Sub

      Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
      Panel1.Visible = True
      Panel2.Visible = False
      End Sub

      Jon G www.Gizmocoder.com

      Z Offline
      Z Offline
      ZimCoder
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups