Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Where are these namespaes? Pin
CWIZO29-Apr-06 23:26
CWIZO29-Apr-06 23:26 
AnswerRe: Where are these namespaes? Pin
S. Senthil Kumar30-Apr-06 3:30
S. Senthil Kumar30-Apr-06 3:30 
QuestionNull reference exception Pin
lagumaster29-Apr-06 18:32
lagumaster29-Apr-06 18:32 
AnswerRe: Null reference exception Pin
Robert Rohde29-Apr-06 20:11
Robert Rohde29-Apr-06 20:11 
GeneralRe: Null reference exception Pin
lagumaster2-May-06 15:49
lagumaster2-May-06 15:49 
QuestionShow main form in C# Pin
leanhsang29-Apr-06 17:31
leanhsang29-Apr-06 17:31 
AnswerRe: Show main form in C# Pin
S. Senthil Kumar30-Apr-06 3:35
S. Senthil Kumar30-Apr-06 3:35 
QuestionNo Custom paint in design time Pin
Mark0629-Apr-06 15:50
Mark0629-Apr-06 15:50 
Using Vs2005, I cant get my custom paint to work during designtime.
Heres the example:

Start a new windows app.
Add a user control
Paste the following into the usercontrol code:

protected override void OnPaintBackground(PaintEventArgs e)<br />
        {<br />
            base.OnPaintBackground(e);<br />
<br />
            Graphics gx = e.Graphics;<br />
            Pen pen = new Pen(Color.Red);<br />
            Rectangle rect = e.ClipRectangle;<br />
            rect.X += 10;<br />
            rect.Y += 10;<br />
            rect.Width -= 20;<br />
            rect.Height -= 20;<br />
<br />
            gx.DrawRectangle(pen, rect);<br />
        }


Build the project.

Ok, basically, I only see my custom paint if I drag my control into a form.
If I just want to look at the customcontrol designer screen, I dont see my custom paint.

Am I missing something? Am i supposed to set a flag somewhere, like Ownerdrawn?

Any ideas why?


Andy
AnswerRe: No Custom paint in design time Pin
Robert Rohde29-Apr-06 20:14
Robert Rohde29-Apr-06 20:14 
QuestionClosing another program Pin
gokhangs29-Apr-06 12:38
gokhangs29-Apr-06 12:38 
AnswerRe: Closing another program Pin
Robert Rohde29-Apr-06 20:18
Robert Rohde29-Apr-06 20:18 
QuestionList Boxes Pin
TippyMoe29-Apr-06 11:56
TippyMoe29-Apr-06 11:56 
AnswerRe: List Boxes Pin
Sean8929-Apr-06 13:19
Sean8929-Apr-06 13:19 
GeneralRe: List Boxes Pin
TippyMoe2-May-06 8:20
TippyMoe2-May-06 8:20 
AnswerRe: List Boxes Pin
Kuira1-May-06 14:14
Kuira1-May-06 14:14 
GeneralRe: List Boxes Pin
TippyMoe2-May-06 8:21
TippyMoe2-May-06 8:21 
QuestionLoop Issue Pin
teejayem29-Apr-06 10:14
teejayem29-Apr-06 10:14 
AnswerRe: Loop Issue Pin
Rob Graham29-Apr-06 10:25
Rob Graham29-Apr-06 10:25 
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 10:39
teejayem29-Apr-06 10:39 
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 11:29
teejayem29-Apr-06 11:29 
GeneralRe: Loop Issue Pin
Rob Graham29-Apr-06 12:14
Rob Graham29-Apr-06 12:14 
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 14:40
teejayem29-Apr-06 14:40 
QuestionExtend Webservice / Client with Plugins Pin
rEgEn2k29-Apr-06 7:35
rEgEn2k29-Apr-06 7:35 
AnswerRe: Extend Webservice / Client with Plugins Pin
rEgEn2k1-May-06 0:47
rEgEn2k1-May-06 0:47 
QuestionHow to make routing table?? Pin
Real Coder29-Apr-06 6:12
Real Coder29-Apr-06 6:12 

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.