|
-
Nov 29th, 2010, 03:37 PM
#1
Thread Starter
PowerPoster
[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?
-
Nov 30th, 2010, 09:54 PM
#2
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
-
Dec 2nd, 2010, 02:55 PM
#3
Thread Starter
PowerPoster
Re: [VB6] - Creating properties for showing forms
 Originally Posted by LaVolpe
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|