drawing lines on form

Hi,
jumping straight in from VB5.
First pocket PC app.
In old VB, it was possible to draw lines/shapes onto form as objects.
now line/circle/etc on toolbox is not there
Or do I need to code the drawing of these objects

Thanks
Simplefi


Answer this question

drawing lines on form

  • Kevin LZJ

    Sorry Simplefi,

    I should have read your post a little more carefully.  No, there is no way to draw on a form at design time.  You'll either have to draw at runtime or maybe use a picture for the form background.

  • jcviera

    Tyler,
    perhaps I was a little skimpy on describing my problem.
    The info returned only describes coded egs for drawing, which will be simple once I get a graphic surface. - should I wish to draw lines while app is running.

    I want to draw the lines/... at design time, not run time.
    eg
    put 3 radio buttons on form, then put a box around them. ( bad example, as you can group them )
    or add lines/... to complement the controls from a visual perspective.

    From reading it seems I need a graphic surface ( somewhat like the old Psions )
    which I can understand during run-time, even if at the moment I don't know how to get one.

    But how at design time, do I drop controls, lines, boxes of different colours etc onto a form ( I know the controls ! ) . In old VB it was just pick up the line tool, and draw on the form, add a few more controls, draw more lines/boxes/circles, play with the properties, add more controls......

    It's going to be simple, and I'm sure I'll say Dhooo, but documentation searching seem intent on hiding the answer from me.

    It's OK for you - you know lots, but can you imagine how frustrating it is for me, not to be able to do such a simple thing. All other exploring VS-2005 has stopped untill I can do this.

    Thanks for your help, and a bigger thank you for your patience.
    Simplefi

  • twostepted

    Methods are still there, but you need to use GDI+.  Just google "GDI+ Draw Form", and you'll get some examples

  • Donna M. Singel

    Those controls don't exsist anymore, but look at LineControls sample found here http://www.gotdotnet.com/team/vb/ 
  • drawing lines on form