pls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
How to create menu
Collapse
X
-
Please try to explain in a bit more detail what you want to achieve. What sort of menu are you talking about? In what version of Visual Basic?Originally posted by Jolacepls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
And do you mean that you want to create it in the development environment? Or do you want your code to create it at runtime? Or both?Comment
-
well i'm working in VB6 and like to create menu with 4 options
exm 1. File --> Derivats
2. file-> Oil
3. File--> Auto Parts
4.File--> Tyres
are you understand me now?
please help me how to create this..i know to enter in create menu but i dont know how to write code to show this forms...
when i choose file (up in the menu) ---> Oil ...i like to open oil form..
when i choose Auto parts to open auto parts form... HelpComment
-
u can create menu using menu editor. just right click on the form and go to the menu editor. write the field name as u like and then the "formname.s how" in which ever field name u want to show the form.Originally posted by Jolacewell i'm working in VB6 and like to create menu with 4 options
exm 1. File --> Derivats
2. file-> Oil
3. File--> Auto Parts
4.File--> Tyres
are you understand me now?
please help me how to create this..i know to enter in create menu but i dont know how to write code to show this forms...
when i choose file (up in the menu) ---> Oil ...i like to open oil form..
when i choose Auto parts to open auto parts form... HelpComment
-
Once you have created the menus using the Menu Editor, just pull down and select each menu, the way your users would do it. VB will create the event procedure, such as "mnuDerivats_Cl ick()", and put you there in the code editor. Then just put in your command to show the appropriate form, as sayamishiraj said.Originally posted by Jolacewell i'm working in VB6 and like to create menu with 4 options
exm 1. File --> Derivats
2. file-> Oil
3. File--> Auto Parts
4.File--> Tyres
are you understand me now?
please help me how to create this..i know to enter in create menu but i dont know how to write code to show this forms...
when i choose file (up in the menu) ---> Oil ...i like to open oil form..
when i choose Auto parts to open auto parts form... HelpComment
-
Just create the menu, and double click the button on the menu to get its properties when clicked.Originally posted by Jolacewell i'm working in VB6 and like to create menu with 4 options
exm 1. File --> Derivats
2. file-> Oil
3. File--> Auto Parts
4.File--> Tyres
are you understand me now?
please help me how to create this..i know to enter in create menu but i dont know how to write code to show this forms...
when i choose file (up in the menu) ---> Oil ...i like to open oil form..
when i choose Auto parts to open auto parts form... Help
Here's the code...
1.) First create forms for derivats, oil, auto parts, and tyres (tires?).
MAIN FORM (the one with the menu)
Hope that helps.Code:Public Class Form1 Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DerivatsToolStripMenuItem.Click derivats.Visible = True End Sub Private Sub OilToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OilToolStripMenuItem.Click oil.Visible = True End Sub Private Sub AutopartsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AutopartsToolStripMenuItem.Click autoparts.Visible = True End Sub Private Sub TyresToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TyresToolStripMenuItem.Click tyres.Visible = True End Sub End Class
Good luck,
-Cody-Comment
-
Thanks for Everybody but... I try all and i can't..why i dont know " Method or data member not found".... And what to do now? i write derivats.show again some mesasage for all forms...Is this work in yor VB? if you can please try and write to me this is very important for me. Thanks and please write meComment
-
Here, just send me your project via email at cjbrx3115-"at"-aim-"dot"-comOriginally posted by JolaceThanks for Everybody but... I try all and i can't..why i dont know " Method or data member not found".... And what to do now? i write derivats.show again some mesasage for all forms...Is this work in yor VB? if you can please try and write to me this is very important for me. Thanks and please write me
I'll try and see whats happening...Comment
-
Please don't post e-mail addresses. They will be picked up by scammers and spammers scanning the forum. I've garbled yours, but hopefully just about any human can still work it out.Originally posted by cjbrx3115Here, just send me your project via email at ...Comment
-
Thanks, I got the email...but I couldn't open the file because it was in a different format. I have VB Express Edition (2005). Try downloading that version, because it works better too.Originally posted by JolaceI send my project to you on your e mail please help meComment
-
You could send me a copy if you like, as I use VB6. Just click my username, then the "send a message via e-mail" link.Originally posted by cjbrx3115Thanks, I got the email...but I couldn't open the file because it was in a different format. I have VB Express Edition (2005). Try downloading that version, because it works better too.Comment
-
It says, "Sorry! That user has specified that they do not wish to receive emails. If you still wish to send an email to this user, please contact the administrator and they may be able to help."Originally posted by Killer42You could send me a copy if you like, as I use VB6. Just click my username, then the "send a message via e-mail" link.Comment
Comment