Click here to Skip to main content
15,891,372 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB6 app loses mojo - runs 3 times slower Pin
Dr Memory14-Sep-16 20:07
Dr Memory14-Sep-16 20:07 
AnswerRe: VB6 app loses mojo - runs 3 times slower Pin
Mycroft Holmes16-Sep-16 13:31
professionalMycroft Holmes16-Sep-16 13:31 
GeneralRe: VB6 app loses mojo - runs 3 times slower Pin
Dr Memory16-Sep-16 19:22
Dr Memory16-Sep-16 19:22 
GeneralRe: VB6 app loses mojo - runs 3 times slower Pin
Dave Kreskowiak17-Sep-16 4:00
mveDave Kreskowiak17-Sep-16 4:00 
GeneralRe: VB6 app loses mojo - runs 3 times slower Pin
Mycroft Holmes17-Sep-16 11:16
professionalMycroft Holmes17-Sep-16 11:16 
RantRe: VB6 app loses mojo - runs 3 times slower Pin
Dr Memory17-Sep-16 11:40
Dr Memory17-Sep-16 11:40 
GeneralRe: VB6 app loses mojo - runs 3 times slower Pin
Eddy Vluggen18-Sep-16 0:57
professionalEddy Vluggen18-Sep-16 0:57 
AnswerRecord not Display in Datagridview1 Pin
Computechsoft14-Sep-16 5:03
Computechsoft14-Sep-16 5:03 
Public Class Form6

    Public Property ServerName() As String
    Public Property DatabaseName() As String
    Public Property Login() As String
    Public Property Password() As String

    Private Function SqlConn(Optional ByVal timeout As Integer = 0) As String

        Dim sqlBuilder As New SqlClient.SqlConnectionStringBuilder()

        ' Set the properties for the data source. 
        sqlBuilder.DataSource = "Softlinks-PC"
        sqlBuilder.InitialCatalog = "RMS"
        sqlBuilder.IntegratedSecurity = False
        sqlBuilder.MultipleActiveResultSets = True

        sqlBuilder.UserID = "Softlinks-PC\Softlinks"
        sqlBuilder.Password = ""
        If timeout > 0 Then
            sqlBuilder.ConnectTimeout = timeout
        End If

        Return sqlBuilder.ToString
    End Function

    Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Call SqlConn()
        Dim sql As String
        Dim ds = New DataSet
        Dim tables = ds.Tables
        Dim da = New SqlClient.SqlDataAdapter

        Sql = "SELECT * FROM Productitem"
        da.Fill(ds, "Productitem")
        'Dim view As New DataView(tables(0))
        Dim view As New DataView(ds.Tables(0))
        DataGridView1.DataSource = view
    End Sub

End Class

QuestionPanel in a Form loses contents Pin
Hurricane300011-Sep-16 7:57
Hurricane300011-Sep-16 7:57 
AnswerRe: Panel in a Form loses contents Pin
Eddy Vluggen11-Sep-16 10:09
professionalEddy Vluggen11-Sep-16 10:09 
GeneralRe: Panel in a Form loses contents Pin
Hurricane300011-Sep-16 10:45
Hurricane300011-Sep-16 10:45 
GeneralRe: Panel in a Form loses contents Pin
Dave Kreskowiak11-Sep-16 11:06
mveDave Kreskowiak11-Sep-16 11:06 
GeneralRe: Panel in a Form loses contents Pin
Hurricane300013-Sep-16 12:54
Hurricane300013-Sep-16 12:54 
QuestionRevolutions-pack-like explorer? Pin
DutchComputerKid1-Sep-16 23:59
DutchComputerKid1-Sep-16 23:59 
AnswerRe: Revolutions-pack-like explorer? Pin
NotPolitcallyCorrect2-Sep-16 4:13
NotPolitcallyCorrect2-Sep-16 4:13 
GeneralRe: Revolutions-pack-like explorer? Pin
ZurdoDev14-Sep-16 5:44
professionalZurdoDev14-Sep-16 5:44 
GeneralRe: Revolutions-pack-like explorer? Pin
NotPolitcallyCorrect14-Sep-16 7:14
NotPolitcallyCorrect14-Sep-16 7:14 
GeneralRe: Revolutions-pack-like explorer? Pin
ZurdoDev14-Sep-16 7:18
professionalZurdoDev14-Sep-16 7:18 
AnswerRe: Revolutions-pack-like explorer? Pin
Eddy Vluggen2-Sep-16 4:26
professionalEddy Vluggen2-Sep-16 4:26 
GeneralRe: Revolutions-pack-like explorer? Pin
DutchComputerKid4-Sep-16 21:32
DutchComputerKid4-Sep-16 21:32 
GeneralRe: Revolutions-pack-like explorer? Pin
Chris Quinn4-Sep-16 21:40
Chris Quinn4-Sep-16 21:40 
GeneralRe: Revolutions-pack-like explorer? Pin
DutchComputerKid4-Sep-16 23:05
DutchComputerKid4-Sep-16 23:05 
GeneralRe: Revolutions-pack-like explorer? Pin
Mycroft Holmes4-Sep-16 22:52
professionalMycroft Holmes4-Sep-16 22:52 
GeneralRe: Revolutions-pack-like explorer? Pin
DutchComputerKid4-Sep-16 23:08
DutchComputerKid4-Sep-16 23:08 
GeneralRe: Revolutions-pack-like explorer? Pin
Richard MacCutchan5-Sep-16 0:18
mveRichard MacCutchan5-Sep-16 0:18 

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.