Solved

Get the PATH of Picture

Posted on 1998-06-06
8
210 Views
Last Modified: 2010-05-03
Basically i am trying to implement a ActiveX control which will accept Picture form the user and will display that picture on the control.

My problem,
I have a picture loaded on a form at design time of the ActiveX control and i want to extract the path of that BMP. How can i do that ? Also if you can help how to put BMP selection dialog in the properties menu.

msgbox Form1.Picture 'will return some interger which will not work.


Thanks
Dipal
dipal_shah@hotmail.com
0
Comment
Question by:dipal_shah
8 Comments
 
LVL 1

Expert Comment

by:juliocoelho
ID: 1462679
Sorry, but you cannot extract the path of that picture.

When you put a picture into a picture component in design time VB saves that picture with the form, in the .frx file. Because of that you cannot get the path of that picture, for VB that picture doesn't exist in your file system, but in VB itselt.

With kind regards
0
 
LVL 1

Author Comment

by:dipal_shah
ID: 1462680
juliocoelho,

Sorry i can't give you point for that.

Basically i have make my usercontrol. I have make one property as Picture. Now my user will write path in that property so i will need to extract that path and have to let my usercontrol know about that.  I think this bit more clear.

If anyone wants to work on it more i can send you my code of usercontrol and help me on that.

dipal
0
 
LVL 1

Author Comment

by:dipal_shah
ID: 1462681
Basically i have make my usercontrol. I have make one property as Picture. Now my user will write path in that property so i will need to extract that path and have to let my usercontrol know about that.  I think this bit more clear.

If anyone wants to work on it more i can send you my code of usercontrol and help me on that.

dipal

0
 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1462682
dipal_shah,

Send your code to me at nakigany@hotmail.com

Bin Huwairib
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:EvanL
ID: 1462683
I do the same thing, but with a database.  The trick is having the user select the picture path, and then saving that path into a textbox's .text property.  Then you can define the path as a global variable, and call it from wherever in your program.  When the program starts, you can make them click a Browse button and select the picture's path.  
0
 
LVL 1

Author Comment

by:dipal_shah
ID: 1462684
Evanl,
I have got the perfect answer as i wanted from  bin_huwairib. He has solved my problem with some other technique which no more requires file name.

Anyway thanks a lot for commenting. I am waiting till he claims for the points.

Dipal
0
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 150 total points
ID: 1462685
HI dipal_shah,

I hope you managed to solve it!!


Best regards
Bin Huwairib
0
 
LVL 1

Author Comment

by:dipal_shah
ID: 1462686
Adjusted points to 150
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now