|
-
Oct 19th, 2005, 02:17 PM
#1
Thread Starter
Frenzied Member
adding to the menu[RESOLVED]
how would i add a button to the menu like theres file and some some stuff under file how would i type in text1.text hit a button and it adds it to the menu under file?
Last edited by high6; Oct 19th, 2005 at 03:19 PM.
-
Oct 19th, 2005, 03:01 PM
#2
-
Oct 19th, 2005, 03:03 PM
#3
-
Oct 19th, 2005, 03:06 PM
#4
Re: adding to the menu???
here is an example of using an array
create a project, add a textbox and command button
add a menu called mFile and set it's index property to 0
VB Code:
Option Explicit
Private nMenus As Integer
Private Sub Command1_Click()
nMenus = nMenus + 1
Load mFile(nMenus)
With mFile(nMenus)
.Caption = Text1
.Visible = True
End With
End Sub
-
Oct 19th, 2005, 03:10 PM
#5
Thread Starter
Frenzied Member
Re: adding to the menu???
 Originally Posted by moeur
here is an example of using an array
create a project, add a textbox and command button
add a menu called mFile and set it's index property to 0
VB Code:
Option Explicit
Private nMenus As Integer
Private Sub Command1_Click()
nMenus = nMenus + 1
Load mFile(nMenus)
With mFile(nMenus)
.Caption = Text1
.Visible = True
End With
End Sub
well thats getting somewhere but i want it in mfile not next to
-
Oct 19th, 2005, 03:18 PM
#6
Re: adding to the menu???
OK, then just add a submenu to mFile and make it the array
VB Code:
Private Sub Command1_Click()
nMenus = nMenus + 1
Load mSubFile(nMenus)
With mSubFile(nMenus)
.Caption = Text1
.Visible = True
End With
End Sub
-
Oct 19th, 2005, 03:19 PM
#7
Thread Starter
Frenzied Member
Re: adding to the menu???
 Originally Posted by moeur
OK, then just add a submenu to mFile and make it the array
ok thank you very much
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
|