By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,082 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,082 IT Pros & Developers. It's quick & easy.

How to create menu

P: 16
pls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
Apr 4 '07 #1
Share this Question
Share on Google+
23 Replies


cjbrx3115
P: 93
pls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
I don't quite understand the problem...explain it in a little more detail.
Apr 4 '07 #2

Expert 5K+
P: 8,434
pls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
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?

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?
Apr 5 '07 #3

P: 16
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... Help
Apr 5 '07 #4

P: 8
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... Help
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.show" in which ever field name u want to show the form.
Apr 6 '07 #5

Expert 5K+
P: 8,434
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... Help
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_Click()", and put you there in the code editor. Then just put in your command to show the appropriate form, as sayamishiraj said.
Apr 6 '07 #6

cjbrx3115
P: 93
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... Help
Just create the menu, and double click the button on the menu to get its properties when clicked.

Here's the code...

1.) First create forms for derivats, oil, auto parts, and tyres (tires?).

MAIN FORM (the one with the menu)

Expand|Select|Wrap|Line Numbers
  1. Public Class Form1
  2.  
  3.  
  4.     Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DerivatsToolStripMenuItem.Click
  5.         derivats.Visible = True
  6.     End Sub
  7.  
  8.  
  9.     Private Sub OilToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OilToolStripMenuItem.Click
  10.         oil.Visible = True
  11.     End Sub
  12.  
  13.  
  14.     Private Sub AutopartsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AutopartsToolStripMenuItem.Click
  15.         autoparts.Visible = True
  16.     End Sub
  17.  
  18.  
  19.     Private Sub TyresToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TyresToolStripMenuItem.Click
  20.         tyres.Visible = True
  21.     End Sub
  22.  
  23.  
  24. End Class
  25.  
Hope that helps.

Good luck,

-Cody-
Apr 7 '07 #7

P: 16
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 me
Apr 7 '07 #8

cjbrx3115
P: 93
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 me
Here, just send me your project via email at cjbrx3115-"at"-aim-"dot"-com

I'll try and see whats happening...
Apr 7 '07 #9

Expert 5K+
P: 8,434
Here, just send me your project via email at ...
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.
Apr 8 '07 #10

cjbrx3115
P: 93
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.
Oh, ooops! Thanks for the notice.
Apr 8 '07 #11

P: 16
I send my project to you on your e mail please help me
Apr 8 '07 #12

cjbrx3115
P: 93
I send my project to you on your e mail please help me
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.
Apr 8 '07 #13

Expert 5K+
P: 8,434
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.
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.
Apr 9 '07 #14

cjbrx3115
P: 93
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.
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."
Apr 9 '07 #15

Expert 5K+
P: 8,434
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."
Argh!

I changed that option, specifically so you could send me this e-mail. Hang on, I'll check...

The option is definitely turned on: Receive Email from Other Members

This must be a bug. It could be simply a delay in changing the setting, but it has been almost 24 hours. I'll have a word with the Admins and get back to you.
Apr 9 '07 #16

cjbrx3115
P: 93
Argh!

I changed that option, specifically so you could send me this e-mail. Hang on, I'll check...

The option is definitely turned on: Receive Email from Other Members

This must be a bug. It could be simply a delay in changing the setting, but it has been almost 24 hours. I'll have a word with the Admins and get back to you.
Ok great! I'll send it as soon as I can.
Apr 9 '07 #17

P: 16
Now i dont know what to do... Give me your e mail adress because i must finish project to 14 April so i must create this menu and connect forms..Find some way to contact me
Apr 10 '07 #18

P: 5
Hi can anyone give me the code for the Admin and User login plzz tell me someone
Thanx
Apr 10 '07 #19

cjbrx3115
P: 93
Hi can anyone give me the code for the Admin and User login plzz tell me someone
Thanx
I don't get it...?
Apr 10 '07 #20

Expert 5K+
P: 8,434
Hi can anyone give me the code for the Admin and User login plzz tell me someone
Can you "plzz" explain what you mean?
Apr 11 '07 #21

P: 3
Just create the menu, and double click the button on the menu to get its properties when clicked.

Here's the code...

1.) First create forms for derivats, oil, auto parts, and tyres (tires?).

MAIN FORM (the one with the menu)

Expand|Select|Wrap|Line Numbers
  1. Public Class Form1
  2.  
  3.  
  4.     Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DerivatsToolStripMenuItem.Click
  5.         derivats.Visible = True
  6.     End Sub
  7.  
  8.  
  9.     Private Sub OilToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OilToolStripMenuItem.Click
  10.         oil.Visible = True
  11.     End Sub
  12.  
  13.  
  14.     Private Sub AutopartsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AutopartsToolStripMenuItem.Click
  15.         autoparts.Visible = True
  16.     End Sub
  17.  
  18.  
  19.     Private Sub TyresToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TyresToolStripMenuItem.Click
  20.         tyres.Visible = True
  21.     End Sub
  22.  
  23.  
  24. End Class
  25.  
Hope that helps.

Good luck,

-Cody-

i need a visual basic code to change password
Apr 27 '07 #22

cjbrx3115
P: 93
What password?
Apr 27 '07 #23

Expert 5K+
P: 8,434
i need a visual basic code to change password
Since this doesn't relate the the original question about menus, please start a new thread for your question.
Apr 28 '07 #24

Post your reply

Sign in to post your reply or Sign up for a free account.