DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    60

    Data Link Dialog Box

    has anyone have example code to display the Data Link dialog box in a C# application?



    Thanks
    Clarence
    Thanks Clarence

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Hi, Clarence: Try this:
    Code:
    string fileName = @"c:\data.udl";
    // Create dummy .UDL file
    System.IO.StreamWriter sw = System.IO.File.CreateText(fileName);
    sw.Close();
    // Open .UDL file
    System.Diagnostics.Process.Start(fileName);
    If you already have a .UDL file, you can skip the creation step, and simply use System.Diagnostics.Process.Start to open the file, which displays the Data Link dialog.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    60
    Thank you Phil for responding to my question.
    Thanks Clarence

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links