I have a text box in vb2005 where text needs to be entered in a certain format eg. a time hh:mm or another with just four characters. I want the backcolor of the box to change color if the format is not correct. However, I am having difficulties checking the formats of each box. How can this be done? I am currently trying code in the 'TextChanged' event, but not getting anywhere.
Many Thanks,
Dave.
User Profile
Collapse
-
Checking Format VB2005
-
I have found that the problem is because the timer control actually stops whilst there is processing going on. How can I keep the timer control running whilst other code is being processed?
Thanks. -
Controlling MDI parent from child
I have come across a problem whilst programming in VB 2005. I wish to enable a timer from an MDI child form that is in the MDI parent. This is simple enough if simply using a button and code eg.
Form1.Timer1.En abled = True
However, I want to enable the timer immediately after the button is pressed, and then disable it again later in the same subroutine. This does not seem to work using the above method. What do I need... -
-
Complex file parsing
I'm relatively new to VB programming (VB 2005), and have come across a problem parsing complex text files. Basically I have a file which has lines something like the following:
[WEIGHT_AND_BALA NCE]
max_gross_weigh t = 150000 // (pounds)
empty_weight = 74170 // (pounds)
max_number_of_s tations = 50
station_load.0 = "170.0, 41.0, -1.5, 0.0,...
No activity results to display
Show More
Leave a comment: