Click here to Skip to main content
15,920,602 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Is COM really dead? Pin
Aisha Ikram17-Nov-02 16:51
Aisha Ikram17-Nov-02 16:51 
QuestionWhat is about Application Domain? Pin
Aisha Ikram12-Nov-02 21:02
Aisha Ikram12-Nov-02 21:02 
AnswerRe: What is about Application Domain? Pin
leppie13-Nov-02 6:28
leppie13-Nov-02 6:28 
GeneralRe: What is about Application Domain? Pin
Aisha Ikram13-Nov-02 17:00
Aisha Ikram13-Nov-02 17:00 
GeneralWindowsXP Shell Namespace Extension / C# Pin
CohesiveTeam.Net12-Nov-02 7:44
CohesiveTeam.Net12-Nov-02 7:44 
GeneralSSCLI now compiles on MacOS X Pin
James T. Johnson12-Nov-02 3:12
James T. Johnson12-Nov-02 3:12 
GeneralRe: SSCLI now compiles on MacOS X Pin
David Stone12-Nov-02 4:35
sitebuilderDavid Stone12-Nov-02 4:35 
GeneralRe: SSCLI now compiles on MacOS X Pin
Paul Watson12-Nov-02 5:43
sitebuilderPaul Watson12-Nov-02 5:43 
GeneralRe: SSCLI now compiles on MacOS X Pin
David Stone12-Nov-02 8:07
sitebuilderDavid Stone12-Nov-02 8:07 
GeneralRe: SSCLI now compiles on MacOS X Pin
Ray Cassick13-Nov-02 7:23
Ray Cassick13-Nov-02 7:23 
GeneralRe: SSCLI now compiles on MacOS X Pin
James T. Johnson13-Nov-02 7:37
James T. Johnson13-Nov-02 7:37 
General.NET redistributable related Pin
Shamoon11-Nov-02 16:56
Shamoon11-Nov-02 16:56 
GeneralRe: .NET redistributable related Pin
David Stone11-Nov-02 18:43
sitebuilderDavid Stone11-Nov-02 18:43 
GeneralRe: .NET redistributable related Pin
RichardEastes13-Nov-02 15:55
RichardEastes13-Nov-02 15:55 
GeneralActiveDirectory ldap Pin
Anonymous11-Nov-02 10:01
Anonymous11-Nov-02 10:01 
GeneralSoap serialization Pin
Gerosa11-Nov-02 6:00
Gerosa11-Nov-02 6:00 
GeneralPassword Encryption Pin
Derek Lakin11-Nov-02 3:41
Derek Lakin11-Nov-02 3:41 
GeneralRe: Password Encryption Pin
Daniel Turini11-Nov-02 3:47
Daniel Turini11-Nov-02 3:47 
GeneralRe: Password Encryption Pin
Furty13-Nov-02 16:07
Furty13-Nov-02 16:07 
QuestionSubclassing? Pin
Stan Shannon11-Nov-02 2:19
Stan Shannon11-Nov-02 2:19 
AnswerRe: Subclassing? Pin
James T. Johnson11-Nov-02 3:11
James T. Johnson11-Nov-02 3:11 
GeneralRe: Subclassing? Pin
Stan Shannon11-Nov-02 3:45
Stan Shannon11-Nov-02 3:45 
GeneralRe: Subclassing? Pin
Paul Watson11-Nov-02 4:00
sitebuilderPaul Watson11-Nov-02 4:00 
Stan Shannon wrote:
The form still owns the control and defines it's behavior. So, for example, even if I override the TextBox's OnPaint method and attempt to use the Graphics object to draw in the client area of the text box - the form's default behavior still overrides what I want the control to do.

(I may not understand your situation right so this may not be what you are asking)

Then you need to override the Paint member inside your inhereted control.

e.g. In my CP+ app I did the following to provide a underlined look on DataGrid cells (this is C# but should be easy enough for other languages):

First I inhereted the DataGridTextBoxColumn (subclass I assume):
public class DataGridLinkColumn : DataGridTextBoxColumn


then I overrode the Paint event:
protected override void Paint(Graphics g,Rectangle Bounds,CurrencyManager Source,int RowNum, Brush BackBrush ,Brush ForeBrush ,bool AlignToRight)
{
    g.FillRectangle(BackBrush, Bounds.X, Bounds.Y, Bounds.Width, Bounds.Height);
    FontStyle fstylNew = new FontStyle();
    fstylNew = FontStyle.Underline;
    System.Drawing.Font font = new Font(System.Drawing.FontFamily.GenericSansSerif , (float)8.25, fstylNew);
    g.DrawString( GetColumnValueAtRow(Source, RowNum).ToString(), font ,Brushes.Blue ,Bounds.X ,Bounds.Y );
}



Is that what you are looking for?

Paul Watson
Bluegrass
Cape Town, South Africa

Ray Cassick wrote:
Well I am not female, not gay and I am not Paul Watson
GeneralRe: Subclassing? Pin
Stan Shannon12-Nov-02 0:48
Stan Shannon12-Nov-02 0:48 
GeneralRe: Subclassing? Pin
Martin Haesemeyer13-Nov-02 6:49
Martin Haesemeyer13-Nov-02 6:49 

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.