Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: Javascript Compatible text from c# text Pin
Curtis Schlak.6-Nov-09 10:51
Curtis Schlak.6-Nov-09 10:51 
QuestionMinimize to tray bar [modified] Pin
Ronni Marker5-Nov-09 22:14
Ronni Marker5-Nov-09 22:14 
AnswerMessage Closed Pin
5-Nov-09 22:20
stancrm5-Nov-09 22:20 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:26
Ronni Marker5-Nov-09 22:26 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:37
Ronni Marker5-Nov-09 22:37 
QuestionSystem.Security.RightsManagement Pin
Joe Rozario5-Nov-09 21:52
Joe Rozario5-Nov-09 21:52 
QuestionTextbox-formatting value using databinding Pin
jogisarge5-Nov-09 21:04
jogisarge5-Nov-09 21:04 
QuestionHow I Show MessegeBox in ClassFile in C#.net Pin
Vikash Yadav5-Nov-09 20:23
Vikash Yadav5-Nov-09 20:23 
Hi,

I Add New Class in My Solution For Use Some Functions in Other Forms.

If i Use this Code

public static void RefreshUserList()
{

dtTableUserList = new DataTable();

try
{
dtTableUserList.Rows.Clear();
string cmd = "select * from tblLogin order by UserName";
da = new OleDbDataAdapter(cmd, con);
con.Open();
da.Fill(dtTableUserList);
con.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

}


here ERROR is in
MessageBox.Show(ex.Message);

How i show messegebox in class

Thanks & Regards

Form :-
Vikash Yadav
Mob : 9210907172

AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
SUNISU5-Nov-09 20:28
SUNISU5-Nov-09 20:28 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Ron Beyer6-Nov-09 10:30
professionalRon Beyer6-Nov-09 10:30 
AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
QuestionHttpWebrequest's Proxy property Pin
himuskanhere5-Nov-09 19:20
himuskanhere5-Nov-09 19:20 
QuestionHow to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 18:30
gopal_bnvs5-Nov-09 18:30 
AnswerRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 18:55
protectorChristian Graus5-Nov-09 18:55 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 19:03
gopal_bnvs5-Nov-09 19:03 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 20:14
protectorChristian Graus5-Nov-09 20:14 
AnswerRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
dan!sh 5-Nov-09 18:58
professional dan!sh 5-Nov-09 18:58 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 19:02
gopal_bnvs5-Nov-09 19:02 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 20:15
protectorChristian Graus5-Nov-09 20:15 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
dan!sh 5-Nov-09 21:03
professional dan!sh 5-Nov-09 21:03 
Questionmarquee progress bar c# Pin
ghe143lhei5-Nov-09 16:28
ghe143lhei5-Nov-09 16:28 
QuestionHow to place image in the merged cell center Pin
mctramp1685-Nov-09 16:07
mctramp1685-Nov-09 16:07 
AnswerRe: How to place image in the merged cell center Pin
Mycroft Holmes5-Nov-09 16:19
professionalMycroft Holmes5-Nov-09 16:19 
AnswerRe: How to place image in the merged cell center Pin
Shameel5-Nov-09 21:38
professionalShameel5-Nov-09 21:38 

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.