No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: morphinex {http:#9367482}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
TheLearnedOne
EE Cleanup Volunteer
Main Topics
Browse All Topics





by: morphinexPosted on 2003-09-15 at 18:29:12ID: 9367482
If you could, post your code please. I wrote a sample program to do what you mentioned, and I didn't witness what you've said. Here's what I've written.
tainer
n ox erStepThro ugh()> Private Sub InitializeComponent() ainer (Me.compon ents) n ox (New Object() {"Item1", "Item2", "Item3", "Item4"}) 1) )
sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick m1") m2") m3") m4")
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.ICon
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Timer1 As System.Windows.Forms.Timer
Friend WithEvents Button1 As System.Windows.Forms.Butto
Friend WithEvents ListBox1 As System.Windows.Forms.ListB
<System.Diagnostics.Debugg
Me.components = New System.ComponentModel.Cont
Me.Timer1 = New System.Windows.Forms.Timer
Me.Button1 = New System.Windows.Forms.Butto
Me.ListBox1 = New System.Windows.Forms.ListB
Me.SuspendLayout()
'
'Timer1
'
Me.Timer1.Interval = 1000
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(48, 224)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(72, 24)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Button1"
'
'ListBox1
'
Me.ListBox1.Items.AddRange
Me.ListBox1.Location = New System.Drawing.Point(16, 8)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(120, 173)
Me.ListBox1.TabIndex = 2
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 273)
Me.Controls.Add(Me.ListBox
Me.Controls.Add(Me.Button1
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub ListBox1_DoubleClick(ByVal
If ListBox1.SelectedIndex = 1 Then
ListBox1.Items.Clear()
ListBox1.Items.Add("SubIte
ListBox1.Items.Add("SubIte
ListBox1.Items.Add("SubIte
ListBox1.Items.Add("SubIte
End If
End Sub
End Class