24-07-18, 10:10 AM
(30-06-18, 09:40 AM)سعود كتب :PHP كود :
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For i As Integer = 1 To 10
ListBox1.Items.Add("Item: " & i)
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.ProgressBar1.Value = 0
TextBox1.Clear()
Me.ProgressBar1.Maximum = ListBox1.Items.Count - 1
For i As Integer = 0 To ListBox1.Items.Count - 1
Me.ProgressBar1.Value = i
TextBox1.AppendText(ListBox1.Items.Item(i) & vbNewLine)
Next
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.ProgressBar1.Value = 0
TextBox1.Clear()
For i As Integer = 0 To ListBox1.Items.Count - 1
TextBox1.AppendText(ListBox1.Items.Item(i) & vbNewLine)
Next
End Sub
End Class![]()
كيف يمكنني عمل العكس اي مافي صندوق النص الى صندوق القائمه

