I have two forms (in c# 2005) .....
the first form has main functionality of the application ... and the second one has loading image (loading gif) ...
I create the second form just to show it when the user click generate button ....
I put the code generation serial in loading gif form ....
now the problem, is that the loading gif loading its animation (freezed) ...
I have done threading but it gives me cross thread problem, I search in internet, so I found delegate for event handling,,,, I use delegate with thread, but its freezed again ..
so how can I remove freezing from loading gif ??
any help ??
here the code snippet of loading gif form:
private void GenIDAndActivateOnline_Load(object sender, EventArgs e)
LicChecking = new Thread(new ThreadStart(ExecuteLicCheck));
public void ExecuteLicCheck()
LicCheckingDelegate LicDelegate = new LicCheckingDelegate(ExecuteLicCheck);
if (!Installer_API.GenID(serialNo, "id_gen.exe", out hardwareId))
hardwareId = null;
if (!Installer_API.ActivateOnline(hardwareId, out lic))
lic = null;