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
copy outlook express from one pc to new windows 7 pc into outlook 07?
Add Spanish dictionary in to Office 2007 english
HTA Dynamic Drop Down List
How to retrieve a Joomla database password - GoDaddy installation
acronis disk director server 10
How many keywords is too many in the meta data?
HP z200 Workstation Windows 2008 R2 'PCI serial port' driver and 'PCI Simple Communications controller' driver needed
Data transfer
Windows firewall will not start
open Firmware