473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Connection String Builder

Dear Sir
I have a UserControl with a property called 'ConnectionString', How I
could trigger the connection string builder to allow users to generate that
string in the property sheet.

Thanks
Ahmed
Nov 20 '05 #1
4 5014
Cor
Ahmed,

Are you looking for something this ?
\\\
Dim strMake As New System.Text.StringBuilder
strMake.Append(StrText)
mStrMake = strMake.ToString
///

I hope this will help a little bit?

Cor

Nov 20 '05 #2
Dear Cor
Thanks for replay
I mean how to trigger the wizard that build the database connection
string.
I'm building UserControl that connect to a database, and I created a
property called 'ConnectionString' . The users of that control will enter
the database connection string in the property sheet. I want to add a build
button for this property in the property sheet to open the wizard that build
the database connection string.

Thanks
Ahmed

"Cor" <no*@non.com> wrote in message
news:3f**********************@reader21.wxs.nl...
Ahmed,

Are you looking for something this ?
\\\
Dim strMake As New System.Text.StringBuilder
strMake.Append(StrText)
mStrMake = strMake.ToString
///

I hope this will help a little bit?

Cor

Nov 20 '05 #3
I'm stumped on your question after hunting for a solution, but I can give
you a little insight. The solution will involve the Editor Attribute:

http://msdn.microsoft.com/library/de...ClassTopic.asp

Worse case you can create your own editor, but that seems like a waste of
time.

--

Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at www.mrgsoft.com

"Ahmed Hashish" <a_*******@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
Dear Sir
I have a UserControl with a property called 'ConnectionString', How I
could trigger the connection string builder to allow users to generate that string in the property sheet.

Thanks
Ahmed

Nov 20 '05 #4
This works in VB6:

set a reference to Microsoft OLEDB Service Component 1.0 Type Library.
then in code:
Dim x As New MSDASC.DataLinks
Debug.Print x.PromptNew

I tried it in .NET and the wizard comes up, but I haven't yet figured
out how to retrieve the connection string.

Hope this helps

Gary

"Justin Weinberg" <jweinberg@_spamkill_mrgsoft.com> wrote in message news:<Oc**************@TK2MSFTNGP12.phx.gbl>...
I'm stumped on your question after hunting for a solution, but I can give
you a little insight. The solution will involve the Editor Attribute:

http://msdn.microsoft.com/library/de...ClassTopic.asp

Worse case you can create your own editor, but that seems like a waste of
time.

--

Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at www.mrgsoft.com

"Ahmed Hashish" <a_*******@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
Dear Sir
I have a UserControl with a property called 'ConnectionString', How I
could trigger the connection string builder to allow users to generate

that
string in the property sheet.

Thanks
Ahmed

Nov 20 '05 #5

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

Similar topics

11
by: Martin Robins | last post by:
I am trying to parse a string that is similar in form to an OLEDB connection string using regular expressions; in principle it is working, but certain character combinations in the string being...
3
by: msnews.microsoft.com | last post by:
How can I call connection string (database) builder dialog?
4
by: msnews.microsoft.com | last post by:
How can I call connection string (database) builder dialog?
12
by: Tee | last post by:
String Builder & String, what's the difference. and when to use which ? Thanks.
6
by: Perin | last post by:
Hi, I am using SQL Server as a Database in my ASP.NET application. Can anyone tell me, how to store my connection string in web.config file and access it from my application. It is very urgent...
2
by: P K | last post by:
Hi, I have around 30 fields on a screen each one of which I need to validate. The idea was to have a set of messages to be displayed for all the posiible errors instead of having to show a...
2
by: Brett Wickard | last post by:
I'm having a design brain-cramp. I have an app that needs to have a connection string that can changed by the user.... (basically the same app needs to be able to talk to different databases on...
3
by: rsine | last post by:
I have searched around a little and have yet to find a naming convention for the string builder object. I really do not want to use "str" since this is for string objects and thus could be...
8
by: simonZ | last post by:
I have Function with string parameteres: public string newLine(String string1,String string2,String string3){ StringBuilder webLine = new StringBuilder(); webLine.Append("<tD nowrap>" +...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.