Change Images When Location Move?
Sep 16, 2009
location after I clicked the images to move them to the left side but it didn't change the image.
Here its the code:
Private Sub PictureBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
If Panel3.Visible = True Then
[Code]....
make the images changes to arrow-black2 when the images moves to location "1, 145"??
View 9 Replies
ADVERTISEMENT
Jul 25, 2011
I'm new on VB.Net.When I move my Form,it changes my picture location automatically so i can not Get pixel value correctly and it gives me Error.[code]...
View 5 Replies
Jan 27, 2010
I'm currently working on a project that has a simple game . I want to change the location of a label ( middle ) to another location when a key is pressed down. But there is something wrong with the first of the If statement .I've underlined "point " because it has the error.
Private Sub Space_Navigator_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Up Then If middle.Location = [u]Point[/u](156, 655) Then middle.Location = New Point(156, 547)
End Sub
View 2 Replies
Oct 18, 2009
I am currently working on a game that I want to add squirrels running around at random for me to kick off the form.
Ex..
picturebox.location=200,200
And I set a new location for it, as 5,5, how can iIget the picturebox to move to that coordinate, a few pixels at a time until it gets there, so it looks like my squirrel is running to that location?
View 1 Replies
Aug 2, 2011
I have placed the image on the splitterbar so when I moved them, the image doesn't moving with the splitterbar.Do you know how I can make the image moving with the splitterbar when I moving them?If you could take a look on the attachment and if you do know how to move the image with the splitterbar when I moving them
View 5 Replies
Nov 1, 2010
i made a little from control which hold 3 button controls lined, in the designer they're all lined up perfectly but when i built and ran the application the middle button shift a bit to the left and overlap the left control, someone has any idea why its happen ?
View 1 Replies
Nov 27, 2011
I have an application that has a load of values in its app.exe.config file. The application is used by a few users, and the settings would change on a regular basis. so im having to change the config file, and send it out to all users.
I'd love to move the config file to the network somewhere and point the app to this file. ive tried to use;
Imports System.Configuration.ConfigurationManager
OpenExeConfiguration("I:app configHelpDeskQuickCallLogger.exe.config")
But i cant get it to read in the values.
View 2 Replies
Aug 2, 2011
I have placed the image on the splitterbar so when I moved them, the image doesn't moving with the splitterbar.
Do you know how I can make the image moving with the splitterbar when I moving them?
If you could take a look on the attachment and if you do know how to move the image with the splitterbar when I moving them
View 4 Replies
Aug 14, 2011
How do I check the picturebox location when I move them anywhere in my winform using with splitcontainer?
Something is like this?
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Dim x As Integer
[Code].....
View 6 Replies
Mar 10, 2012
How can I move the mouse to a pixel location of a program?[code]I know it doesn't work, but I'm trying to make it easier to understand what I'm trying to do.
View 5 Replies
Dec 10, 2011
So I have an application that saves and retrieves images from an Access database. The images are displayed in a picturebox but I'm having a bad time figuring out how can I move to the next/previous record/image in the database, so the user can view them and delete it if he wants to...
Here is a screen of my form so you can better understand what I'm trying to do:
And here is the
Imports System.Data.OleDb
Public Class Form1
Dim dbConnection As New OleDbConnection
[Code]....
Save and delete functions work fine, I just need to know how to do the Next and Previous buttons... This should be easy to do, but I'm still a beginner to VB
Biggest problem is that this is a part of a school work which I must deliver tomorrow.
View 11 Replies
Jun 14, 2010
I have the Context Menu Options like ( Small Font , Large Font ) based on the selection I want to change the size of the Font in the Controls,Control's Size & location(x,y,height,width). The resize of the controls should not affect the look and feel of the forms.
View 5 Replies
Jul 6, 2010
I have created a program that uses a 3rd party dll, and has been added as a reference. Is there any easy way to change where vb.net, looks for this dll file? Currently it is dropped in the same location as my main exe, but would rather it looked in the system32 directory. I have googled and tried changing the app.config file, and dont really understand AppDomain.
View 2 Replies
Aug 9, 2010
I am trying to change a label box location with this script:
Label10.Location = New Point _
(Label10.Location.X = 262, _
Label10.Location.Y = 57)
View 6 Replies
Apr 8, 2009
I have panel1 and button1. what i want to do is setting a new location for the panel when pressing the button1.
View 3 Replies
Jul 18, 2012
I use VB2008 and database access and Crystal report.my problem : when ever I change location the database. I will always change location in my report from crystal report. It's very difficults and waste the time because I have many report. how to set up location only 1 place and impact to many report.
My VB Code :
Dim dbname1 As String = "D:AF_SoftwareDBDBAF1.mdb"
Public Strcon As String = "Provider=microsoft.jet.oledb.4.0;data source=" & dbname1 & ";jet OLEDB:Database Password=999"
make code in crystal report , if i want change drive to drive Z / or somthing else.now, i am go to the report and click change location.
View 2 Replies
Sep 24, 2009
When I tried changing the location of the group box by:
MyGroupBox.Location.Y = 200
I get an error message, "Error 1 Expression is a value and therefore cannot be the target of an assignment. "
What am I doing wrong?
View 3 Replies
Nov 15, 2009
So i want to change the location of my form so that it pops up in the lower right corner of the screen.
Form1.Show()
Form1.Location = (New Point)
View 4 Replies
Jan 10, 2011
I wanted to know is it posible to change My.Settings location.. for example, not in user folder (dont remember in witch folder, but i know it was in some users folder..), but save in application folder?Cos i write programs portable, so they work if the folder with my program is moved even to different PC..It would be a great if i could use my.settings and store in the application path..Cos i have tried to save in registry, xml file, ini file, and they all are pain in the a*s..
View 4 Replies
Oct 17, 2009
I'm trying to make it so the the images will save to the folder that you selected in the textbox1.text from the folderbrowser this is the code's I have tried
[Code]...
View 1 Replies
Aug 13, 2010
I am making a program (obviously), and when the user presses UP, DOWN, LEFT, or RIGHT I would like to move the label's location correspondingly. Here is my code so far, but it does not work:
[Code]...
View 8 Replies
Jun 21, 2010
I need to holds the common settings for all of the apps ona server (UNC path). Previously I used an ini file on the server and the application was told to look there via a command switch.
I understand that I'm trying to use .net in an old fashioned way by not packaging it for web update & delivery but that's a contraint of the architecture I need to work with.
Is there any way to force my application to use the application.exe.config file from a set location rather than the user data area that .net automatically writes it to? Even if not on a server path, then in the application directory where we can push update it?
View 3 Replies
Oct 28, 2009
can i change Form2.Location with 2 NumericUpDown controls?
View 3 Replies
Aug 15, 2010
Inside a module I have the code:
Public frmClue2 As New frmClue
So I have a new instance of frmClue. Inside my main form I have the code:
frmClue2.Owner = frmClue
frmClue2.StartPosition = FormStartPosition.Manual
frmClue2.Location = SecondaryScreen.Bounds.Location
frmClue2.Show()
The code works except for setting the location. The location is initially set to {X = -3 Y = -3} and it will not change. I have tried to set it to new Point(1440, 0) and that does not work. One interesting thing I found was if I declared the new instance of the form locally inside my main form rather than in the module, then the initial location is set to {X = -1 Y = -1} and I can change it no problem. However anytime the code leaves the main form, the instance disappears hence why I declare it as public in the module. I used the same code to create a new instance of the main form as well and there are no problems.
View 5 Replies
Mar 12, 2010
I am running a ssis package from .net code.It's a simple package that imports a text file into a sql database.[code]...
View 10 Replies
Nov 4, 2011
I'm developing a program at the moment and I'm trying to add the capability to add a texbox everytime you click a button. This is simple other than I'm trying to be efficiant as possible, so I made a sub that creates the textbox and the button calls the sub. Here is where it gets tricky I want the new textbox to move just below the previouse textbox, I'm not sure how to do this since Im only really createing one textbox over and over and having a variable name it by one. This souds confusing I know, but check out my code and it will make since. Really all I'm trying to do is change the location of a unknown textbox say since I create a textbox name textbox0 then when I hit the button again my varibale goes up by 1 which makes the new textbox, textbox1. how to I tell VB to change textbox1's location.[code]...
View 2 Replies
Mar 7, 2009
i want the panel to center itself evertime i change the size of the window. how do i do it? panel1.location.x=form1.location.x doesent work.
View 1 Replies
Apr 27, 2010
An update to my program has been downloaded to a particular folder. The code recognizes that the file is there
(i.e. "If IO.File.Exists(My.Application.Info.DirectoryPath & "UpdatesPQCM.exe) Then),
Sets the update location to that file and initiates the click-once update subroutine. Problem, I don't know how this update feature can be modified this way in run-time. I would set the update location using the solution properties but this program may exist anywhere on the hard drive, or even on a thumb drive (as per its design).
View 7 Replies
Sep 16, 2009
In This Thread!i m asking how to Change Location of PictureBox & Panel in Form and how to Resizing
Suppos:In Application have something Behind the Panel(same form). im pressing Button Then Panel move to another Place.
View 3 Replies
Oct 14, 2009
How to Picturebox Loacation Change My Arrow Key in Form
View 3 Replies