TheWizardofInt Posted July 5, 2003 Posted July 5, 2003 In VB.Net, how do I get the main form of another program's properties. For example, I know that TheProg.exe is running, and if I use 'FinadAnyForm' and pass 'TheProg' to it, I will come back with TheProg.exe's ID I assume I should then dim fForm as Form, but then how do I associate fForm with this form I just found? Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
*Gurus* divil Posted July 6, 2003 *Gurus* Posted July 6, 2003 You can't just create a .net windows forms from an hWnd belonging to another program. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TheWizardofInt Posted July 6, 2003 Author Posted July 6, 2003 So if I want to access the items on another form, in another program, is there a way? Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Leaders dynamic_sysop Posted July 6, 2003 Leaders Posted July 6, 2003 you would need to get the handle of the program , then find the childwindows of that and then the handles of the controls on the form with FindWindowEx i guess , why would you want to access another program though? why not make yours do what you need? Quote
TheWizardofInt Posted July 6, 2003 Author Posted July 6, 2003 What I need mine to do is to access the other program. VB.Net doesn't support DDE so I am trying to find a work around Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
*Gurus* divil Posted July 6, 2003 *Gurus* Posted July 6, 2003 You haven't said what this other program is, and why you have to access it yet. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TheWizardofInt Posted July 6, 2003 Author Posted July 6, 2003 The other program is GoldMine, and the program moves data from it to another program, which changes the data and sends it back. GoldMine's methods depend in large part on DDE, which is inaccessible in VB.Net Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
*Gurus* divil Posted July 7, 2003 *Gurus* Posted July 7, 2003 You might well find you have to use another language for this. DDE has been dead for some time, although some apps still use it for some reason. Maybe a legacy language like VB6 would be more suited. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TheWizardofInt Posted July 7, 2003 Author Posted July 7, 2003 I am converting FROM VB6, which is why I need the solution. So I am correct in assuming you don't know how to do this? Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.