1.What is visual basic . Explain its features. Visual Basic is a third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its Component Object Model (COM) programming model first released in 1991 and declared legacy during 2008. Microsoft intended Visual Basic to be relatively easy to learn and use. Visual Basic was derived from BASIC, a userfriendly programming language designed for beginners, and it enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. A programmer can create an application using the components provided by the Visual Basic program itself. Over time the community of programmers developed third-party components. Programs written in Visual Basic can also use the Windows API, which requires external function declarations.
Assemblies: An EXE or a DLL file that forms the basis of deployment, version control, reuse, and security permissions of an application.
Namespaces: The components of assemblies, namespaces primarily organize the objects present in the assemblies. An assembly can contain more than one namespace.
Adding references: You need to add a reference to the external object that you want to use in your current application.
Attributes: The tags that are used to provide additional information about the elements defined in a Visual Basic .NET program. Some of the most common uses of attributes are o
To explain COM properties for classes, interfaces, and methods
o
To explain assemblies
o
To specify security requirements of methods
o
To specify features required to enforce security
Inheritance: Enables you to create classes that are derived from some other classes known as base classes. Inheritance provides you the advantage of defining a class only once. You can then reuse this functionality by deriving new classes from this class.
Windows Forms: With a new forms package called Windows Forms, Visual Basic .NET allows the developers to inherit a form from an existing form.
Structured exception handling: Enables you to create more efficient and robust error handlers by using structured exception handling, which allows you to detect and remove errors at runtime.
Multithreading: Enables your applications to handle multiple tasks simultaneously.
2. Draw all the tools on the form
3. Write atleast 10 properties of textbox and explain it. Ans. The text box has following ten properties: (a)
The Hide Selection property is true by default and it signifies that the user-highlighted contents of the Textbox will not remain highlighted when focus shifts to another object. If you want the highlighted contents to remain highlighted, just set Hide Selection to False.
(b)
The property of Max Length property determines the maximum number of characters that the user can enter into the Text property of the Text Box. If you set Max Length to 0, there is no limit on the number of characters that the user can enter.
(c)
The Locked property allows the Textbox to reject user changes but still allows the user to set focus to the Textbox. Therefore, the user can scroll through the contents of a Textbox without accidentally changing anything. Contrast this to the Enabled property which doesn't allow the user to set focus to the Textbox.
(d)
The Multiline property is only writable at design time, although you can find out its value at runtime. Multiline is False by default, meaning that everything in the Textbox control will appear on a single line. If Multiline is set to True, the Textbox will perform wordwrapping and also break a typed line after a hard return.
(e)
The Password Char property defines a character that will appear on the screen in place of the actual characters in the Text property. The underlying value of the Text property still contains the actual characters typed by the user, but for each character typed, only the password character will appear. Typically programmers set this property to an asterisk (*) for Textbox controls that represent the password on login screens. If you want to eliminate the Password Char property for a Textbox, be careful to erase its old value with your keyboard's Delete key instead of simply overwriting it with the spacebar.
(f)
The Scrollbars property is only writable at design time, although you can check its value at runtime. The default value is none, but you can also choose Horizontal, Vertical, or both. Scrollbars enable the
user to scroll vertically through the contents of a multiple line Textbox or horizontally through wide contents of Textboxes. (g)
The SelText property assigns or returns the contents of the currently selected text in a Textbox. If you assign a string to SelText property in your code, you'll replace the currently highlighted text with the contents of the new string and deselect whatever had been selected before.
(h)
The SelStart property is an integer value that gives you the position of the first highlighted character in the Textbox. It's zero-based. If there's no text currently selected, SelStart will represent the current position of the text cursor within the Textbox control. If you change the SelStart property in your code, you'll deselect whatever text was highlighted and move the text cursor to the position given by SelStart.
(i)
The SelLength property is an integer that indicates the number of selected characters in the TextBox. You can change SelLength in your code in order to change the number of selected characters. You can also deselect any highlighted characters by setting SelLength to 0.
(j)
The Text property is the Textbox control's default property. You can set it at design time or runtime, and you can also read it at runtime. The Text property represents the current visible, editable (not necessarily visible or editable, depending on the value of the Visible property, Enabled and/or Locked) contents of the Textbox.
4. Show the working of message box.
5. Show the working of check box.
6. Show the working of option button.
7.Show the working of list box.
8. Show the working of combo box.
9.Show working of picture and image box.
10.Show the working of shape box.
11. Design a student registration form using vb tools.
12.Working of timer control.
13.Working of input box.
14.Design menu bar with the help of menu editor. 15.Create MDI form that work like parent form.