Shell command in visual basic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • godhulirbalaka
    New Member
    • Oct 2007
    • 26

    Shell command in visual basic

    Hi guys, I am making a shop management program in visual basic. I want to a menu name Utiliti where Calculator, notepad, heart game, solitair game will be shown. In Utility menu I added this submenu. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

    that mean only one calculator will open. I saw the code something Shell calculator or ...

    Please help me
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by godhulirbalaka
    Hi guys, I am making a shop management program in visual basic. I want to a menu name Utiliti where Calculator, notepad, heart game, solitair game will be shown. In Utility menu I added this submenu. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

    that mean only one calculator will open. I saw the code something Shell calculator or ...

    Please help me
    Here's the simple algo:

    If you click the calculator menu then calculator will be showed and calculator menu will be disabled. When the calculator is unloaded, enables the calculator menu. : )

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      To open calculator you need to pass the complete path of the calc.exe file to shell function.
      Last edited by Killer42; Nov 29 '07, 10:37 PM.

      Comment

      • Ali Rizwan
        Banned
        Contributor
        • Aug 2007
        • 931

        #4
        Originally posted by godhulirbalaka
        Hi guys, I am making a shop management program in visual basic. I want to a menu name Utiliti where Calculator, notepad, heart game, solitair game will be shown. In Utility menu I added this submenu. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

        that mean only one calculator will open. I saw the code something Shell calculator or ...

        Please help me
        What you have code to open calculator.
        Hope i ll help you.

        Comment

        • godhulirbalaka
          New Member
          • Oct 2007
          • 26

          #5
          I got few reply but those not helpful please give me total solution

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            Originally posted by godhulirbalaka
            I got few reply but those not helpful please give me total solution
            Kindly post the code that you have tried so far.

            Comment

            • hariharanmca
              Top Contributor
              • Dec 2006
              • 1977

              #7
              Originally posted by debasisdas
              To open calculator u need to pass the complete path of the calc.exe file to shell function.
              No need for any Exe is winsystem path (system32) we can give
              [CODE=vb]Shell("calc.exe ") [/CODE]

              Comment

              • vdraceil
                New Member
                • Jul 2007
                • 236

                #8
                Originally posted by hariharanmca
                No need for any Exe is winsystem path (system32) we can give
                [CODE=vb]Shell("calc.exe ") [/CODE]
                This opens an exe file,i agree.How do u position the exe file?what do i do if i want to make it appear at the center of the sreen?

                Comment

                Working...