473,803 Members | 3,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invoking the Connection Properties Dialog Box

I try to invoke Connection Properties dialog box that Visual Studio 2005 use.
The dialog that I said is used in many places such as when developers build
connection string in Settings.settin g file
(http://www.one.co.th/downloads/Settings.settings.png). The Connection
Properties dialog box will appear to allow developers to build connection
string. I found article
(http://support.microsoft.com/default...;en-us;Q309485) in MSDN
that use Data Link Properties dialog box but it is not fit to my requirement.
Data Link Properties dialog box allow user to select many types of database
but I just want user to select only SQL Server and Data Link Properties
dialog box is not allow user to build connection string for SQL Server
Express Edition. I am very sure that the Connection Properties dialog box can
invoke programmaticall y by using .NET Framework but unfortunately I cannot
find any articles that talk about it or I may misunderstand :). If anyone
know how to invoke the Connection Properties dialog box, please tell me or
just navigate me to the article.

Thanks
Teeravee Sirinapasawasde e
Jul 16 '07 #1
1 7247
Teeravee,

Are you showing an object in the PropertyGrid which has a property which
should be the connection string? This is going to be the only way you can
do this, as that mechanism uses the component model attributes for
indicating the designer. You could attach the following attribute to that
property, like so:

Editor("Microso ft.VSDesigner.D ata.SQL.Design. SqlConnectionSt ringEditor,
Microsoft.VSDes igner, Version=8.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a", "System.Drawing .Design.UITypeE ditor,
System.Drawing, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a")

But there is a problem with this. That editor is part of Visual Studio,
and I am almost positive that the EULA would require that VS.NET be
installed on the machine that wants to use this assembly (you would have to
include the Microsoft.VSDes igner assembly somewhere in your app as well).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Teeravee" <Te******@discu ssions.microsof t.comwrote in message
news:0D******** *************** ***********@mic rosoft.com...
>I try to invoke Connection Properties dialog box that Visual Studio 2005
use.
The dialog that I said is used in many places such as when developers
build
connection string in Settings.settin g file
(http://www.one.co.th/downloads/Settings.settings.png). The Connection
Properties dialog box will appear to allow developers to build connection
string. I found article
(http://support.microsoft.com/default...;en-us;Q309485) in MSDN
that use Data Link Properties dialog box but it is not fit to my
requirement.
Data Link Properties dialog box allow user to select many types of
database
but I just want user to select only SQL Server and Data Link Properties
dialog box is not allow user to build connection string for SQL Server
Express Edition. I am very sure that the Connection Properties dialog box
can
invoke programmaticall y by using .NET Framework but unfortunately I cannot
find any articles that talk about it or I may misunderstand :). If anyone
know how to invoke the Connection Properties dialog box, please tell me or
just navigate me to the article.

Thanks
Teeravee Sirinapasawasde e

Jul 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10803
by: bbxrider | last post by:
running win2k adv server/ iis5.0 trying to setup on my web page where browsers can download a file, an .xls so been trying to figure out with a download 'link' what invokes the standard ms file save dialog, hopefully without using vbscript other web pages i have seen have a simple link such as : <a href="someDir/someFile.xls">Download</a> when i used that, it just opens the spreadsheet and actually allows me to use the spreadsheet...
13
7784
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages within that directory OR 2) Within a specific page, set the timeout as per http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/vbob246s.htm e.g. <% Server.ScriptTimeout = 1 %> and that the value in...
1
1779
by: Apple | last post by:
hi is there any way to invoke a .udl dialog in my program i have to dynamically create a data connection string and i dont want to create a new udl file. Is there any objects which will meet the requirement???? Thanks in advance
0
2631
by: Jay Douglas | last post by:
Hello, I'm trying to create a Data Links Property window that behaves just like the dialog box in Visual Studio .Net for MS Sql Server connections. I've found a lot of examples that use DataLinks classes from "Microsoft OLE DB Service Component 1.0 Type Library" and the Connection object from ADODB. However, when setting the connection string using these classes the connection string always returns a really basic connection string with...
6
3841
by: bryanhobson | last post by:
I'm fairly new to c#, and I am just trying to work out how a 'properties' dialog works. Currently in my code, I have an object represented by the class 'Dog'. The dog object has several properties. I have added a new windows form, class 'DogProperties'. I'm attempting to use this to allow the user to edit the properties of an instance of 'Dog'.
1
1448
by: James Goodman | last post by:
In VB6 I used to set my applications to automatically look for the source DB in the program installation directory. If it wasnt found it was fairly easy to pop a dialog asking the user to specify the path. I am writing an app at the moment which will require the user to connect to the DB over a network connection. I am not sure of the connection address at present. I have created my data-bound forms using server explorer to create the...
1
2696
by: DaveS | last post by:
Hi! I am creating a Windows app in VS2005 which will allow the user to choose from different SQL data sources. I could hardcode a selection of connection strings, but I'd rather not (in case a new database is created, etc.). I'd like to use the common dialog box which appears when you navigate to Project Properties > Settings Select Type=(Connection String), then click in the cell in the Value column. A Connection Properties dialog...
1
1822
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I want to provide user a connection dialog similar to or same as the Add Connection Dialog including Advanced Properties window.
2
5571
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the serialization settings for the build handled the initial slows we encountered when invoking the web service. Since that time, we ported the original VB.net code over to C# - this was done to make it cleaner easier to include the project in the rest of...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.