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

Shell command in visual basic

P: 26
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
Nov 24 '07 #1
Share this Question
Share on Google+
7 Replies


lotus18
100+
P: 866
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. : )
Nov 24 '07 #2

debasisdas
Expert 5K+
P: 8,127
To open calculator you need to pass the complete path of the calc.exe file to shell function.
Nov 24 '07 #3

Ali Rizwan
100+
P: 927
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.
Nov 25 '07 #4

P: 26
I got few reply but those not helpful please give me total solution
Nov 29 '07 #5

debasisdas
Expert 5K+
P: 8,127
I got few reply but those not helpful please give me total solution
Kindly post the code that you have tried so far.
Nov 29 '07 #6

hariharanmca
100+
P: 1,977
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
Expand|Select|Wrap|Line Numbers
  1. Shell("calc.exe") 
Nov 29 '07 #7

vdraceil
100+
P: 236
No need for any Exe is winsystem path (system32) we can give
Expand|Select|Wrap|Line Numbers
  1. Shell("calc.exe") 
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?
Dec 9 '07 #8

Post your reply

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