Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
QuestionRestricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 7:01
Nnamdi Onyeyiri2-Jan-03 7:01 
AnswerRe: Restricted access to properties? Pin
James T. Johnson2-Jan-03 9:35
James T. Johnson2-Jan-03 9:35 
GeneralRe: Restricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 11:55
Nnamdi Onyeyiri2-Jan-03 11:55 
Generalmessage box stuff Pin
jtmtv182-Jan-03 6:59
jtmtv182-Jan-03 6:59 
GeneralRe: message box stuff Pin
Ray Cassick2-Jan-03 7:55
Ray Cassick2-Jan-03 7:55 
GeneralRe: message box stuff Pin
Brian Olej2-Jan-03 14:23
Brian Olej2-Jan-03 14:23 
GeneralArray Serialization - kinda urgent Pin
Mr BallyDaHob2-Jan-03 5:18
Mr BallyDaHob2-Jan-03 5:18 
GeneralQuestion about inherited/custom control.. Pin
Randy Williams2-Jan-03 5:08
Randy Williams2-Jan-03 5:08 
GeneralRe: Question about inherited/custom control.. Pin
leppie2-Jan-03 9:35
leppie2-Jan-03 9:35 
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 

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.