Module - dialog box in visual basic, Visual Basic Programming


The Modules are the collection of VB statements. Modules are used to simplify the program development. To add a module to your project, choose the project tabpage, and then right click and select add, then select the module. In answer a new dialog will open up.Select new and a new window will open to type your coding. Type the coding which is as shown below:

Sub Main()

Dim sum1 As Integer

sum1 = 80

sum1 = sum1 + 10

MsgBox sum1


End Sub

Add one more module as Main1. Now type the coding in module Main1which is as shown below:

Sub Main1()

Dim sum1 As Integer

sum1 = 80

sum1 = sum1 - 10

MsgBox sum1

End Sub

You can select the Startup object for the project. Now Select the project tabpage, then right click and choose the properties. Then choose the startup object from the Startup object list box control. In this situation select Main(). Whenever you execute, the Main() will be the initial point of the execution. It displays sum1, and then a call to function Main1 is encountered. Therefore the control gets transferred to the module containing Main1. In the Main1 the subtraction is completed and the value is exhibited.

Posted Date: 10/9/2012 9:21:03 AM | Location : United States

Related Discussions:- Module - dialog box in visual basic, Assignment Help, Ask Question on Module - dialog box in visual basic, Get Answer, Expert's Help, Module - dialog box in visual basic Discussions

Write discussion on Module - dialog box in visual basic
Your posts are moderated
Related Questions
Event-Driven Programming: The Event-driven programming allows the program to react to various inputs or events.   The action on a graphical component is an event. For il

Fixed length strings: The Fixed length strings are declared by identifying the size of the string. For illustration to give a length of 20 for the string place, the declarati

CLASS WIZARD The Class wizard shown in figure is a tool to handle the message handlers for objects, to define the member variables. Figure: Class Wizard

outline and explain in detail any 10 applications of

What I understand from the assignment is I have to make the VB code in file nu1. xlsm generic, and run several iterations for Kc and Ti to find out the optimal combination which wi

Deleting Records: To remove a record use the Delete method. To delete the record from the customer table follow the coding as shown below: data1.RecordSource = "Customer"

WINDOWS 32 BIT (WIN 32) APPLICATIONS   The Win 32 based applications are the applications developed for the windows family of the operating systems. The Win 32 applications ac

need general help in pseudo code

1.   Make project in Visual Studio 2008. 2.   Controller Class is used for functioning. 3.   Login Form where three people can login like manager, staff and receptionist we c

what are the functions and the importance of hierarchy operators