Property

S

shapper

Hello,

I created a custom control with a TextBox.
I want to define the TextBox text when initialize my custom control
and later on an custom even get its value.
I am using a property but this is not working:

Private _Value As String
Public Property Value() As String
Get
Return tbInput.Text
End Get
Set(ByVal value As String)
_Value = value
End Set
End Property

What am I doing wrong?

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Property ... what am I doing wrong? 1
TextBox and Property 1
Property 1
Control Property. 3
Which one is right? 4
Check property value 1
Property is empty. Why? 2
Property 1

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top