Click here to Skip to main content
15,887,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: Class Library Question .. Pin
David Stone28-Feb-03 4:22
sitebuilderDavid Stone28-Feb-03 4:22 
GeneralRe: Class Library Question .. Pin
leppie28-Feb-03 6:02
leppie28-Feb-03 6:02 
GeneralRe: Class Library Question .. Pin
David Stone28-Feb-03 14:13
sitebuilderDavid Stone28-Feb-03 14:13 
GeneralRe: Class Library Question .. Pin
leppie28-Feb-03 22:40
leppie28-Feb-03 22:40 
GeneralThis is an easy one... really! Pin
codeweenie27-Feb-03 14:25
codeweenie27-Feb-03 14:25 
GeneralRe: This is an easy one... really! Pin
Furty27-Feb-03 14:42
Furty27-Feb-03 14:42 
GeneralRe: This is an easy one... really! Pin
David Stone27-Feb-03 14:42
sitebuilderDavid Stone27-Feb-03 14:42 
GeneralTcpClient.Close Pin
monrobot1327-Feb-03 13:51
monrobot1327-Feb-03 13:51 
Perhaps I'm doing something wrong, but I'm using the TcpClient class and I had a button that uses it to connect to a POP3 server. Now once I'm connected the connect button will disconnect me by calling the TcpClient.Close method, the thing is the connection doesn't close. I break when I press connect again (connecting after the first disconnect) and now things are weird. I check the TcpClient.Active property to make sure I don't connect again if were already connected (we shouldn't be connected because I called close, but we are) and if I hover my mouse on the if statement it shows the property as false (not connected), but if I look at the same property in the watch window it shows as true. I guess what I'm wondering is why isn't the connection closing when I call the close method.

What's really got me angry is that if I call TcpClient.Connect again complains that were already connected, but if I try to use the connection to obtain the network stream (which I closed before) it complains that I can't call that method on a non-connected socket.

A big thanks in advance for any help, I've been trying to figure this out for hours and am getting pretty frustrated.

- monrobot13
GeneralRe: TcpClient.Close Pin
monrobot1328-Feb-03 3:18
monrobot1328-Feb-03 3:18 
GeneralRe: TcpClient.Close Pin
James T. Johnson28-Feb-03 4:54
James T. Johnson28-Feb-03 4:54 
GeneralDeploying an app w/ DB connectivity Pin
Eric VanWieren27-Feb-03 12:36
Eric VanWieren27-Feb-03 12:36 
GeneralRe: Deploying an app w/ DB connectivity Pin
Danny Blanchard5-Mar-03 20:38
Danny Blanchard5-Mar-03 20:38 
GeneralWeb service client apps docs Pin
gadgetfbi27-Feb-03 10:21
gadgetfbi27-Feb-03 10:21 
QuestionHow to save the TreeView content Pin
j-hannemann27-Feb-03 9:26
j-hannemann27-Feb-03 9:26 
AnswerRe: How to save the TreeView content Pin
jtmtv1827-Feb-03 11:07
jtmtv1827-Feb-03 11:07 
GeneralRe: How to save the TreeView content Pin
j-hannemann27-Feb-03 20:20
j-hannemann27-Feb-03 20:20 
AnswerRe: How to save the TreeView content Pin
Furty27-Feb-03 15:25
Furty27-Feb-03 15:25 
GeneralRe: How to save the TreeView content Pin
j-hannemann27-Feb-03 20:14
j-hannemann27-Feb-03 20:14 
GeneralImage on ListView control's column header Pin
newneo27-Feb-03 8:58
newneo27-Feb-03 8:58 
GeneralRe: Image on ListView control's column header Pin
Furty27-Feb-03 15:10
Furty27-Feb-03 15:10 
GeneralChange icon on custom control Pin
Anonymous27-Feb-03 7:23
Anonymous27-Feb-03 7:23 
GeneralRe: Change icon on custom control Pin
leppie27-Feb-03 8:55
leppie27-Feb-03 8:55 
GeneralRe: Change icon on custom control Pin
Anonymous27-Feb-03 9:44
Anonymous27-Feb-03 9:44 
GeneralRe: Change icon on custom control Pin
Furty27-Feb-03 15:07
Furty27-Feb-03 15:07 
GeneralTreeView OwnerDraw: WndProc(...) How to get item information like ItemRectangle, ItemText, Focused Pin
STW27-Feb-03 6:28
STW27-Feb-03 6:28 

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.