vb.net - Covering Panel with another -


private sub frmitem_load(sender object, e eventargs) handles mybase.load     pnldeposit.visible = false     pnlwithdraw.visible = false end sub  private sub cmdideposit_click(sender object, e eventargs) handles cmdideposit.click     pnldeposit.visible = true     pnlwithdraw.visible = false end sub  private sub cmdiwithdraw_click(sender object, e eventargs) handles cmdiwithdraw.click     pnlwithdraw.visible = true     pnldeposit.visible = false end sub 

//i having problem form. want show first panel successful, problem showing second panel. not working, im using buttons btw. me. thank in advance :d

here quick example using bringtofront. both panels having same location , being same size.

public class form1   private switchpanels boolean   private sub btn_click(sender object, e eventargs) handles btn.click     switchpanels = not switchpanels     if switchpanels         panel1.bringtofront()     else         panel2.bringtofront()     end if   end sub end class 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -