Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: Single instance of application Pin
Stefan Troschuetz12-Oct-06 0:20
Stefan Troschuetz12-Oct-06 0:20 
AnswerRe: Single instance of application Pin
engsrini12-Oct-06 3:18
engsrini12-Oct-06 3:18 
GeneralRe: Single instance of application Pin
mav.northwind12-Oct-06 10:20
mav.northwind12-Oct-06 10:20 
Questiongetting fields of a table Pin
saqib8211-Oct-06 23:46
saqib8211-Oct-06 23:46 
AnswerRe: getting fields of a table Pin
quiteSmart12-Oct-06 2:27
quiteSmart12-Oct-06 2:27 
QuestionHow to differentiate the virtual printer Pin
Brosis11-Oct-06 23:25
Brosis11-Oct-06 23:25 
Questionself launcher deployment using windows installer Pin
Praveen Raghuvanshi11-Oct-06 22:53
professionalPraveen Raghuvanshi11-Oct-06 22:53 
AnswerRe: self launcher deployment using windows installer Pin
Alper Camel12-Oct-06 2:34
Alper Camel12-Oct-06 2:34 
Questiongettting table name Pin
saqib8211-Oct-06 22:33
saqib8211-Oct-06 22:33 
AnswerRe: gettting table name Pin
AETaylor11-Oct-06 22:37
AETaylor11-Oct-06 22:37 
AnswerRe: gettting table name Pin
Bright Zhang11-Oct-06 23:16
Bright Zhang11-Oct-06 23:16 
AnswerRe: gettting table name Pin
quiteSmart12-Oct-06 2:25
quiteSmart12-Oct-06 2:25 
Questionhow to create webboard for c# Pin
isis_preaw11-Oct-06 22:29
isis_preaw11-Oct-06 22:29 
QuestionEntering Next Character in the Text Box using VB 6 Pin
ghelai_cute11-Oct-06 22:28
ghelai_cute11-Oct-06 22:28 
AnswerRe: Entering Next Character in the Text Box using VB 6 Pin
mav.northwind12-Oct-06 10:23
mav.northwind12-Oct-06 10:23 
QuestionWMI enabl disable in c# Pin
Tauseef A11-Oct-06 22:26
Tauseef A11-Oct-06 22:26 
QuestionGood book referance on User Controls Design Pin
eyalRF11-Oct-06 22:19
eyalRF11-Oct-06 22:19 
GeneralRe: Good book referance on User Controls Design Pin
Bright Zhang11-Oct-06 23:19
Bright Zhang11-Oct-06 23:19 
GeneralRe: Good book referance on User Controls Design Pin
Berlus12-Oct-06 6:46
Berlus12-Oct-06 6:46 
QuestionglutBitmapCharacter / glutBitmapString crash [modified] Pin
Anti-Distinctlyminty11-Oct-06 22:16
Anti-Distinctlyminty11-Oct-06 22:16 
AnswerRe: glutBitmapCharacter / glutBitmapString crash Pin
emdstyle15-Feb-10 6:25
emdstyle15-Feb-10 6:25 
Questionthe bug of datetimepicker control? Pin
Bright Zhang11-Oct-06 22:09
Bright Zhang11-Oct-06 22:09 
Environment:
vs2003.net
winform,windows application
Form1:
components:
- datetimePicker1
- button1
- toolbar1
- toolbarButton1
events:
button1_onclick(object sender,EventAgs e)
{
MessageBox.Show(datetimePicker1.Value.ToString("yyyy-MM-dd"));
}
toolbar_onclick(...)
{
if(e.Button == toolbarButton1)
MessageBox.Show(datetimePicker1.Value.ToString("yyyy-MM-dd"));
}

test:
suppose the original value of the datetimepicker is:2006-10-12
and now enter a number 11 into the month-part of the datetimepicker,then click button1,a messagebox shows:2006-11-12,not 2006-10-12.
and follow the step,enter another number:9 into the month-part of the datetimepicker,and click toolbarButton1,a messagebox shows a value also,however it's not 2006-09-12(normally it should be this),it's 2006-11-12.

for this,I conclude that datetimepicker's value is not synchronous with the mannual input from keyboard,after it's not out of focus,then value will be updated.after input,for button1,when I click it,it will occur that datetimepicker will be out of focus,however toolbarbutton1 not.so this is the difference between button and toolbarbutton,and the difference leads to a wrong value when getting datetimepicker's value in both events.

and who can tell me how to resove the problem?
much thanx~

AnswerRe: the bug of datetimepicker control? Pin
Stefan Troschuetz11-Oct-06 23:06
Stefan Troschuetz11-Oct-06 23:06 
GeneralRe: the bug of datetimepicker control? Pin
Bright Zhang11-Oct-06 23:15
Bright Zhang11-Oct-06 23:15 
QuestionC# User Controls Pin
eyalRF11-Oct-06 22:00
eyalRF11-Oct-06 22:00 

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.