vb.net - VB programmers. I have a problemas with form navigation -


i have few forms in program , have navigation well. next , buttons. have next buttons coded so:

private sub nextbutton_click(byval sender system.object, byval e system.eventargs) handles nextbutton.click     ' closes current screen , opens next      me.visible = false     form4.showdialog() end sub 

and buttons so:

private sub backbutton_click(byval sender system.object, byval e system.eventargs) handles backbutton.click     ' closes current screen , opens previous screen     me.visible = false     form2.showdialog() end sub 

as can tell form3.

so. go forward fine, hit program doesnt want run.

what doing wrong?

when showing form using 'showdialog' in vb, have evaluate response , dismiss form. setting visible false isn't enough.

see code here: http://msdn.microsoft.com/en-us/library/c7ykbedk.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2

you may want show form, not showdialog it, , there's samples here: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.show.aspx

hope helps.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -