Hi
We developed a user control in windows form project by adding usercontrol.
User control
Text Box control 1 id TextBox1
Button Control id Button1
Text Box Control 2 id TextBox2
Text Box Control 3 id TextBox3
The controls has the following public properties.
Public Property IsTextBox1Visible() As Boolean
Get
Return TextBox1.Visible
End Get
Set(ByVal value As Boolean)
TextBox1.Visible = value
End Set
End Property
Public Property IsTextBox2Visible() As Boolean
Get
Return TextBox2.Visible
End Get
Set(ByVal value As Boolean)
TextBox2.Visible = value
End Set
End Property
Public Property IsTextBox3Visible() As Boolean
Get
Return TextBox3.Visible
End Get
Set(ByVal value As Boolean)
TextBox3.Visible = value
End Set
End Property
This control is used in a form which contains a tab control with 3 tab pages
When I drag this control to a tab pane control in tab page 2. It is showing three text boxes and one button.
After build and run time, I closed the project and reopen. I found that the text boxes and buttons are disapper in the design mode.
I changed the all properties to true in the desing mode and save the project. After sometime (run/reopen/go to the tab page) when I found that the text boxes are once again set to visible false automatically.
What is the issue?
We developed a user control in windows form project by adding usercontrol.
User control
Text Box control 1 id TextBox1
Button Control id Button1
Text Box Control 2 id TextBox2
Text Box Control 3 id TextBox3
The controls has the following public properties.
Public Property IsTextBox1Visible() As Boolean
Get
Return TextBox1.Visible
End Get
Set(ByVal value As Boolean)
TextBox1.Visible = value
End Set
End Property
Public Property IsTextBox2Visible() As Boolean
Get
Return TextBox2.Visible
End Get
Set(ByVal value As Boolean)
TextBox2.Visible = value
End Set
End Property
Public Property IsTextBox3Visible() As Boolean
Get
Return TextBox3.Visible
End Get
Set(ByVal value As Boolean)
TextBox3.Visible = value
End Set
End Property
This control is used in a form which contains a tab control with 3 tab pages
When I drag this control to a tab pane control in tab page 2. It is showing three text boxes and one button.
After build and run time, I closed the project and reopen. I found that the text boxes and buttons are disapper in the design mode.
I changed the all properties to true in the desing mode and save the project. After sometime (run/reopen/go to the tab page) when I found that the text boxes are once again set to visible false automatically.
What is the issue?