Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
QuestionDrawing "on screen"? Pin
o m n i31-Dec-09 6:08
o m n i31-Dec-09 6:08 
AnswerRe: Drawing "on screen"? Pin
Giorgi Dalakishvili31-Dec-09 9:41
mentorGiorgi Dalakishvili31-Dec-09 9:41 
Questioncallback function only getting called once then program crashing Pin
rjs1 431-Dec-09 4:36
rjs1 431-Dec-09 4:36 
AnswerRe: callback function only getting called once then program crashing Pin
DaveyM6931-Dec-09 5:18
professionalDaveyM6931-Dec-09 5:18 
GeneralRe: callback function only getting called once then program crashing Pin
rjs1 431-Dec-09 6:20
rjs1 431-Dec-09 6:20 
AnswerRe: callback function only getting called once then program crashing Pin
Daniel Grunwald31-Dec-09 6:42
Daniel Grunwald31-Dec-09 6:42 
GeneralRe: callback function only getting called once then program crashing Pin
rjs1 431-Dec-09 7:26
rjs1 431-Dec-09 7:26 
QuestionIs it possible to create a COM Component based on a .Net Component developed from the Compact Framework, running on Windows CE 4.2? Pin
pdohara31-Dec-09 4:25
pdohara31-Dec-09 4:25 
AnswerRe: Is it possible to create a COM Component based on a .Net Component developed from the Compact Framework, running on Windows CE 4.2? Pin
#realJSOP31-Dec-09 9:14
professional#realJSOP31-Dec-09 9:14 
QuestionAS Pin
manirul0431-Dec-09 4:23
manirul0431-Dec-09 4:23 
AnswerOM Pin
Keith Barrow31-Dec-09 4:27
professionalKeith Barrow31-Dec-09 4:27 
GeneralRe: OM Pin
OriginalGriff31-Dec-09 4:40
mveOriginalGriff31-Dec-09 4:40 
GeneralRe: OM Pin
PIEBALDconsult31-Dec-09 14:31
mvePIEBALDconsult31-Dec-09 14:31 
Questionsomething wrong in codes Pin
Erdinc2731-Dec-09 3:27
Erdinc2731-Dec-09 3:27 
AnswerRe: something wrong in codes Pin
OriginalGriff31-Dec-09 3:54
mveOriginalGriff31-Dec-09 3:54 
GeneralRe: something wrong in codes Pin
Erdinc2731-Dec-09 4:28
Erdinc2731-Dec-09 4:28 
hii man thanks for your reply
i tried to understand about my mistake by using breakpoint
it doesnt drop in if block..i mean the block below
if ((txtAd.Text != "") && (txtSoyad.Text != ""))
{
if (cmd.ExecuteNonQuery() == 1)

MessageBox.Show("Ekleme İşlemi Tamamlandı", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);
else
MessageBox.Show("Ekleme Sırasında Hata Oluştu","Dikkat", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
MessageBox.Show("İsim ve Soyisim Giriniz","Dikkat",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
it leaves the if control when it comes to ExecuteNonQuery() line and goes catch block.. here is my catch and finally block
catch (Exception)
{
if (((txtisTlf.Text.Length) + (txtKod.Text.Length)) > 20 || ((txtCep.Text.Length) + (txtCepKod.Text.Length)) > 20 || ((txtEvKod.Text.Length) + (txtEvTlf.Text.Length)) > 20 ||(txtFax.Text.Length) > 20)

MessageBox.Show("İş Telefonu,Cep Telefonu,Ev Telefonu,Fax No Alanları 20 Karakterden Fazla Olamaz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
con.Close();
}
GeneralRe: something wrong in codes Pin
OriginalGriff31-Dec-09 4:39
mveOriginalGriff31-Dec-09 4:39 
GeneralRe: something wrong in codes Pin
Erdinc271-Jan-10 23:44
Erdinc271-Jan-10 23:44 
GeneralRe: something wrong in codes Pin
OriginalGriff2-Jan-10 0:02
mveOriginalGriff2-Jan-10 0:02 
QuestionRetrieve an image from another pc in network Pin
wasifmuneer31-Dec-09 1:54
wasifmuneer31-Dec-09 1:54 
AnswerRe: Retrieve an image from another pc in network Pin
Paul Unsworth31-Dec-09 2:06
Paul Unsworth31-Dec-09 2:06 
AnswerRe: Retrieve an image from another pc in network Pin
minnie mouse31-Dec-09 14:48
minnie mouse31-Dec-09 14:48 
Questionproblem with custom serialization in .net 2.0 Pin
prasadbuddhika31-Dec-09 1:48
prasadbuddhika31-Dec-09 1:48 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Paul Unsworth31-Dec-09 2:00
Paul Unsworth31-Dec-09 2:00 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Abhinav S31-Dec-09 3:14
Abhinav S31-Dec-09 3:14 

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.