Click here to Skip to main content
15,921,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert web form to windows form Pin
OmegaSupreme29-Jan-04 23:43
OmegaSupreme29-Jan-04 23:43 
GeneralRe: convert web form to windows form Pin
Kentamanos29-Jan-04 19:22
Kentamanos29-Jan-04 19:22 
GeneralRe: convert web form to windows form Pin
OmegaSupreme29-Jan-04 23:48
OmegaSupreme29-Jan-04 23:48 
GeneralWeird problem Pin
cmedia29-Jan-04 3:57
susscmedia29-Jan-04 3:57 
GeneralRe: Weird problem Pin
hxxbin29-Jan-04 11:59
hxxbin29-Jan-04 11:59 
GeneralDrawing a rectangle Pin
thomasa29-Jan-04 3:24
thomasa29-Jan-04 3:24 
GeneralRe: Drawing a rectangle Pin
Heath Stewart29-Jan-04 4:06
protectorHeath Stewart29-Jan-04 4:06 
GeneralRe: Drawing a rectangle Pin
thomasa29-Jan-04 23:38
thomasa29-Jan-04 23:38 
Sorry but I realy don't seem to understand the OnPaint event or something, couse I don't get the rectangle to show.
I have a Main class, I've created my own panel class(MyPanel) and added it to the Main form.
On the panel I want to draw the rectangle.(The rectangle shall only be visable for a short period before it will be drawn at a different position)

If I in the MyPanel class add:
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
}
In my Main class i have:
private void DrawScanArea(Rectangle rect)
{
}

Should i create a System.Windows.Forms.PaintEventArgs in my Main class to call up the OnPaint(...) in the panel class?(well I can't since it is protected), so how will it be called up? I would asume it happens when I call the line: grfx.DrawRectangle(pen,rect); in DrawScanArea(Rectangle rect)
, or should the grfx.DrawRectangle(pen,rect);, be placed in the OnPaint(..) in MyPanel class?

My lack of understanding annoys me... Dead | X|

Thanks
Thomas
GeneralRe: Drawing a rectangle Pin
Heath Stewart30-Jan-04 3:16
protectorHeath Stewart30-Jan-04 3:16 
GeneralRe: Drawing a rectangle Pin
thomasa2-Feb-04 0:39
thomasa2-Feb-04 0:39 
GeneralRe: Drawing a rectangle Pin
thomasa2-Feb-04 2:04
thomasa2-Feb-04 2:04 
GeneralRe: Drawing a rectangle Pin
Heath Stewart2-Feb-04 2:47
protectorHeath Stewart2-Feb-04 2:47 
GeneralSorting in cyclic order Pin
Shree29-Jan-04 2:26
Shree29-Jan-04 2:26 
GeneralRe: Sorting in cyclic order Pin
Heath Stewart29-Jan-04 3:57
protectorHeath Stewart29-Jan-04 3:57 
GeneralRe: Sorting in cyclic order Pin
Shree29-Jan-04 6:07
Shree29-Jan-04 6:07 
GeneralVoice in C# AGAIN Pin
Abkarino29-Jan-04 1:00
Abkarino29-Jan-04 1:00 
GeneralRe: Voice in C# AGAIN Pin
Heath Stewart29-Jan-04 2:35
protectorHeath Stewart29-Jan-04 2:35 
GeneralCall Webservice from windows client problem Pin
Mazdak28-Jan-04 23:56
Mazdak28-Jan-04 23:56 
GeneralRe: Call Webservice from windows client problem Pin
Heath Stewart29-Jan-04 3:20
protectorHeath Stewart29-Jan-04 3:20 
GeneralRe: Call Webservice from windows client problem Pin
Mazdak29-Jan-04 4:54
Mazdak29-Jan-04 4:54 
GeneralRe: Call Webservice from windows client problem Pin
Heath Stewart29-Jan-04 6:52
protectorHeath Stewart29-Jan-04 6:52 
GeneralRe: Call Webservice from windows client problem Pin
Mazdak29-Jan-04 7:04
Mazdak29-Jan-04 7:04 
GeneralRe: Call Webservice from windows client problem Pin
Heath Stewart29-Jan-04 7:32
protectorHeath Stewart29-Jan-04 7:32 
Generalmultiple search engine querying tool! Pin
mali28-Jan-04 23:15
mali28-Jan-04 23:15 
GeneralRe: multiple search engine querying tool! Pin
Heath Stewart29-Jan-04 3:12
protectorHeath Stewart29-Jan-04 3: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.