09-05-20, 04:59 AM
PHP كود :
Public Class Form1
Dim enc As Boolean
Dim pos As Integer = 0
Private Sub btnInsertOrRemove_Click(sender As System.Object, e As System.EventArgs) Handles btnInsertOrRemove.Click
If pos = 0 Then
pos = (txtbody.Text.Trim.Length / 2)
End If
If enc = False Then
txtbody.Text = txtbody.Text.Insert(pos, txtinput.Text)
enc = True
ElseIf enc = True Then
txtbody.Text = txtbody.Text.Remove(pos, txtinput.Text.Length)
enc = False
End If
End Sub
End Class
احيانا يحصل الانسان على معلومات لكن لعدم حاجته لها في آنه يغفلها وحين يحتاج يتعب حتى يذكرها
كل عام و انتم بخير
اللهم ارفع البلاء والوباء والضراء