Making The Picture Open In The Picturebox?
Dec 18, 2009
Im setting the standard program to .jpg files to my program. So when it starts it shows the picture in a picturebox ofcourse.
My problems:I want the pictures standard size to be the size of the picturebox.Making the picture open in the picturebox?
View 19 Replies
ADVERTISEMENT
Sep 4, 2009
May i know how to code to enable users to drag picture into the picturebox and be able to open the picture automatically once the user let go of the mouse click event, but if the user leave up the mouse click button on the main form then a msgbox will pop up saying this is not the correct place to put in the picture and the form will not be able to open the picture.
[Code]...
View 1 Replies
Jan 14, 2010
Hey I am making a GDI++ game in vb.net. Now what I want is the monster(picturebox) to go after the player(picturebox). There Are No Vertical Walls. Only The Edge of map barriers. For example to get to the player the AI would have to go to the end of the ledge and either jump off and fall to the lower ledge or take the ladder down. There is no jumping, only falling and going up and down ladders and across the horizontal ledges. So How Can I make this pathfinding system?
View 18 Replies
Jan 27, 2010
when adding picture to dynamic picturebox from my.resources in .dll a duplicate semi functional picturebox is added too, behind the picturebox i intended to add. has anyone seen this happening before or can provide any insight into this?
View 1 Replies
Oct 8, 2009
In a form I have two picture box and I want to drag the picture from the picturebox to a blank picture box and have that picture pasted there, how do I do that? I'm using VB.net 2003.
View 3 Replies
Sep 22, 2011
I have an app that downloads a picture into a picture box. The picture changes on the web page but not in the picturebox.
How can I refresh the picture box with something like this?
View 1 Replies
Jun 5, 2009
I am making pictureboxes as enemies, and i have a picturebox that that user controls. I want the enemies to move towards the user's picturebox, regardless of their position (Which will be random!).
View 2 Replies
Nov 10, 2009
I am making a application that you enter 3 number one for length, width, and height of a rectangle.It needs to display a picture showing all three.i am using windows form application to do this wil three text boxes to enter the numbers.
View 3 Replies
Jun 12, 2011
(my first question) For starters.I am using Visual C++ 2010 I have VERY limited knowledge (I am not sure how to declare a variable or convert to strings.I took a Visual Basic course in school so I do understand SOME basics... just not the right language
I am trying to make a program that can open pictures in its own PictureBox. I have the form already made, and I had it working with a combobox with the list of all the different pictures, a button to load the picture depending on the selected item in the
combobox (MANY MANY if statements), and i also added a previous and next image pair of buttons (200% more if statements). I was happy with it, except whenever I added a new picture I had to add many lines of code... So i figured i can use this openfiledialog
and open them that way.
what i have so far is when i press "btnLoad" it opens the "ofdPictures" {openfiledialog}
what i need it to do is when i select my picture and press "open", it open the image in the picture box "picPictures", which is in my form.from what i understand with playing around with openfiledialog in VB is that the command this->ofdPictures->FileName
makes the selected file a string... but i think i have to make it = a string variable...
now, i think i fixed that by adding to "private: System::Void ofdPictures_FileOk"
[Code]...
View 2 Replies
Oct 26, 2009
Is there a way of making a Picture Box have a transparency so that any objects (e.g buttons) that are layered underneath the picture box will be shown through?
Or if there is any other way of getting the mouse coordinates only on the form. So when the mouse cursor is placed at 20,20 on the form it will give back the coordinates 20,20 no matter where the form is placed on the screen
View 5 Replies
Apr 27, 2012
I am creating a vending machine that has moving items. My issue is making a certain picturebox move left/right to a specified point, then down to the " Item return" label. I'm using a timer to make the items move. I just cant figure out how to get this item to stop then go down then stop again.
After that I'll display a message telling the user the item is ready. How would i get the item I moved to go back to it's original place?
View 3 Replies
Jan 20, 2011
How do I make a picture box follow a designated pathway. I have made a game where I have several picture boxes that follow each other. and want on of the trails to be able to do its own course. I have noticed that picturebox.left = picturebox.left + 10 works only for going left but picturebox.right = picturebox.right + 10 it saids read only. so I tried doing minus 10, though i don't know a condition how to do it. like how do it make it turn around when it's 10 from the boarder?
View 13 Replies
Nov 21, 2011
I am making a visual basic project in making a frog jumps up and down . and also indicating its increments.
View 2 Replies
Nov 30, 2011
i am making a game in visual basic and when the picture box that you have to shoot resets, sometimes it resets off the form i use this code to make the picture box move randomly.[code]
View 6 Replies
Dec 16, 2010
I've been trying to make a grid to test some AI stuff I'm working on. I managed to do it using rectangles and graphics.rectangle (pens.black, rect) by using a vid on youtube, but it made the application virtually useless because of all the memory it was using. I don't need it to be an actual grid, but I do need it to have values as if it was a grid, so that I can issue commands (x,y coords). (I have been searching the forums for over an hour, but all examples are either useless or cant be converted correctly).
View 6 Replies
Oct 18, 2009
This time I have seach in the forum, and can't find the answer I have a picture box with a slide show what i want is when i click in the picturebox i want the name on the picture
View 8 Replies
Sep 11, 2006
Somebody knows how to shrinks a Picture and display it in a Picturebox without stretching it, keeping the same look.
View 4 Replies
Apr 12, 2009
I was wondering if there is a way of making a picture have the properties of a checkbox. I want to have clickable stars that change color (from white to yellow) everytime the user clicks on them to represent the rating they put on certain foods.
View 5 Replies
Jan 20, 2011
I want a picbox to move across a screen then back to where it started (for a space invader game:
the following code is what I have for this task.
Code:
Private Sub AlienMovement_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AlienMovement.Tick
If Alien1.Location.X > 20 Then
[Code]....
I can't make it < because thats not logical, can't make it = becasue that doesn't work, can't make it > becasue then it will only bounce back once. Is there another variable I could use?
View 5 Replies
May 25, 2009
I'm making a program that generates a picture of armor from a website, this armor is the armor a player is wearing on a game called halo 3. My problem is that I have the list of armor for the two races in the game in the resources and I need to know if this would be the right
Head.items.addrange(my.resources.SpartanH) Head is the combobox SpartanH is the name of the text file in my resources, if I've got my code all wrong, will someone please correct me?
View 2 Replies
Dec 25, 2010
I'm making an application where a user draws a shape on a picture box( this will be saved on a bitmap image), then another user has to draw on that shape (=follow it ) . if the 2nd user goes too far from the line then an error message will appear.
for example( in case i couldn't clarify this well!)the 1st user draws a a vertical line, the 2nd user has to follow it, if-while drawing on it- he gets too far horizontally, there would be the error.
I'm currently thinking of comparing every point by the 2nd user to its equivalent in an array containing the points by the first user.
View 5 Replies
Jan 16, 2011
We bought a DIY security camera, the camera is making automatically mpegs if a movement is recognized. A picture can be made with a delivered program. We have the idea to make a program with the delivered dll files to make automatically pictures.
timestretchDMO.dll
GPIProxy.dll
expDMO.dll
DVCtrl.dll
DSPDMO.dll
View 9 Replies
Jun 17, 2009
how to change a picture in picturebox with another picture..like want to replace old picture with new picture..when i try a code.. it always say "picture already in use.." and can't to be change..?
View 10 Replies
Dec 28, 2010
I'm using vb.net 2010 framework4 I wanna know how to load a picture from the internet into a picturebox for example: i want the picturebox to load the following picture:[URL]
View 7 Replies
Jun 17, 2010
I'm stuck at a little Problem. Well I got an Image in a Picturebox and need it to convert it in a Bytearray to store in an Imagecolumn in a Database. I do know how to convert a FILE to a bytearray, but I'm stuck at this. would be appriciatet. This is what I got so far, but like I said, it didn't work properly.
[Code]...
View 3 Replies
Dec 5, 2010
How would I draw a picture on a form? Would I put in a "picturebox" and draw in that? And if so, how do I do that? (I want to draw a bar chart).
View 2 Replies
Sep 9, 2009
how can i change the background color of a picture saving from a picturebox in vb.net.In my form there is a drawing section.after drawing i am saving the picture as jpeg.but the image's background color is black.so i can't see anything that i have drawn.the drawing pen color is also black.
View 2 Replies
Nov 6, 2009
I was wondering why my code doesn't work I want to save a picture from a picture box showing a webcam preview.
Code: picturebox1.Image.Save("C:UsersMyUserNameDesktopa.jpg") I think I need to use the "New" keyword to do something - but how?
View 3 Replies
Jan 19, 2010
1. is it possible to have a picture in a picturebox and then drag it to another so it gets placed there? if so, how? 2. can you assign a picture a name? because if i move it a cant use a code like this: picturebox1... = whatever. if so, how?
if i want to check for 2 variables thats right, do i use "textbox1.text & textbox2.text = 8" or "textbox1.text && textbox2.text"?
View 1 Replies
Mar 18, 2011
I couldn't find any handles that allow this, can anyone give me a hand?I want a Picturebox to display an image through a URL.
View 3 Replies