Using Whidbey Layout Building a non-resizable dialog.

Slides:



Advertisements
Similar presentations
Creating posters and flyers Lesson -IV. Editing pictures inside Office Office 2007 has tools to edit photos and pictures in the document. Office 2007.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Chapter 9 Working with Tabs and Tables. Chapter Objectives Work with tabs Create and format a table Format text in a table Place graphics in a table.
Chapter 3 Creating a Business Letter with a Letterhead and Table
Word Lesson 11 Customizing Tables and Creating Charts Microsoft Office 2010 Advanced Cable / Morrison 1.
Page Features Footnotes and endnotes Headers and footers Page numbering Margins Columns.
CREATING A MULTIPLE PAGE REPORT Presented by: Dr. Ennis-Cole.
Computer Technology Timpview High School. Columns vs. Rows  Columns run vertically; rows runs horizontally  A cell is where a column and row meet.
Chapter 3 Tables and Page Layout
Microsoft Excel 2010 Chapter 8
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Multi-Table Forms Access – Lesson 5.
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
Notes to Teachers: 1.Make sure each student has his/her file open from the previous class “(student name).xlsx”. 2.A vocabulary list is included on last.
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
MSOffice WORD 1 Microsoft® Office 2010: Illustrated Introductory Part 2 ®
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
Creating Tables and Lists Lesson 9. Skills Matrix SKILL #MATRIX SKILL 4.2.1Create tables and lists 4.2.2Sort content 4.3.1Apply Quick Styles to tables.
Aligning the data in cells By default, Excel aligns text entries on the left margin of the cell (left justification) and aligns numeric entries on the.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
WORKBOOK FORMATTING Nolan Tomboulian Tomboulian.wikispaces.com HOW THINGS LOOK CELL COLORFONT COLOR CELL BORDERSFONT SIZE CELL SIZEFONT.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Creating Tables Lesson 6.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Computer Information Technology – Section 4-12 Some text and examples used with permission from: Note: We not endorsing or promoting.
1. Chapter 10 Managing and Printing Documents 3 Working with Files and Printing You can open multiple documents in Word. When multiple documents are.
Copyright 2006 South-Western/Thomson Learning Chapter 12 Tables.
© 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.
Format a Worksheet for Printing Lesson 3 - Microsoft Excel 2013.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
MICROSOFT WORD ABOUT WORD. ACTIVITY Read the following notes. Make a list of words you need to know to get started with Microsoft word. Arrange them in.
Key Applications Module Lesson 17 — Organizing Worksheets Computer Literacy BASICS.
Tables. What are tables? To create a table go to the insert tab on the ribbon. Table will be on the left of the ribbon in the tables group After selecting.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
By: Ms. Abeer Helwa 1. CREATE A WORD DOCUMENT 2 Blank document Templates To create a new blank document: click the File tab and click Blank document.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
Creating Tables LESSON 6 - #1.06 ESSENTIAL STANDARD #1 - UNDERSTAND WORD PROCESSING INDICATOR #6 – CREATING TABLES.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
XP IT INSTRUCTOR :AHMAD HIRZALLAH 1 Microsoft Office FrontPage 2003 Creating Tables and Frames.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
Adding Tables to Slides Lesson 5. Software Orientation Tables are designed to organize data in columns and rows, as shown at right. The Table Tools Design.
Lesson 13 Tables. Overview Create a table. Key and edit text in tables. Select cells, rows, and columns. Edit table structures. Format tables and cell.
Creating Tables Word Lesson 6. Creating Table Methods  There are a number of options to create tables. Each of these options can be accessed by clicking.
1 Pertemuan 10 Using Type Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 5 1 Microsoft Office FrontPage 2003 Tutorial 5 – Creating Tables and Frames.
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Microsoft Office 2007-Illustrated
Key Applications Module Lesson 17 — Organizing Worksheets
Going Green By Ima Librarian
Shelly Cashman: Microsoft Word 2016
Positioning Objects with CSS and Tables
Building a User Interface with Forms
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Format a Worksheet for Printing
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
Microsoft Word: Tables
Chapter 3 Fundamentals of Programming in Visual Basic 3
Tables:.
DreamWeaver CS4.
Adding Tables to Slides
Tutorial 3 – Creating a Multiple-Page Report
DREAMWEAVER MX 2004 Chapter 3 Working with Tables
Word: Layout & Pagination Participation Project
Positioning Objects with CSS and Tables
Day 3: Working with Tables
Presentation transcript:

Using Whidbey Layout Building a non-resizable dialog

Building a login dialog Part 1

Sizing Requirements Grow and shrink depending on text/font {

Sizing Requirements Grow and shrink depending on text/font { Fill up the remaining space

Sizing Requirements Grow and shrink depending on text/font { Fill up the remaining space { Label vertically centered relative to their matching TextBox

Sizing Requirements Grow and shrink depending on text/font { Fill up the remaining space { Label vertically centered relative to their matching TextBox } Dialog should size to fit contents

Start off with a blank form.

Drag and Drop a new TableLayoutPanel onto the form.

Add two labels and two text boxes from the toolbox to the newly added TableLayoutPanel.

Are we there yet? Nope! We have the controls, but no sizing behavior yet. Lets start out by fixing up the columns, then we’ll address the rows.

Choose Edit Rows and Columns off the context menu.

By editing the rows and columns we can control the sizing behavior of our table.

In this case, we want the first column to be autosized, and the second column to fill up the remaining space in the table.

Set the Label column to be AutoSize so that the width of the column is the size of the largest label. In this case, we want the first column to be autosized, and the second column to fill up the remaining space in the table.

Set the Label column to be AutoSize so that the width of the column is the size of the largest label. Set the TextBox column to be 100% so as to fill up the remaining space in the table with TextBoxes. In this case, we want the first column to be autosized, and the second column to fill up the remaining space in the table.

Back on the form, we see the results of our edits. Now that we’ve fixed up the columns, lets address the rows.

Going back into the same editor, we can access the RowStyles by switching the ComboBox to Rows.

Since we want both rows to be as tall as the largest control (most likely the height of the text box) – use AutoSize for both rows. Set both rows to be AutoSize so that they are as large as the largest control in the row

The results of the changes to RowStyles. We’re closer, but the last row is way too big!

We need to shrink up the table itself in order to collapse the last row. Set AutoSize = true and AutoSizeMode to GrowAndShrink

Rows are fixed. …but the table isn’t stretching the width of the dialog. There are several ways to fix this, we’ll use the Dock property.

Selecting the TableLayoutPanel can be difficult when it is AutoSized. At this point we should bring up Document Outline to help us select what we need. This window can be found at: View->Other Windows -> Document Outline

Select the table and Dock fill it. It may look like we’re back to square one, but stay with it….

Set AutoSize on the Form and AutoSizeMode to GrowAndShrink. (When you run the application, the form will shrink down, you can also manually shrink it in the designer).

At this point, you can add space from the edge of the form by adjusting the Form’s Padding property. RightLeft Top Bottom Control the spacing from the frame of the form by changing Form.Padding

We want the Labels to be glued to the left edge, but vertically centered within their cells. In order to do this, we can set the anchor to be Left.

We can stretch the textboxes by setting their Anchors to Right | Left. Set UseSystemPasswordChar=true on the password text box.

Testing automatic resize behavior We can change the label’s text to “Network Password:” and watch the first column grow and second column shrink. Notice how the first column grew? Previous column width

Resetting the text to “Password:” shrinks back up the first column. Notice how the first column shrinks back when the original text is restored.

Set the Form’s title to Login by changing the Text property and….

We’re done! ….ish. Now its time add an OK and Cancel button…