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
Windows XP does not see other computers on the workgroup
Rejected emails that were not really sent
Intel Sata RAID controller on RHEL 4 problem
Roaming Profiles in Windows 7 Pro and SBS 2008
Automatically do a release build
Cisco Unity Express to Trigger MWI on overlay DN
Windows can't find "msconfig"
vmware player shows black screen on win 2003 server
Adding a doc file into a Report
Microsoft Office 2007 Clip art disappeared