|
-
May 6th, 2003, 11:48 AM
#1
Thread Starter
Junior Member
Can't see anything in form.load
I draw a fixed circle using the graphics method...drawEllipse() in the form load form. However, When the form loads, it is not visible. What am I missing ?
I do not want to use form.
Here is what I have in my form.load ::
'getCenter(230, 230)
'getRadius(80)
Dim myBrush As New SolidBrush(Color.CadetBlue)
Me.CreateGraphics.FillEllipse(myBrush, 150, 150, 180, 180)
myBrush.Dispose()
Thanks
-
May 6th, 2003, 11:58 AM
#2
Sleep mode
Have you tried that in the Paint_Form event !
-
May 6th, 2003, 12:04 PM
#3
Thread Starter
Junior Member
I don't want to use form_paint.
I tried it and it works.
I just want this to be shown in form_load as I can use the graphic method and draw what ever I want without having to deal with the messy arguments of form_paint.
I still don't know why nothing is visible in form_load
-
May 6th, 2003, 12:08 PM
#4
Thread Starter
Junior Member
I don want to call form_paint in the middle of some procedure.
I don't always get the parameters right for paint from a local procedure. Thats why I want to use the form_load to show the circle and then, manipulate the shape of the circle by refresh() based on the user interaction.
-
May 6th, 2003, 12:21 PM
#5
I believe the form gets redrawn at activation and so whatever you draw on it will get overwritten after the Form_Load event and that is why you don't see anything.
-
May 6th, 2003, 12:28 PM
#6
Thread Starter
Junior Member
I see..well if I use form_paint the graphic just sticks to it always when i refresh..is there a way to get rid of what was drawn on form_paint ?
Thanks
-
May 6th, 2003, 12:56 PM
#7
Repaint or paint over it or even call the form's base on paint event.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|