Form load not fully executed !

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jius
    New Member
    • Apr 2010
    • 1

    #1

    Form load not fully executed !

    Hey, i got this window is in an mdi form and the form_load event is not fully executed, im on window 7 x64 VB 2008. Here is the code of the form load event
    Code:
    Private Sub frmGestion_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
            bd.connexion("TacoBD.mdb")
            bd.ChargerDataset("tblModelAutoLuxe", "SELECT * FROM tblModelAutoLuxe")
    
            For ctr As Integer = 0 To bd.dsTaco.Tables(0).Rows.Count - 1
                lstVehiculesLuxe.Items.Add(bd.dsTaco.Tables(0).Rows(ctr).Item(0))
            Next
            bd.ChargerMarques("tblModelAuto")
            bd.Deconnexion()
            For ctr As Integer = 0 To bd.dsMarques.Tables(0).Rows.Count - 1
                lstVehicules.Items.AddRange(bd.dsMarques.Tables(0).Rows(ctr).ItemArray)
            Next
            For ctr As Integer = 0 To lstVehicules.Items.Count - 1
                If IsDBNull(lstVehicules.Items(ctr)) Then
                    lstVehicules.Items.Remove(lstVehicules.Items(ctr))
                End If
            Next
    
        Initialiser()
    End Sub
    The sub Initialiser is just not read. It stop just before the Initialiser().

    Thanks

    Mathieu
    Last edited by Frinavale; May 4 '10, 03:21 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What bd?
    Have you tried stepping through your application to see where/why it fails?

    Comment

    Working...