Click here to Skip to main content
15,793,452 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all,

I want to know how can I develop my own control which have database connection. It is windows form control
Updated 2-Oct-10 20:29pm
Henry Minute 2-Oct-10 17:31pm    
Please edit your question to indicate what sort of control. e.g. Windows Forms, WPF, Web etc.

1 solution

HI you can check here to see hot to create User Control in Window Form[^]

But I dont understand your intend to maintain database connection inside the usercontrol, how ever you can still use config app.config file inside the usercontrol to maintain the database connectionstring
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