Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUTORIAL] Getting to know your way around the IDE
#1
Getting to know your way around the IDE

The IDE for VB is very big, and if you're just opening it up it might seem like an impossible task to know how to work this giant machine; but let me reassure you that it is not as difficult as it seems.

Go ahead and create a new Windows Form Application and notice how the IDE changes:
Without a project opened (Click to View)
With a project opened (Click to View)

Let's take a look at the most notable changes; these will also be the things you use the most:

Big picture (Click to View)

The toolbox has been populated with all the various components and controls that you can add to your project, the "Properties" box has become visible (pay attention how it changes depending on what you click on, component wise.) and the solution explorer has also become visible.

The Toolbox

The toolbox is what holds all your various components for WFA's (Windows Form Applications). They are all catagorized based on certain things, take a look at this picture:
  • All Windows Forms
    • This is as straight up as it gets, everything in all the other sub-sections is in this one massive section.
  • Common Controls
    • The things that people use the most have been put under this section. Some things include the: TextBox, RichTextBox, Button, CheckBox, RadioButton, and Label. This is usually the only thing that I keep "opened". Everything else just clutters my space, in my opinion.
  • Reporting
    • Personally, I have never used anything under this section. Then again, I downloaded VB to make l33t ub3r h3ck3r shit so that could be why. Under this category there is only one thing; ReportViewer. Like I said I've never used it before so I myself cannot give any insights to what it might be helpful for.
  • Containers
    • FlowLayoutPanel
      • This control will give you a display like your desktop, literally.
    • GroupBox
      • The GroupBox serves no purpose really except to provide some organization of a mass of various controls. It definitely makes your UI look better if you have a fuck ton of CheckBox's everywhere to just add one of these and place them all in there.
    • Panel
      • The Panel control is somewhat like the GroupBox, except the GroupBox offers the ability to add a caption to the top of it.
    • SplitContainer
      • The SplitContainer is basically 2 Panels but together and separated in the center. You can then use the separator in the center to re-size the control either to the Right or Left by default.
    • TabControl
      • This offers something to where you can add tabs and then organize your controls on the various TabPages that you add to the TabControl. Very helpful for Document editors or large projects.
    • TableLayoutPanel
      • This is the only control that I have not used under this section. Read more about it here.
  • Menus & Toolbars
    • ContextMenuStrip
      • The ContextMenuStrip is something that you can set for specific controls or a mass of controls and it will act as the "Right Click Menu". In other words, when you "Right Click" on the control you set the ContextMenuStrip for it will pop up with all the options that you added to it.
    • MenuStrip
      • The MenuStrip is just like the ContextMenuStrip except the MenuStrip will be docked at the top of your application, and can have multiple "Menus" within this one control.
    • StatusStrip
      • The StatusStrip is docked at the bottom of your application, and only certain controls can be added to it. These include: A mini-progress bar, Label(s), A DropDownMenu (DropDownButton), and a SplitButton.
    • ToolStrip
      • A ToolStrip is somewhat like a MenuStrip except it also supports buttons that can have images as backgrounds instead of text.
    • ToolStripContainer
      • A ToolStripContainer is exactly what is sounds like; a container for ToolStrips.
  • Data
    • Read more about everything under the Data section here.
  • Components
    • Read more about everything under the Components section here.
  • Dialogs
    • ColorDialog
      • The color dialog is a dialog that will be shown when calling ShowDialog and will return the color that the user selected.
    • FolderBrowserDialog
      • The FolderBrowserDialog is a dialog that will be shown when calling ShowDialog, like any other Dialog, and will return a number that corresponds to the Directory they selected. You can then use Environment.GetFolderPath(.SelectedPath) and it will return the absolute address of the Folder the user selected.
    • FontDialog
      • The FontDialog is a dialog, and like every other dialog can be called by using ShowDialog and will return a font that the user selected. You could use this dialog to change the font of a TextBox, for example.
    • OpenFileDialog
      • The OpenFileDialog can be called, like every other dialog, by using ShowDialog. This will return the path of a file that the user selected and you can then use the IO.File.ReadAllText function to get the Text of that file or ReadAllBytes if it is an assembly.
    • SaveFileDialog
      • This will create a new file in the path that the user selected and you can then proceed to use WriteAllText to write text to that file or WriteAllBytes to write bytes to create an assembly.

The Solution Explorer

The Solution Explorer is like a built in Windows Explorer specifically for your project.

There are several different buttons on the solution explorer, let's go over them.
  • The "Home" button. [Image: KdFPcNScATXgRGZPXiUi.png]
    • The "Home" button will take you back to where you were as soon as the Solution Explorer was opened.
  • "Collapse All". [Image: evYhitRipDRWsXyPJCnT.png]
    • Collapse all will take everything like this: [Image: ewEZOsotLNmatiiYhGWR.png]
    • And turn it into this: [Image: JlnGsNOWoUWsMnahRpmE.png]
  • "Properties" (Shortcut: ALT + ENTER) [Image: SytWPStduQMbUgJlfUfc.png]
    • This button will jump to the "Properties Box" for the selected component/control.
  • "Show All Files" [Image: jqscFjvmQBsIOWPawxPt.png]
    • This button toggles whether or not to show files that are not part of your project but are in the directory of your project.

The Properties "Box"

The reason "Box" is in quotes is because I couldn't think of something more accurate to call it, lol. Rolleyes

This is what it looks like:
Properties box (Click to View)
This shows you most of the settings applicable to the control/component that you're focused on. Some things are not changeable via the properties box and you must manually set them. I cannot give you any insights to what these are because they vary so heavily based on components/controls.
Credits:
SomeWhiteGuy - Original Post
[Image: uCZ3X.gif]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  TUTORIAL CHEAT ENGINE for mw3 [HARD] Tony. 5 4,668 10-24-2013, 15:22
Last Post: Tomsen1410
Question Tutorial addon! [HARD] Tony. 2 2,886 04-30-2013, 13:55
Last Post: [HARD] Tony.
  [TUTORIAL] Various Statements KrypTiK 2 2,932 01-07-2013, 21:00
Last Post: kokole
  Help Game Programming Tutorial Ich1994 8 4,780 01-01-2013, 21:21
Last Post: Ich1994
  [TUTORIAL] C# Introduction KrypTiK 4 3,340 12-30-2012, 10:06
Last Post: KrypTiK
  [TUTORIAL] Basic Syntax KrypTiK 0 2,009 12-29-2012, 20:33
Last Post: KrypTiK
  [TUTORIAL] Handling Errors in VB.NET KrypTiK 0 1,921 12-29-2012, 20:28
Last Post: KrypTiK
  [TUTORIAL] Introduction Into VB.NET KrypTiK 0 1,834 12-29-2012, 20:15
Last Post: KrypTiK
  Help C# Tutorial on how to reset a string DidUknowiPwn 7 4,971 10-11-2012, 15:04
Last Post: DidUknowiPwn
  [Request] Tutorial mods Maurizio 0 1,999 10-04-2012, 00:18
Last Post: Maurizio

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.