Thread on Class where super Class is Control

Hi, i have a little problem

i need to call a method into a class that its superclass is Control

exemple :

[code]//fetch data from a db

dim r as recordset = TheClass.findAllData(Database)

while not r.eof
Dim d as new TheClass®
something = d.dataxyz
r.movenext
end while[/code]

my problem, Thread detect an Access to UI. In that case, it does, it’s just because the super is Control (for other purpose)

is there a way to temporary remove the super control in this particular use ?

perhaps move the function out of the control into a public module, and have the control and the thread both access that instead