473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating a tiled background

Hi, I want to make a tiled background, but the following doesn't work:

Expand|Select|Wrap|Line Numbers
  1. Public Class Form1
  2.     Dim Facing(0) As Integer         '1 = left, 2 = up, 3 = right, 4 = down
  3.     Dim Length As Integer            'length of snake
  4.     Dim Snake As Snake
  5.     Dim Background(80 * 80) As PictureBox
  6.  
  7.     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  8.         Dim x As Integer, y As Integer
  9.  
  10.         While x < 80
  11.             While y < 80
  12.                 Background(x * y) = New PictureBox
  13.                 Background(x * y).Image = My.Resources.background
  14.                 Background(x * y).Location = New System.Drawing.Point(x * 10, y * 10)
  15.                 Controls.Add(Background(x * y))
  16.                 y = y + 1
  17.             End While
  18.             x = x + 1
  19.             y = 0
  20.         End While
  21.     End Sub
  22. End Class
  23.  
Sep 15 '08 #1
0 788

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Pamela Thalacker | last post by:
The default configuration for the VS.Net IDE is two combination windows docked to the right of the screen and tiled vertically(by which I mean one on top of the other). The upper window has the...
2
by: lorelei | last post by:
Hey all, I have found two seperate HTML codes which claim to stop background images from being tiled. Neither of them seem to be working. I'm writing my codes in Textpad, and use Internet...
5
by: George | last post by:
I have a problem creating triangles with this program it creates rectangles and squares but not triangles. For example I would like to create a triangle with the vertices (1,1), (31,1), (31,31) and...
3
by: dubbs1014 | last post by:
To whom it may concern, Alright, so I fell in with the myspace crowd and got a myspace. I learned some html and had fun doing it. I noticed throughout many different user profiles, nobody had an...
1
by: Tolgan | last post by:
I want to know the size (width, height in mm) of a raster image (at least in the case when they are well defined) I've been constructing a bitmap object from the file but I need to handle tiled...
5
by: outstretchedarm | last post by:
I'm extremely new to javascript and to programming in general. I am trying to create an interactive table. I have already created the table with constants, in the key of C (it is for music). ...
0
by: ameshkin | last post by:
Hi, Im pretty new at PHP and need help with something very simple. I wrote a function which watermarks an image. The function works, but i can't figure out how to output the image into a file. ...
1
by: MikeZ | last post by:
I am a new Access 2007 user. I have noticed that tables and forms appear in a tabbed arrangement in the main application area. How do I switch this to tiled?
1
by: mandarbansod | last post by:
Hi i m creating a web application which needs an application may b an exe which will run in background at the end of the day n will update some tables in database. while this application will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.