Email Sender - Updated Version

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
31 posts Page 3 of 4
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Email Sender - Updated Version
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
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

Re: Email Sender - Updated Version
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" :(
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Email Sender - Updated Version
mandai
Try importing the System.IO namespace
User avatar
HiNi
Just Registered
Just Registered
Posts: 5
Joined: Thu Jul 01, 2010 6:46 pm

Re: Email Sender - Updated Version
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;
User avatar
Kieken72
VIP - Donator
VIP - Donator
Posts: 231
Joined: Sun May 02, 2010 10:38 am

Re: Email Sender - Updated Version
Kieken72
cool, Smart idear
User avatar
miojobr87
Just Registered
Just Registered
Posts: 2
Joined: Fri Jul 02, 2010 5:20 pm

nice!
User avatar
TheSecretBoy
Top Poster
Top Poster
Posts: 195
Joined: Wed Jun 09, 2010 9:39 am

nice Email sender but i think i soo this in youtube
Code'N'Stuff
TheSecretBoY
Dont forget to give thanks for those helpful posts cooll;
User avatar
alc955
New Member
New Member
Posts: 13
Joined: Sun Jul 04, 2010 4:46 pm

Re: Email Sender - Updated Version
alc955
nice job :D wahooo;
User avatar
tought5
New Member
New Member
Posts: 19
Joined: Fri Dec 10, 2010 6:50 pm

Re: Email Sender - Updated Version
tought5
thanks dude :)
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Email Sender - Updated Version
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.
Image
31 posts Page 3 of 4
Return to “Source-Code”