Click here to Skip to main content
15,927,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 2:44
suss6-Mar-02 2:44 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 9:02
James T. Johnson6-Mar-02 9:02 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 10:59
suss6-Mar-02 10:59 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 12:42
James T. Johnson6-Mar-02 12:42 
GeneralRe: How to sublass visually a C# class Pin
7-Mar-02 3:31
suss7-Mar-02 3:31 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson7-Mar-02 6:06
James T. Johnson7-Mar-02 6:06 
QuestionAre ownerdrawn buttons available? Pin
4-Mar-02 3:53
suss4-Mar-02 3:53 
AnswerRe: Are ownerdrawn buttons available? Pin
James T. Johnson4-Mar-02 14:23
James T. Johnson4-Mar-02 14:23 
This should give you a base to start from.

using System;
using System.Windows.Forms;

namespace Namespace {
  public class MyButton : Button {
    public MyButton() : base() {
      SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true );
    }

    protected override void OnPaint(PaintEventArgs e) {
      // Draw the button
    }
  }
}
HTH,

James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

GeneralAccessing the shell Pin
4-Mar-02 1:51
suss4-Mar-02 1:51 
GeneralRe: Accessing the shell Pin
James T. Johnson4-Mar-02 14:30
James T. Johnson4-Mar-02 14:30 
GeneralRe: Accessing the shell Pin
4-Mar-02 21:19
suss4-Mar-02 21:19 
GeneralRe: Accessing the shell Pin
James T. Johnson4-Mar-02 22:13
James T. Johnson4-Mar-02 22:13 
GeneralRe: Accessing the shell Pin
5-Mar-02 1:37
suss5-Mar-02 1:37 
GeneralRe: Accessing the shell Pin
James T. Johnson5-Mar-02 8:21
James T. Johnson5-Mar-02 8:21 
GeneralRe: Accessing the shell Pin
5-Mar-02 20:57
suss5-Mar-02 20:57 
GeneralC# question Pin
Jon Newman4-Mar-02 1:05
Jon Newman4-Mar-02 1:05 
GeneralRe: C# question Pin
Michael P Butler4-Mar-02 1:25
Michael P Butler4-Mar-02 1:25 
GeneralRe: C# question Pin
Jon Newman4-Mar-02 1:32
Jon Newman4-Mar-02 1:32 
GeneralRe: C# question Pin
Michael P Butler4-Mar-02 1:42
Michael P Butler4-Mar-02 1:42 
GeneralRe: C# question Pin
Jon Newman4-Mar-02 5:55
Jon Newman4-Mar-02 5:55 
GeneralMagic Version 1.2 Released Pin
3-Mar-02 21:46
suss3-Mar-02 21:46 
GeneralFTP client Pin
Frankie Leung3-Mar-02 19:43
Frankie Leung3-Mar-02 19:43 
GeneralPopup styled window Pin
Alex Stoddard3-Mar-02 15:04
Alex Stoddard3-Mar-02 15:04 
QuestionHow to convert "string" to "int"? Pin
alexandr2-Mar-02 5:48
alexandr2-Mar-02 5:48 
AnswerRe: How to convert "string" to "int" or other data type? Pin
Michael Mac2-Mar-02 6:13
Michael Mac2-Mar-02 6:13 

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.