Click here to Skip to main content
15,913,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
Giorgi Dalakishvili15-Oct-08 6:40
mentorGiorgi Dalakishvili15-Oct-08 6:40 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
nesfrank15-Oct-08 7:51
nesfrank15-Oct-08 7:51 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
Dan Neely15-Oct-08 7:09
Dan Neely15-Oct-08 7:09 
GeneralRe: is it such a thing LinkedLists in C# ? Pin
nesfrank15-Oct-08 7:50
nesfrank15-Oct-08 7:50 
QuestionProblems of losing handle to stdcall-api from C#-DLL Pin
J. Holzer15-Oct-08 3:29
J. Holzer15-Oct-08 3:29 
QuestionEnable/disable buttons in Toolbar Pin
kanchoette15-Oct-08 3:24
kanchoette15-Oct-08 3:24 
AnswerRe: Enable/disable buttons in Toolbar Pin
Giorgi Dalakishvili15-Oct-08 3:29
mentorGiorgi Dalakishvili15-Oct-08 3:29 
QuestionThreads and Form Controls Pin
Programm3r15-Oct-08 2:41
Programm3r15-Oct-08 2:41 
Hi all,

If I try and set some of the properties of a textbox for example, within the thread I receive the following error: cross-thread operation not valid. I understand why this is happening so my question ...
I would like to know if there is another way of setting / getting form control properties within a thread instead of making use of the BeginInvoke() method.

I.e:
public delegate void InvokeDelegate();

private void Invoke_Click(object sender, EventArgs e)
{
   myTextBox.BeginInvoke(new InvokeDelegate(InvokeMethod));
}
public void InvokeMethod()
{
   myTextBox.Text = "Executed the given delegate";
}


Many thanks in advance
Kind regards,



The only programmers that are better those C# programmers are those who code in 1's and 0's Green Alien | [Alien]



Smile | :) Programm3r

My Blog: ^_^

AnswerRe: Threads and Form Controls Pin
Giorgi Dalakishvili15-Oct-08 2:49
mentorGiorgi Dalakishvili15-Oct-08 2:49 
GeneralRe: Threads and Form Controls Pin
Programm3r15-Oct-08 2:58
Programm3r15-Oct-08 2:58 
GeneralRe: Threads and Form Controls Pin
Giorgi Dalakishvili15-Oct-08 3:01
mentorGiorgi Dalakishvili15-Oct-08 3:01 
QuestionPlease Help me!!! Pin
JeremH15-Oct-08 1:59
JeremH15-Oct-08 1:59 
AnswerRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 2:04
mvePete O'Hanlon15-Oct-08 2:04 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:09
JeremH15-Oct-08 2:09 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 2:27
mvePete O'Hanlon15-Oct-08 2:27 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:34
JeremH15-Oct-08 2:34 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 3:34
mvePete O'Hanlon15-Oct-08 3:34 
GeneralRe: Please Help me!!! Pin
Pedram Behroozi15-Oct-08 3:42
Pedram Behroozi15-Oct-08 3:42 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 4:18
JeremH15-Oct-08 4:18 
GeneralRe: Please Help me!!! Pin
Pete O'Hanlon15-Oct-08 5:20
mvePete O'Hanlon15-Oct-08 5:20 
AnswerRe: Please Help me!!! Pin
Pedram Behroozi15-Oct-08 2:23
Pedram Behroozi15-Oct-08 2:23 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:37
JeremH15-Oct-08 2:37 
AnswerRe: Please Help me!!! Pin
star6522569215-Oct-08 2:38
star6522569215-Oct-08 2:38 
GeneralRe: Please Help me!!! Pin
JeremH15-Oct-08 2:49
JeremH15-Oct-08 2:49 
GeneralSunil Chavan Pin
SunilChavan115-Oct-08 1:57
SunilChavan115-Oct-08 1:57 

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.