Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Please let me know how can i automate VB Controls like Buttons , Grids , Tables in an external VB Application from my C# Application.

I dont want to use SendKeys for this.

Regards,
Nikesh
Posted
Comments
Maciej Los 2-Aug-13 13:30pm    
Wow! Do you think we can read in your mind and we know what VB apllication do?
ridoy 2-Aug-13 14:11pm    
rightly say,Maciej :)
Sergey Alexandrovich Kryukov 2-Aug-13 14:53pm    
What do you mean by "VB" here, exactly? Isn't it "VB.NET".
—SA
Aydin Homay 2-Aug-13 23:39pm    
Your question is not clear and we have not any magic for reading your mind ;)
Nikesh_k 6-Aug-13 6:36am    
There is a Visual Basic Application which has textboxes , Grids ,tables and Buttons.
We want to automate actions(Get Data and Push Data) for these controls.
We dont want the SendKeys Option to automate.

Of course, using SendKeys is a bad thing and is not recommended for UI development anyway.

Instead, you can learn about System.Windows.Forms automation. Please start with this article: http://msdn.microsoft.com/en-us/library/ms996405.aspx[^].

Good luck,
—SA
 
Share this answer
 
Comments
Maciej Los 2-Aug-13 15:11pm    
+5!
Sergey Alexandrovich Kryukov 2-Aug-13 15:25pm    
Thank you, Maciej.
—SA
ridoy 2-Aug-13 15:28pm    
very good link,+5.
Sergey Alexandrovich Kryukov 2-Aug-13 15:32pm    
Thank you very much.
—SA
If you don't want to use SendKeys then whatever app you are trying to control will have to have an SDK or API that you could use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900