More Control Properties Part 10 dbg. Form Properties that Affect TitleBar ControlBox Property (T/F) Do you display the icon, associated menu to the left,

Slides:



Advertisements
Similar presentations
Prof. Yitzchak Rosenthal
Advertisements

Lesson 1 & 2 Review Lesson 1 & 2 Activities (Smart Notebook)
Chapter 3 Creating a Business Letter with a Letterhead and Table
Click left mouse button to proceed. Windows Tutorial CST-133 Lab W © Delta College CST Faculty This tutorial was created by R. Hoag in August.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Mark Worden Instructor Use your spacebar or down arrow key to advance slides.
Chapter 1: An Introduction to Visual Basic 2012
Chapter 5 Multitable Forms
1 Windows CIS*2450 Advancing Computing Techniques.
Microsoft Windows Vista Chapter 5 Personalize Your Work Environment.
Teach Yourself Windows 95 Module 3: Personalizing, Entertaining and O.L.E.
®® Microsoft Windows 7 for Power Users Tutorial 2 Customizing Microsoft Windows 7.
© by Pearson Education, Inc. All Rights Reserved. continued …
Microsoft Excel 2010 Chapter 7
Graphical User Interface (GUI) A GUI allows user to interact with a program visually. GUIs are built from GUI components. A GUI component is an object.
Introduction To Form Builder
Chapter 4: Working with Windows Types of Windows –Program Windows –Message Boxes –Dialog Boxes Elements of a Window –Window Panes –Scroll Bars –Menus –Tool.
Excel Web App By: Ms. Fatima Shannag.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
Windows Basics: Desktop, Taskbar and Window
Programming a GUI Hanan sedaghat pisheh. For calling GUI, we need a function with no inputs or outputs First We create a m.file m file has the same name.
1 Introduction to Excel Chapter 2. 2 Wrapping Text Steps to wrap text in one cell: Type the amount of text that will fit within a cell [alt] + [enter]
Windows Basics: Desktop, Taskbar and Window
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
BIM313 – Advanced Programming Building Forms 1. Contents Building Forms – The Basics – Changing a form’s appearance – Changing a form’s background color.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
CIS 205—Web Design & Development Fireworks Chapter 1.
Chapter 9 - VB.Net by Schneider1 Chapter 9 – Additional Controls and Objects 9.1 List Boxes, Combo Boxes, and the File-Opening Control The List Box Control.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
1. Chapter 4 Customizing Paragraphs 3 More Paragraph Changes Highlight a paragraph in Word by applying borders and shading. Sort paragraphs to control.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 - Graphical User Interface Concepts: Part.
Graphical User Interfaces 2 Tonga Institute of Higher Education.
IC 3 BASICS, Internet and Computing Core Certification Key Applications Lesson 11 Organizing the Worksheet.
1. Chapter 10 Managing and Printing Documents 3 Working with Files and Printing You can open multiple documents in Word. When multiple documents are.
Exploring Windows and Essential Computing Concepts 1 Windows Desktop u Windows Basics u Icon u Start Button u My Computer u Network Neighborhood u Recycle.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
Chapter 5: More on the Selection Structure Programming with Microsoft Visual Basic 2005, Third Edition.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
More Controls and Their Properties Part 4 dbg --- TextBox, CheckBox, RadioButton, GroupBox, ToolTips,
Excel Web App By: Ms. Fatima Shannag.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
Introduction to Drafting and Design In order to begin our drawing we have to set the drawing limits or the paper size.
Windows 95/NT/XP. What is Windows 95/NT/XP n A program that sets up an environment for you to work in on your computer, based on colorful pictures (icons)
Controls. Common properties Height – Height of the control Left – Left of the control Width – width of a control Top - From the screen top Font – Foreground.
Application software- programs that let you do things What are some computer programs that you or your parents use on the computer?
Scrollbar1 The Scrollbar A final tool in the toolbox is the scrollbar. There are two of them, one ordered horizontally and the other vertically, both do.
Microsoft Office 2008 for Mac – Illustrated Unit B: Getting Started with Mac OS X Leopard.
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Graphical User Interface Concepts - Part 1 Session 08 Mata kuliah: M0874 – Programming II Tahun: 2010.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 5 1 Microsoft Office FrontPage 2003 Tutorial 5 – Creating Tables and Frames.
Windows Tutorial 3 Personalizing Your Windows Environment
Chapter 12 Buttons and Labels and Scrolls Yi-che Hsu Summer 2002
IS 350 Course Introduction
Chapter 1: An Introduction to Visual Basic 2015
Office 2010 and Windows 7: Essential Concepts and Skills
Variables and Arithmetic Operations
Windows xp PART 1 DR.WAFAA SHRIEF.
Chapter 12 Graphics in Windows and the Web
Presentation transcript:

More Control Properties Part 10 dbg

