PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Error loading graphics-VBForums
Results 1 to 2 of 2

Thread: Error loading graphics

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    66

    Error loading graphics

    vb Code:
    1. Me.Width = 400
    2.         Me.Height = 350
    3.  
    4.         Bar = Me.CreateGraphics
    5.         Ball = Me.CreateGraphics
    6.         Ball.FillEllipse(Brushes.Yellow, 100, 120, 20, 20)
    7.         Bar.FillRectangle(Brushes.Black, 200, 335, 80, 15)
    8.     End Sub

    i am making a pong game and i put the declarations in the general declarations...but nothing loads when i run this...but when i add a button and put the code in it, it draws them.

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Location
    New Jersey
    Posts
    30

    Re: Error loading graphics

    Make sure that this sub is set to public:
    vb Code:
    1. public sub Sub()
    When you say general declarations, what do you mean by that? A seperate module or do you make this a seperate sub within the form?
    Final Fantasy Tactics Online
    Blank Engine (3D, Opensource, VB Engine)(Under construction but does have a download)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width