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): Now, add 1 menu strip, 1 context menu, 1 RichTextBox. Make it look something like this: Now to set the context menu! Spoiler (Click to View) 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: Spoiler (Click to View) Now its time for... Coding Our Notepad Coding The Context Menu (Named ' ContextMenuStrip1'): Spoiler (Click to View) 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: Spoiler (Click to View) Coding The Menu Strip (File, Edit, etc...(Named 'MenuStrip1'): New: Spoiler (Click to View) ----- Under 'File': ----- Open: Spoiler (Click to View) Save as: Spoiler (Click to View) Exit: Spoiler (Click to View) ----- Now under 'Edit': ----- Font: Spoiler (Click to View) Font Color: Spoiler (Click to View) Background Color: Spoiler (Click to View) ----- Now under 'About/Info': ----- About: Spoiler (Click to View) I will be working on a Part 2 for more advanced things. Thanks for reading! 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 RE: The Basics of VB [Part 2] - SomeWhiteGuy? - 10-25-2011 Thanks everyone, glad you liked it 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, Haha, thanks |