Form Properties that Affect TitleBar ControlBox Property (T/F) Do you display the icon, associated menu to the left, and buttons to right of the Text Property of form? Yes allows keyboard access (Alt + spacebar) to close, move, resize, minimize, maximize, restore. Icon Property (.ico file) Substitute a particular.ico graphic file as the ControlBox icon.  Icon

Form Properties that Affect TitleBar MaximizeBox Property (T/F) determines whether or not the form can be maximized. MaximizeButton is dimmed when false. MinimizeBox Property(T/F) detemines whether or not the form can be minimized. MinimizeButton is dimmed when false.  ControlBox

More Form Properties MinimumSize (Width in pixels, Height in pixels) --- This is the smallest possible size of form. ShowInTaskBar (T/F) --- Do you want this form to display a taskbar button, listing this form as a “running application”? WindowState (Normal, Minimized, Maximized) --- Should this form should have its normal size, be minimized at startup, or be maximized at startup?  TaskBarItem

Position of Controls when Form is Resized When a user resizes a form by dragging the border or SizeGrip, form controls will “float” to new positions on form. To control this “floating”, set Anchor Property (top, left, bottom, right). This keeps control in same place relative to anchored side(s). You may select multiple sides to anchor to. When form is resized, control will stay the original (design) distance from specified side(s).

Position of Controls when Form is Resized Dock Property (top, left, bottom, right, none). This causes the size of control to expand or contract to match the size of docked side. Dock Padding Property (pixels). This distance between control and docked side will not change as form is resized.  Dock

Different Looks for RadioButtons and CheckBoxes You can alter the look of a traditional CheckBox by setting the Appearance Property to Button. Toggling the “Button” will alter the Checked Property of the CheckBox. You can alter the appearance of a RadioButton by setting the Appearance Property to Button. Clicking a “Button” will alter the Checked Property of the RadioButton. The Image and BackColor properties can be adjusted, for effect, if desired.  ToggleCheck  ToggleRadio

TrackBar and ScrollBar Controls Filled with a Number Series

TrackBar Properties A TrackBar is a control that can conveniently display a range of values. How far apart the Ticks appear is set in the TickFrequency Property. The look of the Thumb and Ticks is set in the TickStyle Property. Set lowest value for TrackBar in Minimum Property. Set highest value for TrackBar in Maximum Property. Starting Value of the Thumb is set in the Value Property.

User Interaction with TrackBar The user drags the Thumb to change the TrackBar Value Property. The minimal amount the Value Property can change is determined by the SmallChange Property. The user can also click on the TrackBar. Clicking to left of Thumb decreases the TrackBar Value Property by the LargeChange Property amount. Clicking to the right of Thumb increases TrackBar Value Property by the LargeChange Property amount.

TrackBar When the Value Property of the TrackBar is changed, the Scroll event “fires”. The TrackBar control does not display the actual value chosen. Good design dictates that the Value be displayed in a Label control. Use the prefix tkb with the TrackBar.  NormalTrackBar

Unusual TrackBars Normally the values of a TrackBar are increasing left to right. However, you may have a TrackBar with values decreasing from left to right by setting the RightToLeft Property to Yes. Whether the TrackBar is vertical or horizontal is set in the Orientation Property. To produce a regular series of non- contiguous values, multiply or divide the Value Property, as necessary.  NoncontiguousTrackBar  TrackBar2

The Resize Event Handler The previous example stops working correctly if the form is resized. Program the Resize event handler of the form to update the Maximum Properties of the TrackBar controls with the new ClientSize dimensions.  Resize

ScrollBar There are two separate ScrollBar controls for vertical (vsb prefix) and horizontal (hsb prefix) orientations. The Thumb of the ScrollBar control is a box rather than a pointer. There are no Ticks. The SmallChange Property controls the change produced by clicking on the end arrows of the control. Usage is otherwise similar to the TrackBar.  ScrollBars

Random Numbers

Random The Random object has a pair of methods for generating either random integers or random doubles. For small ranges of values, instantiating a Random object is adequate to generate unique sequences of numbers. For larger random numbers (3, 4, 5, 6, 7 etc digits), it may be necessary to seed the Random object with a value derived from the system clock to insure that a pseudorandom sequence is unique; do this at instantiation.

Next() Method The Next() method of the Random object delivers a random integer. The method is overloaded and can accept 0, 1 or 2 arguments. With no arguments, integers between 0 and 2,147,483,647 are delivered. Random.Next();

Next() Method With a single argument, integers between 0 and argument -1 are delivered. Random.Next(6); //delivers integers in the range 0 to 5 With two arguments, integers between argument1 and argument2 -1 are delivered. Random.Next(2,8); //delivers integers in the range 2 to 7  IfElseRandom  SwitchRandom  RandomInteger

NextDouble() Method NextDouble() does not take arguments. Values produced are greater than or equal to 0.0 and less than 1.0. To obtain double precision values in some other range, multiply the random double by some upper limit value. To adjust the lower limit, subtract the lower limit from the upper limit multiplier and then add the lower limit to the product of the random double and the multiplier.  RandomDoubles