| | |
How to use textbox to enter date
Thread Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 70
Reputation:
Solved Threads: 0
Hi,
I would like to use textbox to accept date in VB 6 instead of using dtpicker. The text box should contain oblique sign like ( / / ) to enter dd/MM/YYYY type date during form load.
I tried to use Microsoft Mask Edit control also but it is showing unscore when the textbox get focus.
So pl help me.
(Kehar )
I would like to use textbox to accept date in VB 6 instead of using dtpicker. The text box should contain oblique sign like ( / / ) to enter dd/MM/YYYY type date during form load.
I tried to use Microsoft Mask Edit control also but it is showing unscore when the textbox get focus.
So pl help me.
(Kehar )
•
•
Join Date: Mar 2009
Posts: 772
Reputation:
Solved Threads: 136
So then you are using this as your mask?
And you have a problem with the way the control displays this in the standard way that people have come to know?
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
MEB.Mask = "##/##/####"
And you have a problem with the way the control displays this in the standard way that people have come to know?
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Mar 2009
Posts: 772
Reputation:
Solved Threads: 136
You can't as far as I know but then again you may be able to subclass the control. You can however use a standard textbox control and set its initial text to " / / ", then test for numbers on keypress to make sure user is entering numbers and if user has entered a number then you would replace the first space with what the user has entered. On the other hand you could use the DTPicker(date time picker) control with a custom format if needed and just allow the user to pick the date.
Good Luck
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- TextBox ENTER and ESC sound OnKeyPress (C#)
- set current time in textbox (C#)
- Saving textbox data based on date selected (VB.NET)
- Find out date of birth html (PHP)
- problem again (C)
- How to manipulate PHP date? (PHP)
- Simple Time/Date Program (C)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: how to use a picture box as a media tool
- Next Thread: How to add data into two table?
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic birth bmp calculator cd cells.find click client code connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges objectinsert open oracle password program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





