Results 1 to 7 of 7

Thread: Can't see anything in form.load

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28

    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
    Regards --
    Vujjeni

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Have you tried that in the Paint_Form event !

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28
    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
    Regards --
    Vujjeni

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28
    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.
    Regards --
    Vujjeni

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28
    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
    Regards --
    Vujjeni

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width