Solved

Get the PATH of Picture

Posted on 1998-06-06
8
213 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
[X]
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
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1462682
dipal_shah,

Send your code to me at nakigany@hotmail.com

Bin Huwairib
0
 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

739 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