I have a random nnumber generator, with puts the results in 4 Textbox's
I need to save them to file so I can print them, but they need to be in order from Textbox1.Text - Texbox4.Text.
I used Printform ,but it prints the whole form, wich dosent look good
Here is an Idea I had ,but only works for 1 textbox
Expand|Select|Wrap|Line Numbers
- Imports System.IO
- Public Class Form1
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim sfd As SaveFileDialog = New SaveFileDialog
- If sfd.ShowDialog() = Windows.Forms.DialogResult.OK Then
- End If
- File.WriteAllText(sfd.FileName, TextBox1.Text)
- End Sub
- End Class