|
IGNOU > IGNOU Assignments > BCA > BCA 2007 Assignments > Windows Programming IGNOU BCA Assignments Question 3: What is form? Explain how you can set form properties. Ans: A form is nothing but a box that contains control objects. A form’s main purpose is to hold other components such as buttons and text boxes, a form can also perform actions in response to events such as key presses and mouse clicks. A form represents a window’s or dialog box’s visual appearance. A form is actually a Visual basic component with its own set of properties (i.e. the special variables that permit you to change the way an object looks or works) and events (i.e. Visual Basic events include Click, Double Click, Movement of Mouse, Press of any key on the keyboard). Unlike other tools, however a form component does not appear on the toolbox. There are two ways to set the properties of form or any object :-
Question 4: What is ToolBar? List different components of ToolBar. Ans: The Toolbox contains the tools that enables the programmer to add features like button, text boxes etc to the application. This box displays standard controls and any custom controls, which have been created or the objects that have been added to the project with the Custom Controls dialog box. Pointe:This is the only item in the Toolbox that does not allow you to create a control on the form. Use it to resize or move a control after it has been created on a form. PictureBox: This is used to display graphical images. Label This is used to create text that you don’t want the user to change, such as a caption under a graphic image. The labels can be aligned. TextBox This is used to hold text that the user can either enter or change. The font or style of individual character can not be changed. All the characters in the textbox share the same font, size and style. CommandButton This is used to create a button, the user may choose to carry out a command. CheckBox:This is used to create a checkbox to the Visual basic application that the user can easily choose to indicate, or to display multiple choices when the user can choose more than one. The checkbox is programmed to check (select) or uncheck (de-select) i.e. the checkbox’s value property is true (1) if the check box is selected and is false(0) if it is de-selected. OptionButton This is used to select one option from the group of option buttons to display multiple choices. ComboBox: This is used to control which type of combo box (out of the three types) to select. The user can either choose an item from the list or enter a value in the text box. ListBox This is used to display a list of items from which the user can choose one. The list can be scrolled if it has more items that can be displayed at one time. Shape:This is used to draw a variety of shapes (of different sizes) on the form at design time. One can choose a square, rounded square (i.e. rounded a corners), rectangle, rounded rectangle (at corners, oval, or circle. Line:This is used to draw a various styles of lines on the form at design time. Question 5: What is Data Manager? Explain how database is created for a Visual Basic Application. Ans: Visual Basic has an add-in programme called Data Manager that can be used to create Databases. This application allows you to create new databases, and examine or map databases in a variety of formats. Users can also create Attached tables to the data. Data Manager can be manipulated with Microsoft Access, and similarly databases created with Microsoft Access can be manipulated with Visual Basic and Data Manager. Step 1: - To create a new database, select New Database from the File menu. As you select the New Database option and click it, a dialog box appears. Step 2: - Type in the name of the database in the File name box with the extension as .MDB, select the desired directory if you have not already selected the same and click on Save button. Step 3: - Now the empty database has been created. Step 4: - After the database has been saved, Data Manager window display the Database window. This window contains six buttons: pen, New, Delete, Design, Attach, and Relations. |
|||||||||||||||||||