Microsoft
Software
Hardware
Network
Question : Windows Application textbox.focus
I have a windows app that requires validation of a datefield like so
if date is incorrect format
MessageBox.Show("Date must be a valid Date format MM/DD/YYYY");
D_textboxLabel4.Focus();
if I enter the incorrect format the messagebox displays but it seems to be stuck in a continous loop.
what I need is...user sees the message box, clicks ok, box dissappears and user is able to correct mistake...currently box does not disappear.
Answer : Windows Application textbox.focus
if it is a textbox then
....
If Not IsDate(Cdate(String.Format
("dd/MM/yy
yy",myText
box.text))
) then
Messagebox.show(.......)
MyTextbox.selectAll
end if
Random Solutions
KDL55HX701 or 55LH90, which is best/newer?
How to perform find based on Date Parameters
Migrating SharePoint to another server
VB.NET: problem of debugging on windows 7
User's Web-Based AOL Mail is sending spam to all his contacts
HOW TO SORT MULT-DIM ARRAY IN PHP
Windows 7 imaging???
Database on a 64 bit OS - Conection issues
VLAN Configuring on a Powerconnect 5324
Best way to configure Syncback with a USB hard drive rotation