|
Hot-Link Menu in Right-Side Column |
Last Updated 6-30-2010 |
||||||||||||||||||||||||||||||||||||
|
Multiform Project Example - Part IIISelect the Form1.vb Screen tab located at the top of the design window, or double-click in a blank area of Form 1 to bring up the Form1 Code View Window. Enter the following code:
Select the Form2.vb Screen tab located at the top of the design window, or double-click in a blank area of Form 2 to bring up the Form2 Code View Window. Enter the following code:
Although the code on these 2 forms isn't very long, there are some very handy tools, that will be beneficial to incorporate in future programs. We'll go through this code right now, and determine what to expect: Note: Since following examples download content off the Internet, Centurion is not responsible for any malicious software downloaded by users of this site. The user needs to have the proper security protocols in place before attempting any downloads from the Internet.
The code associated with Form Change Name is described as follows:
Well let's give it a whirl, and see if it performs up to expectations. Press the and see if we get some correlation:
Press the Change Name button, to bring up the second form:
Enter the new name you deem appropriate, I chose 'Fang', in the TextBox and press <ENTER> instead of the Accept Button. You should see the corresponding name change on the MainForm as indicated in the diagram below:
Well, there you have it. That is all you need to change the name of your pet. In my case, intruders should now be aware of the danger that lies within and should stay far away. I am just not sure if my wife is going to feel the same way. That's it for now. Hopefully, I can get back and continue and cover some more topics before too long. There are many other subjects that need addressing in the short term, check those out if you get the chance. Short term, future suggests that you need to be proficient in Web Programing Techniques, which is the Next link below: Long term, Game and Simulation Hardware/Software development has no end in sight. If you are proficient in these areas, you're going to have to work at being unsuccessful. For now, jump to Web Programming Guide to work on some more advanced programming concepts in the meantime. |
Home Visual Basic Introduction to VB.NET.NET Framework VS2008 IDE How VB is Compiled Start Visual Studio Windows Form App Save Your Work VB OOP ProgrammingVisual Basic Code Exit Code Button Event Code Coding RecommendationsIf/Then/Else Error List Window Comment Syntax Help Window Language Essentianl Built-In Data Types Declare Variables Declare ConstantsCode Arithmetic Expressions Assignment Statements Operator Precedence Type Casting Math Class String DeclarationConversion Functions Conversion Methods Formatting Functions String Formatting Variable Scope EnumerationsNullable Types Loop Constructs For Next LoopDo While Loop Do Until Loop Do...Loop-WhileDo...Loop-Until Exit Do | Exit For Do...LoopNested Loops Arrays Array DeclarationRnd( ) Function Listbox ControlKeyPressEventArgs Parallel Arrays Key Event ArgsDynamic Arrays Redimension ArraySet Breakpoint Start Debugger ReDim Preserve MultiDimensional Arrays DataGridView ControlLength and Sort Methods Structures Pad RightSplit Method IsNumeric Function Multiform Projects Add Form To Project Form Object Methods Form Show Method ShowDialog Method Form Close Method Form Accept Button Multiform Project Example ASP.NET Web Programming Create Data SourceConfigure Access Data Source Add Product Class Extract Local Database Data Order PageLoad VB CodeAdd New Web Page Set Start Page Display Cart Aspx CodeDisplay Cart Design View Sorted List Definition VB.NET Session State Create CartItem Class GetCartContents FunctionAdd To Cart Event Handler Remove Cart Item EventClear Cart Event Handler |