VS 2010 Picbox Overlapping Another Picbox?
Aug 2, 2009
How can I make it so an Picturebox overlaps another picturebox I mean so that the first image that is under the second will be on top and not the second one is there a code for that I can contineu my project as long as I don't know this
View 3 Replies
ADVERTISEMENT
Jan 18, 2012
I work in VS2010 VB.NET and I have a form with a Picturebox (PicBoxContent) and a Combobox (LstMonths) that have all the months names.All I want is to draw a rectangle in the PictureBox with the content of Ms.SelectedItem inside it.
[code]...
All works perfectly but, when I minimize the form or if I call another form in the front of it, when I return the focus to the form, the conten of the Picturebox becames erased...How can I resolve this problem?
View 2 Replies
Jul 31, 2009
i know vb6 but i am currently trying to teach my self vb.net how to draw grid line onto a picbox ie both horizontal and vertical lines so i end up with a grid affect
View 1 Replies
Nov 18, 2009
I have two images on my VB pictureBox one of it is randomly generated on the picBox(to any location) and the other is a normal image that can move around the picBox area using left right up and down buttons. The problem is that when ever the normal picture gets to the random one, it goes under the random picture and the task is to restrict the normal picture from going into the walls of the random one. when it gets to the wall, top, bottom left and right, it should stop moving.
View 2 Replies
Jan 13, 2009
how to change a background of a load form from a picbox?? i use this but still doesnt change
[Code]...
View 1 Replies
Apr 16, 2010
If you drag something like a picture in explorer it displays its icon or thumbnail ,can this be achieved in vb.net? ,i have two forms ,form1 is a boarderless form with just a pic box ,now i can drag n drop this to another form with easy. but is thay away to display its thumbnail while dragging said picbox image?
View 2 Replies
Feb 2, 2012
I have several picture boxes on a form (frmMain).My question is, how do I paint a point on a particular picture box at the location specified by the coordinates of the current mouse position? The snippet below shows defining some canvases and pens. But I'm not sure how to capture the mouse position when the mouse is over a particular picture box and how to paint the actual point at that location.[code]
View 3 Replies
Apr 1, 2009
I have a form, with a split container, and a picbox in the right container.I need make everything resize according to the picbox size? I cant get it to work!
picbox min size cant go below 320x480 everytime i try to have the code do it, either nothing changes or the form gets tiny!?
View 1 Replies
Nov 18, 2008
i've drawn two boxes (one with spotcolour color of orange) in a picture box. box a stays fixed at the bottom and box b can move. i've restricted box not move outside the picbox, but it needs to change color (to red) when it touches the picbox, and i've tried can't seem to do it. boxb also can't overlap boxa.
[Code]...
View 1 Replies
Jun 12, 2012
I need to save the contents of a picbox to a jpeg file.I suspect the error exists because I do not actually load an image, but draw lines on its using picbox1.addline(), but I do not know how to fix this.
[code]...
View 3 Replies
Jan 30, 2012
Im trying to make the "Next" button .enable = False if the .image in the picbox is empty. But for some reason its failing me >.>
Private Sub picBox_ImageChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles picBox.ImageChanged
If picBox.Image = Nothing Then
[Code]....
View 10 Replies
Nov 4, 2009
Clicking on the picture will cause the picture to move in the following manner: * If the picture is in the top left corner, it will move to the center, then to the top right corner * If the picture is in the top right corner, it will move to the center, then to the lower right corner * If the picture is in the bottom right corner, it will move to the center, then to the bottom left corner * If the picture is in the bottom left corner, it will move to the center, then to the top left corner
[Code]...
View 17 Replies
Aug 20, 2009
I have a game where I want my character to go over the PictureBox but he goes under it. How can I fix this?
View 1 Replies
Jan 22, 2010
is it possible to detect overlapping Graphicspath? I have e.g 200 different Graphicspaths created, and I want to filter out which one overlap...
View 10 Replies
Jun 13, 2012
I am making an application in which number of pictureboxes created at runtime but they do not overlap to each other. I wrote a code bt its only for two pictureboxes.How can i do that for number of pictureboxes..
Public Class Form1
Dim pic1, pic2 As Rectangle
Dim drag, iscollided As Boolean
Dim mousex, mousey As Integer
Private Sub pic_Mousemove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
[Code] .....
View 1 Replies
Mar 9, 2009
I have a map of the world which is set as a background image of a form. I then have individual countries in red and green which appear based on the result of a ping request. So if the IP address pings ok the country turns green, if the ping fails then it turns red. The individual red and green countries are picture boxes with transparent backgrounds.The problem is that, for example, America and Mexico overlap each other and where they overlap it just show the background of the form. Can I have the picture boxes overlap but show each other underneath?See the image below for what I mean as it's not easy to say what I mean [URL]
View 7 Replies
Nov 15, 2009
in a program I'm writing I'm creating some objects with a start date (with a datepicker) and an end date (also with a datepicker).
Now I need to check if this object's date range overlaps with any other object's date range stored in the database. If it does I can't save it in the database but if it doesn't I can.
View 3 Replies
Aug 17, 2011
I usually can find anything I need on google, but this isn't the case this time. I have a com object that is a display control, it displays images from another software that are retrieved from a camera. I am trying to overlay graphics on this image for reference to an operator. I have found how make a picture box image transparent but not over another object. The images are PNG and are set to transparent.
View 12 Replies
Feb 5, 2010
I have a vb app that I completed a few months ago and it has been working as it should.I have blurred out part of the image for business reasons. But you can see in the second picture in the top left it has the bottom right of the background overlapping in it.
I copied the exe file over to another computer and Im having an issue where the program will load and look OK but then after about 5 seconds part of the background will show up in the top left corner. Im not sure why. It is the exact same exe on the other computer but it only does it on this computer.I have attached images below so you can see what Im talking about.Im not sure if its a program issue or a setting on my computer.
View 4 Replies
Sep 22, 2011
I have two grids inside a TabItem and in the code-behind I want to be able to add controls to both grids and have all the controls visible at run-time. Currently at run-time the controls added to "Grid3" are not visible while he controls added to "Grid4" are visible.The overlapping grids have the same rows but a different set of columns.I'm trying to do this with two grids so that I can vary the number of controls I can add per row in the code-behind by adding the controls to one of the two grids.Here's the XML:
<Grid Name="TabControlGrid" Margin="20,171,0,70">
<TabControl >
<TabItem Header="Tab1" >[code].....
The controls in the XML are just place holders for the controls I am adding to the grids in the code-behind.
View 2 Replies
Feb 12, 2012
I have a bound datagridview that contains columns that have a start and an end time for each day of the week (column1 = M Start, column2 = M End etc) If the user enters 9pm - 5pm twice for Monday, I want a messagebox to pop up asking if they are sure they want to overlap timespans for Monday.
View 1 Replies
Sep 3, 2010
I am part of a group writing a program for scheduling purposes. In the program I must check to see if times are overlapping.Say an Instructor is in class 1/1/2011 3:00:00pm to 1/1/2011 4:00:00pm receive the Instructor and 1/1/2011 3:10:00pm to 1/1/2011 4:50:00pmThis should return True the instructor is overlapped.Of course the other side would be if the time started/ended before or after the original class.I've tried many different combination's of if statements similar to:
If (begTime <= s.BegTime AndAlso endTime <= s.BegTime) Or (begTime >= s.EndTime AndAlso endTime >= s.EndTime) Then
End If
[code].....
View 6 Replies
Dec 15, 2011
Load a picture box with an image. Then, load an overlapping picture box and its image goes on top nicely. But, when I load a third picture box, it goes in between the first and the second. What determines priorities and how can I overlap several picture boxes with the last being on top?
View 1 Replies
Nov 8, 2011
How can I create a GUI in vb.net similar to the one above?i.e.there are "buttons" on the left which changes the main window when they are clicked.One way I thought of is create many panels overlapping and show/hide them when a certain button on the left is clicked.
View 2 Replies
Oct 10, 2008
I seem to be having an issue with my form's background overlapping.I have two forms. One form is called the "mainscreen" and the other form is a small bar at the bottom of the mainscreen form, which shows different labels on a set timer interval.Anyway, the mainscreen will soon have a system in which it also runs different screens on a set interval. However, I seem to be having issues with the mainscreen already. I have set it to load a background image, using this code:
Code:
Me.BackgroundImage = New System.Drawing.Bitmap(My.Resources.image1)
[code]......
View 2 Replies
Oct 29, 2010
My whole websites makes use of the ASP.NET(2.0) repeater control and I have been getting some complains from people that they cant view my site as the controls are overlapping.This sounds like a browser issue to me as I never see it in IE8 or IE7 or Chrome or Firefox.
View 2 Replies
Jun 5, 2010
I'm making a windows forms application, and I would like to know how to get a control to be on top of the titlebar/control box where the window title is displayed similar to the save icon on the Win7 Paint program or the tabs for Google Chrome.
View 1 Replies
Jan 30, 2012
I'm trying to write a virtual piano program. Each key plays a sound from the resources directory.How do i play two(or more) sounds at the same time if ex two keys are pressed. Or start playing another sound while one is still playing.
View 2 Replies
Jan 13, 2012
I have a sub-procedure which I want to run a different process, depending on what is currently running. I thought the easiest way to do this was by using an ArrayList of each of the campaign details & adding an 'Inuse' field to check to see if the Inuse field is set to 0 or 1. The problem that I have is that when running the process it is all happening at once & the integer hasn't been changed before the next thread kicks in so my threads are running the same campaigns. I tried to avoid the problem by adding a Thread.Sleep(100) delay inbetween starting threads but this led to exactly the same problem.
Here's an example of what I am trying to do:
Imports System.Threading
Public Class Form1
Private Campaigns As New ArrayList
Private ProcessRunning As Boolean = False
Friend StopProcess As Boolean = False
[Code] .....
View 2 Replies
Jul 29, 2009
Multi-Threading. I have got a simple bit of code that will need to be repeated but with a chance of it overlapping the only complex bit is there will be a varible that will be different each time. so I was wondering if I put it in another Thread and store the varible within the thread code would that achieve what I am looking for? To make it slightly easyier once the thread is started and pulled the Varible in there will be no cross talking between the thread and main app thread (ie no progress reports, no aborts/suspends etc) Nothing will be feeding back on thread completion either, when it ends it ends.
This is what I have so far:
Imports System.IO
Imports System.Threading
[CODE]...........................
View 5 Replies