Solved

hi, i need your help

Posted on 2002-03-07
4
119 Views
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?

thanks

cc
0
Comment
Question by:cc_2000_sg
  • 2
4 Comments
 
LVL 1

Expert Comment

by:surajdeo
ID: 6849795
hi,

  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.
0
 

Author Comment

by:cc_2000_sg
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.


cc
0
 

Accepted Solution

by:
segan earned 20 total points
ID: 6850124
Hi,

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

this will work!
Segan.
0
 
LVL 1

Expert Comment

by:surajdeo
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

0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 116
VB6 / DAO 3.6 / run time error: Couldn't find installable ISAM 7 94
Getting warning: You are about to delete 1 row(s) 9 50
Excel Automation VBA 19 74
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

831 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