Home > Software engineering > VB TabControl according to the value of the NumericUpDown dynamic increase TabPage
VB TabControl according to the value of the NumericUpDown dynamic increase TabPage
Time:09-17
Set the NumericUpDown initial value is 1, the range is 1 to 20 integers, there is a tabpage TabControl initial; Click the Up button NumericUpDown, a new tabpage, click on the Down key, delete a tabpage; The inside of the each page controls are the same, when click the "submit" button, the inside of the need to put all the tabpage name textbox frame's value in the table
CodePudding user response:
Baidu search relevant keywords,
CodePudding user response:
Are you using this kind of control, ocx file name is what?
Baidu TabControl, basic it is said that in c # how how...
CodePudding user response:
This control is bad? before in excel with MultiPage, found not in visual studio, choose the tabcontrol
CodePudding user response:
Vb.net controls, directly in the TabPages operation is ok, you need to dynamically add textbox, or use other ways to reuse,
CodePudding user response:
Public Class Form1 Private Sub NumericUpDown1_ValueChanged (sender As Object, As EventArgs e) Handles NumericUpDown1. ValueChanged The Do While Me. TabControl1. TabCount & lt; NumericUpDown1. Value TabControl1. TabPages. Add (" TAB "& amp; TabControl1. TabPages. Count + 1) Loop
The Do While Me. TabControl1. TabCount & gt; NumericUpDown1. Value TabControl1. TabPages. Remove (TabControl1 TabPages (TabControl1. TabPages. Count - 1)) Loop End Sub The End of the Class