Page 3 of 4

Re: Email Sender - Updated Version

Posted: Tue Jun 29, 2010 8:11 pm
by mandai
Code: Select all
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Text = File.ReadAllText("number.txt")
    End Sub

    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        File.WriteAllText("number.txt", Label1.Text)
    End Sub

Re: Email Sender - Updated Version

Posted: Tue Jun 29, 2010 9:11 pm
by lesan101
mandai wrote:
Code: Select all
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Text = File.ReadAllText("number.txt")
    End Sub

    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        File.WriteAllText("number.txt", Label1.Text)
    End Sub
nahh man its tell me "File.WriteAllText" is not a member if a "string" :(

Re: Email Sender - Updated Version

Posted: Tue Jun 29, 2010 10:04 pm
by mandai
Try importing the System.IO namespace

Re: Email Sender - Updated Version

Posted: Thu Jul 01, 2010 9:00 pm
by HiNi
Thnx dude now im making a featured VBOS (VistaBioS) basically Vista in VB first it started in vb6 and it got upgraded to VB.NET wahooo;

Re: Email Sender - Updated Version

Posted: Thu Jul 01, 2010 9:27 pm
by Kieken72
cool, Smart idear

Re: Email Sender - Updated Version

Posted: Fri Jul 02, 2010 5:22 pm
by miojobr87
nice!

Re: Email Sender - Updated Version

Posted: Sun Jul 04, 2010 6:17 pm
by TheSecretBoy
nice Email sender but i think i soo this in youtube

Re: Email Sender - Updated Version

Posted: Mon Jul 05, 2010 11:32 am
by alc955
nice job :D wahooo;

Re: Email Sender - Updated Version

Posted: Fri Dec 10, 2010 7:28 pm
by tought5
thanks dude :)

Re: Email Sender - Updated Version

Posted: Sat Dec 11, 2010 3:44 am
by Usman55
lesan101 wrote:
hey man looks pretty cool.
i have a question though....

im making this program..
i want to add that save feature to it
accept instead of saving whats on the textbox
i want to save the label1.text

example:lets say label.text is a number
i save it..then close it..
wen i open it again.. that number is there..

get me?
hope you do.. i tried everything :(
Hello lesan, you will need settings to do that. In the solution explorer, double click on "My Project" and the open the tap which is named "Settings". There you can add something that I don't know lol. But you will surely find something useful here: viewtopic.php?f=21&t=3845

Thanks.