Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
GeneralProcess Messages Pin
Serge R30-Apr-02 10:41
Serge R30-Apr-02 10:41 
GeneralRe: Process Messages Pin
Neil Van Note30-Apr-02 11:46
Neil Van Note30-Apr-02 11:46 
QuestionCan C++ & C# co-exist in the same project? Pin
Li-kai Liu (Angus)30-Apr-02 10:32
Li-kai Liu (Angus)30-Apr-02 10:32 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
30-Apr-02 11:02
suss30-Apr-02 11:02 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
James T. Johnson30-Apr-02 13:02
James T. Johnson30-Apr-02 13:02 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
Nick Parker30-Apr-02 17:24
protectorNick Parker30-Apr-02 17:24 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
Albert Pascual1-May-02 7:44
sitebuilderAlbert Pascual1-May-02 7:44 
GeneralDrawing on dialog controls MFC vs .NET Pin
Zombies with Coffee, LLC30-Apr-02 9:28
professionalZombies with Coffee, LLC30-Apr-02 9:28 
In my MFC application, I draw lines over graphics and text
controls.

void CAboutDlg::OnButton1( )
{
CClientDC dc( this );

dc.MoveTo( 0, 0 );
dc.LineTo( 200, 200 );
}

The black line will draw over anything on the form.
--------------------------------------------------------
Now, in C# I cannot figure out how to draw on 'top' of the
controls.

private void Button1_Click(object sender, System.EventArgs
e)
{
Graphics g = CreateGraphics( );
g.DrawLine( Pens.Black, 0, 0, 200, 200 );
}

When I want to draw this line, it draws on the background
and does not draw over the bitmaps or text.

So, how do I draw on top of all the objects in a form?!
Transparent controls are not an option in this case.

Thanks in advance!!

GeneralRe: Drawing on dialog controls MFC vs .NET Pin
BLaZiNiX30-Apr-02 17:18
BLaZiNiX30-Apr-02 17:18 
GeneralRe: Drawing on dialog controls MFC vs .NET Pin
Zombies with Coffee, LLC30-Apr-02 18:11
professionalZombies with Coffee, LLC30-Apr-02 18:11 
GeneralDisplay each Form from an arraylist of Form names Pin
Prash30-Apr-02 7:28
Prash30-Apr-02 7:28 
GeneralRe: Display each Form from an arraylist of Form names Pin
Nick Parker30-Apr-02 8:13
protectorNick Parker30-Apr-02 8:13 
GeneralRe: Display each Form from an arraylist of Form names Pin
Prash30-Apr-02 20:02
Prash30-Apr-02 20:02 
GeneralDataBinding Pin
Mazdak30-Apr-02 5:23
Mazdak30-Apr-02 5:23 
GeneralSearching an entire hard drive for a file Pin
kyledunn30-Apr-02 1:10
kyledunn30-Apr-02 1:10 
GeneralRe: Searching an entire hard drive for a file Pin
Nick Parker30-Apr-02 1:35
protectorNick Parker30-Apr-02 1:35 
GeneralRe: Searching an entire hard drive for a file Pin
kyledunn30-Apr-02 1:56
kyledunn30-Apr-02 1:56 
GeneralRe: Searching an entire hard drive for a file Pin
James T. Johnson30-Apr-02 2:47
James T. Johnson30-Apr-02 2:47 
GeneralRe: Searching an entire hard drive for a file Pin
Nick Parker30-Apr-02 2:50
protectorNick Parker30-Apr-02 2:50 
GeneralRe: Searching an entire hard drive for a file Pin
kyledunn30-Apr-02 6:45
kyledunn30-Apr-02 6:45 
GeneralXP Explorer Side Bar Pin
Jeremy Fuller30-Apr-02 0:20
Jeremy Fuller30-Apr-02 0:20 
GeneralSkinnable Winforms Pin
29-Apr-02 18:16
suss29-Apr-02 18:16 
QuestionDHTML Edit control. How can I use this thing? Pin
lovehis29-Apr-02 17:06
lovehis29-Apr-02 17:06 
Generaluser control in Winforms Pin
29-Apr-02 11:46
suss29-Apr-02 11:46 
GeneralRe: user control in Winforms Pin
Nish Nishant29-Apr-02 14:32
sitebuilderNish Nishant29-Apr-02 14:32 

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.