is it possible to detect when the mouse has left an image box and then tell it to perform something... in this case it would be to load a picture.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Image Boxes And Picture Boxes
hi, when i use this coding for and 'ImageBox', it works, but when i use it for a 'PictureBox', it doesnt. Can someone please tell me why.
Private Sub Timer4_Timer()
Picture1.Move Picture1.Left, Picture1.Top - 40
Picture1.Move Picture1.Left + 20
when 'Picture1' is replaced with an Image1, it works, but if i leave it at picture box, it doesnt. Someone please help
here is the coding that executes Timer4...
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If Asc(32) Then
Timer4.Enabled = True
is that 'Asc(32)' (which is the space bar) cannot move picture boxes but it can move imageboxes?
someone plz help
ok after this question, call me a newbie all you want...
in the coding, how to change the pciture inside an image box?
i know it starts of by:
(assuming the 'ImageBox' is called 'Image1
Image1.Picture = ???
assuming that my picture is called 'Picture1', how would the coding go?
i know its not Image1.Picture = Picture1
Lets say you have 2 image boxes. One to the left of the form and one to the right. The one to the left has a picture of a red car and the one to the right is a blank image. What would be the code so that when you click on the the red car, that image goes and transfers to the right image box. so now there would be the same picture in both boxes. if you can help me with that thanks alot.
Is it possible to have three different images coming from the same image box at different times depending if you have clicked the option button which has the picture?
How do you make the image in an image box change in code.
Private Sub Form_Load()
Image1.Picture = "C:Documents and SettingsAdministratorDesktopUnityUnityGamesMansion MakerGrandPiano.gif"
But it doesnt work
to load an image to an image box u use
imgnextquestion.Picture = LoadPicture("C:WindowsButton - Next Question.gif"
but i need to identify the image in the box so
if i use
If imgnextquestion.Picture = LoadPicture("C:WindowsButton - Next Question.gif" then
it doesnt work
can u use like
imgnextquestion.pciture = button - next question
this is what i have and it doest work
If (imgcheck.Visible = True) And (imgnextquestion.Picture = LoadPicture("C:WindowsButton - Next Question.gif")) Then
MsgBox "Please Click Next Question!", vbInformation, "Info Message"
ElseIf imgnextquestion.Picture = LoadPicture("C:WindowsButton - Next Question.gif") Then
lbldisplay.Caption = "You have Selected Option B, Click 'Check Answer'"
ElseIf imgnextquestion.Picture = LoadPicture("C:Windowsutton - begin.gif") Then
MsgBox "Please click Begin"
is there a way to unload a picture from an image box. I used the loadpicture to place an image in the box but when i click a command button i want it to remove that picture. Is there a way to do this?
No, i'm not a lamer, i just cant figure it out.
i have an imagebox names image1(1). now.. during the run-time i want to be able to make a duplicate of this image, and call it image1(2) or image2(1). how can this be done? i have tried to dim it as new, but imagebox is not an option. any help is apreaciated. thanx!
[Edited by da404LewZer on 03-20-2000 at 02:17 AM]
Hey is there a way in VB to keep the background out of the picture box. Like i want to use a picture of a person, but it comes with a background that doesn't look right. Is there a way to fix that.
Image Combo Boxes....?
hi, i want to make a image combo box so that when you select an option, the image appears below, however i am having a few problems..
for a start i cant actually get any options to appear in the combo box even though i have tried all the code i know
also im not sure how to get the images to appear once i have managed that
thanks for your time.
If Then Statements With Image Boxes.
Hey guys I would like to set up a if then statement with a image box.
But I am not sure what the context is for it.
i would like to get it so if the picture in the imagebox is a certain filename then something happens
would it be like this?
if image2 LoadPicture(App.Path & "ColorsOrange.bmp") then
JPG-pictures In Image Boxes
I have made a programme that shows documentation which is scanned documents (jpg-format) in an image box. It works fine, but the resolution in the boxes are not so good as I see the images in e.g. Windows Picture and Fax viewer or similar programmes. It is difficult to read the text in the image boxes even if I make the box relatively big on the screen. Is it possible to increase the resolution in the image boxes?
Images With Image Boxes
i am trying create my own graphics file format, and i want to capture the image from one image box to another and i am hoping my file will hold the rgb value for each pixel, but when i try and caputure each pixel its very sloooow, how do i display images from a list of rgb value as quickly as any image editing program displays them
Arranging Image Boxes
How do you arrange image controls on a form in the way the your desktop arranges its icons?
Transparency In Image Boxes....
I've seen this answered to the negative on this forum, but wanted to make sure that that was correct....
I have two or more images that I move around on a white background. Sometimes the images partially overlap each other. The images have "fuzzy" edges, which I have partially extracted and made transparent.
What I need to happen is to see the visable parts of each image through the transparent parts of the other, like a blend of the two pictures.
Can this be done in VB6?
Image Boxes? (RESOLVED)
Hi, this probibly sounds reli stupid but im kinda new to vb so,
is it possible to change images in an image box when the program is running?
i mean i want to change a blank image box to a jpeg stored in on the HDD?
Edited by - Vyizis on 9/22/2004 6:20:07 AM
Image Combo Boxes
i'm interested in learning how to use image combo boxes, but i can't figure them out. first of all, i want to know how to add items to them (during design time or runtime) and i want to know how to put pictures in. anyone know a lot about image combo boxes? i could use some help. i've been pretty frustrated because image combos don't seem to have the properties that you need to use them properly. i've messed around with almost all the properties available in the properties window and i've messed around with several more in code and none of them have done me much good!
Now, don't get me wrong, 'cause baseball's a great sport.
It teaches little children simple eye-hand coordination with little effort or exhaustion.
Thumbnails In Image Boxes
I have a control array of image boxes. When you open a powerpoint presentation, the image boxes are drawn and they contain each individual presentation slide. It is using up a lot of memory when you open a large presentation. My question is, is there any way to make the slides into thumbnails instead of loading the whole thing into the image box? Right now I have the stretch property set to True and this is the code I have to copy and paste the slides:
'Copies a slide and pastes it in the picbox one at a time.
Form1.picbox(counter).Picture = Clipboard.GetData()
Thanks in advance for any help.
Image Controls And Picture Boxes
This is probably a bad and extremely novice question, but I don't know the answer . What is the difference between and image control and a picture box? What are some examples of using one for a certain situation and the other for another case?
Creating A Gride With Image Boxes
im working on a checkerschess game. i've decided to change the whole way i make piece move accross the board.(again) I hate making like 64 image boxes to hold the images lol is there a way to like.. create a image box, control array grid? or somthing like that?
Image Control In Picture Boxes?
I have placed a picture box on a form and made a file
choosing menu system for a *.jeg custom viewer. I can load
the images in to the viewer. How can a person control
the images inside the picture box? Many times I will only see 1/2
or 1/4 of my image depending how big I made the picture box
durring design time. It would be nice to have come property settings
to control the image itself. If the picture box would allow scroll
bars simular to a textbox with scroll bars it would allow me
to view the whole image. If there was settings
to make the complet image fit into the picture box would be helpful.
Does anyone know if picture box has properties that I am looking for.
If not, Is there a Windows API control that might give me better
User Moves Image Into Boxes?
I want to make the numbered boxes "tiles" and allow the user to drag them into the proper box below. Obviously, something cannot be dragged into a square it was not meant for. 5 tiles, and 5 slots below...
What is the best way to go about this... can anyone provide some hint or does skeleton code already exist?
The purpose here is that the user will be contructing a "sequence"
How Should I MOVE THE IMAGE BOXES IN A VERY SMOOTH MANNER?
i have figured out hwo to move the images with easy and normal vbkeycodes...BUT CAN NEONE TELL ME HOW SHOULD I MOVE IT SMOOTHER!! coz u know to move i i always have to press the ke again n again!!....I WOULD RATHER REFER JUS PRESSING ONCE AND HOLDING ON TO THT...Rather than pressing the arrow keys again n again!!
it looks somewha like this
if keycode = vbKeyup then
img1.top = img1.top + 32
and u know so on?!?!??!
Problem With A Bunch Of Image Boxes And One Picture Box
As in my previous few posts, my program uses a 32 by 32 grid of imageboxes (created at runtime). The pictures in these imageboxes is derived from 1 or 2 images layered on top of each other (this is done using CreateCompatibleDC, bitblt, and a picture box, but this is probably not relevent to my problem.)
The program loads data from a file and displays a particular image based on the byte retreived. 1024 bytes are read from the file, but somewhere around the general vicinity of byte 775 (sometimes higher) vb crashes (invalid page fault, see below). Using a special debuging technique i came up with to determine exactly which line caused the fault, I found that the line "Editor.pbxCombine.Cls" caused the crash.
VB6 caused an invalid page fault in
module <unknown> at 00de:ffffffc5.
Is there any way to prevent this crash?
I might be able to prevent the error by switching completely to image boxes. But I'm not sure how to blit an image directly to an image box without using a picturebox.
Is ther any way to blit an image directly into an imagebox?
Picture Boxes / Image Lists / Icons
I have a situation where I need to build a picture out of a collection of icons, mosaic-style.
My first attempt was to create a form that would have Visible set to True, but be positioned off-screen so user couldn't see it; this form had all the icons I would need in pictures boxes. The main form then grabbed these icons using the picture box's Image property and tried to use the API call DrawIcon(). The problem is, the call failed, even though the hDC was valid, the Image property returned something non-zero, and the position was well within limits.
Question (1a) Why did the call fail? I can only suspect that what the Image property returns is NOT an HICON as required by DrawIcon()...
My second attempt was to take this handle and use it with the API call BitBlt() instead, assuming it was an HBITMAP. Despite creating a memory DC compatible with the display (passing 0, or NULL, to CreateCompatibleDC() ), it failed when I tried to select the HBITMAP(?) into the memory DC for blitting.
Question (1b) Why did the select fail? I assume the handle was not an HBITMAP, or it was not compatible with the DC (which should not be the case, since the DC matched the display!).
Question (1c) Given a picture box with an icon as its Picture property, how can I get an HICON handle from it, if the Image property does not give it as it hinted it did?
My third attempt was to use an image list. I added all the icons to the list(s), and sure enough they show when I DrawIcon() after calling ExtractIcon on the image list entries. Great. The problem is, it is not using the colours present in the icons (which are 16 colour)! It seems to use shades of grey, but not even a proportional shade to the real colours - white comes out as black. I told it NOT to use the mask colour, and I set the mask colour to an unused colour just be sure.
Question (2) Why is it not using my colours? How can I get it to do so?
If it is of any help, I am trying to draw these on a large picture box (AutoRedraw = False). I see no Palette property, so I don't understand why colours are being messed up.
Can anyone help?
Save Label/image Boxes Location On Form
I can now drag an image box on a form thanks beachbum and jamie!!
But when i exit it goes back to it's position i put it in at design time.
So how can i save it's position when my app exists!
Use Of Picture Boxes - JPEG Image Content, Zoom And A Design Time Query
I wish to use several large picture boxes to display diagram information which is available from JPEG files on my drive.
1. When I load one of these to the picture box, only the top left corner of the JPEG image appears in the picture box. How may I cause the whole of my JPEG image to be visible?
2. Having achieved that, if it is possible (and surely it is) is it then possible to make the picture box zoom in on a particular section of the image such that it can be examined in much greater detail?
3. Finally, I will have about ten of these large picture boxes all placed on top of each other on my form (so that they can be as large as possible). At run time this is no problem because only one at a time will have its visible property set to true, but is it possible to do something similar at design time such that the lower level picture boxes may be edited. At design time it seems that the last box I have placed on the form always stays on top, hiding those placed previously. It is agreat nuisance to have to drag aside all the later placed boxes in order to get at and work on an earlier one.
Suggestions will be gratefully received.
Read Google Image Search Results And Show Images In Picture Boxes
i'm a newbie in vb, so please appologize any silly questions. i searched the forum for answers already but couldn't find anything really helpful.
what i need is:
- ask google - (e.g. http://images.google.com/images?q=0671600419)
- wait for response
- parse html for 'imgurl's and
- load the first 6 images into picture boxes in a form
this is for a books collection (2000+) tool i'm writing for a friend of mine. i want to include a 'search for cover on the internet'-function to show the books cover picture ( not to judge the book, but to impress her ) and google quiet relieably returns them when searching for the books' isbn number.
so, please tell me: how can i ...
- get the html site so that i can search it for the 'imgurl' tag?
- load a picture from a url into a picture box?
any hints, links, tutorials? please help!
Can You Have Multiple Colours In Text Boxes, Or Richtext Boxes(etc)?
Is there anyway you can have each word in a text box a different colour? Like:
[RED] My Name [/RED]
[BLUE] What's up! [/BLUE]
or something similar?
I don't care if you can't do it in a text box but is there anyway to do it in any type of "text box"?
If sub classing is involved could you please point me to a tutorial?
Thanks a lot.
Web Control, List Boxes, Text Boxes, Please Help This Is Winding Me Up!
Hi guys i need some help with the webcontrol function in VB6
Part of my program needs to put listbox data from the program into a text box on the web and then click a submit button...
The list box i have has a list of multiple directories in (for the location of my files), from there i just want the program to put the top directory of the list box into a text box on the web and click a submit button on the web (its for uploading a queue of files), then after that has finished uploading, do the next directory in the list box... etc
It sounds pretty simple but i have no idea how to do it...
Thanks for any help you can give me, i will write a really good review about you and good rating etc.
Any knowledge of this would be greatly appreciated
thanks a bunch
Altering The Form Of Message Boxes And Query Boxes.
I have used the standard message box (msgbox) and query box in one of my programs which will be distributed. However, the boxes look awful! How do I change their properties, such as font, text size, picture (to the left of the box), button picture, button size etc...
Hope someone can help me out!
Can't Get Image Admin, Image Edit, Image Scan To Work
Every time I go to add components and add the Kodak IMG components it tells me each one cannot be loaded.
I did have it working and then when I re-loaded my project it told me that 'ImgAdmin could not be loaded' and the same with ImgEdit.....'Do you wish to continue loading project anyway'.
Please can you help?...I am in real nead for them to work.
Combo And List Boxes To Text Boxes?
Connecting sub-menus to rich text boxes is fine is most cases but the user does not always want to use menus to load and display text. Applying the same technique as sub menus to text boxes with combo or list boxes just wont work could someone please help me out with this one.
Both combo and list boxes will for example:
Contain an alphabetic list.
When the user clicks on a file it should locate the text file from the drive.
It should then open it into a rich text box on the same form.
Could this be possible?
Please any help will greatly be appreciated.
Check Boxes And Text Boxes
Using Excel 2000...
I have two questions; one, is it possible to "lock" a text box so that a user cannot enter/change data. I have a text box that is populated within the VB code, but I don't want the user to be able to click in the text box (BTW the textbox is in a userform) and change the entry.
Second question. Is it possible to "lock" a check box once a user selects it. So the user can select a checkbox, but once it is selected, he/she cannot uncheck the box.
Any advice or quidance would be appreciated. TIA
Help With Combo Boxes And Text Boxes
Hello, I am making a little test program and I want it so I can click on a item in my combo box and that word appears in my text box... any ideas? help please.
Combo Boxes Or List Boxes?????
A bit of a beginners question. Hope it makes sense
I dont know which is the best to use. Here is the problem:
I want some kind of drop down list that allows the user to pick one of 12 items. Then that item is linked to a set of numbers. For e.g. if user chooses the item "A" then this means the numbers 0.025689 and 0.85696 is linked to each. Now do i use a combo or a list item or something else.
In addition what kind of code do you use to enter new items in a combo box or list item box. I tried to use:
within the combo box private sub - but when i play it back the combo box is empty. Any ideas???
List Boxes And Text Boxes
Ok i have a list box that has a list of movies to choose from then you choose how many tickets you want i want to know how to display them in a text box and how to clear the dat file that i saved it in
Text Boxes And Combo Boxes
I am trying to create a system that will allow you to pick a name from a combo box and then other information about the person will appear in labels when a command button is clicked. The problem is, is that i do not know how to get the databar to link the correct information with the labels and with the right name.
List Boxes And Text Boxes
I have a list box with a bunch of items in it. I'm trying to make it so that when you click on an item in a list, the text appears in a text box. I don't know too much.. but what I have so far is
Private Sub List1_Click()
Dim i As Integer
Text1.Text = List1.List(i)
What this does is when I click an item, it makes the text of the textbox the first item in the list. How do I change it so that I can pick an item from the list and have the text of that item displayed in the text box? Thanks in advance!
Check Boxes And Text Boxes
Is there any way to use a checkbox in a rich text box. Or another way to do what I need which is....
when someone double clicks on a url (not hyperlink) in my textbox, through an SQL statement if finds the matching url in my database and displays the article that matches that url? This was easy using a listbox, but I don't know how to specify the text in a text box that was double clicked. I hope this makes sense, if not I will try to clarify.
I was wondering about the check box cuz then I could match the url beside the checkbox, maybe?
List Boxes = Text Boxes
Hi I'm new here (and to VB). I'm using VB in Excel and trying to get a list box to write to a series of three text boxes. I have a mobile phone user form and the list box has a selection of phones in it. I want the user to be able to choose three phones from the same list box and have the results display - one in each box. Can I do this and, if so, how?