I am currently trying out a code to generate image from html pages and i was trying with the code from bitmap webbrowser.
some how i just keep on getting error when the following method run for second times (i guess the threading is the main issue). i am using .net 3.5 by the way.
`
public Bitmap GenerateThumbnail()
{
Thread thread = new Thread(new ThreadStart(GenerateThumbnailInteral));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
return ThumbnailImage;
}
Edit : not looped
I just keep on create the thumbnail instant ... For every HTML pages, the code will call a new thumbnail...