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
AJAX, JQUERY, server date timestamp
Cisco ASA 5510 interface config
how can I read more then one cell an excel file in vb.net
Arcserve error: E8535 Failed to receive data from the agent
File permissions
what is most cost effective way to backup windows 2008 sbs
Download manager Flashget V3.3 disabled IE & Firefox browsers from browsing Internet
HP 1320 Pinter smudges
asp.net: How to determine if a when a user login. is an Admin Account, * the menu is selected to show admin pages & reports.
breadcrumb trail in a dropdown box