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
How to print logos on Epson T88IV
Inexpensive IR Transceiver Alternatives?
Self signed SSL certificate for Outlook Anywhere & OWA - Exchange 2010
Windows 7 Enterprise vs Ultimate?
Calculate current percentage of month that has elapsed
Hosted AD Domain Service - a best practice ?
Group and ungroup a password-protected sheet?
Driver for Ikon cpp 500 printer
CSS wrong MIME type in Firefox on Apache, AddType text/css .css is there
Cross-forest trust: The domain controllers required to find the selected objects in the following domains are not available