vbdialog - CIS 338: Dialog Boxes Dr. Ralph D. Westfall...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 338: Dialog Boxes Dr. Ralph D. Westfall February, 2009
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dialog Boxes do one of following display a message to user has only one button (OK) get a decision from user OK, Cancel, etc. get information from user e.g., name, password, age
Background image of page 2
VB Dialog Boxes You Can Use MessageBox message + one or more buttons MsgBox simplified version of MessageBox User-created do it yourself with forms, or using form templates
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More Dialog Controls can also use Microsoft Common Dialog controls in VB.NET standard Windows/Microsoft Office items File Open/Save, Font, Color, Print click items in Toolbox
Background image of page 4
MessageBox MessageBox.Show(prompt [, title][, buttons] [, icon][, defaultButton][, options]) [ items in square brackets are optional ] prompt: text string to display title: message box title bar (same as Project name if not provided) buttons: button(s) to display icon: icon (image) defaultButton: gets initial (at 1 st) focus options: international settings Note: MsgBox has an abbreviated syntax
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Message Box Examples MessageBox.Show("It's crashing") 'using a string literal
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/13/2009 for the course CIS 338 taught by Professor Westfall during the Winter '09 term at Cal Poly Pomona.

Page1 / 19

vbdialog - CIS 338: Dialog Boxes Dr. Ralph D. Westfall...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online