Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting HTML File to Excel File and XML File using c# Code Pin
Mike Ellison30-Jul-09 2:57
Mike Ellison30-Jul-09 2:57 
QuestionDouble click custom controls Pin
Jon Henry30-Jul-09 2:27
Jon Henry30-Jul-09 2:27 
AnswerRe: Double click custom controls Pin
Mike Ellison30-Jul-09 2:36
Mike Ellison30-Jul-09 2:36 
GeneralRe: Double click custom controls Pin
Jon Henry30-Jul-09 12:20
Jon Henry30-Jul-09 12:20 
AnswerRe: Double click custom controls Pin
Jon Henry2-Aug-09 1:44
Jon Henry2-Aug-09 1:44 
QuestionConnecting to MySQL from PC Pin
MarkB77730-Jul-09 2:08
MarkB77730-Jul-09 2:08 
AnswerRe: Connecting to MySQL from PC Pin
stancrm30-Jul-09 2:25
stancrm30-Jul-09 2:25 
AnswerRe: Connecting to MySQL from PC Pin
spalanivel30-Jul-09 2:34
spalanivel30-Jul-09 2:34 
Hi,
1) First you need to add reference MySql.Data to your application.

2) Then //create a new mysqlconnection
MySqlConnection mycon = new MySqlConnection("datasource=localhost;username=root;password=pwd;database=project");

//create a mysql DataAdapter
MySqlDataAdapter myadp = new MySqlDataAdapter("select * from FAB", mycon);

//create a dataset
DataSet myds = new DataSet();

//now fill and bind the DataGrid
myadp.Fill(myds, "empinfo");
dataGridView1.DataSource = myds.Tables["empinfo"].DefaultView;

I have used with windows application. Try this.

Regards,
Subbu
AnswerRe: Connecting to MySQL from PC Pin
Dave Kreskowiak30-Jul-09 6:31
mveDave Kreskowiak30-Jul-09 6:31 
GeneralRe: Connecting to MySQL from PC Pin
EliottA30-Jul-09 7:26
EliottA30-Jul-09 7:26 
GeneralRe: Connecting to MySQL from PC Pin
MarkB77730-Jul-09 15:20
MarkB77730-Jul-09 15:20 
QuestionHow to Read CSV file in Readonly mode and Populate dataset? Pin
Tridip Bhattacharjee30-Jul-09 2:08
professionalTridip Bhattacharjee30-Jul-09 2:08 
AnswerRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Dave Kreskowiak30-Jul-09 6:29
mveDave Kreskowiak30-Jul-09 6:29 
GeneralRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Tridip Bhattacharjee30-Jul-09 18:35
professionalTridip Bhattacharjee30-Jul-09 18:35 
GeneralRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Dave Kreskowiak31-Jul-09 13:16
mveDave Kreskowiak31-Jul-09 13:16 
QuestionException use instead of validation Pin
Raybarg30-Jul-09 1:14
professionalRaybarg30-Jul-09 1:14 
QuestionStatic constructor Pin
erfgerfgerger30-Jul-09 1:07
erfgerfgerger30-Jul-09 1:07 
AnswerRe: Static constructor Pin
Ashfield30-Jul-09 1:29
Ashfield30-Jul-09 1:29 
GeneralRe: Static constructor Pin
erfgerfgerger30-Jul-09 1:34
erfgerfgerger30-Jul-09 1:34 
GeneralRe: Static constructor Pin
Luc Pattyn30-Jul-09 2:04
sitebuilderLuc Pattyn30-Jul-09 2:04 
GeneralRe: Static constructor Pin
Ashfield30-Jul-09 8:28
Ashfield30-Jul-09 8:28 
AnswerRe: Static constructor PinPopular
DaveyM6930-Jul-09 1:33
professionalDaveyM6930-Jul-09 1:33 
AnswerRe: Static constructor Pin
Daniel Grunwald30-Jul-09 1:49
Daniel Grunwald30-Jul-09 1:49 
GeneralRe: Static constructor Pin
erfgerfgerger30-Jul-09 2:01
erfgerfgerger30-Jul-09 2:01 
GeneralRe: Static constructor Pin
Daniel Grunwald30-Jul-09 2:04
Daniel Grunwald30-Jul-09 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.