hi all,
i want to call calc or any other app within my mdi form.
pls guide
regards,
prakash
Printable View
hi all,
i want to call calc or any other app within my mdi form.
pls guide
regards,
prakash
Again , here ;)
VB Code:
Process.Start("Calc.exe")
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 .Quote:
Originally posted by pvbangera
but, will it show it as mdi child form???
VB Code:
Dim sinfo As New ProcessStartInfo("calc.exe") sinfo.WindowStyle = ProcessWindowStyle.Normal Process.Start(sinfo)
the code is not working. it shows me the calc in different window
Why don't you just make your own calculator form? You can include it in whatever projects you want then and in whatever way.
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 ownQuote:
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 ) . :rolleyes:Quote:
Originally posted by pvbangera
the code is not working. it shows me the calc in different window
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 . ;)Quote:
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
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.
Plus , MS might think this illegal ..:eek: ........:D :DQuote:
Originally posted by PT Exorcist
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.