Click here to Skip to main content
15,885,366 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 11:14
supercat96-Nov-08 11:14 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
Luc Pattyn6-Nov-08 11:39
sitebuilderLuc Pattyn6-Nov-08 11:39 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 12:14
supercat96-Nov-08 12:14 
QuestionHow to pass arrays as paramter to typed dataset Pin
Member 20986146-Nov-08 1:57
Member 20986146-Nov-08 1:57 
QuestionwebBrowser and transparent background Pin
mdzieg5-Nov-08 7:14
mdzieg5-Nov-08 7:14 
AnswerRe: webBrowser and transparent background Pin
Dave Kreskowiak5-Nov-08 14:00
mveDave Kreskowiak5-Nov-08 14:00 
GeneralRe: webBrowser and transparent background Pin
mdzieg6-Nov-08 1:13
mdzieg6-Nov-08 1:13 
Questionsome problems,help me! Thank you! Pin
bozin5-Nov-08 5:50
bozin5-Nov-08 5:50 
hello,every expertist

From debug the program, System shows if(dr.read()) == false, by the way, sql sentence is correct, test in SQL2005 Successfully!


i really confused, help me! Thank you!




private void button13_Click(object sender, EventArgs e)
{
if (this.textBox1.Text.Length > 11)
{
MessageBox.Show("please input correct number ",MessageBoxButtons.OK,MessageBoxIcon.Error);
this.textBox1.Clear();
}
else if(this.textBox1.Text.Length < 11)
{
MessageBox.Show("please input correct number ", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.textBox1.Clear();
}
else
{
string sql = "select * from customer_colorring where cmobilephone ='" + this.textBox1.Text + "'and documentfile = 'g:\\song\\when i meet you.mp3'";
CDBSql q = new CDBSql();
SqlDataReader dr = q.getDataReader(sql);
if (dr.Read()) //here shows false,why????????????????????????????????????
{
string file = q.getScalar(sql).ToString();
Media.MP3Player mp3player = new Media.MP3Player();
mp3player.Open(file);
mp3player.Play();
mp3player.Pause();
mp3player.Stop();
mp3player.Close();
}
else
{
MessageBox.Show("no songs","error",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
}
GeneralRe: some problems,help me! Thank you! Pin
Luc Pattyn5-Nov-08 13:52
sitebuilderLuc Pattyn5-Nov-08 13:52 
Questionproblems about datagridview in C# winforms Pin
bozin4-Nov-08 6:03
bozin4-Nov-08 6:03 
QuestionRe: problems about datagridview in C# winforms Pin
led mike4-Nov-08 6:37
led mike4-Nov-08 6:37 
AnswerRe: problems about datagridview in C# winforms Pin
bozin4-Nov-08 6:54
bozin4-Nov-08 6:54 
GeneralRe: problems about datagridview in C# winforms Pin
led mike4-Nov-08 7:31
led mike4-Nov-08 7:31 
AnswerRe: problems about datagridview in C# winforms Pin
nelsonpaixao7-Nov-08 14:37
nelsonpaixao7-Nov-08 14:37 
QuestionVSTO Application Deployment Pin
tozy3-Nov-08 19:15
tozy3-Nov-08 19:15 
Questionhow to disable paste event for a textbox Pin
lakshmichawala3-Nov-08 19:07
lakshmichawala3-Nov-08 19:07 
AnswerRe: how to disable paste event for a textbox Pin
dan!sh 3-Nov-08 21:00
professional dan!sh 3-Nov-08 21:00 
AnswerRe: how to disable paste event for a textbox Pin
Thomas Stockwell6-Nov-08 8:40
professionalThomas Stockwell6-Nov-08 8:40 
QuestionImproving MSDN DataGridView VirtualMode with caching sample code Pin
AndrusM3-Nov-08 9:23
AndrusM3-Nov-08 9:23 
Questionprinting results from a datagrid using visual studio 2003- 2005 IDE Pin
topzturvins073-Nov-08 4:24
topzturvins073-Nov-08 4:24 
Questionissue with progress bar Pin
gtag2-Nov-08 22:32
gtag2-Nov-08 22:32 
AnswerRe: issue with progress bar Pin
Thomas Stockwell3-Nov-08 1:53
professionalThomas Stockwell3-Nov-08 1:53 
GeneralRe: issue with progress bar Pin
gtag4-Nov-08 23:36
gtag4-Nov-08 23:36 
QuestionSplitContainer panel displays garbage when resized Pin
gschmidt9581-Nov-08 19:48
gschmidt9581-Nov-08 19:48 
AnswerRe: SplitContainer panel displays garbage when resized Pin
Thomas Stockwell3-Nov-08 1:55
professionalThomas Stockwell3-Nov-08 1:55 

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.