How do I execute a form "FORM.VB"?

How do I execute a form "FORM.VB"

Michael


Answer this question

How do I execute a form "FORM.VB"?

  • Colin Josey

    yes great code dude
    iam a total newbie to thiss hehe :p
    is it also possible to
    open a forum but then not a new window
    well yes a new window but i can also click the other window now
    is there a way to open a new window and then disable the other window

    thanxs alot

  • RoyW

    I have tried ALL of that and NOTHING works.

    Michael

  • Temple1

    Michael,

    Dim Form1 as New FORM()
    Form1.Show()



    If you replace 'ApplicationName.FormNameYouWantToShow' with the name of your project and form it should work as expected.


    Try placing this code in a button click event handler of your first form to test:

    Dim myForm as New ApplicationName.FormNameYouWantToShow()
    myForm.Show()


    If it still doesn't work you might want to post some of your code for further troubleshooting.




  • Jup

    Ensure that Function Lock is on - sometimes this is not on after I restart my machine.

    F9 toggles a breakpoint,  F11 Code steps through.

    I think this changed from VB6 when F9 used to code step.


  • RCherukuri

    That works thank you, but now I have noticed that debug (F9) does not.

    Michael

  • Badgeror

    Michael,


    F9 toggles breakpoints (as opposed to debugging).

    F5 starts your application in debug mode - or you can select 'Start Debugging' from the 'Debug' menu.








  • vb.net beginner

    Thank you.

  • PDU_Paul

    Hello Michael,

    To display one form from another you use code similar to the following:

    Dim Form1 as New FORM()
    Form1.Show()



    Is that what you mean by 'execute a form'



    Hope that helps,

  • Stijn V.U.

    This did not work.

    Michael

  • .asim

    I understand what is supposed to work.

    Too bad that doesn't work here!!

    Michael

  • How do I execute a form "FORM.VB"?