Post by ranilwallace on Oct 8, 2015 8:44:16 GMT 10
Hi. I have a list of forms and what i want is to add a custom conrol i made to a flowlayoutpanel whenever a new form is added to the list. But the thing is, how do i do this in a timer? I was trying some code last night but it wasnt working. the control kept flickering..
Ranil, Lauve Tech
|
|
Post by Prezence on Oct 8, 2015 10:31:35 GMT 10
Basically have a integer variable called formCount and on the timer, if Application.OpenForms.count <> formCount then dispose everything in the flowpanel and parse the openforms.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by ranilwallace on Oct 8, 2015 10:35:51 GMT 10
the form count variable would be equal to the list of forms count?
Ranil, Lauve Tech
|
|
Post by ranilwallace on Oct 8, 2015 10:36:42 GMT 10
can u give me a code snippet?
Ranil, Lauve Tech
|
|
Post by Prezence on Oct 8, 2015 10:59:57 GMT 10
If formcount <> application.openforms.count GetTheForms() formcount = application.openforms.count end if
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by ranilwallace on Oct 8, 2015 11:14:22 GMT 10
I'll try that
Ranil, Lauve Tech
|
|
Post by ranilwallace on Oct 11, 2015 11:28:43 GMT 10
I tried that. It worked. Now I want to remove the control when the form closes..
Ranil, Lauve Tech
|
|
Post by ranilwallace on Oct 11, 2015 11:53:02 GMT 10
Oh never mind.. Thanks guys
Ranil, Lauve Tech
|
|
Post by Nathan Lecompte on Oct 11, 2015 22:11:36 GMT 10
Psst: If you're question has been answered, press the tick next to the post which answered your question
|
|
Post by ranilwallace on Oct 11, 2015 23:19:45 GMT 10
Its soo weird i dont see that tick..
Ranil, Lauve Tech
|
|