G
Guest
Can a vb.net form contain a subform? If yes, how is this done?
Maybe I am going about my issue the wrong way. I start an asynchronous
procedure from my main form - invoke a routine on a mainframe computer. Then
I am polling every 10 seconds (timer1) to see if the external program has
generated a data result set for my form to retrieve. In the meantime, on the
same main form I have a series a little labels that blink on/off in a series
for visual status that the program is polling (using a separate timer -
timer2). Well, everytime the program polls - the labels halt their blinking
for a few seconds. I want the labels to keep blinking during the polling. I
tried running timer2 in a separate thread object but that did not work - as I
could not turn timer2 on in the separate thread. So I am thinking to place
the labels in a subform with its own timer that is always running and I can
set a boolean var to turn the labels on and off when the polling stops. So,
is there a way to place a subform on a main form? Or -- how can I set
timer2.Enabled = True in a separate thread on the same form? I thought
timers were on their own threads.
Thanks
Maybe I am going about my issue the wrong way. I start an asynchronous
procedure from my main form - invoke a routine on a mainframe computer. Then
I am polling every 10 seconds (timer1) to see if the external program has
generated a data result set for my form to retrieve. In the meantime, on the
same main form I have a series a little labels that blink on/off in a series
for visual status that the program is polling (using a separate timer -
timer2). Well, everytime the program polls - the labels halt their blinking
for a few seconds. I want the labels to keep blinking during the polling. I
tried running timer2 in a separate thread object but that did not work - as I
could not turn timer2 on in the separate thread. So I am thinking to place
the labels in a subform with its own timer that is always running and I can
set a boolean var to turn the labels on and off when the polling stops. So,
is there a way to place a subform on a main form? Or -- how can I set
timer2.Enabled = True in a separate thread on the same form? I thought
timers were on their own threads.
Thanks