Results 1 to 3 of 3

Thread: [VB6] - Creating properties for showing forms

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    [VB6] - Creating properties for showing forms

    can i create properties like normal About property?
    create properties that in property window shows 1 button with 3 dots and clicked show the form. how can i do it?
    VB6 2D Sprite control

    To live is difficult, but we do it.

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

    Re: [VB6] - Creating properties for showing forms

    in your usercontrol, add something like this
    Code:
    Public Sub About()
        ' You have to identify this sub as the AboutBox...
        ' 1) From IDE toolbar, select menus: Tools | Procedure Attributes
        ' 2) In the 'Name' combobox, select About & click the Advanced button
        ' 3) In the 'Procedure ID' combobox, select 'AboutBox' & done
        MsgBox "This is my about box", vbOKOnly, "My Program"
        ' note that you can display a form instead
    End Sub
    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

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    Re: [VB6] - Creating properties for showing forms

    Quote Originally Posted by LaVolpe View Post
    in your usercontrol, add something like this
    Code:
    Public Sub About()
        ' You have to identify this sub as the AboutBox...
        ' 1) From IDE toolbar, select menus: Tools | Procedure Attributes
        ' 2) In the 'Name' combobox, select About & click the Advanced button
        ' 3) In the 'Procedure ID' combobox, select 'AboutBox' & done
        MsgBox "This is my about box", vbOKOnly, "My Program"
        ' note that you can display a form instead
    End Sub
    works with msgbox() but i put "form1.show" and i did what you said in that steps. my question is: why the form is closed after be showed?
    (i resolve by showing it modal, but isn't foced)
    VB6 2D Sprite control

    To live is difficult, but we do it.

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