Click here to Skip to main content
16,017,608 members
Home / Discussions / C#
   

C#

 
GeneralRe: Color GroupBox Pin
mjelten24-Jul-07 23:12
mjelten24-Jul-07 23:12 
AnswerRe: Color GroupBox Pin
Martin#24-Jul-07 23:18
Martin#24-Jul-07 23:18 
GeneralRe: Color GroupBox Pin
Jon Hulatt24-Jul-07 23:29
Jon Hulatt24-Jul-07 23:29 
GeneralRe: Color GroupBox Pin
mjelten24-Jul-07 23:56
mjelten24-Jul-07 23:56 
GeneralRe: Color GroupBox Pin
Jon Hulatt25-Jul-07 0:33
Jon Hulatt25-Jul-07 0:33 
GeneralRe: Color GroupBox Pin
mjelten25-Jul-07 1:12
mjelten25-Jul-07 1:12 
QuestionHow to set Window title from different thread? Pin
AghaKhan24-Jul-07 21:25
AghaKhan24-Jul-07 21:25 
AnswerRe: How to set Window title from different thread? Pin
il_masacratore24-Jul-07 21:36
il_masacratore24-Jul-07 21:36 
You have to use deletegates. To use it you must declare a void method that accepts a string as a input parameter, and a delegate with the same parameters and return.

Then, when you want change the text you must create the previous created delegate and pass the method name as parameter. Then you call form's "Invoke" with the delegate the string (inside of an array of objects) if Invoking is required.


//Declarations <br />
protected delegate void ChangeFormTextCallback(string pText);<br />
<br />
public void ChangeFormText(string pText)<br />
{<br />
this.Text = pText;<br />
}<br />
<br />
//Use<br />
<br />
...<br />
<br />
ChangeFormTextCallback oCllBack = new ChangeFormTextCallback(ChangeFormText);<br />
if (this.InvokeRequired)<br />
{<br />
    this.Invoke(oCllBack , new object[] {"New Text"});<br />
}<br />
else<br />
    voControl.Text = vsTexto;<br />
...

GeneralRe: How to set Window title from different thread? Pin
AghaKhan24-Jul-07 22:12
AghaKhan24-Jul-07 22:12 
GeneralRe: How to set Window title from different thread? Pin
blakey40425-Jul-07 2:37
blakey40425-Jul-07 2:37 
QuestionAppDomain.Unload() problem Pin
cellardoor071624-Jul-07 21:06
cellardoor071624-Jul-07 21:06 
AnswerRe: AppDomain.Unload() problem Pin
Luc Pattyn24-Jul-07 22:20
sitebuilderLuc Pattyn24-Jul-07 22:20 
QuestionCan't We pass Parameterized Method to a thread?? Pin
Ron.S24-Jul-07 20:47
Ron.S24-Jul-07 20:47 
AnswerRe: Can't We pass Parameterized Method to a thread?? [modified] Pin
ekynox24-Jul-07 21:15
ekynox24-Jul-07 21:15 
GeneralRe: Can't We pass Parameterized Method to a thread?? Pin
Ron.S24-Jul-07 22:57
Ron.S24-Jul-07 22:57 
QuestionHow to configure the file name & location in app.config file in Asp.net 2.0 Pin
liyakhat_shahid24-Jul-07 19:47
liyakhat_shahid24-Jul-07 19:47 
AnswerRe: How to configure the file name &amp; location in app.config file in Asp.net 2.0 Pin
WillemM24-Jul-07 23:37
WillemM24-Jul-07 23:37 
QuestionHow to make the form hide when click MinimizeBox? Pin
jason_mf24-Jul-07 19:36
jason_mf24-Jul-07 19:36 
AnswerRe: How to make the form hide when click MinimizeBox? Pin
PandemoniumPasha24-Jul-07 20:08
PandemoniumPasha24-Jul-07 20:08 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
jason_mf24-Jul-07 20:26
jason_mf24-Jul-07 20:26 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
Christian Graus24-Jul-07 20:45
protectorChristian Graus24-Jul-07 20:45 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
jason_mf24-Jul-07 20:58
jason_mf24-Jul-07 20:58 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
sam#24-Jul-07 20:56
sam#24-Jul-07 20:56 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
jason_mf24-Jul-07 20:58
jason_mf24-Jul-07 20:58 
GeneralRe: How to make the form hide when click MinimizeBox? Pin
Martin#24-Jul-07 21:00
Martin#24-Jul-07 21:00 

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.