Click here to Skip to main content
15,921,793 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB/SQL Question(Dave) Pin
Dave Kreskowiak20-Feb-08 5:01
mveDave Kreskowiak20-Feb-08 5:01 
AnswerRe: VB/SQL Question(Dave) Pin
Vimalsoft(Pty) Ltd21-Feb-08 1:28
professionalVimalsoft(Pty) Ltd21-Feb-08 1:28 
GeneralWord content not Properly shown in RichTextbox Pin
Rupesh Kumar Swami18-Feb-08 21:28
Rupesh Kumar Swami18-Feb-08 21:28 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Christian Graus18-Feb-08 22:03
protectorChristian Graus18-Feb-08 22:03 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Duncan Edwards Jones19-Feb-08 0:39
professionalDuncan Edwards Jones19-Feb-08 0:39 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Rupesh Kumar Swami19-Feb-08 1:32
Rupesh Kumar Swami19-Feb-08 1:32 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Dave Kreskowiak19-Feb-08 3:47
mveDave Kreskowiak19-Feb-08 3:47 
QuestionDatabinding slow [modified] Pin
Gr1mR33p3r18-Feb-08 19:44
Gr1mR33p3r18-Feb-08 19:44 
Hi guys,

I have a program using databindings bound to a dataset. Dataset sizes vary from 2000 - 10000 rows, but form loads are very slow (when filling the datasets etc).

Does anyone have some suggestions on how to speed it up? Would it be quicker to use certain datasets instead of the WHOLE dataset of the db every time? (for example only declaring and using CRMDataset.Organisation instead of just declaring CRMDataset).

Any other ideas? I need to shave a second or 2 off the form load times.

Thanx in advance

Ed Shucks | :-\

Private Sub ManageContacts_M_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        Try<br />
            Me.OrganisationTableAdapter.FillWithFullName(Me.CRMDataSet.Organisation)<br />
            Me.Vw_ContactsCoursesTableAdapter.Fill(Me.CRMDataSet.vw_ContactsCourses)<br />
            Me.ContactTableAdapter.Fill(Me.CRMDataSet.Contact)<br />
            Me.Controls.Add(Me.BindingNavigator1)<br />
<br />
'Get distinct list to populate combobox/autocomplete box<br />
            Try<br />
                For Each dr As DataRow In DH.RunQuery("Select DISTINCT Title FROM Contact WHERE Title <> '' AND Title IS NOT NULL ORDER BY Title ASC").Tables(0).Rows<br />
                    Me.TitleComboBox.Items.Add(dr("Title"))<br />
                Next<br />
            Catch<br />
                MessageBox.Show("Could not pre-populate comboboxes")<br />
                'EHC.HandleError(Err, Me)<br />
            End Try<br />
            Me.OrganisationBindingSource.Sort = "OrganisationName ASC"<br />
            DS = DH.RunQuery("Select * FROM Users WHERE Username = '" + SystemInformation.UserName + "'") 'Gets user access rights<br />
            If DS.Tables(0).Rows(0).Item("TrainingAccess") = "True" Then 'Disables button if user does not have access<br />
                Me.Button2.Visible = True<br />
            Else<br />
                Me.Button2.Visible = False<br />
            End If<br />
<br />
            Me.Vw_ContactsCoursesBindingSource1.Sort = "StartDate ASC"<br />
            Me.OrganisationBindingSource.Sort = "FullName ASC"<br />
            Me.OrganisationBindingSource.CancelEdit() 'For some reason certain user pcs require this to be reset.<br />
            Me.ContactBindingSource.CancelEdit()<br />
            Me.Vw_ContactsCoursesBindingSource1.CancelEdit()<br />
        Catch err As Exception<br />
            Dim EHC As New ErrorHandlerClass<br />
            EHC.HandleError(err, Me)<br />
        End Try<br />
    End Sub


modified on Tuesday, February 19, 2008 3:08 AM

GeneralRe: Databinding slow Pin
Dave Kreskowiak19-Feb-08 3:45
mveDave Kreskowiak19-Feb-08 3:45 
Generalload controls in a tab control at runtime Pin
AAGTHosting18-Feb-08 11:39
AAGTHosting18-Feb-08 11:39 
GeneralRe: load controls in a tab control at runtime Pin
Christian Graus18-Feb-08 15:44
protectorChristian Graus18-Feb-08 15:44 
GeneralRe: load controls in a tab control at runtime Pin
AAGTHosting18-Feb-08 17:37
AAGTHosting18-Feb-08 17:37 
GeneralRe: load controls in a tab control at runtime Pin
Christian Graus18-Feb-08 17:38
protectorChristian Graus18-Feb-08 17:38 
GeneralTrouble with ChangeStartMode in InvokeMethod Pin
Matthew Calabresi18-Feb-08 9:24
Matthew Calabresi18-Feb-08 9:24 
GeneralNested DataGridView Problem Pin
ccotton33318-Feb-08 8:17
ccotton33318-Feb-08 8:17 
Questioncall DB2 stored procedure? Pin
jchigg200018-Feb-08 4:33
jchigg200018-Feb-08 4:33 
QuestionIntegrating flash 8 to VB.NET Pin
rcryptified18-Feb-08 4:29
rcryptified18-Feb-08 4:29 
GeneralRe: Integrating flash 8 to VB.NET Pin
Dave Kreskowiak19-Feb-08 3:29
mveDave Kreskowiak19-Feb-08 3:29 
Questionhow do you create a primary key through code in vb.net Pin
imonfiredammit18-Feb-08 4:26
imonfiredammit18-Feb-08 4:26 
AnswerRe: how do you create a primary key through code in vb.net Pin
cstrader23218-Feb-08 5:26
cstrader23218-Feb-08 5:26 
GeneralRe: how do you create a primary key through code in vb.net Pin
imonfiredammit18-Feb-08 7:33
imonfiredammit18-Feb-08 7:33 
AnswerRe: how do you create a primary key through code in vb.net Pin
Dave Kreskowiak19-Feb-08 3:24
mveDave Kreskowiak19-Feb-08 3:24 
QuestionHow to extract the list of exe paths of all installed programs(WIN XP) Pin
Gjm18-Feb-08 3:27
Gjm18-Feb-08 3:27 
GeneralRe: How to extract the list of exe paths of all installed programs(WIN XP) Pin
Dave Kreskowiak19-Feb-08 3:19
mveDave Kreskowiak19-Feb-08 3:19 
Generalrandom numbers Pin
bapu288918-Feb-08 3:19
bapu288918-Feb-08 3:19 

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.