473,549 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

viewing images in picture manager

10 New Member
Hi everyone

I have a form that displays images, what i want to do is that when the user double clicks on the picture displayed, it opens in MS picture manager

I used the code:
shell "ois.exe me![picturepath]"

what happens here, picture manager flashes then disappears from the screen



Any ideas

Thanks in advance
Feb 25 '07 #1
4 3551
ADezii
8,834 Recognized Expert Expert
Hi everyone

I have a form that displays images, what i want to do is that when the user double clicks on the picture displayed, it opens in MS picture manager

I used the code:
shell "ois.exe me![picturepath]"

what happens here, picture manager flashes then disappears from the screen



Any ideas

Thanks in advance
This will work:
Expand|Select|Wrap|Line Numbers
  1. Dim retVal As Variant
  2. 'You must provide the Absolute Path to ois.exe e.g.
  3. C:\Programs\Graphics\ois.exe. If the Path is C:\ois.exe, then:
  4. retVal = Shell("C:\ois.exe " & Chr$(34) & Me![PicturePath] & Chr$(34), vbMaximizedFocus)
Feb 25 '07 #2
najimou
10 New Member
It worked perfectly, and by the way i didn't have to provide the full path of the application

Thank you very much
Feb 25 '07 #3
ADezii
8,834 Recognized Expert Expert
It worked perfectly, and by the way i didn't have to provide the full path of the application

Thank you very much
Glad to be of assistance.
Feb 25 '07 #4
DenisStarbank
1 New Member
Its years later but your reply helped me just as much.
Thanks.
Nov 11 '11 #5

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

Similar topics

1
1975
by: Lucanus | last post by:
Hi All, Just a quick question, which should have a simple answer... Can I have a document with three images with the same name, and reference those images individually. ie: <img name="picture" src="file1.jpg"> <img name="picture" src="file2.jpg">
40
2785
by: Geoff Cox | last post by:
Hello, I am still having problems - apologies if the answer is in previous postings! I now have, in the header, <sctipt> var myimages=new Array();
3
5617
by: marwa mohamed | last post by:
salamo alikom hi all when i run report that includes image control linked to a field in the table that contains the image path(on the server)and the record source of the report contains over 30 records a messege shows saying: "Microsoft Access doesn't support the format of the file'file path\filename.jpg' or file is too large.Try converting...
10
5289
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
12
3834
by: John Kotuby | last post by:
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link like <a href="../../Search/page.aspx">, everything works fine as long as I publish the site to a root web like http://localhost. However, I am...
3
1824
by: John Kotuby | last post by:
I have just upgraded to a new development machine that came with Vista ultimate. I am developing a website with VS2005 and VB. My image and css references in my source code are all relative. For example http://root.com/images/some.gif in my source is just /images/some.gif. When I publish to the root web on any IIS server, that works just...
2
1974
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i took Microsoft's sample pictures and resized them with the Ofiice Picture Manager and put it on my web page and the pictures look great. however, when i take a digital photo of my own and resize it with Picture Manager the picture still looks good, but when i see it on the web page it's real grainy. any ideas or tips? thanks,...
17
7851
by: anthony | last post by:
I want to embed some BMP files into an OLE field (called BMP) in an existing table using code. I've created the code that grabs the filename from the image folder, finds the corresponding record in the table and opens that record for editing (RST.Edit). However, I'm having difficulty putting the image into the OLE field. If I borrow from the...
1
1173
by: Josephbupe | last post by:
I am trying to adopt the code below to store a picture file in a table filed so that i can view it any time i open the form with its control. However, this code did not do that. When i loaded the picture quite well its path was saved in the table field but after i close the form and reopen it i could not see the picture. How can i always make the...
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3500
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.