Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



What is the use of Dialog box in Visual Basic?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-01-2011
Member
 
Join Date: Mar 2010
Posts: 393
What is the use of Dialog box in Visual Basic?
  

Hello Friends, I am a student of I.T field where in I will be having a subject Visual basic this semester. Well, I heard that this chapter is quite simple but I don?t understand this term Common Dialog Box. So, can anyone let me know, what is the use of Common Dialog box in visual basic? Is it a tool for Visual basic? If anyone is aware of this question than please let me know as soon as possible.

Reply With Quote
  #2  
Old 02-01-2011
Member
 
Join Date: May 2009
Posts: 523
Re: What is the use of Dialog box in Visual Basic?

To display a dialog box, you can call its Show method as Object.ShowMethodAnother method to display a dialog box is to assign a value to the action property of the Common Dialog Box control as follows: Object.Action = ValueThe Show methods and the values for the action property for different dialog boxes are given in the following table. Dialog Box Method Action Value can be as to Open it will require ShowOpen, To Save the dialog box mehod it will use As ShowSave, If you need any Color in dialog box then you can use ShowColor, you also have an option of font in visual basic environment as ShowFont, you can also Print as ShowPrint, and the last is the Properties of Common Dialog Box which can be achieved as controlCancelErrorIf set to True, an error is generated if the user clicks the Cancel button.
Reply With Quote
  #3  
Old 02-01-2011
Member
 
Join Date: Apr 2009
Posts: 484
Re: What is the use of Dialog box in Visual Basic?

It contains the default extension for the filename. DialogTitle. It contains the text to be displayed in the title bar or the dialog box. This title is only applicable to the Open and Save As dialog boxes. FileName It contains the name of the file selected by the user or typed in by the user in the Open and Save As dialog boxes. Filter it identifies the types of files that are included in the File Type Combo box of the dialog box.
Reply With Quote
  #4  
Old 02-01-2011
Member
 
Join Date: May 2009
Posts: 620
Re: What is the use of Dialog box in Visual Basic?

Example: cdlDialog.Filter = "Text|*.txt|Graphics|*.bmp;*.jpeg;*.gif" FilterIndex It returns or sets the default filter for Open or Save As dialog boxes. The index for the first filter is 1. InitDir It identifies the default directory for Open and Save As dialog box. The files from this directory are displayed by default. This is the perfect example of a dialog box in visual basic 6.0. I think with example you will be able to understand the term dialog box in visual basic 6.0.
Reply With Quote
  #5  
Old 02-01-2011
Member
 
Join Date: May 2009
Posts: 503
Re: What is the use of Dialog box in Visual Basic?

It is very simple to use a dialog box in visual basic environment. You can use Show method as one of the way to display the dialog in box in visual basic environment. It has many features in it such colors, font where in you can change the color and the font of the dialog box. I think that this is the simplest properties in visual basic 6.0. I don't think further you will having any problem after reading this content.
Reply With Quote
  #6  
Old 02-01-2011
Member
 
Join Date: May 2009
Posts: 532
Re: What is the use of Dialog box in Visual Basic?

It returns or sets the various options for the dialog boxes. Color Dialog Box cdlCCFullOpen entire dialog box is displayed, including the define Custom Colors section cdlCCHelpButton Causes the dialog box to display a Help button cdlCCPreventFullOpen. It disables the define custom colors command button and prevents the user from defining custom colors cdlCCRGBInit sets the initial color value for the dialog box font Dialog BoxcdlCFScreenFonts which causes the dialog box to list only the screen fonts supported by the systemcdlCFPrinterFonts which also causes the dialog box to list only the fonts supported by the printer cdlCFBoth where the dialog box to list the available printer and screen fonts cdlCFEffectsSpecifies that the dialog box enables strikethrough, underline, and color effects Color It identifies the colour selected by the user in the Color dialog box.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What is the use of Dialog box in Visual Basic?"
Thread Thread Starter Forum Replies Last Post
How To Dismiss a Dialog Box Displayed by an Office Application with Visual Basic? jhon Windows Software 5 25-03-2010 06:03 AM
what are Visual Basic IDE? Naresh Modi Software Development 2 06-03-2009 09:49 AM
Is GUI same like Visual Basic ? Caesar Software Development 2 02-03-2009 01:32 PM
Visual Basic 2005 or Visual Basic 6 Aasha Software Development 5 15-01-2009 06:56 PM
Visual Basic on LAN djbbenn Software Development 2 05-08-2008 02:15 PM


All times are GMT +5.5. The time now is 07:26 AM.