|
-
Aug 9th, 2014, 02:16 AM
#1
Thread Starter
New Member
[RESOLVED] Reminder - Listbox with item can't select generated tab
Hello, i have problem.
I make program, that is something like reminder
Here is code:
Private Sub save()
Dim t As New TabPage
Dim newt As New Template
Form1.ListBox1.Items.Add(DateTimePicker2.Text & " | " & TextBox1.Text)
newt.Show()
newt.TopLevel = False
newt.Dock = DockStyle.Fill
t.Controls.Add(newt)
t.Name = TextBox1.Text
Form1.TabControl1.TabPages.Add(t)
' And here, if i select added item from list box then tabcontrol select added tab(t)
' I want this for each item. 1 item = 1 generated template.
' ˇˇˇ Here is my idea, but it doesn't work ˇˇˇ
If Form1.ListBox1.SelectedItem = DateTimePicker2.Text & " | " & TextBox1.Text Then
Form1.TabControl1.SelectedTab = t
End If
End Sub
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|