VB Basic Draw Commands Don't work. 
Author Message
 VB Basic Draw Commands Don't work.

If someone started a new project, with 1 simple form called Form1

Shouldn't the following code draw a line across the form???  What could
cause none of the Line or circle, Pset, or any graphics command to fail?
Does Visual Basic suck this bad??  Should I re-install?  Does anyone know
any other language that can ACTUALLY  DRAW SOMETHING?????    This is
becomming bullshit.

Private Sub Form_Load()
    Form1.Width = Screen.Width / 2
    Form1.Height = Screen.Height / 2
    Form1.Top = (Screen.Height - Form1.Height) / 2
    Form1.Left = (Screen.Width - Form1.Width) / 2

    ' Try to Draw a Line?
    Form1.Line (0, 0)-(1440, 2880)

End Sub

Please help if you've ever seen absolutely Zero responsiveness from any
graphics command!!

Thanks,

Tracy



Thu, 01 Nov 2001 03:00:00 GMT  
 VB Basic Draw Commands Don't work.
Remove from Form_Load.

Private Sub Form1_Paint()
    Form1.Line (0, 0)-(1440, 2880)
End Sub



Thu, 01 Nov 2001 03:00:00 GMT  
 VB Basic Draw Commands Don't work.
Only if the form autoredraw is true, which its not by default, and for good
reason.

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/


Quote:
> If someone started a new project, with 1 simple form called Form1

> Shouldn't the following code draw a line across the form???  What could
> cause none of the Line or circle, Pset, or any graphics command to fail?
> Does visual basic suck this bad??  Should I re-install?  Does anyone know
> any other language that can ACTUALLY  DRAW SOMETHING?????    This is
> becomming bullshit.

> Private Sub Form_Load()
>     Form1.Width = Screen.Width / 2
>     Form1.Height = Screen.Height / 2
>     Form1.Top = (Screen.Height - Form1.Height) / 2
>     Form1.Left = (Screen.Width - Form1.Width) / 2

>     ' Try to Draw a Line?
>     Form1.Line (0, 0)-(1440, 2880)

> End Sub

> Please help if you've ever seen absolutely Zero responsiveness from any
> graphics command!!

> Thanks,

> Tracy



Fri, 02 Nov 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Cursor keys don't work in the command window when debugging

2. Kill/Name function don't work after shell commands

3. Some Shell commands don't work

4. MovePrevious don't work but the MoveNext work's fine

5. Script works, script don't work

6. VB Text boxes don't work when editing

7. VB hooks to WORD don't seem to work with Word 2000 SP1

8. Release DLLs don't work with VB front end

9. API calls of winamp don't work in vb 6

10. My Cpp dll don't work with VB

11. Longs don't work in VB.

12. VB 6 controls don't work properly in IE 4

 

 
Powered by phpBB® Forum Software