Hey Guys,
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
[code=vbnet]
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim sfd As SaveFileDialog = New SaveFileDialog
If sfd.ShowDialog( ) = Windows.Forms.D ialogResult.OK Then
End If
File.WriteAllTe xt(sfd.FileName , TextBox1.Text)
End Sub
End Class[/code]
Thanks in advance For your help.
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
[code=vbnet]
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim sfd As SaveFileDialog = New SaveFileDialog
If sfd.ShowDialog( ) = Windows.Forms.D ialogResult.OK Then
End If
File.WriteAllTe xt(sfd.FileName , TextBox1.Text)
End Sub
End Class[/code]
Thanks in advance For your help.