Click here to Skip to main content
16,011,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 9:48
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 9:48 
AnswerRe: Yearly Calendar Pin
Henry Minute10-Jan-11 11:17
Henry Minute10-Jan-11 11:17 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 11:30
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 11:30 
GeneralRe: Yearly Calendar Pin
Henry Minute10-Jan-11 12:05
Henry Minute10-Jan-11 12:05 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 13:25
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 13:25 
GeneralRe: Yearly Calendar Pin
Henry Minute10-Jan-11 13:45
Henry Minute10-Jan-11 13:45 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 14:01
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 14:01 
QuestionMysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Piyush Vardhan Singh9-Jan-11 20:08
Piyush Vardhan Singh9-Jan-11 20:08 
Hello Friend
I am connectin Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) but whene i conectthis on xp os then its excute .... {}

My Code-

MySqlConnection _MySqlConnection;
MySqlCommand _MySqlCommand;
MySqlDataAdapter _MySqlDataAdapter;
string _Conentionstring = "server=localhost;database=schoolinventory;user id=root;password=;";
public int GetId()
{
try
{
_MySqlConnection = new MySqlConnection(_Conentionstring);
_MySqlConnection.Open();
string _Adpstring = "select Count(*) from goods";
_MySqlDataAdapter = new MySqlDataAdapter(_Adpstring, _Conentionstring);
DataSet _ds=new DataSet();
_MySqlDataAdapter.Fill(_ds);
int i = Convert.ToInt32( _ds.Tables[0].Rows[0].ItemArray[0].ToString());
return 0;
}
catch (Exception ex)
{
return 0;
}
}
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com



AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Luc Pattyn10-Jan-11 0:50
sitebuilderLuc Pattyn10-Jan-11 0:50 
GeneralRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
DaveyM6910-Jan-11 3:04
professionalDaveyM6910-Jan-11 3:04 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Bernhard Hiller10-Jan-11 4:34
Bernhard Hiller10-Jan-11 4:34 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
phil.o10-Jan-11 5:16
professionalphil.o10-Jan-11 5:16 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Michael900017-Jan-11 9:09
Michael900017-Jan-11 9:09 
QuestionQuestion With Crystal Report Pin
Honeyboy_209-Jan-11 6:20
Honeyboy_209-Jan-11 6:20 
AnswerRe: Question With Crystal Report Pin
Henry Minute9-Jan-11 7:24
Henry Minute9-Jan-11 7:24 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 11:38
Honeyboy_209-Jan-11 11:38 
GeneralRe: Question With Crystal Report Pin
Henry Minute9-Jan-11 11:44
Henry Minute9-Jan-11 11:44 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 12:55
Honeyboy_209-Jan-11 12:55 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 13:42
Honeyboy_209-Jan-11 13:42 
GeneralRe: Question With Crystal Report Pin
Henry Minute10-Jan-11 0:50
Henry Minute10-Jan-11 0:50 
AnswerRe: Question With Crystal Report Pin
V.9-Jan-11 20:07
professionalV.9-Jan-11 20:07 
Questionmessenger with eboard Pin
om_metab9-Jan-11 4:08
om_metab9-Jan-11 4:08 
AnswerRe: messenger with eboard Pin
Richard MacCutchan9-Jan-11 4:24
mveRichard MacCutchan9-Jan-11 4:24 
AnswerRe: messenger with eboard Pin
Pete O'Hanlon9-Jan-11 9:30
mvePete O'Hanlon9-Jan-11 9:30 
GeneralRe: messenger with eboard Pin
fjdiewornncalwe25-Feb-11 10:51
professionalfjdiewornncalwe25-Feb-11 10:51 

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.