How to create menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jolace
    New Member
    • Apr 2007
    • 16

    How to create menu

    pls help how to create menu with exmp. file-->form1 or next files-.form2->form3 please write the code too...i'm waithing
  • cjbrx3115
    New Member
    • Jan 2007
    • 93

    #2
    Originally posted by Jolace
    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...expla in it in a little more detail.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by Jolace
      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?

      Comment

      • Jolace
        New Member
        • Apr 2007
        • 16

        #4
        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

        Comment

        • sayamishiraj
          New Member
          • Mar 2007
          • 8

          #5
          Originally posted by Jolace
          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.s how" in which ever field name u want to show the form.

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by Jolace
            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_Cl ick()", and put you there in the code editor. Then just put in your command to show the appropriate form, as sayamishiraj said.

            Comment

            • cjbrx3115
              New Member
              • Jan 2007
              • 93

              #7
              Originally posted by Jolace
              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)

              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
              Hope that helps.

              Good luck,

              -Cody-

              Comment

              • Jolace
                New Member
                • Apr 2007
                • 16

                #8
                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

                Comment

                • cjbrx3115
                  New Member
                  • Jan 2007
                  • 93

                  #9
                  Originally posted by Jolace
                  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...
                  Last edited by Killer42; Apr 8 '07, 02:14 AM. Reason: Obfuscate e-mail address

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    Originally posted by cjbrx3115
                    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.

                    Comment

                    • cjbrx3115
                      New Member
                      • Jan 2007
                      • 93

                      #11
                      Originally posted by Killer42
                      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.

                      Comment

                      • Jolace
                        New Member
                        • Apr 2007
                        • 16

                        #12
                        I send my project to you on your e mail please help me

                        Comment

                        • cjbrx3115
                          New Member
                          • Jan 2007
                          • 93

                          #13
                          Originally posted by Jolace
                          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.

                          Comment

                          • Killer42
                            Recognized Expert Expert
                            • Oct 2006
                            • 8429

                            #14
                            Originally posted by cjbrx3115
                            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.

                            Comment

                            • cjbrx3115
                              New Member
                              • Jan 2007
                              • 93

                              #15
                              Originally posted by Killer42
                              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."

                              Comment

                              Working...