Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Prevent child form from being moved Pin
draco_iii21-Feb-03 3:46
draco_iii21-Feb-03 3:46 
Questionhow can i move a rectangular from one position to another Pin
chiou20-Feb-03 19:50
chiou20-Feb-03 19:50 
AnswerRe: how can i move a rectangular from one position to another Pin
draco_iii21-Feb-03 3:58
draco_iii21-Feb-03 3:58 
GeneralRe: how can i move a rectangular from one position to another Pin
chiou23-Feb-03 14:09
chiou23-Feb-03 14:09 
GeneralWarning Pin
monrobot1320-Feb-03 17:55
monrobot1320-Feb-03 17:55 
GeneralRe: Warning Pin
monrobot1320-Feb-03 18:02
monrobot1320-Feb-03 18:02 
GeneralRe: Warning Pin
Jim Stewart20-Feb-03 18:15
Jim Stewart20-Feb-03 18:15 
GeneralRe: Warning Pin
James T. Johnson20-Feb-03 22:53
James T. Johnson20-Feb-03 22:53 
monrobot13 wrote:
public TcpClient Client {
get { return Client; }
set { Client = value; }
}


You are going to have another problem here.

The property Client, is calling itself for the get/set methods, so you will wind up getting a StackOverflow from all of the recursion that takes place.

If you want your new Client property to return the value from the base class, then you need to specify, base.Client otherwise you need to rename the variable Client so you don't get this infinite recursion.



James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

GeneralRe: Warning Pin
monrobot1324-Feb-03 10:25
monrobot1324-Feb-03 10:25 
GeneralA quick question Pin
Braincrash20-Feb-03 17:53
Braincrash20-Feb-03 17:53 
GeneralRe: A quick question Pin
Jim Stewart20-Feb-03 18:19
Jim Stewart20-Feb-03 18:19 
GeneralRe: A quick question Pin
Braincrash20-Feb-03 18:52
Braincrash20-Feb-03 18:52 
GeneralExecuting external apps Pin
zwieble20-Feb-03 12:57
zwieble20-Feb-03 12:57 
GeneralRe: Executing external apps Pin
Chris Austin20-Feb-03 12:59
Chris Austin20-Feb-03 12:59 
GeneralRe: Executing external apps Pin
zwieble20-Feb-03 13:17
zwieble20-Feb-03 13:17 
GeneralRe: Executing external apps Pin
Chris Austin20-Feb-03 14:46
Chris Austin20-Feb-03 14:46 
GeneralC#/DirectX 9.0 tutorials Pin
sumo_guy20-Feb-03 10:24
sumo_guy20-Feb-03 10:24 
QuestionBackspace not handled by TextBox sometimes? Pin
Arun Bhalla20-Feb-03 9:06
Arun Bhalla20-Feb-03 9:06 
AnswerRe: Backspace not handled by TextBox sometimes? Pin
Arun Bhalla21-Feb-03 12:19
Arun Bhalla21-Feb-03 12:19 
GeneralSingleton component design problem Pin
leppie20-Feb-03 6:24
leppie20-Feb-03 6:24 
GeneralRe: Singleton component design problem Pin
pete mcquain20-Feb-03 7:24
pete mcquain20-Feb-03 7:24 
GeneralRe: Singleton component design problem Pin
leppie20-Feb-03 8:04
leppie20-Feb-03 8:04 
GeneralWebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:35
GriffonRL20-Feb-03 5:35 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
Stephane Rodriguez.20-Feb-03 5:44
Stephane Rodriguez.20-Feb-03 5:44 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:57
GriffonRL20-Feb-03 5:57 

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.