Click here to Skip to main content
15,922,155 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moving value to textbox control from another thread Pin
Eddy Vluggen20-Jan-09 3:14
professionalEddy Vluggen20-Jan-09 3:14 
GeneralRe: Moving value to textbox control from another thread Pin
The_Collector20-Jan-09 3:24
The_Collector20-Jan-09 3:24 
GeneralRe: Moving value to textbox control from another thread Pin
The_Collector20-Jan-09 3:27
The_Collector20-Jan-09 3:27 
GeneralRe: Moving value to textbox control from another thread Pin
Eddy Vluggen20-Jan-09 3:37
professionalEddy Vluggen20-Jan-09 3:37 
GeneralRe: Moving value to textbox control from another thread Pin
The_Collector20-Jan-09 3:41
The_Collector20-Jan-09 3:41 
GeneralRe: Moving value to textbox control from another thread Pin
Eddy Vluggen20-Jan-09 6:52
professionalEddy Vluggen20-Jan-09 6:52 
GeneralRe: Moving value to textbox control from another thread Pin
The_Collector20-Jan-09 11:12
The_Collector20-Jan-09 11:12 
GeneralRe: Moving value to textbox control from another thread Pin
The_Collector20-Jan-09 11:55
The_Collector20-Jan-09 11:55 
your suggested code did not run, however i still want to thank you for your effort done. your code really help a lot to solve my problem... I made a little adjustment on your corrected code....
again, thank you very much

using System;
using System.Windows.Forms;
using System.Threading;

namespace webbrowser
{
public partial class WebBrowser : Form
{
public delegate void DisplayHandler(string stringMessage);
//public event DisplayMessage;

public WebBrowser()
{
InitializeComponent();
}

private Thread threadSocket;
private SocketServer mySocket;
private void WebBrowser_Load(object sender, EventArgs e)
{
threadSocket = new Thread(StartSocket);
threadSocket.Start();
}

public void StartSocket()
{
mySocket = new SocketServer();
mySocket.SocketDataArrival += ShowDataArrival;
mySocket.InititateServer();
}

public void DisplayMessage(string stringMessage)
{
this.TxtBoxMsg.Text = stringMessage;

}

void ShowDataArrival(object a, SocketServerArgs e)
{
//DisplayHandler d = DisplayMessage;
//d.Invoke(e.Message);
DisplayHandler d = new DisplayHandler(DisplayMessage);
this.TxtBoxMsg.Invoke(d, new object[] { e.Message });
}
}
}

xxx

GeneralRe: Moving value to textbox control from another thread Pin
Eddy Vluggen20-Jan-09 21:33
professionalEddy Vluggen20-Jan-09 21:33 
Questionmuting my current process Pin
sperlis20-Jan-09 0:54
sperlis20-Jan-09 0:54 
AnswerRe: muting my current process Pin
Dave Kreskowiak20-Jan-09 1:58
mveDave Kreskowiak20-Jan-09 1:58 
GeneralRe: muting my current process Pin
User 665820-Jan-09 2:18
User 665820-Jan-09 2:18 
AnswerRe: muting my current process Pin
harold aptroot20-Jan-09 2:02
harold aptroot20-Jan-09 2:02 
QuestionConversion library or executable to convert Vox file to MP3 format. Pin
Tarini Singh19-Jan-09 23:58
Tarini Singh19-Jan-09 23:58 
AnswerRe: Conversion library or executable to convert Vox file to MP3 format. Pin
musefan20-Jan-09 0:29
musefan20-Jan-09 0:29 
QuestionWhere are app settings stored? Pin
Anders Molin19-Jan-09 23:41
professionalAnders Molin19-Jan-09 23:41 
AnswerRe: Where are app settings stored? Pin
Pete O'Hanlon19-Jan-09 23:53
mvePete O'Hanlon19-Jan-09 23:53 
GeneralRe: Where are app settings stored? Pin
Anders Molin20-Jan-09 0:10
professionalAnders Molin20-Jan-09 0:10 
AnswerRe: Where are app settings stored? Pin
#realJSOP20-Jan-09 2:29
professional#realJSOP20-Jan-09 2:29 
QuestionConnection and transaction Pin
mpavas19-Jan-09 23:25
mpavas19-Jan-09 23:25 
AnswerRe: Connection and transaction Pin
musefan19-Jan-09 23:36
musefan19-Jan-09 23:36 
GeneralRe: Connection and transaction Pin
mpavas19-Jan-09 23:48
mpavas19-Jan-09 23:48 
GeneralRe: Connection and transaction Pin
musefan20-Jan-09 0:26
musefan20-Jan-09 0:26 
GeneralRe: Connection and transaction Pin
mpavas20-Jan-09 1:30
mpavas20-Jan-09 1:30 
GeneralRe: Connection and transaction Pin
Ben Fair20-Jan-09 10:32
Ben Fair20-Jan-09 10:32 

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.