Home > Flashcards > Print Preview
The flashcards below were created by user
on FreezingBlue Flashcards
. What would you like to do?
How do you refer to a form within the form code?
How do you create an instance of the form @ runtime?
- Dim myForm as Form1
- myForm = New Form1
How are font or size property values set?
As an instance of the class or structure.
How is the form title set?
How do you resize a form?
Using height and width, or set size property with new instance of the size structure
Starting point set my lcoation property
StartupLocation- Center Screen
Center of screen
StartupLocation- Windows Default Location
positioned at degault location and is set to size determined by size proprrty
StartupLocation- Windows Default Bounds
positioned at default location and size determined by windows default size
StartupLocation- Center Parent
Center of parent screen
Where do you set up the start up form?
in the startup form project perty in the profigect properties window (in the applications tab)
HOw to create a non-rectangular form?
Set the region prioerty in the form load event.
What is the region property an instance of and what does it represent?
System.Drawing.Region - represents an area o the screen that is the interior of a graphics shape defined by retangles and graphics pathes.
What is the code to create a nonrectangular form?
- First - creaate graphics path
- Dim myPath as new sustem.drawing.Drawing2D.GraphicsPath
- Second add ellipse/rectangle, etc
- myPath.AddEllipse(0, 0 Me.Width, Me.Height)
- Third, create the region
- Dim myRegion as New Region(myPath)
- Fourth - set the form�s region to the new region
- Me.Region = myRegion
How do you add a control to a form or container control in the designer?
- Drag the control from the toolbox to the surface of the form or container control
- Select a control in the toolbox and then draw it on the form with the mouse
- Select the control in the toolbox and double click the form
- Double click the control in the toolbox
How do you create a new control at run time?
Instantiate a new control and add it to the controls collection of the form.
What is the anchor property and why use it?
- What - Allows you to create a constant distance between one or more edges of a control and one or more edges of a form or other container control.
- Why - if the window is maximized, the control will always remain a specific distance from the edges.
What is the dock property?
What - allows you to attach your control to the edge of a parent control.
What is a Group Box control?
a container control that appears as subdivision of the form, surrounded by a border
What is the Panel control?
Creates a subsection of a form that can host other controls. Can be indistinguishable from the rest of the form.
What is the FlowLayoutPanel control?
Subclass of the Panel control. and dynamically repositions the controls it hosts when it is resized either at design time or runtime.
What controls are scrollable?
Panel, FlowLayoutPanel, TableLayoutPattern
How do you set a flow break on a FlowPanelLayout control?
What is the TableLayoutPanel?
Panel that has table cells for individual controls.
How do you add a control to a TableLayoutPanel?
- First, declare new object
- Dim aButton as new Button()
- Then, add to a cell
- TableLayoutPanel1.Controls.Add(aButton, 2, 2)
What is a TabControl?
Sets groups of controls in different tabs
What is the SplitContainerControl?
Creates a subsection of the form & a splitter divides the container into 2 SplitterPanels
What is the purpose of the dock property?
Allows you to attach a control to one of the sides of the form or to fill all available space in the form.
What are containers and what are they used for?
They are specialized controls that can be used to hoist other controls.
You are designing an application that includes a property page that enables the user to set properties of the application. These properties are divided into three categories: Appearance, Execution and Memory Management. Whey container control represents the best starting point for the user interface?
What is a container control?
A control that can contain other controls, such as a panel, group box, or tab control
What is a control?
A component that has a visual interface and that can be hosted in a form or other container control
What do controls contain?
Properties, methods, and events that act together to create a common functionality
What is a toolbox?
A window in Visual Studio from which a control can be dragged onto the designer.
What would you like to do?
Home > Flashcards > Print Preview