With the help of kind, brilliant folks, I have been working on this program
that uses a combo box selection to display six different jpgs. The jps are a
time stamp, and the files are located in six different folders of camera
views. HOWEVER, some of these folders do not have that certain timed jpg.
So...I need to figure out how to show all the rest of the pictures and use
an "no image available or something" for the program to work correctly.
Problem is I don't know how to do this at all.
each folder: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,and Cam 8 and display each
picture (from selection) from each folder and display in pictureboxes
pcbCam1, pcbCam2, pcbCam4, pcbCam6, pcbCam7, and pcbCam8.
What i need is a default image if there is not file of that same name in one
fo the folders....plea se help...I am in dire need!
For i As Integer = 1 To 8
Dim pcb As PictureBox = ApplicationCont rols.FindContro l(Me, "pcbCam" & i)
If Not pcb Is Nothing Then
pcb.Image = Image.FromFile( String.Format(f older, i)) <<<<what is this doing
exactly?
End If
Next i 1 1342
AND now I am getting a FileNotFound Exception was unhandled, when I know the
file exists.....:( pcb.Image = Image.FromFile( String.Format(f older, i)) <<<<stopping here.....
Please help!
"KitKat" <ki****@nospam. com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
With the help of kind, brilliant folks, I have been working on this program that uses a combo box selection to display six different jpgs. The jps are a time stamp, and the files are located in six different folders of camera views. HOWEVER, some of these folders do not have that certain timed jpg. So...I need to figure out how to show all the rest of the pictures and use an "no image available or something" for the program to work correctly.
Problem is I don't know how to do this at all.
each folder: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,and Cam 8 and display each picture (from selection) from each folder and display in pictureboxes pcbCam1, pcbCam2, pcbCam4, pcbCam6, pcbCam7, and pcbCam8.
What i need is a default image if there is not file of that same name in one fo the folders....plea se help...I am in dire need!
For i As Integer = 1 To 8
Dim pcb As PictureBox = ApplicationCont rols.FindContro l(Me, "pcbCam" & i)
If Not pcb Is Nothing Then
pcb.Image = Image.FromFile( String.Format(f older, i)) <<<<what is this doing exactly?
End If
Next i
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark J. McGinty |
last post by:
Greets,
Part of the content of one of our web pages uses wingdings and Chr(239)
through Chr(242) (which are little arrow outlines, though that's not really
important.)
It worked just fine in Windows 2000 Server, but now under Server 2003 it
seems that characters above 127 get converted somehow, and our code no
longer produces the desired effect.
|
by: Larry R Harrison Jr |
last post by:
I have Access XP, and the following code which is supposed to assign a JPEG
to an image control:
Me.Image9.Picture =
"F:\Pictures\CP775_SonyDSCP50\FingerRockNight_Resize.jpg"
I get this error though:
microsoft access dont' supoort the format of the file
|
by: Michael McGuire |
last post by:
I have a very strange problem occurring on a couple of servers
I have an ASP.NET application written in C# running on IIS 5.0 with Windows 2000 Server. This is the first ASP.NET application running on these servers. There are actually 4 servers that this application has been installed on. The application is a simple ASPX page with a code-behind DLL. The one ASPX page I have is named default.aspx. It uses Windows authentication (anonymous...
|
by: Neo Geshel |
last post by:
This works:
<form>
<asp:TextBox id="name" />
<%= name.ClientID %>
</form>
But this DOES NOT work:
<form>
|
by: Shimon Sim |
last post by:
Hi
1) Is it possible to force browser to open image in default windows
application? That is what specifies in Folder Options for jpg extension.
2) Also if the 1) is possible is it possible to send few jpg files at the
same time.
The problem that I am facing is that the client needs to print some files
that are saved on the server. Usually before printing user needs to resize
them. It would be the best if image opens right away in the...
| |
by: David Thielen |
last post by:
Hi;
I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But
when it tries to write a file I get:
Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images
C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for
my app. In it's properties I did check "Write" as a permission.
What else do I need to do?
|
by: nickster |
last post by:
For some reason when I use asp controls for the default content of a
ContentPlaceHolder, they do not get rendered. Static content is rendered just
fine however! Specifically I'm using multiple <asp:Image> and <asp:HyperLink>
controls and when I copy & paste them into a regular page, they work fine.
When I paste them into the Master page's ContentPlaceHolder, they do not
render. When I view the resulting page source, the controls are...
|
by: cody |
last post by:
I got a similar idea a couple of months ago, but now this one will require
no change to the clr, is relatively easy to implement and would be a great
addition to C# 3.0 :)
so here we go..
To make things simpler and better readable I'd make all default parameters
named parameters so that you can decide for yourself which one to pass and
which not, rather than relying on massively overlaoded methods which
hopefully provide the best...
|
by: wkerplunk |
last post by:
On mouseover it goes to the correct map say TheMap1.jpg and then on mouseOut it defaults back to map, I need to do a onClick that sets the TheMap1.jpg mouseOver to the default TheMap.jpg so the TheMap1.jpg is now the default image not the TheMap.jpg. So after I click for information, and mouseOut of that area TheMap1.jpg will stay as all the MouseOuts Until I click another area of the map say TheMap10.jpg once clicked TheMap10.jpg will become...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |