Click here to Skip to main content
15,911,715 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: AllowNavigation equivalent for DataGridView Pin
Kschuler19-Feb-08 10:45
Kschuler19-Feb-08 10:45 
GeneralRe: AllowNavigation equivalent for DataGridView Pin
keniagm19-Feb-08 11:32
keniagm19-Feb-08 11:32 
QuestionHow to ignore the input field Pin
Tram8819-Feb-08 8:23
Tram8819-Feb-08 8:23 
AnswerRe: How to ignore the input field Pin
Kschuler19-Feb-08 10:43
Kschuler19-Feb-08 10:43 
Generalcommand prompt build web deployment and vs project 2005 Pin
Travelthrprog19-Feb-08 8:18
Travelthrprog19-Feb-08 8:18 
GeneralRe: command prompt build web deployment and vs project 2005 Pin
Dave Kreskowiak20-Feb-08 5:18
mveDave Kreskowiak20-Feb-08 5:18 
GeneralRe: command prompt build web deployment and vs project 2005 Pin
Travelthrprog20-Feb-08 8:46
Travelthrprog20-Feb-08 8:46 
Questionhow to catch events of checkboxes added at runtime [modified] Pin
lesstraveled19-Feb-08 6:56
lesstraveled19-Feb-08 6:56 
i have a form that is being populated with checkboxes added at runtime. VB6.

If Not rsEMPRTYPESSORTED.EOF Then rsEMPRTYPESSORTED.MoveFirst
Do While Not rsEMPRTYPESSORTED.EOF
    cIndx = cIndx + 1

    ctrlName = "DynChkBx" & CStr(cIndx)
    prevctrlName = "DynChkBx" & CStr(cIndx - 1)

    Set chkObject = frmEmployer.Controls.Add("VB.CheckBox", ctrlName, Frame3)
    Set prevtxtObject = frmEmployer.Controls(prevctrlName)

    With chkObject
        .Enabled = False
        .Visible = True
        .Width = 2800
        .Height = 255
        .MaskColor = 1
        .BackColor = &H8000000F
        If cIndx = 1 Then
            .Visible = True
            .Caption = rsEMPRTYPESSORTED!Name
            .Top = 10
            .Left = 10
        Else
            .Visible = True
            .Caption = rsEMPRTYPESSORTED!Name
            .Top = prevtxtObject.Top + prevtxtObject.Height
            .Left = 0
        End If
    End With
    rsEMPRTYPESSORTED.MoveNext
Loop


As you can see i don't know the number of controls or the names.

what i need is to attach events to these controls.
I have tried the withevents but as you know it only works with the last control and cannot be use in an array.
all the controls are intrinsic therefore VBControlExtender is out.

modified on Tuesday, February 19, 2008 1:12 PM

GeneralRe: how to catch events of checkboxes added at runtime Pin
Dave Kreskowiak19-Feb-08 8:46
mveDave Kreskowiak19-Feb-08 8:46 
GeneralRe: how to catch events of checkboxes added at runtime Pin
lesstraveled19-Feb-08 8:54
lesstraveled19-Feb-08 8:54 
GeneralRe: how to catch events of checkboxes added at runtime Pin
nlarson1119-Feb-08 11:07
nlarson1119-Feb-08 11:07 
GeneralRe: how to catch events of checkboxes added at runtime Pin
Dave Kreskowiak19-Feb-08 11:10
mveDave Kreskowiak19-Feb-08 11:10 
QuestionRe: how to catch events of checkboxes added at runtime Pin
lesstraveled20-Feb-08 4:07
lesstraveled20-Feb-08 4:07 
GeneralRe: how to catch events of checkboxes added at runtime Pin
Dave Kreskowiak20-Feb-08 5:14
mveDave Kreskowiak20-Feb-08 5:14 
GeneralRe: how to catch events of checkboxes added at runtime Pin
nlarson1120-Feb-08 5:18
nlarson1120-Feb-08 5:18 
AnswerRe: how to catch events of checkboxes added at runtime Pin
lesstraveled20-Feb-08 14:18
lesstraveled20-Feb-08 14:18 
QuestionGroupBox Binding to Access Database [modified] Pin
IvanIT19-Feb-08 6:20
IvanIT19-Feb-08 6:20 
GeneralRe: GroupBox Binding to Access Database Pin
cstrader23219-Feb-08 6:26
cstrader23219-Feb-08 6:26 
GeneralRe: GroupBox Binding to Access Database Pin
IvanIT19-Feb-08 6:44
IvanIT19-Feb-08 6:44 
GeneralRe: GroupBox Binding to Access Database Pin
cstrader23219-Feb-08 6:55
cstrader23219-Feb-08 6:55 
GeneralRe: GroupBox Binding to Access Database Pin
IvanIT19-Feb-08 7:03
IvanIT19-Feb-08 7:03 
GeneralObject reference not set to an instance of an object error Pin
Aptiva Dave19-Feb-08 5:53
Aptiva Dave19-Feb-08 5:53 
GeneralRe: Object reference not set to an instance of an object error Pin
cstrader23219-Feb-08 6:06
cstrader23219-Feb-08 6:06 
GeneralRe: Object reference not set to an instance of an object error Pin
Aptiva Dave19-Feb-08 6:38
Aptiva Dave19-Feb-08 6:38 
GeneralRe: Object reference not set to an instance of an object error Pin
cstrader23219-Feb-08 6:47
cstrader23219-Feb-08 6:47 

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.