dtpicker problem
-
Hello, I am facing the problem using dtpicker. Im my vb.net application on selecting dtate from dtpicker i am displaying records from database in agrid By default i am displaying the today's date in the format 08/09/2007. When i execute my application and changes the date using keyboard for instacnce pressing 06 for date and 08 for month it accepts date without moving cursor from the current position and i get result. But if i press 6 (instead 06) it doesn't accept. I tried to trace tthis value in dtpickers keyup, keydown , text changed and keypress events but not getting the current value unless and until i move cursor from it. I am terribly stuck to this problem. Please help me. Anyone who knows how it read current text of dtpicker please let me know. any help will be highly appreciated. Thanks a lot in advance.
-
Hello, I am facing the problem using dtpicker. Im my vb.net application on selecting dtate from dtpicker i am displaying records from database in agrid By default i am displaying the today's date in the format 08/09/2007. When i execute my application and changes the date using keyboard for instacnce pressing 06 for date and 08 for month it accepts date without moving cursor from the current position and i get result. But if i press 6 (instead 06) it doesn't accept. I tried to trace tthis value in dtpickers keyup, keydown , text changed and keypress events but not getting the current value unless and until i move cursor from it. I am terribly stuck to this problem. Please help me. Anyone who knows how it read current text of dtpicker please let me know. any help will be highly appreciated. Thanks a lot in advance.
hello friend ! in datetimepicker you can set the property of datetimepicker Go to the property window set (1)custom formet : dd/MM/yyyy (2) Format : short (3)Value : current date your problem is solve bye have a nice day