Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. WinForms / WPF .NET
Ereditarietà form
lunedì 05 febbraio 2007 - 16.51
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
massivabene
Profilo
| Newbie
11
messaggi | Data Invio:
lun 5 feb 2007 - 16:51
Salve a tutti.
Dovrei gestire dal form di base una textbox presente su di un form derivato.
La textbox è presente solo nel form derivato.
E' corretto questo metodo?
nel form di base:
Dim m_testo As TextBox
Overridable Property test() As TextBox
Get
Return m_testo
End Get
Set(ByVal Value As TextBox)
m_testo = Value
End Set
End Property
nel form derivato:
Overrides Property test() As TextBox
Get
If txtTesto.Text = "" Then txtTesto.Text = nothing
Return txtTesto
End Get
Set(ByVal Value As TextBox)
txtTesto = Value
End Set
End Property
Vi ringrazio.
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !