Winston Posted December 15, 2002 Share Posted December 15, 2002 Hey guys is it possible to make something a vb form i mean have a button where u can browse for the .exe (application) and save that as the default path and make that program execute and display within that form yes i mean inside the form thanks Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted December 15, 2002 Share Posted December 15, 2002 More than likely, yes. This is just off the top of my head, but you would probably have to subclass the launched application's main window and do all the painting from your vb forms's wndproc handler. There maybe an easier way, but I don't know of it. Link to comment Share on other sites More sharing options...
0 Steven Posted December 15, 2002 Share Posted December 15, 2002 Hey guys is it possible to make something a vb formi mean have a button where u can browse for the .exe (application) and save that as the default path and make that program execute and display within that form yes i mean inside the form thanks sounds like vnc. Link to comment Share on other sites More sharing options...
0 Winston Posted December 15, 2002 Author Share Posted December 15, 2002 me a noob man duno this terms slow down lol Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted December 16, 2002 Share Posted December 16, 2002 hehe... sorry. In win32 programming, there is a thing called a windows procedure(wndproc) that handles messages for a program. If you've programmed win32 in C, you're probably familiar with it. It is a switch statement that processes messages for an app. To subclass something, you need to define a new wndproc to handle certain messages, like WM_PAINT messages. Subclassing in VB is a pain, but it is very powerful. http://www.geocities.com/SiliconValley/Lab...632/atch12.html http://www.vbweb.co.uk/show/49/ http://www.vbthunder.com/default.asp http://www.developerfusion.com/show/336/ http://www.mvps.org/vbvision/grouped_demos...htm#Subclassing Link to comment Share on other sites More sharing options...
0 Winston Posted December 16, 2002 Author Share Posted December 16, 2002 hahah nah to be honest i did a heaps tiny VB i duno any of that duno how tro declare variables using the control structures too well so i doubt i understand the sub classes im really stupid at programming i keep reading but the terms just dont kick in the concept of it is stupid so yea.. but i need to know it bad.. coz of my major assignment ahh once ive finished this one i aint touching VB for the rest of my life man Link to comment Share on other sites More sharing options...
0 jimbo11883 Posted December 22, 2002 Share Posted December 22, 2002 You can use the SetParent() API function to place the window you've opened into your form. Link to comment Share on other sites More sharing options...
0 Winston Posted December 22, 2002 Author Share Posted December 22, 2002 i duno how to use that jimbo do u use msn or icq can u contact me on icq for 54882708 or msn winnyston_z@hotmail.com thanks Link to comment Share on other sites More sharing options...
Question
Winston
Hey guys is it possible to make something a vb form
i mean have a button where u can browse for the .exe (application)
and save that as the default path
and make that program execute and display within that form
yes i mean inside the form
thanks
Link to comment
Share on other sites
7 answers to this question
Recommended Posts