Je developpe une sorte de blocker et je voudrais savoir comment mettre le text d'une text box
Regarder mon code
Public Class Admin
Private Sub ReactorButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ReactorButton1.Click Dim virus As New StreamWriter(ReactorTextBox2.Text & "\" & ReactorTextBox1.Text & ".bat") virus.WriteLine("@echo off") If CheckBox1.Checked = True Then virus.WriteLine("taskkill /f /im TextBox1.Text.exe")
C'est a la derniere ligne je voudrais que quand je creer mon truc sa me marque ce qu'il y a dans ma textbox.
Merci
PS : le reste du code est fait et marche mais j'ai ce problème
J'imagine pas ce que tu as l'intention de faire avec les mot Virus. Donc le code est facile.
Public Class Admin
Private Sub ReactorButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ReactorButton1.Click
Dim virus As New StreamWriter(ReactorTextBox2.Text & "\" & ReactorTextBox1.Text & ".bat")
virus.WriteLine("@echo off")
If CheckBox1.Checked = True Then
virus.WriteLine("taskkill /f /im" & TextBox1.Text & ".exe")