Hack Forums
[.NET] [TUT]Visual Basic Beginner Coding[TUT] - How To Make Button Bring U To Another Form - - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [TUT]Visual Basic Beginner Coding[TUT] - How To Make Button Bring U To Another Form - (/showthread.php?tid=1627953)



[TUT]Visual Basic Beginner Coding[TUT] - How To Make Button Bring U To Another Form - - Gørilla - Aug 20, 2011

PROFOUND RATS BEGINNER CODEING TUTORIAL VB: Beginners Coding.

I have in no way taken this post from anyone, stolen this from anyone, or copied this from anyone. All these following items are made by me(obviously not the programs).

What Do I Need?

- Visual Basic 2000+

- Prior Knowledge on Adding Buttons, simple items.


--

DIFFICULTY: EASY

--

Ok So Lets Get Started Open Up Visual Basic, New Project<Windows Forms Application.
[img]http://img705.imageshack.us/img705/8112/97540351.png[/img]

Ok So what We Want To Do Now Is... add a button..
drag and drop a button anywhere you want on the form.
(if you want to change the name of the button just click on the button and type in what you want then press enter/ go to the properties, find text on the left side, and to the right, change the text to what you want.)

Now Time for the CODING!!
double click your button and it should come up something like this:

[img]http://img718.imageshack.us/img718/5071/27672852.png[/img]

Now that you have that open, go back to your form1.
Now tht your there you want to add another windows forms application:

[img]http://img543.imageshack.us/img543/6467/22679592.png[/img]

You Can Name your new form anything you want but you have to remember it, it will come up at the top of the second form.

Now go back to your code section of the first form. and your mouse should be under the first button code. your going to want to type this in.

Form2.show() (instead of the form2, you put the name of your new form.) example..

keylogger.show()

Heres a pic for your conveinience.:)

[img]http://img88.imageshack.us/img88/9807/92352140.png[/img]

And Now If you click start debug, (there should be no errors) and ittle come up a form with a button it.

click the button and your second form should pop up:D

thats about it!!

Any Questions? PM me im on almost 12 hours a day!
GIVE ME SOME REP!!!! TRYING TO NOT LOOK LIKE A LEECHER!!


* - AD7Dauti7 - Aug 20, 2011

.. who wouldnt know how to do this lmao/


* - Fake. - Aug 20, 2011

As far as I know, the button does not go to another form, it stays where it was initially placed. 😝


* - Rvaveo - Aug 20, 2011

(Aug 20, 2011 02:19 AM)Profound Rats Wrote:  Any Questions? PM me im on almost 12 hours a day!
GIVE ME SOME REP!!!! TRYING TO NOT LOOK LIKE A LEECHER!!
You have asked for rep so get ready for negative rep and increase in warning level.

Also title is misleading and what you are showing is just showing form 2 not taking a button here or there.




* - Gørilla - Aug 20, 2011

oh im sorry guys, i missput the heading... you dont gotta give me negative rep, all you had to do was inform me via pm and i would change.. no need to hate:)


why all the hate reviews.. i take time out of my day for helping others on simple coding... cmon now..