Click here to Skip to main content
15,910,277 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Excel sheet Pin
Dave Kreskowiak7-May-08 3:22
mveDave Kreskowiak7-May-08 3:22 
QuestionHow to get All Users Shared Document Path Pin
SebFromFrance6-May-08 22:30
SebFromFrance6-May-08 22:30 
AnswerRe: How to get All Users Shared Document Path Pin
Christian Graus6-May-08 22:34
protectorChristian Graus6-May-08 22:34 
QuestionFORM FOCUS PROBLEM Pin
codelinks6-May-08 21:05
codelinks6-May-08 21:05 
AnswerRe: FORM FOCUS PROBLEM Pin
Christian Graus6-May-08 21:44
protectorChristian Graus6-May-08 21:44 
QuestionThe error code is 2869 in Vista Pin
Jats_4ru6-May-08 21:00
Jats_4ru6-May-08 21:00 
QuestionRe: still need help - The error code is 2869 in Vista Pin
Jats_4ru7-May-08 2:24
Jats_4ru7-May-08 2:24 
QuestionCreate a global database connection string using VB.NET Window Form Pin
drexler_kk6-May-08 18:09
drexler_kk6-May-08 18:09 
Hello all, I'm using VB.NET 2003 Window Form to do some simple application. I found a problem on setting a global database connection string. How should I code it if this connection string might be change like from localhost to a Server or vice versa? This windom application may used MySQL or even MS SQL database for database as well. Anyone have this kind of solution here?

I read some article told me to put inside a module for this,but how can I do it?

This is my current testing connection which connected to my localhost MySQL database which is running perfectly in my development stage now.

Dim ConnString As String = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;UID=root;PASSWORD=;Option=3;Port=3399;"<br />
   Dim Objconn As New OdbcConnection(ConnString)<br />
   Dim ObjComm As New OdbcCommand


Hope someone can give me a solution here. Thank you for reading.
AnswerRe: Create a global database connection string using VB.NET Window Form Pin
Christian Graus6-May-08 18:13
protectorChristian Graus6-May-08 18:13 
QuestionRe: Create a global database connection string using VB.NET Window Form Pin
drexler_kk6-May-08 19:10
drexler_kk6-May-08 19:10 
AnswerRe: Create a global database connection string using VB.NET Window Form Pin
Christian Graus6-May-08 19:26
protectorChristian Graus6-May-08 19:26 
GeneralRe: Create a global database connection string using VB.NET Window Form Pin
drexler_kk6-May-08 19:42
drexler_kk6-May-08 19:42 
GeneralRe: Create a global database connection string using VB.NET Window Form Pin
Mycroft Holmes7-May-08 19:42
professionalMycroft Holmes7-May-08 19:42 
QuestionCalling a Stored Procedure in DB2 Pin
sagittarian6-May-08 16:39
sagittarian6-May-08 16:39 
AnswerRe: Calling a Stored Procedure in DB2 Pin
Christian Graus6-May-08 17:50
protectorChristian Graus6-May-08 17:50 
QuestionI am not sure what the correct name is that I should be using Pin
winsane6-May-08 10:58
winsane6-May-08 10:58 
AnswerRe: I am not sure what the correct name is that I should be using Pin
Christian Graus6-May-08 11:47
protectorChristian Graus6-May-08 11:47 
Questionsmall arrow at my form Pin
asha_s6-May-08 6:52
asha_s6-May-08 6:52 
AnswerRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 7:55
mveDave Kreskowiak6-May-08 7:55 
GeneralRe: small arrow at my form Pin
asha_s6-May-08 8:34
asha_s6-May-08 8:34 
GeneralRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 8:44
mveDave Kreskowiak6-May-08 8:44 
QuestionRe: small arrow at my form Pin
asha_s6-May-08 8:54
asha_s6-May-08 8:54 
AnswerRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 9:03
mveDave Kreskowiak6-May-08 9:03 
GeneralRe: small arrow at my form Pin
asha_s7-May-08 3:03
asha_s7-May-08 3:03 
QuestionDataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY6-May-08 6:08
SteveNY6-May-08 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.