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
what is the best way to remove opachki.ru trojan?
How can I record two DV (firewire) inputs simultanously to a PC or Mac?
system idle 99% however the cpu usage runs at between 25 & 45 %
Can I add multi-millions of records to SQL database while replication is on? Will it work?
What is S=Strict, T=Transitional, and F=Frameset
Using a query to filter a subreport?
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
MSiSCSI Timeout - Event ID 103 - 2003 server hanging connected to CX4-120
Trouble setting treeview width
Dns issue logging onto domain