473,626 Members | 3,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Picture box container

27 New Member
I have several image boxes... and one picture box as a container...


The problem is that... when i try to save the images.... the images doesn't appear.


for the image box code

i used LoadPicture

as for the Picture box....

i dont have any idea yet on how to be able to save the image boxes.. with the picture box as their container.


does anyone know how to do this?
Aug 11 '07 #1
12 4106
Killer42
8,435 Recognized Expert Expert
What version of VB are you using?

In any case, as far as I know the type of container that holds an image box should make no difference to how it works.
Aug 11 '07 #2
akynaya
27 New Member
What version of VB are you using?

In any case, as far as I know the type of container that holds an image box should make no difference to how it works.
Im using VB6.... if you have any idea... i would gladly try it.
Aug 12 '07 #3
Killer42
8,435 Recognized Expert Expert
Im using VB6.... if you have any idea... i would gladly try it.
I must admit, this is an area where I've always been a little vague. Sometimes you have to use the .Picture property, sometimes .Image, and the settings of certain properties such as .AutoRedraw also have an effect.

Also, I'm not entirely certain I understand the problem in detail. Are you saying that you have a number of imagebox controls, which reside in a picturebox control, and you are not getting what you expect when you save the images from them? And by "save" I mean writing to disk, with something like the SavePicture function.
Aug 12 '07 #4
akynaya
27 New Member
Yes, exactly... that is my problem.. i've been trying to find other similar problems but to no avail... i haven't found anything...


do you have any idea on how to do this?

Thank you for the help
Aug 13 '07 #5
Killer42
8,435 Recognized Expert Expert
... do you have any idea on how to do this?
Are you placing the images in the imagebox controls at design time or run time, or is your code drawing them? Can you show us the code used to load/draw/save the images?
Aug 13 '07 #6
akynaya
27 New Member
im placing the image boxes at design time... i've set the visibility under false and stretch property to true as to enable the image to be resized during run time.

when the user clicks on the command button at run time the image boxes' property is set to visible =true.

here's the commands in the command button:

Private Sub Command1_click( )
Dim as as integer
if as < 5 then
Image1(as).pict ure = LoadPicture("pa thname/file name of pix")
Image1(as).visi ble=True
End if

The image boxes is arrayed..

The code for the image boxes are simply for the drag and drop methods and the resizing event...

The code for saving that i've used is

.SavePicture Picture1.Image ....

hope this helps
Aug 13 '07 #7
Killer42
8,435 Recognized Expert Expert
Ok, so let me see if I've got this right. You've placed a bunch of imagebox controls inside a picturebox control. At run time, you load a picture into one or more of the imagebox controls. Then you save the image/picture (whatever you want to call it) from the picturebox control, and you expect to save what was displayed by the imageboxes.

If so, then forget it. This scenario has not placed anything in the picturebox controls Picture or Image properties. If you place an image in an ImageBox, then to save it you have to save it from the ImageBox.
Aug 13 '07 #8
akynaya
27 New Member
Yes, that's right... but i was wondering how come some other programmers are able to use picture boxes as a container using shapes?

i am wondering if all those image boxes could be repaired and instead of a big picture box as a work area.... could a big image box be able to save those other images?


if not, can you give me a better alternative to this?
Aug 13 '07 #9
Killer42
8,435 Recognized Expert Expert
As far as I can see, you have two real options.
  • You can save the contents of each ImageBox, or
  • You could try using the PaintPicture method to paint a copy of your ImageBox controls onto the PictureBox, then save it.
Aug 13 '07 #10

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

Similar topics

3
8336
by: jeff | last post by:
Hiya, Im currently in the process of developing a picture browser, I want it to run off a CD, basically I have 2 questions for the group. The first is how do I get the program to only view the contents of the CD, at the moment i have a drop down drive menu that allows me to select the drive, i want to be able to put the CD in and then have i view only the CD contents, Ive considered just entering in my code D:\ but what happens if the...
2
2954
by: Woof-Woof | last post by:
Hi, I have an application which displays a form with bar graph data on it. What I need to do is string 30 of these bar graph forms vertically in a picture box or some other container so I can scroll the 30 forms vertically in sort of a "film clip" like method. Can anyone give a little insight into what, if any, container is capable of holding 30 different form objects each with its own data?
3
8206
by: Don | last post by:
Hi, I try to get a simple applet working, the class-file does load, but the image doesn't appear;( An error doesn't appear. The view is and stays 'grey' What I want: Automatic refresh of a webcam image Filename is the same. File is located in same directory as applet.
3
7128
by: Stanley J Mroczek | last post by:
I do i resize a ImageUrl Picture to show at 50 precent of its size? the height is only a set not a precent.
7
6582
by: Michael Jaeger | last post by:
Dear ciwah, I'm in the process of designing a German school web site, and I need the help of you experts. I wrote the navigation (CSS based, no javascript), which looks OK in IE, Firefox and Opera. Now I would like to place a picture at the outer right side of the navigation bar, and this is where it gets tricky. I experimented with a div container, I tried using a layer, but the design always turned out
5
1767
by: Brian Henry | last post by:
Hello, I am working on a simple email website that is kinda like hotmail... but the listing of messages is in a data grid data bound to a table called messages... now one of the columns in the messages data table is called read if the value is 1 the message is read if 0 then unread... what i want to do is show an image in the listing based on that value, if 1 then icn-msg-read.gif will be showed in that column for that message row, if 0...
3
1284
by: hoz | last post by:
Hi , lets say i have an sql table Users ( id, name ,pictureurl) i use datagrid to show records . my problem is , when pictureurl is null how can i load default.jpg picture ? binding is done on run time ( using DataEval.DataBinder)
1
1859
by: Dica | last post by:
i've got an image too large to fit inside my picture control. how do i get horizontal and vertical scroll bars?
4
9213
by: Charles | last post by:
Hello Everyone, I have been gettting great feedback from microsoft.public.vc.language group but after doing more searching I think my post should be directed to this group. I am trying to make a simple gif animation using VC++ and 13 different gif files and a timer. I am new to VC++ but played around with C++ for a few years. I am using Microsoft Visual Studio 2005 (VC++).
0
8268
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
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,...
0
8707
Oralloy
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...
0
8641
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8510
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4093
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...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1512
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.