MCPD 70505.txt

Card Set Information

Author:
khoke
ID:
124319
Filename:
MCPD 70505.txt
Updated:
2011-12-18 11:26:57
Tags:
70 505 Chapter
Folders:

Description:
70-505 Chapter 1
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user khoke on FreezingBlue Flashcards. What would you like to do?


  1. How do you refer to a form within the form code?
    Me
  2. How do you create an instance of the form @ runtime?
    • Dim myForm as Form1
    • myForm = New Form1
    • myForm.Show()
  3. How are font or size property values set?
    As an instance of the class or structure.
  4. How is the form title set?
    Text property
  5. How do you resize a form?
    Using height and width, or set size property with new instance of the size structure
  6. StartupLocation- Manual
    Starting point set my lcoation property
  7. StartupLocation- Center Screen
    Center of screen
  8. StartupLocation- Windows Default Location
    positioned at degault location and is set to size determined by size proprrty
  9. StartupLocation- Windows Default Bounds
    positioned at default location and size determined by windows default size
  10. StartupLocation- Center Parent
    Center of parent screen
  11. Where do you set up the start up form?
    in the startup form project perty in the profigect properties window (in the applications tab)
  12. HOw to create a non-rectangular form?
    Set the region prioerty in the form load event.
  13. 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.
  14. 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
  15. 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
  16. How do you create a new control at run time?
    Instantiate a new control and add it to the controls collection of the form.
  17. 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.
  18. What is the dock property?
    What - allows you to attach your control to the edge of a parent control.
  19. What is a Group Box control?
    a container control that appears as subdivision of the form, surrounded by a border
  20. 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.
  21. 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.
  22. What controls are scrollable?
    Panel, FlowLayoutPanel, TableLayoutPattern
  23. How do you set a flow break on a FlowPanelLayout control?
    panel.SetFlowBreak(aButton, true)
  24. What is the TableLayoutPanel?
    Panel that has table cells for individual controls.
  25. 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)
  26. What is a TabControl?
    Sets groups of controls in different tabs
  27. What is the SplitContainerControl?
    Creates a subsection of the form & a splitter divides the container into 2 SplitterPanels
  28. 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.
  29. What are containers and what are they used for?
    They are specialized controls that can be used to hoist other controls.
  30. 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?
    TabControl.
  31. What is a container control?
    A control that can contain other controls, such as a panel, group box, or tab control
  32. What is a control?
    A component that has a visual interface and that can be hosted in a form or other container control
  33. What do controls contain?
    Properties, methods, and events that act together to create a common functionality
  34. 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