Results 1 to 6 of 6

Thread: [RESOLVED] Setting a form as default.

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2010
    Posts
    12

    Resolved [RESOLVED] Setting a form as default.

    Hiya peeps

    I have this problem and I hope you'll help me. its nothing to do with coding etc.

    I want to set a form a default, you know when I press play I want this certain form to come up first.

    How can I set this??

    Thanks guys!

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Setting a form as default.

    It is a coding question. You can show any form simply by: FormName.Show
    In your play button's click event, add the code to show the form.

    Edited: typo, in the show command; haven't had my morning coffee yet
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Location
    Wales UK
    Posts
    814

    Re: Setting a form as default.

    what about SomeForm.show

    Or goto Project-Properties and set the Startup Object to the form to load
    Hope that helps

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Setting a form as default.

    menu Project > Properties > Startup object
    Last edited by baja_yu; Apr 23rd, 2010 at 07:51 AM. Reason: Beat me to it.

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Setting a form as default.

    Quote Originally Posted by baja_yu View Post
    menu Project > Properties > Startup object
    Ah good point. When I saw "press play" I was assuming a button on the form. OP very well may mean VB's Start/Run button instead.
    Last edited by LaVolpe; Apr 23rd, 2010 at 08:02 AM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2010
    Posts
    12

    Re: Setting a form as default.

    yes i meant the start button .. thanks for the help guys!!

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