Quantcast
Channel: Visual Basic Tips and Tricks
Viewing all articles
Browse latest Browse all 2212

vb2010 - Evento unico per tutti gli oggetti TextBox.

$
0
0
Ciao a tutti. Cerco di spiegarmi meglio. Vorrei evidenziare (agendo sulla proprietà background del textbox) il textbox quando prende il Focus. E fin quì nulla d'eccezionale, infatti mi basta andare nell evento GotFocus e scrivere l'opprtuno codice. Una cosa del genere

for TXT textbox nel form


if txt.focused=true then

txt.background=colore
else
txt.background=colore bianco

end if
next

Esiste un modo per NON scrivere/incollare questo codice in ogni evento GotFocus di ogni Textbox presente nel form ? Si può creare un evento comune a tutte le textbox ?

Viewing all articles
Browse latest Browse all 2212

Trending Articles


HOY PANGIT, MAGBAYAD KA!


Henry el monstruo feliz para colorear e imprimir


Dama y vagabundo para pintar


Girasoles para colorear


Good Morning Quotes


RE: Mutton Pies (jameskoiman)


Hagibis (1946) by Francisco V. Coching


Ka riam ka beit bad ka por riam


Vimeo Create - Video Maker & Editor 1.6.0 by Vimeo Inc


Vimeo 3.42.1 by Vimeo Inc