Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: C# User Controls Pin
Bright Zhang11-Oct-06 23:22
Bright Zhang11-Oct-06 23:22 
QuestionEvent handler. Pin
Mandaar Kulkarni11-Oct-06 21:43
Mandaar Kulkarni11-Oct-06 21:43 
AnswerRe: Event handler. Pin
drabiger11-Oct-06 21:47
drabiger11-Oct-06 21:47 
GeneralRe: Event handler. Pin
Mandaar Kulkarni11-Oct-06 22:04
Mandaar Kulkarni11-Oct-06 22:04 
GeneralRe: Event handler. Pin
Mandaar Kulkarni11-Oct-06 22:04
Mandaar Kulkarni11-Oct-06 22:04 
GeneralRe: Event handler. Pin
drabiger12-Oct-06 20:11
drabiger12-Oct-06 20:11 
QuestionResetting Floating-Point Control Pin
myNameIsRon11-Oct-06 21:15
myNameIsRon11-Oct-06 21:15 
QuestionDynamic Casting Pin
Mazdak11-Oct-06 21:08
Mazdak11-Oct-06 21:08 
AnswerRe: Dynamic Casting Pin
Stefan Troschuetz11-Oct-06 22:52
Stefan Troschuetz11-Oct-06 22:52 
Generali want som help Pin
ashraf hakiem11-Oct-06 20:53
ashraf hakiem11-Oct-06 20:53 
GeneralRe: i want som help Pin
extremexpert11-Oct-06 21:17
extremexpert11-Oct-06 21:17 
QuestionHow to make a windows service that will repeatedly do some task in its running mode without interaction Pin
rabing11-Oct-06 20:41
rabing11-Oct-06 20:41 
AnswerRe: How to make a windows service that will repeatedly do some task in its running mode without interaction Pin
Amit Kushwaha11-Oct-06 21:16
Amit Kushwaha11-Oct-06 21:16 
GeneralRe: How to make a windows service that will repeatedly do some task in its running mode without interaction Pin
rabing12-Oct-06 19:07
rabing12-Oct-06 19:07 

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.