Support Forums
The Basics of VB [Part 2] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: The Basics of VB [Part 2] (/showthread.php?tid=22712)



The Basics of VB [Part 2] - SomeWhiteGuy? - 10-14-2011

Don't delete this! I changed this post to part 2 so there is no need in deleting it, it's no longer the same as part 1.

Part 2

Simple Notepad App


Make a new Windows forms application (dont name it My Web Browser ;P, lol):

[Image: NewWFAproject.jpg]

Now, add 1 menu strip, 1 context menu, 1 RichTextBox. Make it look something like this:

[Image: Notepad.jpg]

Now to set the context menu!

or add the following:

Undo
Redo
-
Cut
Copy
Paste
Delete
-
Select All

Now if you couldnt see the menu strip in the picture, or havent added any of the options you saw on there yet then you need to go ahead and do that...the options and items are:


Now its time for...

Coding Our Notepad

Coding The Context Menu (Named ' ContextMenuStrip1'):

once you've got that done go to the RichTextBox properties and go to ContextMenuStrip and change it to ContextMenuStrip1 (or whatever you named it)

Should be:

Coding The Menu Strip (File, Edit, etc...(Named 'MenuStrip1'):

New:

-----
Under 'File':
-----


Open:

Save as:

Exit:

-----
Now under 'Edit':
-----


Font:

Font Color:

Background Color:

-----
Now under 'About/Info':
-----


About:


I will be working on a Part 2 for more advanced things. Thanks for reading! Big Grin

Say Thanks! (Click to View)



RE: The Basics of VB [Part 2] - alabama - 10-16-2011

Very well done, those gifs must take you along time, I know from personal experience.
I may not be making a notepad, but what you show in here will help me a bit with other projects.


RE: The Basics of VB [Part 2] - thanasis2028 - 10-23-2011

Nice tutorial! +1 rep by me Smile


RE: The Basics of VB [Part 2] - SomeWhiteGuy? - 10-25-2011

Thanks everyone, glad you liked it Smile


RE: The Basics of VB [Part 2] - Uzi - 10-25-2011

Very nice tutorial man,
It's informative - I'll be sure to remember to give you some reputation whenever I've hit 100 posts.
You can only give reputation if you have 100+ posts, if I don't remember then remind me.
Thanks man, take care!


RE: The Basics of VB [Part 2] - SomeWhiteGuy? - 10-25-2011

(10-25-2011, 10:45 AM)Uzi. Wrote: Very nice tutorial man,
It's informative - I'll be sure to remember to give you some reputation whenever I've hit 100 posts.
You can only give reputation if you have 100+ posts, if I don't remember then remind me.
Thanks man, take care!

Haha, thanks Tongue