473,434 Members | 1,521 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,434 software developers and data experts.

image arrays

27
i've already had my image arrays working but i need to place them one at a time
in a picture box through the use of a command button. The system works like everytime the command button is clicked, an image appears at the picture box.
does anyone know how to do this?

This is my code:
Expand|Select|Wrap|Line Numbers
  1. Dim Index As Integer
  2. For Index = 0 To 5
  3.   Image8(Index).Picture = Image8(Index).Picture
  4.   Image8(Index).Visible = True
  5.   Image8(Index).Picture = LoadPicture("charts/nor.jpg")
  6. Next Index
Aug 5 '07 #1
4 1327
Killer42
8,435 Expert 8TB
Just create a form-level variable for the index. Each time the button is clicked, increment the index and use it to grab the image from your array and put it in your picturebox. When the index gets too large, set it back to the start.
Aug 5 '07 #2
akynaya
27
Thank you.. i just followed what you said... and i think there's something wrong with my coding... do you by any chance know what's wrong?

Expand|Select|Wrap|Line Numbers
  1. Dim Index As Integer
  2. Index = 0
  3. With Command1
  4.   If Index < 5 Then
  5.     Index = Index + 1
  6.     Image9(Index).Picture = Image9(Index).Picture
  7.     Image9(Index).Visible = True
  8.     Image9(Index).Picture = LoadPicture("charts/not.jpg")
  9.   Else
  10.     Index = 0
  11.   End If
  12. End With
Aug 5 '07 #3
akynaya
27
THANK YOU!!! the array is now working. =]
Aug 5 '07 #4
Killer42
8,435 Expert 8TB
THANK YOU!!! the array is now working. =]
Excellent! Glad we could help. :)
Aug 5 '07 #5

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

Similar topics

15
by: 1 | last post by:
hi there i need a site where the client can upload an image every week, with a caption, (so pref use the php upload image function to provide a web based interface) and that then automatically...
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
2
by: Dennis Allen | last post by:
Hi. I have a piece of client-side code that searches the current page's links. If it determines a link < 60 days ago, it uses document.links.innerHTML += '&nbsp;<img src="'+_img.src+'">', where...
1
by: sympatico | last post by:
Hi, I am trying to compare 2 images to check if they are exactly identical (in terms of data), I thought this would be quicker than analysing pixels of the images. I have found lots of examples...
2
by: 1388-2/HB | last post by:
I've got a small sockets application where I communicate with a web server via async sockets method. Using the ASCIIEncoding Class, I convert strings to byte arrays (and vice versa) in...
13
by: giovanniparodi79 | last post by:
Hello everybody is there some utility to convert a raw image in an header file? Thanks everybody Gio
10
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi, Please help me to write a dll in C# , that will read each pages of a tiff image from a file and a memory stream object ( need two ways) and creatre a new tiff image object.The dll should...
14
lotus18
by: lotus18 | last post by:
Hello World I'm back again. LOL How to make an image arrays? I have 6 images named Button (Index from 1-6). I'm working on MouseMove events these images. So far I have these codes: Public...
36
by: vimal3271 | last post by:
I want to know how to read image files in C.. what are the headers that i should include? is there any tutorials regarding this ? pls inform me.
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.