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

.NET 

[TUT]Visual Basic Beginner Coding[TUT] - How To Make Button Bring U To Another Form -

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!!
.. who wouldnt know how to do this lmao/
As far as I know, the button does not go to another form, it stays where it was initially placed. 😝
[Image: Xtddh8V.png]
(Aug 20, 2011 02:19 AM)Gørilla 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.

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..


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Source] by SIM-5420967May 26, 2024 09:50 AM 2 372 May 26, 2024 09:50 AM
Last Post: xiaowanga8
[.NET] by BladabindiMay 17, 2023 12:20 AM 1 178 May 17, 2023 12:20 AM
Last Post: NyQuil
[.NET] by DrpriyaOct 4, 2022 11:17 PM 4 329 Oct 4, 2022 11:17 PM
Last Post: LeetSpeed