Re: Standard Database Connection Dialog

Adam Sills <[email protected]> Tue, 30 Oct 2007 09:51:43 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
There's also the horrendously ugly OLEDB connection dialog that you see when
creating an ODBC data source or when creating a .udl (data link) file.

http://support.microsoft.com/kb/310083

Adam..

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of R. Rogers
Sent: Monday, October 29, 2007 4:25 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Standard Database Connection Dialog

Wow,

Thanks for that Peter.
That gives me something to chew on!

Richard
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of Peter
Ritchie
Sent: October 29, 2007 2:49 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Standard Database Connection Dialog

I would suggest using the CredUIPromptForCredentials Win32 function.  It
will present a credential dialog that is consisent to the version of
Windows currently being run.

There's many examples of using that method, like
http://www.developerfusion.co.uk/show/4693/