Dot Net 2
Dot Net 2
3.Logical/Bitwise Operators:
Logical Operators compare Boolean expression and return a Boolean result. These
Operators return a true or false result over a conditional expression.
4. Concatenation Operators:
Concatenation operators join multiple strings into a single string.
Q3. Data types in VB.net.
Q7.CheckBox Control:
• CheckBox is a small square box that the user can click for an option to select
YES/NO or True/False.
• A CheckBox is clicked to select and clicked again to deselect some option,
checkbox control is based on textboxbase class which is based on the Control
class.
Q8. RadioButton Control:
• A radio button is also called an option button which is a circular control, used to
select and deselect options.
• A major difference between checkboxes and radio buttons is user can select only
one radio button at a time while in case of checkboxes user can select multiple
checkboxes at a time.
• The RadioButtons are mostly used together in group.
Q9.PictureBox Control:
• The PictureBox control allows user to set a picture in it.
• Size Mode is one of the important properties of PictureBox.
• User can set the image as Normal, StretchImage, AutoSize, CenterImage and
Zoom.
Q11. DataGridView:
• DataGridView provides a visual interface to data, it is an excellent way to display
and allow editing of users data.
• It is accessed with VB.NET code. Data edited in the DataGridView can then be
persisted in the database.
• The DataGridView control is basically made of rows and columns.
Q22. Creating Menus and Submenus
• Simplest way to create menus in VB.NET is at design time because the MainMenu
control is available in toolbox.
• To create a new menu, double_click text to open a text box where in that text
box we can enter caption for menus and menu item.
Q23. DialogBox
1. InputBox ()
• InputBox is used to prompt the user to enter the values.
• A text can be return in the text box by using the InputBox function if the user
clicks on the OK or Enter button. And if the user clicks on the Cancel button, then
the InputBox function will return an empty string ("").
2. MessageBox()
• A Class called as MessageBox because it is introduced by VB.NET which
encapsulates all the features of MsgBox.
• The difference between MessageBox and MsgBox is that MsgBox is a function
while MessageBox is a Class.
• The MessageBox class has overloaded method show () to display message on
prompt.