Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 6:23
professionalRichard Andrew x6429-Jan-14 6:23 
GeneralRe: serial port writing and reading Pin
khomeyni29-Jan-14 6:37
khomeyni29-Jan-14 6:37 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 6:44
professionalRichard Andrew x6429-Jan-14 6:44 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 7:00
professionalRichard Andrew x6429-Jan-14 7:00 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 4:34
khomeyni30-Jan-14 4:34 
GeneralRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 7:59
professionalRichard Andrew x6430-Jan-14 7:59 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:17
khomeyni30-Jan-14 8:17 
GeneralRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:23
professionalRichard Andrew x6430-Jan-14 8:23 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:26
khomeyni30-Jan-14 8:26 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:34
professionalRichard Andrew x6430-Jan-14 8:34 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:50
khomeyni30-Jan-14 8:50 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:52
professionalRichard Andrew x6430-Jan-14 8:52 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:59
khomeyni30-Jan-14 8:59 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 9:06
professionalRichard Andrew x6430-Jan-14 9:06 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 9:06
khomeyni30-Jan-14 9:06 
Questiondepicting data in c# in realtime Pin
khomeyni29-Jan-14 2:38
khomeyni29-Jan-14 2:38 
AnswerRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 2:59
professionalEddy Vluggen29-Jan-14 2:59 
GeneralRe: depicting data in c# in realtime Pin
khomeyni29-Jan-14 6:43
khomeyni29-Jan-14 6:43 
GeneralRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 8:01
professionalEddy Vluggen29-Jan-14 8:01 
GeneralRe: depicting data in c# in realtime Pin
khomeyni30-Jan-14 4:26
khomeyni30-Jan-14 4:26 
QuestionNeed help on chat between two computers Pin
larsp77729-Jan-14 1:20
larsp77729-Jan-14 1:20 
AnswerRe: Need help on chat between two computers Pin
OriginalGriff29-Jan-14 2:32
mveOriginalGriff29-Jan-14 2:32 
No, the problem is the reverse of that: "Cross-thread operation not valid" means that you are executing code on one thread that can only be executed on a different thread: normally, this occurs when you try to update a control from a different thread to that from which it was created (which must be the UI thread), either in a BackgoundWorker, a Thread instance or in the handler of a communications class that uses threading to handle it's events (the SerialPort does this for example).

Check your code: you may just have to start invoking the control instead of accessing it directly. For example:
C#
private void AddNewTab(string tabName)
    {
    if (InvokeRequired)
        {
        Invoke(new MethodInvoker(delegate { AddNewTab(tabName); }));
        }
    else
        {
        TabPage tp = new TabPage(tabName);
        myTabControl.TabPages.Add(tp);
        }
    }

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 2:43
larsp77729-Jan-14 2:43 
GeneralRe: Need help on chat between two computers Pin
OriginalGriff29-Jan-14 2:54
mveOriginalGriff29-Jan-14 2:54 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 6:13
larsp77729-Jan-14 6:13 

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.