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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -