Click here to Skip to main content
15,889,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: db commant not working Pin
asha_s5-May-08 2:52
asha_s5-May-08 2:52 
QuestionCustomizing Setup Project in Visual Studio.NET 2005 Pin
Jats_4ru4-May-08 23:05
Jats_4ru4-May-08 23:05 
AnswerRe: Customizing Setup Project in Visual Studio.NET 2005 Pin
Dave Kreskowiak5-May-08 2:45
mveDave Kreskowiak5-May-08 2:45 
QuestionTreeView Pin
Socheat.Net4-May-08 22:34
Socheat.Net4-May-08 22:34 
AnswerRe: TreeView Pin
Christian Graus4-May-08 22:56
protectorChristian Graus4-May-08 22:56 
AnswerRe: TreeView Pin
Mycroft Holmes5-May-08 2:58
professionalMycroft Holmes5-May-08 2:58 
QuestionCreating a global network connection to MySQL Database Pin
drexler_kk4-May-08 22:32
drexler_kk4-May-08 22:32 
AnswerRe: Creating a global network connection to MySQL Database Pin
Xeqtr5-May-08 0:39
Xeqtr5-May-08 0:39 
At first you should add connection string to project settings:
Projct->Properties->Settings
There you should fill 4 colums:1."Name"(name of connection string) 2."Type"(you should select "Connection String" 3.Scope ("Application") and last 4."Value" (You should write connection string like this: Server=localhost;Database=;Uid=root;Pwd=; )
Then you sholud declare this connection string in your project.
For example:

<br />
 Dim mMySQLConnectionString1 As String = My.Settings.MySQLConnectionString '"MySQLConnectionString" this is a name of connection string<br />
<br />
    Public Overloads Sub DataLoading(ByRef pDataGridViewControl As DataGridView, ByRef pRecordCountInt32 As Int32, ByRef pErrorMessageString As String)<br />
<br />
Try<br />
            Using mMySqlConnection As New MySqlConnection(mMySQLConnectionString1)<br />
                mMySqlConnection.Open()<br />
                Using mMySqlCommand As New MySqlCommand<br />
                    With mMySqlCommand<br />
                        .Connection = mMySqlConnection<br />
                        .CommandType = CommandType.Text<br />
                        .CommandText = "SELECT   FROM `table`"<br />
                      <br />
                    End With<br />
  End Using<br />
          End Using<br />
 Catch exError As Exception<br />
            pErrorMessageString = exError.Message<br />
        End Try<br />
    End Sub<br />

By this fragment of code other users can connect to your DB.
QuestionRe: Creating a global network connection to MySQL Database Pin
drexler_kk5-May-08 16:44
drexler_kk5-May-08 16:44 
QuestionThe type initializer for 'Application.DatabaseInit' threw an exception. Pin
nishkarsh_k4-May-08 20:49
nishkarsh_k4-May-08 20:49 
AnswerRe: The type initializer for 'Application.DatabaseInit' threw an exception. Pin
Mycroft Holmes4-May-08 21:45
professionalMycroft Holmes4-May-08 21:45 
QuestionMissing Images while printing in vb.net Pin
VB 8.04-May-08 20:39
VB 8.04-May-08 20:39 
QuestionWhere clause Pin
Tauseef A4-May-08 17:31
Tauseef A4-May-08 17:31 
AnswerRe: Where clause Pin
Christian Graus4-May-08 17:34
protectorChristian Graus4-May-08 17:34 
Questionselect statement problem Pin
KARFER4-May-08 9:01
KARFER4-May-08 9:01 
RantRe: select statement problem Pin
Smithers-Jones4-May-08 11:32
Smithers-Jones4-May-08 11:32 
GeneralRe: select statement problem Pin
Mycroft Holmes4-May-08 21:51
professionalMycroft Holmes4-May-08 21:51 
AnswerRe: select statement problem Pin
Christian Graus4-May-08 11:47
protectorChristian Graus4-May-08 11:47 
Questiondynamic array Pin
asha_s4-May-08 7:22
asha_s4-May-08 7:22 
AnswerRe: dynamic array Pin
Scott Roberts4-May-08 8:25
Scott Roberts4-May-08 8:25 
GeneralRe: dynamic array Pin
asha_s5-May-08 1:25
asha_s5-May-08 1:25 
Questionhow to pass date to access database from vb.net Pin
meghanaVishwa4-May-08 5:21
meghanaVishwa4-May-08 5:21 
AnswerRe: how to pass date to access database from vb.net Pin
Christian Graus4-May-08 11:48
protectorChristian Graus4-May-08 11:48 
QuestionCheck for File Busy Before Copying Pin
Scott Roberts3-May-08 18:05
Scott Roberts3-May-08 18:05 
AnswerRe: Check for File Busy Before Copying Pin
Luc Pattyn3-May-08 23:15
sitebuilderLuc Pattyn3-May-08 23:15 

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.