Click here to Skip to main content
15,907,910 members
Home / Discussions / C#
   

C#

 
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 
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 
Well, this is what I tried (code below). However, the compiler says "Use of keyword 'base' is not valid in this context". I thought that base was like this, but for accessing a parent class. How should I do it?

public class ReverseTrackBar : TrackBar
{
  private new int Value
  {
    get { return (((TrackBar)base).Maximum - (((TrackBar)base).Value - this.Minimum)); }
    set { ((TrackBar)base).Value = (((TrackBar)base).Maximum - ((int)value - this.Minimum)); }
  }
  private new int Maximum
  {
    get { return ((TrackBar)base).Maximum; }
    set
    {
      int val = this.Value;
      ((TrackBar)base).Maximum = (int)value;
      this.Value = val;
    }
  }
  public ReverseTrackBar()
  {
    this.Value = 0;
  }
}


-Daniel
Typing too fast fro my owngood

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 
AnswerRe: Write arraylists content to file Pin
Christian Graus19-Oct-06 10:21
protectorChristian Graus19-Oct-06 10:21 
GeneralRe: Write arraylists content to file Pin
Yustme19-Oct-06 10:43
Yustme19-Oct-06 10:43 
QuestionCalling Custom keys from a Web Config File Pin
iamnew2C#19-Oct-06 9:04
iamnew2C#19-Oct-06 9:04 
QuestionDownloading .NET Pin
bolddoggz19-Oct-06 8:57
bolddoggz19-Oct-06 8:57 
AnswerRe: Downloading .NET Pin
Christian Graus19-Oct-06 9:47
protectorChristian Graus19-Oct-06 9:47 
QuestionTree View Search Pin
joshp121719-Oct-06 8:44
joshp121719-Oct-06 8:44 

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.