Results 1 to 3 of 3

Thread: Using Show

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Using Show

    Hello everyone,


    I have recently upgraded to Visual Studio.NET, and although i had read, it was a changed language, i didnt know it would be like this. I am pleased with its capabilities, but cant figure out something very basic in VB6 and below. Show I dont know how to show another form. Stupid i know, but if some1 could tell me, this would be great



    Sorry about this, heh


    «°°phReAk°°»

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256
    when you design a form in design mode, usually the form has a name, Form1.

    so what you want to do then is say

    VB Code:
    1. Dim TestForm as New Form1
    2. TestForm.ShowDialog()

  3. #3
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    If you want to show it as a modal for ie. Dialog box then :

    dim frm as new myformname
    frm.showdialog()

    Else

    dim frm as new myformname
    frm.show()





    Note: If it is the main start-up form then

    dim frm as new myMainForm

    Application.Run(frm)

    Hang in there - we all got caught -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width