picturebox

VC++ how to change a picturebox from header file

HI, Just ran into a problem. How to I change a picturebox's picture from within a different header file. If I do it in the same .h file as the Form I am working on I use: sq1->Image = bi; (which loads in a bitmap) but when I do it from another header (i've included the correct header file), I get "sq1 is an undeclared identifier" and ...

Paste picture from outlook email to c# picturebox

Hello, I copied a picture out of an outlook 2007 message. In my App I want to paste that image to a picturebox using code: pictureBox1.Image = Clipboard.GetImage(); Returns an exception. How to paste a picture from outlook? If I copy a picture from mspaint my code works. thanks ...

Picture control in QT

Hi, i am learning QT, i am not getting how to get the picture control in QT?. in .net we have picture control right same way i need in QT. i know text edit support pictures but is there any alternatives. please tell if so. Thanks ...

C# PictureBox.Image

the following is an example of test code, it maybe not be completely correct: for (int i = 0; i < MAXCOL; i++) { for (int j = 0; j < MAXROW; j++) { HomeArrayPicBox[i, j].Image = Properties.Resources.scan; } } my issue is instead of all pictureboxes displaying...

Call a class in Managed Type Form

Hi, Have a problem that has been bugging me for a couple of weeks now. I want to do two things... Change a textfield text or picturebox image from a native function.....It happens in the managed type(eg Form 1)....How can I change this image or text externally from the managed type... I'm getting the obvious code. C2065 - undeclar...

C#. Displaying and moving icons on a windows form.

Hi, I need to display a set of Icons on a windows form and move them around at run-time. I have used the PictureBox control to display the icons but I would have to either not change the picturebox.SizeMode to Stretched, which results in very small icons, Or they would look blurred and horrible at run-time even though they are high quali...

Resizing Controls At runtime.

Hi All Does anybody know of any sample code laying around anywhere that would enable me to resize a picturebox at runtime when the mouse cursor is draging the bottom right edge of the control? Any help at all will be appreciated. Thank you ...

How to show OpenGL in PictureBox in Visual C++

Hi, I want to show OpenGL processes in Windows Form PictureBox. I am using Visual C++. I'm taking user values on Windows Form Interface and I must draw chart for this values. Do you know any document or sample? ...

How to transfer data from a listbox to a listview c#

I have a form which contains a listbox which is connected to a dataset, listview and 2 picture boxes. The data which fills the listbox is the title of a photo When an item(title) is selected in the listbox the image that its related too shows up in picturebox1. This is fine ive got this all to work. However I then should be able to mo...

Out of memory with multi images in one picturebox

Hi, ive problem with out of memory when im trying load few images into one picturebox. Pls Help :) public void button2_Click(object sender, EventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.ShowDialog(); string selected = dialog.SelectedPath; string[] imageFileList = Dir...

Listbox to another listbox that are linked to databases with pictures c#

ok so here's my code int rowNo = 0; selected = listBox1.SelectedItem.ToString(); sqlSelectCommand2.Parameters["@title"].Value = selected; sqlDataAdapter1.Fill(dataSet1); byte[] tempByteArray = (byte[])dataSet1.photos.Rows[rowNo]["photo"]; MemoryStream pic = new MemoryStream(tempByteArray);...

How to select a region in a Windows Forms PictureBox?

I want to get a part of picture in a PictureBox by allowing the user to select a rectangular region (similar to how it can be done in Photoshop with selection tool). How I can do this? ...

Load Picturebox Image From Memory?

I can't seem to figure out how to load a pictureBox image from a bitmap in memory. Is it possible or do I have to create temp file for the bitmap? ...

Detecting when error image in PictureBox is used

I found this on Google, click here, which someone asked a similar question, receiving a response that they should check if their file exists. However, I'm loading images from web links, in which it displays an error image if A)The picture is not found or B)If, like in image hosting services like Photobucket, displays the 'Bandwidth excee...

How to draw onto a PictureBox image when control resizes?

I am using the pictureBox_Paint event to try and draw an overlay onto the image in a PictureBox. This is working fine until I resize the PictureBox (set to use SizeMode.Zoom), when I do this the overlay graphic is drawn off position by the margin between the image and the edge of the PictureBox. I guess I need to use the ImageRectangle ...

Windows Forms' PictureBox with zooming and panning

My application needs control displaying bitmaps (jpg) but also zooming and panning them (so if you press mouse button you can 'move' zoomed picture inside frame) What I did was placing panel at the Form, then pictureBox inside panel (anchored Top,Left). So if I need zoom it I'm just executing below code from Zoom buttons events: pr...

How to upload and size a profile picture for a site?

I have a site that has a profile page and I would like to allow the users to upload an image for the profile picture. I forsee a problem if the user select an image that is larger than what I am allowing for the site. Is their a good refrence or example how to accomplish this? The site is developed in Visual Studio 2008 with VB.NET 3....

C#: Creating an editable object inside a PictureBox

My goal is to let the user click on a specific location on a map to add a Placemark, and then edit the placemark by click its icon (change its name, move it around, etc). I am using a PictureBox to show the map, and by registering the MouseDoubleClick event I am drawing an Image on the map with GDI+ DrawImage() method. The problem is tha...

Creating a image viewer window controll.

I am learning GDI+ and I am trying to make a display window with scroll bars (so I can only see part of the image at a time and I can scroll around it). I have read through the basics of GDI+ from several books but I have not found any good tutorials online or in books available to me about doing more advanced things like this. Any reco...

How to update EXIF tags of a picture file in Ruby ?

Title says everything. ...