Click here to Skip to main content
13,094,523 members (59,188 online)
   

C#

 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy1-Feb-13 14:56
memberdevvvy1-Feb-13 14:56 
Question.NET Brush serialization/WYSIWIG [Solved] Pin
Amlanjyoti Saikia29-Jan-13 0:32
memberAmlanjyoti Saikia29-Jan-13 0:32 
AnswerRe: .NET Brush serialization/WYSIWIG Pin
Brisingr Aerowing29-Jan-13 3:12
memberBrisingr Aerowing29-Jan-13 3:12 
GeneralRe: .NET Brush serialization/WYSIWIG Pin
Amlanjyoti Saikia30-Jan-13 1:54
memberAmlanjyoti Saikia30-Jan-13 1:54 
QuestionAbout method TextWriter.Write() Pin
taibc27-Jan-13 23:52
membertaibc27-Jan-13 23:52 
AnswerRe: About method TextWriter.Write() Pin
BobJanova28-Jan-13 0:34
memberBobJanova28-Jan-13 0:34 
AnswerRe: About method TextWriter.Write() Pin
Richard MacCutchan28-Jan-13 0:37
mvpRichard MacCutchan28-Jan-13 0:37 
GeneralRe: About method TextWriter.Write() Pin
PIEBALDconsult28-Jan-13 3:28
memberPIEBALDconsult28-Jan-13 3:28 
AnswerRe: About method TextWriter.Write() Pin
taibc28-Jan-13 14:51
membertaibc28-Jan-13 14:51 
Questionreading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
devvvy25-Jan-13 8:52
memberdevvvy25-Jan-13 8:52 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
André Kraak25-Jan-13 10:57
memberAndré Kraak25-Jan-13 10:57 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
Richard Deeming28-Jan-13 2:02
memberRichard Deeming28-Jan-13 2:02 
QuestionClient is not connecting to the server Pin
Skytten23-Jan-13 5:33
memberSkytten23-Jan-13 5:33 
AnswerRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 5:41
mvpOriginalGriff23-Jan-13 5:41 
Why have you commented out the lines
//    clientSocket.Connect("127.0.0.1", 8888);
//    serverStream = clientSocket.GetStream();
from the button 2 handler - unless you have pressed Button1 first, the connection has not been established and it will likely throw an exception - probably the one you are complaining about.

Personally, I would have a "Connect" method, which checked if you are connected and does so if not - and call it from both click events. (I would probably also make it return the stream instead of using a class level variable directly in the two event handlers).
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 5:55
memberSkytten23-Jan-13 5:55 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:07
mvpOriginalGriff23-Jan-13 6:07 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:09
memberSkytten23-Jan-13 6:09 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:20
mvpOriginalGriff23-Jan-13 6:20 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:26
memberSkytten23-Jan-13 6:26 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 8:04
mvpOriginalGriff23-Jan-13 8:04 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 10:03
memberSkytten23-Jan-13 10:03 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff24-Jan-13 0:04
mvpOriginalGriff24-Jan-13 0:04 
GeneralRe: Client is not connecting to the server Pin
Skytten24-Jan-13 12:57
memberSkytten24-Jan-13 12:57 
QuestionC# update a audit table Pin
dcof22-Jan-13 15:56
memberdcof22-Jan-13 15:56 
AnswerRe: C# update a audit table Pin
Mycroft Holmes22-Jan-13 16:28
memberMycroft Holmes22-Jan-13 16:28 
AnswerRe: C# update a audit table Pin
PIEBALDconsult22-Jan-13 18:25
memberPIEBALDconsult22-Jan-13 18:25 
GeneralRe: C# update a audit table Pin
dcof23-Jan-13 4:41
memberdcof23-Jan-13 4:41 
GeneralRe: C# update a audit table Pin
PIEBALDconsult23-Jan-13 5:46
memberPIEBALDconsult23-Jan-13 5:46 
GeneralC#.net with postGis Pin
tashee21-Jan-13 3:47
membertashee21-Jan-13 3:47 
GeneralRe: C#.net with postGis Pin
Eddy Vluggen21-Jan-13 13:03
mvpEddy Vluggen21-Jan-13 13:03 
Questioncollections generic with wcf Pin
yonim12319-Jan-13 12:33
memberyonim12319-Jan-13 12:33 
AnswerRe: collections generic with wcf Pin
SledgeHammer0119-Jan-13 13:03
memberSledgeHammer0119-Jan-13 13:03 
GeneralRe: collections generic with wcf Pin
yonim12319-Jan-13 13:20
memberyonim12319-Jan-13 13:20 
Questioncalling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 4:14
memberHector Ubiera17-Jan-13 4:14 
AnswerRe: calling a C# function with jquery ajax Pin
Pete O'Hanlon17-Jan-13 6:30
protectorPete O'Hanlon17-Jan-13 6:30 
GeneralRe: calling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 8:05
memberHector Ubiera17-Jan-13 8:05 
QuestionImplementation of Encapsulation & inheritance in c# Pin
Member 883921917-Jan-13 2:55
memberMember 883921917-Jan-13 2:55 
AnswerRe: Implementation of Encapsulation & inheritance in c# Pin
Pete O'Hanlon17-Jan-13 3:02
protectorPete O'Hanlon17-Jan-13 3:02 
QuestionJoining 2 DataSets Pin
RickSharp16-Jan-13 7:19
memberRickSharp16-Jan-13 7:19 
SuggestionRe: Joining 2 DataSets Pin
HuorSwords17-Jan-13 2:16
memberHuorSwords17-Jan-13 2:16 
QuestionWMI causing Access is denied Pin
vanikanc16-Jan-13 3:36
membervanikanc16-Jan-13 3:36 
AnswerRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 3:41
mvpDave Kreskowiak16-Jan-13 3:41 
GeneralRe: WMI causing Access is denied Pin
vanikanc16-Jan-13 3:56
membervanikanc16-Jan-13 3:56 
GeneralRe: WMI causing Access is denied Pin
vanikanc16-Jan-13 4:31
membervanikanc16-Jan-13 4:31 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:55
mvpDave Kreskowiak16-Jan-13 4:55 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:57
mvpDave Kreskowiak16-Jan-13 4:57 
QuestionHow to update progressBar from another class Pin
MichCl15-Jan-13 4:17
memberMichCl15-Jan-13 4:17 
SuggestionRe: How to update progressBar from another class Pin
HuorSwords15-Jan-13 5:50
memberHuorSwords15-Jan-13 5:50 
GeneralRe: How to update progressBar from another class Pin
MichCl15-Jan-13 7:47
memberMichCl15-Jan-13 7:47 
GeneralRe: How to update progressBar from another class Pin
Dave Kreskowiak15-Jan-13 8:03
mvpDave Kreskowiak15-Jan-13 8:03 

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.


Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 22 Aug 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid