Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 3 - Exploring the Dialogs Controls in Vb.Net
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Exploring the Dialogs Controls in Vb.Net
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-07-11

    Table of Contents:
  • Exploring the Dialogs Controls in Vb.Net
  • ColorDialog Control
  • OpenFileDialog Control
  • Usage of these Controls

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Exploring the Dialogs Controls in Vb.Net - OpenFileDialog Control


    (Page 3 of 4 )

    When this control's ShowDialog() method is called, an Open dialog window pops up as shown in the next picture. As we shall see later in the example, you can filter the file extension you want opened; that is the reason it is showing (*.htm;*. html) as the extensions.

    This next picture shows the class view of this control. However we will be mostly using the properties and methods of the FileDialog class.

     

    The properties used for the example shown, such as the filter for file extension, come because they are inherited from the FileDialog Class as shown here.

    SaveFileDialog Control

    When this control's ShowDialog() method is called, the Save As window shows up as shown here.

    It is possible to code such that a particular file type can be saved to a chosen directory using again the filter for file extension property derived from the FileDialog class. Both this control, as well as the OpenFileDialog control, give access to the OpenFile() method (as System.IO.Stream) which can be very useful.

    More Visual Basic.NET Articles
    More By Jayaram Krishnaswamy


       · Being descendents of CommonDialog Controls, these controls should be faimliar to...
     

    VISUAL BASIC.NET ARTICLES

    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway