Hello
i dont know how to connect to a database in windows fprm application (in visual studio 2010) in C#

You can use SqlConnectionStringBuilder and SqlConnection in System.Data.SqlClient

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.