|
-
Dec 26th, 2003, 06:50 AM
#1
Thread Starter
Fanatic Member
Calc within my App
hi all,
i want to call calc or any other app within my mdi form.
pls guide
regards,
prakash
-
Dec 26th, 2003, 08:08 AM
#2
Sleep mode
Again , here
VB Code:
Process.Start("Calc.exe")
-
Dec 26th, 2003, 08:58 AM
#3
Thread Starter
Fanatic Member
but, will it show it as mdi child form???
-
Dec 26th, 2003, 09:07 AM
#4
Sleep mode
Originally posted by pvbangera
but, will it show it as mdi child form???
No, it runs in different spots usually , you should've mentioned this earlier . If you want to bound it in your form , I believe you have to use some API Functions .
VB Code:
Dim sinfo As New ProcessStartInfo("calc.exe")
sinfo.WindowStyle = ProcessWindowStyle.Normal
Process.Start(sinfo)
-
Dec 30th, 2003, 05:52 AM
#5
Thread Starter
Fanatic Member
the code is not working. it shows me the calc in different window
-
Dec 30th, 2003, 05:56 AM
#6
Fanatic Member
Why don't you just make your own calculator form? You can include it in whatever projects you want then and in whatever way.
-
Dec 30th, 2003, 06:33 AM
#7
yay gay
Originally posted by pvbangera
the code is not working. it shows me the calc in different window
I don't get why you'd want a calculator inside a MDI lol.....anyways it's not that easy so it's faster to make your own
\m/  \m/
-
Dec 30th, 2003, 06:36 AM
#8
Sleep mode
Originally posted by pvbangera
the code is not working. it shows me the calc in different window
Sure , it does but you didn't explain what you want to do exactly . Anyhow , you need to use couple of API Functions (SetWindowPos API (not sure of the name) , GetWindowRect ...etc ) .
-
Dec 30th, 2003, 06:40 AM
#9
Sleep mode
Originally posted by PT Exorcist
I don't get why you'd want a calculator inside a MDI lol.....anyways it's not that easy so it's faster to make your own
What if he wants the scientific for complex calculations ?? Sure this would sucks to write it again . Always make use of the available things around you .
-
Dec 30th, 2003, 07:46 AM
#10
yay gay
Sorry, it is still no valid reason for HAVING to put the calculator INSIDE of the program. The result of whatever calculations he does is equal both if the calc.exe is being used outside or inside his form. If you want to manipulate the result given by the calculation it's exactly the same to have it inside and outside of your program. It's not having it inside that will turn it into a easy-to-use full OOP class..both ones have to use win api to do it.
\m/  \m/
-
Dec 30th, 2003, 07:56 AM
#11
Sleep mode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|