You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

swissmade

Beginner

  • "swissmade" is male
  • "swissmade" started this thread

Posts: 46

Date of registration: Aug 4th 2011

Location: The Netherlands

Occupation: Old Fasion Programmer

Hobbies: Play Music with my Bass

  • Send private message

1

Friday, September 23rd 2011, 3:13pm

Usercontrol wont Close and unload

Hi all,

Maybe somebody has any idea about this.
I have a Sub form with a usercontrol. In the usercontrol is also a Timer.
When I close the subform the usercontrol and timer is still running.
I have no dispose option

I hope sombody can help. ?(

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Saturday, September 24th 2011, 12:35pm

Haven't tried it out yet (I am again on Linux), but for Java existing for this the method finalize().

So try out to create a

Jabaco Source

1
2
3
Sub finalize()
  Timer1.Enabled=False 
End Sub
in your Usercontrol.

swissmade

Beginner

  • "swissmade" is male
  • "swissmade" started this thread

Posts: 46

Date of registration: Aug 4th 2011

Location: The Netherlands

Occupation: Old Fasion Programmer

Hobbies: Play Music with my Bass

  • Send private message

3

Saturday, September 24th 2011, 1:29pm

Hi theuserbl,

I have Solve this with some checks.
The crazy thing is that the sub Usercontrol_unload never is used even If I use unload me.

Thanks for your help. :thumbup:

Rate this thread
WoltLab Burning Board