Ive been programming for some time now, so i wanted to get into graphics, but
i wanted to see if I could make a Picture Viewer. I have no experience with
the picture control, ive tryed the MSDN tutorial for the control. If the code
to use it in is in Basic, dont bother sending it. Nor do i have much
experience with the "Open" dialog box. 5 2243
Hi Michael,
Both the controls are very strightforward. Since you had been programming
for some time, it shouldn't be a problem at all.
Here's an MSDN link which shows how to set the picture in the PictureBox
control at run time http://msdn.microsoft.com/library/de...satruntime.asp
You could also directly set the path to the picture.
And here's the MSDN's intro to the OpenFileDialog component http://msdn.microsoft.com/library/en...oloverview.asp
Let me know if you need more help.
HTH,
Rakesh Rajan
"Michael" wrote: Ive been programming for some time now, so i wanted to get into graphics, but i wanted to see if I could make a Picture Viewer. I have no experience with the picture control, ive tryed the MSDN tutorial for the control. If the code to use it in is in Basic, dont bother sending it. Nor do i have much experience with the "Open" dialog box.
Thanks for the quick reply, but im still confused. The sites you included are
helpful, but when trying the code for the PictureBox, it comes back with
multible errors, ones i have no idea how to fix, here they are:
error C2065: 'pictureBox1' : undeclared identifier
error C2227: left of '->Image' must point to class/struct/union
type is ''unknown-type''
error C2653: 'String' : is not a class or namespace name
error C2653: 'System' : is not a class or namespace name
error C2653: 'System' : is not a class or namespace name
error C2065: 'Personal' : undeclared identifier
error C3861: 'Concat': identifier not found, even with argument-dependent
lookup
error C3861: 'GetFolderPath' : identifier not found, even with
argument-dependent lookup
Thanks, Michael
"Rakesh Rajan" wrote: Hi Michael,
Both the controls are very strightforward. Since you had been programming for some time, it shouldn't be a problem at all.
Here's an MSDN link which shows how to set the picture in the PictureBox control at run time: http://msdn.microsoft.com/library/de...satruntime.asp You could also directly set the path to the picture.
And here's the MSDN's intro to the OpenFileDialog component. http://msdn.microsoft.com/library/en...oloverview.asp
Let me know if you need more help.
HTH, Rakesh Rajan
"Michael" wrote:
Ive been programming for some time now, so i wanted to get into graphics, but i wanted to see if I could make a Picture Viewer. I have no experience with the picture control, ive tryed the MSDN tutorial for the control. If the code to use it in is in Basic, dont bother sending it. Nor do i have much experience with the "Open" dialog box.
Hi,
I guess you copy-pasted the samples given in the articles.
Instead of doing that, create a new project and drag and drop the required
components and code. Don't copy the sample code exactly as it is given -
instead copy only the portions you need and modify the control names as you
have given in your code.
HTH,
Rakesh Rajan
"Michael" wrote: Thanks for the quick reply, but im still confused. The sites you included are helpful, but when trying the code for the PictureBox, it comes back with multible errors, ones i have no idea how to fix, here they are:
error C2065: 'pictureBox1' : undeclared identifier
error C2227: left of '->Image' must point to class/struct/union type is ''unknown-type''
error C2653: 'String' : is not a class or namespace name
error C2653: 'System' : is not a class or namespace name
error C2653: 'System' : is not a class or namespace name
error C2065: 'Personal' : undeclared identifier
error C3861: 'Concat': identifier not found, even with argument-dependent lookup
error C3861: 'GetFolderPath' : identifier not found, even with argument-dependent lookup
Thanks, Michael
"Rakesh Rajan" wrote:
Hi Michael,
Both the controls are very strightforward. Since you had been programming for some time, it shouldn't be a problem at all.
Here's an MSDN link which shows how to set the picture in the PictureBox control at run time: http://msdn.microsoft.com/library/de...satruntime.asp You could also directly set the path to the picture.
And here's the MSDN's intro to the OpenFileDialog component. http://msdn.microsoft.com/library/en...oloverview.asp
Let me know if you need more help.
HTH, Rakesh Rajan
"Michael" wrote:
Ive been programming for some time now, so i wanted to get into graphics, but i wanted to see if I could make a Picture Viewer. I have no experience with the picture control, ive tryed the MSDN tutorial for the control. If the code to use it in is in Basic, dont bother sending it. Nor do i have much experience with the "Open" dialog box.
Ok, i understand that, but what i dont understand is the member variable
"pictureBox 1". There is a "PictureBox 1", the name of the picture control in
my project, but after changing the name, nothing different, i change the
..Image to just "image.gif" , not all the stuff about the "My Documents"
folder, but it still comes up with errors. I change the code to just this:
PictureBox1->Image = Image::FromFile ("Image.gif" );
where it only comes up with 3 errors.
error C2065: 'PictureBox1' : undeclared identifier
error C2227: left of '->Image' must point to class/struct/union
type is ''unknown-type''
error C2064: term does not evaluate to a function taking 1 arguments
maybe if you could send me a sample project, or a detailed explanation, that
would be great, sorry for my lack of knowledge, ive worked with 6.0 for a
while, not .NET, just got it.
Thanks, Michael
Email: ca***********@g mail.com
"Rakesh Rajan" wrote: Hi Michael,
Both the controls are very strightforward. Since you had been programming for some time, it shouldn't be a problem at all.
Here's an MSDN link which shows how to set the picture in the PictureBox control at run time: http://msdn.microsoft.com/library/de...satruntime.asp You could also directly set the path to the picture.
And here's the MSDN's intro to the OpenFileDialog component. http://msdn.microsoft.com/library/en...oloverview.asp
Let me know if you need more help.
HTH, Rakesh Rajan
"Michael" wrote:
Ive been programming for some time now, so i wanted to get into graphics, but i wanted to see if I could make a Picture Viewer. I have no experience with the picture control, ive tryed the MSDN tutorial for the control. If the code to use it in is in Basic, dont bother sending it. Nor do i have much experience with the "Open" dialog box.
Never mind, even though you havent responded. I found a great site that
helped alot, and it has things in C++6.0 and .NET, both of which I use.
Check it out: http://functionx.com/
"Michael" wrote: Ok, i understand that, but what i dont understand is the member variable "pictureBox 1". There is a "PictureBox 1", the name of the picture control in my project, but after changing the name, nothing different, i change the .Image to just "image.gif" , not all the stuff about the "My Documents" folder, but it still comes up with errors. I change the code to just this: PictureBox1->Image = Image::FromFile ("Image.gif" ); where it only comes up with 3 errors.
error C2065: 'PictureBox1' : undeclared identifier error C2227: left of '->Image' must point to class/struct/union type is ''unknown-type'' error C2064: term does not evaluate to a function taking 1 arguments
maybe if you could send me a sample project, or a detailed explanation, that would be great, sorry for my lack of knowledge, ive worked with 6.0 for a while, not .NET, just got it.
Thanks, Michael Email: ca***********@g mail.com
"Rakesh Rajan" wrote:
Hi Michael,
Both the controls are very strightforward. Since you had been programming for some time, it shouldn't be a problem at all.
Here's an MSDN link which shows how to set the picture in the PictureBox control at run time: http://msdn.microsoft.com/library/de...satruntime.asp You could also directly set the path to the picture.
And here's the MSDN's intro to the OpenFileDialog component. http://msdn.microsoft.com/library/en...oloverview.asp
Let me know if you need more help.
HTH, Rakesh Rajan
"Michael" wrote:
Ive been programming for some time now, so i wanted to get into graphics, but i wanted to see if I could make a Picture Viewer. I have no experience with the picture control, ive tryed the MSDN tutorial for the control. If the code to use it in is in Basic, dont bother sending it. Nor do i have much experience with the "Open" dialog box. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris |
last post by:
Hi,
I am trying to set the position of a picture inside a picturebox with the
folowing code:
pctOutput.Picture = LoadPicture(App.Path & "\picture.bmp", ,
, , )
I didn't know what to fill in at and so the result was:
|
by: Erwin |
last post by:
At the moment I'm using a report which contains an indicator to show
if a Service group of the company isn't working well or is working
perfectly. This indicator is a "*" which looks like a traffic light.
Example:
When a Service groep does hit the target, the indicator will lit up
using the following Control Source:
=IIf(>0,8*10*;"*")
But now, I would like the use a real bitmap, trafficlight bitmaps, to
|
by: bborden |
last post by:
Novice Access programmer here.
I would like to display an image using the Toolbox Image object by
calling the images file name using:
=fPictureFiles(!!,1)
in the Picture control.
Below is the function which DOES actually returns a valid file
|
by: Z D |
last post by:
Hello,
BACKGROUND:
==============
I've created a Windows User Control that contains an Image Control (among
other controls).
The user control handles the picture resize event. Whenever the parent that
holds my user control is resized, I resize my image so that it uses the
maximum available space. Note: It takes about 2 seconds to regenerate the
|
by: |
last post by:
How do I control the layering of 4 forms of identical size and position to
cause the desired form to be second from the top..
Form1 has my welcome screen etc.and the code for file manipulations etc. etc
Form2 has a foreground image of a decorative picture frame (,png image) with
a transparent center, and a tab control for the user to select .bmp
pictures to view.
Form3 has a "picturebox" into which is loaded the user.bmp file image
| |
by: Michael |
last post by:
Ive been programming for some time now, so i wanted to get into graphics, but
i wanted to see if I could make a Picture Viewer. I have no experience with
the picture control, ive tryed the MSDN tutorial for the control. If the code
to use it in is in Basic, dont bother sending it. Nor do i have much
experience with the "Open" dialog box.
|
by: Siv |
last post by:
Hi,
A little while ago I wrote a small program that allowed the user to view
products from a database. The database holds the details of the products
which can be viewed via a form and additionally pictures of the product are
stored in an images subfolder and the database holds the file name of the
relevant picture. The user can then click a button to display the picture in
a pop-up window and also another button to email the potential...
|
by: vidhyaprem |
last post by:
i have started a small project in visual basic regarding the stock details in our textile company.It has details like product id,product name,no of items,product picture etc.. so i have created a table called "products".I have stored the picture of the each product as a OLE object(Bitmap Image) in product table.I tried viewing my entire "product" table in Visual basic form by using data control.I used OLE control to view the products...
|
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: 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: 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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |