Hi Scott,
Thanks for your help. I already got the timer to work in it, quite similar
to your approach.
Tx again,
Bernie
"Scott Swigart" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Do "File | New | Project"
> Select "Windows Control Library"
>
> You'll get a control surface that looks like a form, minus the border.
> Put any controls you want on this, including a ComboBox and Timer.
>
> Also, if you really just want to inherit ComboBox with your control, then
> you can create the timer programmatically:
>
> Protected tick As New Timer
>
> Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> tick.Enabled = True
> tick.Interval = 1000
> AddHandler tick.Tick, AddressOf Timer_Tick
> End Sub
>
> Public Sub Timer_Tick(ByVal sender As Object, ByVal e As EventArgs)
> Debug.WriteLine("Tick, Tock")
> End Sub
>
> - Scott Swigart
>
>
> "Bernie Yaeger" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I'm trying to create a custom control that contains both a combobox and a
>> timer. Any ideas how I can accomplish this? I do know how to create a
>> 'one control' inheritance control, but when I add the timer, it compiles
>> but I don't get its functionality - and it's not ticking, as I want it
>> to.
>>
>> Thanks for any help.
>>
>> Bernie Yaeger
>>
>
>
|