Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Activex Tab Problem

aoa,

1. I have made axtivex(textbox) and place in a project form1 (3times) but here is a tab problem. cursor not moved to other text box(self made activex).
2. i have five forms and on each form i placed 5 textboxes now i want to set its backcolour property on lostfocus and gotfocus only one time in project.(remember i have my own textbox enhanced activex(textbox) and it has a method )

Function colorLF(mycolor as varient) as varient(in activex coding)
color=mycolor
end function

in textbox lostfocus event (in active x)
textbox1.backcolor=color

now how i call this function in my project only one time for changes all my textboxes


Comments

  • Termc1224Termc1224 Member Posts: 84
    : aoa,
    :
    : 1. I have made axtivex(textbox) and place in a project form1 (3times) but here is a tab problem. cursor not moved to other text box(self made activex).
    : 2. i have five forms and on each form i placed 5 textboxes now i want to set its backcolour property on lostfocus and gotfocus only one time in project.(remember i have my own textbox enhanced activex(textbox) and it has a method )
    :
    : Function colorLF(mycolor as varient) as varient(in activex coding)
    : color=mycolor
    : end function
    :
    : in textbox lostfocus event (in active x)
    : textbox1.backcolor=color
    :
    : now how i call this function in my project only one time for changes all my textboxes
    :
    :
    : Use this in lostfocus and gotfocus event
    dim con as control
    for each con in me
    if type of con is textbox then
    con.backcolor = color
    end if
    next


Sign In or Register to comment.