intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Session 3 - Advanced User Interface Enhancements

Chia sẻ: Vuvan Tu | Ngày: | Loại File: PPT | Số trang:35

75
lượt xem
9
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

The different Controls are grouped into different types depending on the functionality they offer. Text Edit Controls allow users to enter and edit text while Text Display Controls only display text to the user. Selection list Controls display a set of values to the user and allow users to select a value from the list. Graphic storage Controls store graphics, such as images, in it and Graphic Display Controls are used to display graphics, such as images. RichText Controls are text controls that are enriched with extra functionality that differentiate them from other text controls....

Chủ đề:
Lưu

Nội dung Text: Session 3 - Advanced User Interface Enhancements

  1. Session 3 Advanced User  Interface Enhancements  
  2. Review The different Controls are grouped into different types   depending on the functionality they offer. Text Edit Controls allow users to enter and edit text while Text   Display Controls only display text to the user.  Selection list Controls display a set of values to the user and   allow users to select a value from the list.  Graphic storage Controls store graphics, such as images, in it   and Graphic Display Controls are used to display graphics,  such as images. RichText Controls are text controls that are enriched with extra   functionality that differentiate them from other text controls.   WinForms / Session 3 / 2 of 35
  3. Review Contd… Value  Setting  Controls  help  users  to  set  values,  such  as   ‘yes’ or ‘no’. Dialog  Boxes  Controls  provide  basic  functionality  like  the   Save dialog box, Open dialog box and Print dialog box. Menu  Controls  provide  the  menu  functionality  to  the  user   while Commands  controls allow users  to  interact  with  the  application.  A set of controls can be grouped using Grouping Controls.  The steps involved in calling a form from another form are:   Create an instance of the form to be called  Show the instance   WinForms / Session 3 / 3 of 35
  4. Objectives  Discuss print support in Winforms  List different types of Dialog Boxes   Work with system defined Dialog Boxes   Implement User Interface Capabilities Transparent Forms  Control Docking  Control Anchoring  Visual Inheritance    WinForms / Session 3 / 4 of 35
  5. Printing Support Controls   PrintDocument   PrintPreviewControl   WinForms / Session 3 / 5 of 35
  6. PrintDocument Events Properties PrintPage  DocumentName  Be i i   g nPrnt Pri C ont l   nt roler EndPrint  PrinterSettings  Methods QueryPageSettings  DefaultPageSettings  G et ype  t Print  ToString    WinForms / Session 3 / 6 of 35
  7. PrintPreviewControl Properties Zoom  U seA ntA las  ii Methods Document  StartPage  AutoZoom  InvalidatePreview  Columns  Rows    WinForms / Session 3 / 7 of 35
  8. Print Support Controls ­  Example PrintPreviewControl PrintDocument   WinForms / Session 3 / 8 of 35
  9. Dialog Boxes To display information and messages for the  Uses user To accept user-input  Types (by Presentation)   WinForms / Session 3 / 9 of 35
  10. Dialog Types  Types of Dialog (by definition) Custom Dialog Boxes  Common Dialog Boxes   OpenFileDialog   PageSetUpDialog   FontDialog   ColorDialog   SaveFileDialog   PrintPreviewDialog   PrintDialog    WinForms / Session 3 / 10 of 35
  11. OpenFileDialog ShowReadOnly  RestoreDirectory  FileName  AddExtension  Properties ReadOnlyChecked  CheckPathExists  Title  ShowHelp  IntialDirectory  FilterIndex  FileNames  CheckFi eExi   l sts M uli l tSee DefaultExt  Filter  c  t ValidatesNames    WinForms / Session 3 / 11 of 35
  12. OpenFileDialog Contd… Events Methods O penFie  HelpRequest l FileOk  ShowDialog   WinForms / Session 3 / 12 of 35
  13. PageSetUpDialog AllowOrientation  PrinterSettings  AllowMargins  AllowPrinter  Properties Document  ShowHelp  ShowNetwork  AllowPaper  MinMargins  PageSettings    WinForms / Session 3 / 13 of 35
  14. FontDialog Properties AllowScriptChange  AllowVectorFonts  AllowSimulations  AllowVerticalFonts  ScriptsOnly  ShowColor  ShowEffect  Font ust M Font Exi   st MinSize  MaxSize Color  Event ShowApply  tchOnl   ShowHelp  FixedPi y A ppl   y   WinForms / Session 3 / 14 of 35
  15. ColorDialog Color  AnyColor  Properties CustonColor  SolidColorOnly AllowFullOpen ShowHelp FullOpen    WinForms / Session 3 / 15 of 35
  16. SaveFileDialog Properties Method OverwritePrompt  O penFie  l CreatePrompt    WinForms / Session 3 / 16 of 35
  17. PrintPreviewDialog Property Document   WinForms / Session 3 / 17 of 35
  18. PrintDialog Properties Method AllowSelection  PrintToFile  Reset  AllowPrintToFile  AllowSomePages    WinForms / Session 3 / 18 of 35
  19. MessageBox  MessageBox  The Code for Showing Messagebox is :­ MessageBox.Show(“[Message]”);  MessageBox.Show method is overloaded in  twelve ways to give more functionality   WinForms / Session 3 / 19 of 35
  20. MessageBox Contd… Overload Public static DialogResult Show(string);  Public static DialogResult Show(IWin32Window, string);  Public static DialogResult Show(string, string);  Public static DialogResult Show(IWin32Window, string, string);  public static DialogResult Show(string, string, MessageBoxButtons); public static DialogResult show(IWin32Window, string string,  MessageBoxButtons);  public  static  DialogResult  Show(string,  string,  MessageBoxButtons,  MessageBoxIcon);    WinForms / Session 3 / 20 of 35
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2