Click here to Skip to main content
15,914,608 members
Home / Discussions / WPF
   

WPF

 
QuestionInk Canvas Clipping Pin
VCsamir21-Apr-09 18:50
VCsamir21-Apr-09 18:50 
QuestionRe: Ink Canvas Clipping Pin
Mark Salsbery22-Apr-09 8:41
Mark Salsbery22-Apr-09 8:41 
AnswerRe: Ink Canvas Clipping Pin
VCsamir23-Apr-09 18:45
VCsamir23-Apr-09 18:45 
QuestionRe: Ink Canvas Clipping Pin
Mark Salsbery24-Apr-09 6:47
Mark Salsbery24-Apr-09 6:47 
QuestionWPF - Mirroring content to another window Pin
Kel_21-Apr-09 6:38
Kel_21-Apr-09 6:38 
AnswerRe: WPF - Mirroring content to another window Pin
Insincere Dave21-Apr-09 10:22
Insincere Dave21-Apr-09 10:22 
GeneralRe: WPF - Mirroring content to another window Pin
Kel_21-Apr-09 11:12
Kel_21-Apr-09 11:12 
QuestionWPF - Getting target for hyperlink? Pin
David Veeneman21-Apr-09 6:03
David Veeneman21-Apr-09 6:03 
AnswerRe: WPF - Getting target for hyperlink? Pin
David Veeneman24-Apr-09 7:28
David Veeneman24-Apr-09 7:28 
QuestionWpf button problem Pin
Eric Vonjacson21-Apr-09 2:00
Eric Vonjacson21-Apr-09 2:00 
AnswerRe: Wpf button problem Pin
Pauwels Bart21-Apr-09 2:47
Pauwels Bart21-Apr-09 2:47 
QuestionSplitContainer in WPF ? Pin
Mohammad Dayyan20-Apr-09 22:23
Mohammad Dayyan20-Apr-09 22:23 
AnswerRe: SplitContainer in WPF ? Pin
RugbyLeague21-Apr-09 2:01
RugbyLeague21-Apr-09 2:01 
GeneralRe: SplitContainer in WPF ? Pin
Mohammad Dayyan21-Apr-09 2:07
Mohammad Dayyan21-Apr-09 2:07 
AnswerRe: SplitContainer in WPF ? [modified] Pin
Weifen Luo10-Jul-09 13:28
Weifen Luo10-Jul-09 13:28 
Questionsount control slider Pin
yogesh_softworld12320-Apr-09 8:11
yogesh_softworld12320-Apr-09 8:11 
AnswerRe: sount control slider Pin
BlitzPackage22-Apr-09 5:33
BlitzPackage22-Apr-09 5:33 
AnswerRe: sount control slider Pin
sivaddrahcir24-Apr-09 12:58
sivaddrahcir24-Apr-09 12:58 
QuestionChat application in wpf using TCp/IP Pin
JS 200820-Apr-09 5:22
JS 200820-Apr-09 5:22 
AnswerRe: Chat application in wpf using TCp/IP Pin
Ray Cassick20-Apr-09 5:42
Ray Cassick20-Apr-09 5:42 
GeneralRe: Chat application in wpf using TCp/IP Pin
JS 200820-Apr-09 17:48
JS 200820-Apr-09 17:48 
Listen PartSocket newsock = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
IPEndPoint iep = new IPEndPoint( IPAddress.Any, 2091 );
newsock.Bind( iep );
newsock.Listen( 5 );
newsock.BeginAccept( new AsyncCallback( AcceptConn ), newsock );

void AcceptConn( IAsyncResult iar )
{
Socket oldserver = ( Socket )iar.AsyncState;
client = oldserver.EndAccept( iar );
Thread receiver = new Thread( new ThreadStart( ReceiveData ) );
receiver.Start();
}

void ReceiveData()
{
int recv;
string stringData;
while( true )
{
recv = client.Receive( data );
stringData = Encoding.ASCII.GetString( data, 0, recv );
if( stringData == "bye" )
break;
}
stringData = "bye";
byte[] message = Encoding.ASCII.GetBytes( stringData );
client.Send( message );
client.Close();
return;
}

Connection
client = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
IPEndPoint iep = new IPEndPoint( IPAddress.Parse( "127.10.27.61" ), 2091 );
client.BeginConnect( iep, new AsyncCallback( Connected ), client );

void Connected( IAsyncResult iar )
{

client.EndConnect( iar );
Thread receiver = new Thread( new ThreadStart( ReceiveData ) );
receiver.Start();

}


My code is like thisduring the connection part error happends,May be due to 2 threads,how can i solve the same
QuestionWPF ComboBox Pin
mark_w_20-Apr-09 5:02
mark_w_20-Apr-09 5:02 
AnswerRe: WPF ComboBox Pin
Insincere Dave20-Apr-09 16:30
Insincere Dave20-Apr-09 16:30 
GeneralRe: WPF ComboBox Pin
mark_w_20-Apr-09 22:11
mark_w_20-Apr-09 22:11 
GeneralRe: WPF ComboBox Pin
mark_w_21-Apr-09 0:08
mark_w_21-Apr-09 0:08 

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.