Click here to Skip to main content
15,900,673 members
Home / Discussions / C#
   

C#

 
QuestionGetting Pixel Value Pin
Saikek15-Apr-07 10:27
Saikek15-Apr-07 10:27 
AnswerRe: Getting Pixel Value Pin
Christian Graus15-Apr-07 11:14
protectorChristian Graus15-Apr-07 11:14 
QuestionProblem with ContextMenu? [modified] Pin
Khoramdin15-Apr-07 10:18
Khoramdin15-Apr-07 10:18 
AnswerRe: Problem with ContextMenu? Pin
Judah Gabriel Himango17-Apr-07 3:41
sponsorJudah Gabriel Himango17-Apr-07 3:41 
QuestionReading Data From Database Pin
microuser_200015-Apr-07 9:20
microuser_200015-Apr-07 9:20 
AnswerRe: Reading Data From Database Pin
Christian Graus15-Apr-07 11:15
protectorChristian Graus15-Apr-07 11:15 
QuestionWebBrowser 2.0 in Multithread application Pin
cardy115-Apr-07 8:55
cardy115-Apr-07 8:55 
AnswerRe: WebBrowser 2.0 in Multithread application Pin
Luc Pattyn15-Apr-07 9:26
sitebuilderLuc Pattyn15-Apr-07 9:26 
Hi,

the WebBrowser documentation states:
The WebBrowser control is resource-intensive. Be sure to call the Dispose method when you
are finished using the control to ensure that all resources are released in a timely
fashion. You must call the Dispose method on the same thread that attached the events,
which should always be the message or user-interface (UI) thread.

So you should not create additional threads for this. Instead, create as many forms as
you want, keep them alive (e.g. by adding them to an ArrayList), and use Show()
instead of ShowDialog(). The forms will remain open until you Close() them (after
which you should remove them from the ArrayList, so they can be garbage collected).

Smile | :)

Luc Pattyn

[My Articles]

AnswerRe: WebBrowser 2.0 in Multithread application Pin
cardy115-Apr-07 10:18
cardy115-Apr-07 10:18 
GeneralRe: WebBrowser 2.0 in Multithread application Pin
Luc Pattyn15-Apr-07 11:35
sitebuilderLuc Pattyn15-Apr-07 11:35 
AnswerRe: WebBrowser 2.0 in Multithread application Pin
cardy125-Apr-07 3:41
cardy125-Apr-07 3:41 
QuestionHow to open last form on startup Pin
AndrusM15-Apr-07 8:07
AndrusM15-Apr-07 8:07 
AnswerRe: How to open last form on startup Pin
Christian Graus15-Apr-07 11:28
protectorChristian Graus15-Apr-07 11:28 
GeneralRe: How to open last form on startup Pin
AndrusM15-Apr-07 11:52
AndrusM15-Apr-07 11:52 
GeneralRe: How to open last form on startup Pin
Christian Graus15-Apr-07 12:02
protectorChristian Graus15-Apr-07 12:02 
GeneralRe: How to open last form on startup Pin
AndrusM15-Apr-07 12:12
AndrusM15-Apr-07 12:12 
GeneralRe: How to open last form on startup Pin
Christian Graus15-Apr-07 12:21
protectorChristian Graus15-Apr-07 12:21 
GeneralRe: How to open last form on startup Pin
AndrusM16-Apr-07 5:05
AndrusM16-Apr-07 5:05 
QuestionC# Asynchronous Sockets Pin
snapplegil15-Apr-07 7:49
snapplegil15-Apr-07 7:49 
AnswerRe: C# Asynchronous Sockets Pin
pbraun15-Apr-07 12:36
pbraun15-Apr-07 12:36 
GeneralRe: C# Asynchronous Sockets Pin
snapplegil15-Apr-07 17:15
snapplegil15-Apr-07 17:15 
GeneralRe: C# Asynchronous Sockets Pin
pbraun15-Apr-07 17:29
pbraun15-Apr-07 17:29 
Questiondrag & drop problem Pin
xtremetechnology15-Apr-07 6:23
xtremetechnology15-Apr-07 6:23 
AnswerRe: drag & drop problem Pin
Luc Pattyn15-Apr-07 8:54
sitebuilderLuc Pattyn15-Apr-07 8:54 
GeneralRe: drag & drop problem Pin
xtremetechnology15-Apr-07 9:05
xtremetechnology15-Apr-07 9:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.