Click here to Skip to main content
15,908,455 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looping on bitwise parameter? Pin
Robert Rohde16-Dec-06 20:42
Robert Rohde16-Dec-06 20:42 
GeneralRe: Looping on bitwise parameter? Pin
Guffa16-Dec-06 22:24
Guffa16-Dec-06 22:24 
GeneralRe: Looping on bitwise parameter? Pin
Scott Dorman17-Dec-06 11:07
professionalScott Dorman17-Dec-06 11:07 
GeneralRe: Looping on bitwise parameter? Pin
Nader Elshehabi17-Dec-06 3:42
Nader Elshehabi17-Dec-06 3:42 
GeneralRe: Looping on bitwise parameter? Pin
Lord Kixdemp17-Dec-06 6:55
Lord Kixdemp17-Dec-06 6:55 
GeneralRe: Looping on bitwise parameter? Pin
Nader Elshehabi17-Dec-06 7:59
Nader Elshehabi17-Dec-06 7:59 
GeneralRe: Looping on bitwise parameter? Pin
Guffa17-Dec-06 9:09
Guffa17-Dec-06 9:09 
QuestionHi, problem drawing a component to a control Pin
babbelfisken16-Dec-06 13:24
babbelfisken16-Dec-06 13:24 
Hello,

I have a class let us call it Rect.cs with an internal System.Drawing.Rectangle object called rect instantiated in the constructor of class Rect.

Rect.cs has also a

void Paint(Graphics g)
{
g.FillRectangle(Brushes.Red,rect);
}

In my Windows form called Form1 i have :

a button with the click event handler. It creates a myClass object. After creating the object i call this.Invalidate() for the form to redraw.

I also have the Paint method for the window form that calls the Paint() method for the Rect object

private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
rectObj.Paint(e.Graphics);
}

But it doesn't happen anything?!

Something important i've missed regarding redrawing or so?
Explanations with additional pseudo would be great !

Thanks from a tired guy!
AnswerRe: Hi, problem drawing a component to a control Pin
Luc Pattyn16-Dec-06 13:57
sitebuilderLuc Pattyn16-Dec-06 13:57 
GeneralRe: Hi, problem drawing a component to a control Pin
babbelfisken16-Dec-06 23:20
babbelfisken16-Dec-06 23:20 
GeneralRe: Hi, problem drawing a component to a control Pin
babbelfisken16-Dec-06 23:39
babbelfisken16-Dec-06 23:39 
QuestionC# Design Pattern Suggestion needed... Pin
cmprogrock16-Dec-06 13:03
cmprogrock16-Dec-06 13:03 
QuestionHow to use the operators DIV and MOD Pin
CodeItWell16-Dec-06 9:51
CodeItWell16-Dec-06 9:51 
AnswerRe: How to use the operators DIV and MOD Pin
ejuanpp16-Dec-06 10:23
ejuanpp16-Dec-06 10:23 
AnswerRe: How to use the operators DIV and MOD Pin
Ravi Bhavnani16-Dec-06 11:31
professionalRavi Bhavnani16-Dec-06 11:31 
QuestionCorrect a date in a textBox Pin
CodeItWell16-Dec-06 8:40
CodeItWell16-Dec-06 8:40 
AnswerRe: Correct a date in a textBox Pin
Luc Pattyn16-Dec-06 9:15
sitebuilderLuc Pattyn16-Dec-06 9:15 
AnswerRe: Correct a date in a textBox Pin
Bassam Saoud16-Dec-06 11:13
Bassam Saoud16-Dec-06 11:13 
Questiondataset changes Pin
fmardani16-Dec-06 7:43
fmardani16-Dec-06 7:43 
QuestionObject creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 7:23
Tony Lambert16-Dec-06 7:23 
AnswerRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 8:43
Guffa16-Dec-06 8:43 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 9:15
Tony Lambert16-Dec-06 9:15 
GeneralRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 11:43
Guffa16-Dec-06 11:43 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 12:10
Tony Lambert16-Dec-06 12:10 
AnswerRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 13:45
Guffa16-Dec-06 13:45 

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.