Click here to Skip to main content
15,901,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about inherited/custom control.. Pin
Randy Williams2-Jan-03 9:41
Randy Williams2-Jan-03 9:41 
GeneralArchitecture Design Advice Pin
Bill West2-Jan-03 5:07
Bill West2-Jan-03 5:07 
GeneralRe: Architecture Design Advice Pin
Anonymous2-Jan-03 10:08
Anonymous2-Jan-03 10:08 
GeneralRe: Architecture Design Advice Pin
leppie2-Jan-03 11:37
leppie2-Jan-03 11:37 
GeneralDoes C# have anything like JAVA Applets Pin
Hudson2-Jan-03 4:35
Hudson2-Jan-03 4:35 
GeneralRe: Does C# have anything like JAVA Applets Pin
Michael P Butler2-Jan-03 4:43
Michael P Butler2-Jan-03 4:43 
GeneralRe: Does C# have anything like JAVA Applets Pin
James T. Johnson2-Jan-03 17:06
James T. Johnson2-Jan-03 17:06 
QuestionDoes something look goofy here? Pin
Nick Parker2-Jan-03 4:25
protectorNick Parker2-Jan-03 4:25 
I am trying to create my first control and I don't understand what is going on, or why it isn't working. The control is simply going to paint a line through the center of a textbox. When I override the OnPaint method here, the MessageBox doesn't show up when I add the control to a test form and neither does the line, however everything compiles fine. Any suggestions? BTW, I am setting the property of the _borderlinecolor in the test example.

protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
         SolidBrush b = new SolidBrush(this._borderlinecolor);
	Pen p = new Pen(b, 2);
	p.Color = this._borderlinecolor;
	e.Graphics.DrawLine(p, 0, this.Height/2, this.Width, this.Height/2);
	MessageBox.Show("Hey, I just painted.");
}




Nick Parker

You see the Standards change. - Fellow co-worker


AnswerRe: Does something look goofy here? Pin
Paul Riley2-Jan-03 4:55
Paul Riley2-Jan-03 4:55 
GeneralRe: Does something look goofy here? Pin
Nick Parker2-Jan-03 5:00
protectorNick Parker2-Jan-03 5:00 
AnswerRe: Does something look goofy here? Pin
Stephane Rodriguez.2-Jan-03 5:01
Stephane Rodriguez.2-Jan-03 5:01 
GeneralRe: Does something look goofy here? Pin
Nick Parker2-Jan-03 6:13
protectorNick Parker2-Jan-03 6:13 
GeneralRe: Does something look goofy here? Pin
Stephane Rodriguez.2-Jan-03 6:25
Stephane Rodriguez.2-Jan-03 6:25 
GeneralRe: Does something look goofy here? Pin
Nick Parker2-Jan-03 7:14
protectorNick Parker2-Jan-03 7:14 
AnswerRe: Does something look goofy here? Pin
James T. Johnson2-Jan-03 9:46
James T. Johnson2-Jan-03 9:46 
AnswerRe: Does something look goofy here? Pin
RichiLloyd29-Sep-04 3:31
RichiLloyd29-Sep-04 3:31 
Questionhow to ... Pin
Max Santos2-Jan-03 2:35
Max Santos2-Jan-03 2:35 
Questionhow could i make my program support multilanguage. Pin
Wang Kaiming1-Jan-03 22:53
Wang Kaiming1-Jan-03 22:53 
AnswerRe: how could i make my program support multilanguage. Pin
Kannan Kalyanaraman1-Jan-03 23:32
Kannan Kalyanaraman1-Jan-03 23:32 
GeneralRe: how could i make my program support multilanguage. Pin
Wang Kaiming3-Jan-03 1:41
Wang Kaiming3-Jan-03 1:41 
GeneralDirectX 9 C# Pin
egon1-Jan-03 22:21
egon1-Jan-03 22:21 
GeneralRe: DirectX 9 C# Pin
Cristoff2-Jan-03 1:03
Cristoff2-Jan-03 1:03 
GeneralRe: DirectX 9 C# Pin
anotherside20002-Jan-03 6:04
anotherside20002-Jan-03 6:04 
GeneralRe: DirectX 9 C# Pin
egon6-Jan-03 4:58
egon6-Jan-03 4:58 
GeneralRe: DirectX 9 C# Pin
egon7-Jan-03 2:25
egon7-Jan-03 2:25 

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.