Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32756

design a table, print form, get data from database

$
0
0
Hi All

 I have following questions - 
 1. How to print a form in c# after clicking "Print" button? Is there ant inbuilt function like this.Print()? I tried many but nothing is working.

 2. How to design a table in c#? I tried some stuff table layout . But not working. Do I need to draw it?

 3. How to access data from database and save that data on form(assign to label)?
I have coded something like following - 
string connString = "Server=localhost;Port=3306;Database=data;Uid=root;password=xyz;
 MySqlConnection conn = new MySqlConnection(connString); 
 conn.Open(); 
 MySqlCommand command = new MySqlCommand("Select Student_Lastname, Entered_Date from data.stu where Student_ID='"+lblstudid.Text+"' ", conn);

Thanks

Viewing all articles
Browse latest Browse all 32756

Trending Articles