General discussion

Locked

How to standardise interface in VB?

By ohJani ·
May i know how do people usually standardise the GUI in VB application? different programmer tends to draw the controls based on their own preference, which end up no consistency in the company product. for eg, i want to have all the textboxes background color as yellow, instead of doing it one by one or writing it in the documentation, what else can i do? another eg, i want all the textboxes_KeyDown event to call a SendKeys "{tab}".

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to standardise interface in VB?

by whyong In reply to How to standardise interf ...

Inside your form keydown event:
Dim Control
For Each Control In Form1.Controls
If TypeOf Control Is TextBox Then
sendkeys "{tab}"
Next Control

same technique applied to change the background color of the textbox if you wish. any questions please email me. happy coding

Collapse -

How to standardise interface in VB?

by whyong In reply to How to standardise interf ...

you don't need to do the loop for the sendkey "{tab}" function, just check if you current control is a textbox then sendkey.

Sorry!! :)

Collapse -

How to standardise interface in VB?

by ohJani In reply to How to standardise interf ...
Collapse -

How to standardise interface in VB?

by ohJani In reply to How to standardise interf ...

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums