Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms
Namespace TEXTSUB
Public Partial Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub textBox1_KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.Enter Then
Dim s = textBox1.TextLength
MessageBox.Show(s.ToString())
textBox3.Text = textBox1.Text
textBox2.Focus()
End If
End Sub
Private Sub textBox2_KeyDown(sender As Object, e As KeyEventArgs)
Dim s = textBox2.Text
If e.KeyCode = Keys.Enter Then
Dim str As String = textBox1.Text.Substring(0, Convert.ToInt32(s))
Dim etc As String = textBox1.Text.Substring(Convert.ToInt32(s), textBox1.Text.Length - Convert.ToInt32(s))
Dim dot As String = ""
For i As Integer = 0 To etc.Length - 1
dot += etc.Substring(i, etc.Length - i).Replace(etc.Substring(i, etc.Length - i), ".")
Next
textBox3.Clear()
textBox3.Text = str & dot
End If
End Sub
End Class
End Namespace