Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Can someone help me on this one I'm stumped

I was making a VB Login program and it has 3 forms all together it has the main username password text box with a create account and that opens form 2 and there you create you username and password and it saves it then it takes you back to form 1 where you login with the new Info and that takes you to the 3rd and final form and in there I what to know how I can set a label that say (Welcome "that shows there username they made")

Is there any what to do this?
Roughly:
Code
'Successful Login:
Dim WelcomeForm as new form3
WelcomeForm.Username = Textbox1.text
WelcomeForm.Show()

'Form3 Load Event:
label1.text = string.format("Welcome {0}", Username)
its easy if you want i can create this for you :) PM
form3 load event

msgbox(Welcome,label1.text)
(May 16, 2014 04:41 AM)Djokovic Wrote:  form3 load event

msgbox(Welcome,label1.text)

Wait... What?

I have PMed OP with help.
[Image: vjPWhyy.gif]
First of all, DO NOT store credentials on client in any way, use a .Net Seal sort of system, because your thing can be decompiled in 2 seconds.
in vb 2010 this line of code works fine.

form 3 load

msgbox("welcome",label1.text)

whatever is in the label it will show up like Welcome name here
(May 16, 2014 06:08 AM)Djokovic Wrote:  in vb 2010 this line of code works fine.

form 3 load

msgbox("welcome",label1.text)

whatever is in the label it will show up like Welcome name here

Are you serious ? 😶😶😶
(May 16, 2014 07:33 AM)SIM-1456245 Wrote:  Are you serious ? 😶😶😶

I... I think he is....

Quote:msgbox("welcome",label1.text)

whatever is in the label it will show up like Welcome name here


That would look like the most weird thing.

Would be better to have the welcome and username not as the title.

Quote:Use "Dim username as string"

When the person creates an account do "Username = Textbox1.text" (Or what ever text box they enter their name into)

Then "label2.text = "WELCOME: " & Username"


This is what I PMed him, He has PMed me twice asking for help and then never responded.

I tried to make it as simple as I could.
[Image: vjPWhyy.gif]
How did you create this login system without knowing how to join 2 strings?
(May 16, 2014 08:01 AM)LordCoder Wrote:  How did you create this login system without knowing how to join 2 strings?

This is his program.
[img]http://s21.postimg.org/9r3cvfptj/hhh.png[/img]

I think I have answered your question pretty well.
[Image: vjPWhyy.gif]
(May 16, 2014 08:04 AM)$lick Wrote:  This is his program.
Spoiler (Click to View)

I think I have answered your question pretty well.

That looks seriously ub3r l33t. 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by qbOFFICIALJan 19, 2017 10:34 PM 0 109 Jan 19, 2017 10:34 PM
Last Post: qbOFFICIAL
[Java] by UnionSep 24, 2016 04:16 PM 5 166 Sep 24, 2016 04:16 PM
Last Post: Union
[Python] by ๖ۣۜ‍Darth VaderOct 2, 2014 06:54 AM 4 101 Oct 2, 2014 06:54 AM
Last Post: everydayguy