Creating class module: –

Creating class module: - In visual basic we define a class by creating a form, an ActiveX control or a class module. A class module is a special type of code module that contains variables, properties, events and methods. Properties are implemented as public procedure, and variable are generally private. Method may be either public … Continue reading Creating class module: –

Difference between standard module and class module: –

Class Module Standard Module         i.            Public variables in a class module can only be accessed if we have an object variable containing a reference to a particular instance of a class.         i.            Variable declared public in a standard module are visible from anywhere in our project.       ii.            Class module are implementation of … Continue reading Difference between standard module and class module: –

Types of Module – (i. Form module ii. Class module iii. Standard module)

Form module: - A form module are the foundation of most visual basic application. As we work on a project, it forms are stored in files, one form to a file. The control that reside on the form are also saved in the forms file. A form file have the file extension .frm. The form … Continue reading Types of Module – (i. Form module ii. Class module iii. Standard module)

Module: –

Module: - Large projects are much more manageable if they are broken up into modules, each of which contains portion of the code comprising for the entire project. A module is a set of statement written in visual basic. Code written in visual basic is stored in modules. Each application in visual basic can be … Continue reading Module: –

45) Design a form and write a module to convert first character of string to upper case letter? (Form Module)

(i) Open a new project and build a form with two labels, one text box and one command button. Change label1 as “Enter a Name” and label2 as Empty. Change text1 as empty. Change command1 as “See New Name”. (ii) Select project / Add module, make sure the new tab is selected in the resulting … Continue reading 45) Design a form and write a module to convert first character of string to upper case letter? (Form Module)