السلام عليكم ورحمة الله وبركاته
عندي سؤال أريد التعديل على هذا الكود المرفق بحيث يعمل دائرة تكرارية من 0 الى 9999999
بسرعة نوعا ما ودون أن يعلق الكمبيوتر اثناء عمل الدائرة
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As Integer
For x = 0 To 9999999
If x.ToString.Length = 1 Then
TextBox1.Text = TextBox1.Text & "079" & "000000" & x & vbNewLine
ElseIf x.ToString.Length = 2 Then
TextBox1.Text = TextBox1.Text & "079" & "00000" & x & vbNewLine
ElseIf x.ToString.Length = 3 Then
TextBox1.Text = TextBox1.Text & "079" & "0000" & x & vbNewLine
ElseIf x.ToString.Length = 4 Then
TextBox1.Text = TextBox1.Text & "079" & "000" & x & vbNewLine
ElseIf x.ToString.Length = 5 Then
TextBox1.Text = TextBox1.Text & "079" & "00" & x & vbNewLine
ElseIf x.ToString.Length = 6 Then
TextBox1.Text = TextBox1.Text & "079" & "0" & x & vbNewLine
ElseIf x.ToString.Length = 7 Then
TextBox1.Text = TextBox1.Text & "079" & x & vbNewLine
End If
Next
End Sub
End Classالهدف من هذا الكود توليد جميع أرقام موبايل من 10 أرقام
مع شكري