hi, i need your help

Posted on 2002-03-07
Last Modified: 2010-05-02
hi all,

i have one problem.

when i put one picture box on a form, and set it's index value to 0, visible to false, and add one line on it.

when i run the code, i have loaded one picture box, and i can see it but i can't see the line, how can i see it?


Question by:cc_2000_sg
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 6849795

  where as i think, u can see line only when, when u will make visiblity true for first picture box. because line is present on picture1(0), so u cannot see it on picture1(1) or so on.

Author Comment

ID: 6849815
i want to see one line in every picture1, eg picture1(0),
picture1(1), picture1(2).

how to do that?

i can't draw a line outside of picture, set line index to 0 and drag the line on the picture. since i can't see the line any more.


Accepted Solution

segan earned 20 total points
ID: 6850124

Add one USerControl to ur projects and Add picture box and other stuff then Create Control Array for this new control,

this will work!

Expert Comment

ID: 6850163
You can use following code for drawing a line in picture box.

Load Picture1(1)
Picture1(1).AutoRedraw = True
Picture1(1).Line (100, 100)-(1000, 1000), vbRed


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question