Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is MyProjectName.vshost.exe.config ? Pin
Nadia Monalisa19-Oct-06 14:20
Nadia Monalisa19-Oct-06 14:20 
Questionhow to send email with .net2003 [modified] Pin
Ah_Mohsen_aly19-Oct-06 12:20
Ah_Mohsen_aly19-Oct-06 12:20 
AnswerRe: how to send email with .net2003 Pin
Christian Graus19-Oct-06 13:24
protectorChristian Graus19-Oct-06 13:24 
QuestionC# & mswinsock.ocx Pin
Shahin7719-Oct-06 11:52
Shahin7719-Oct-06 11:52 
AnswerRe: C# & mswinsock.ocx Pin
Ed.Poore19-Oct-06 13:44
Ed.Poore19-Oct-06 13:44 
GeneralRe: C# & mswinsock.ocx Pin
Shahin7720-Oct-06 4:29
Shahin7720-Oct-06 4:29 
GeneralRe: C# & mswinsock.ocx Pin
Ed.Poore21-Oct-06 8:00
Ed.Poore21-Oct-06 8:00 
Questionmember hiding question Pin
likefood19-Oct-06 10:11
likefood19-Oct-06 10:11 
I've looked in some CP articles and in my MSDN library, but can't find the answer to my question...

How do I hide a public member of a base class? I'm trying to inherit from the TrackBar class, and I want to make the public members Value and Maximum inaccessible (make them private members instead of public). I've tried just saying:
private new int Value;
and
private new int Maximum;
in my inheriting class, but, elsewhere in the code, when I have:
myTrackBar.Maximum [...]
it doesn't give me a compile error like I want.

So...
How do I, like, convert the public members Value and Maximum into private members?

-Daniel
Typing too fast fro my owngood

AnswerRe: member hiding question Pin
Christian Graus19-Oct-06 10:19
protectorChristian Graus19-Oct-06 10:19 
GeneralRe: member hiding question Pin
likefood19-Oct-06 10:27
likefood19-Oct-06 10:27 
GeneralRe: member hiding question Pin
Christian Graus19-Oct-06 10:42
protectorChristian Graus19-Oct-06 10:42 
GeneralRe: member hiding question Pin
likefood19-Oct-06 10:50
likefood19-Oct-06 10:50 
GeneralRe: member hiding question Pin
Christian Graus19-Oct-06 10:58
protectorChristian Graus19-Oct-06 10:58 
GeneralRe: member hiding question Pin
likefood19-Oct-06 11:07
likefood19-Oct-06 11:07 
GeneralRe: member hiding question Pin
Christian Graus19-Oct-06 11:17
protectorChristian Graus19-Oct-06 11:17 
GeneralRe: member hiding question Pin
likefood19-Oct-06 11:19
likefood19-Oct-06 11:19 
GeneralRe: member hiding question Pin
likefood19-Oct-06 11:18
likefood19-Oct-06 11:18 
GeneralRe: member hiding question Pin
Christian Graus19-Oct-06 11:24
protectorChristian Graus19-Oct-06 11:24 
AnswerRe: member hiding question Pin
jjansen19-Oct-06 20:44
jjansen19-Oct-06 20:44 
GeneralRe: member hiding question Pin
likefood20-Oct-06 4:13
likefood20-Oct-06 4:13 
GeneralRe: member hiding question Pin
jjansen19-Oct-06 21:08
jjansen19-Oct-06 21:08 
GeneralRe: member hiding question Pin
likefood20-Oct-06 4:16
likefood20-Oct-06 4:16 
QuestionDownloading an image Pin
NumbNut19-Oct-06 10:07
NumbNut19-Oct-06 10:07 
AnswerRe: Downloading an image Pin
Guffa19-Oct-06 10:49
Guffa19-Oct-06 10:49 
QuestionWrite arraylists content to file Pin
Yustme19-Oct-06 10:06
Yustme19-Oct-06 10:06 

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.