Set Form Location

Feb 26, 2012

I want my application to always appear on the top right hand side of the monitor.The coding i use places my application on the bottom right hand side...I want it to appear on the top right....What am i doing wrong here?[code].........

View 2 Replies


ADVERTISEMENT

Set Location Of Child Form To A Specified Point Of Parent Form

Nov 11, 2010

how to set location of child form to a specified point of parent form.Below is my code but it is not working for setting the location.[code]

View 1 Replies

Set A Form's Location In Relation To A Picture Box In Another Form?

Sep 29, 2010

I have created a form with pictures of plants on it (note these pictures are moved to the left when the left button is pressed). When a mouse is placed over or hovers over one of these pictures i want a mini form to pop up beside the plant with the plants name on it.

[Code]...

View 3 Replies

Change The Location Of The Form?

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

Download Location On Form From FTP?

Feb 26, 2012

i am working on a game that i have made in vb.net, i was able to create an Uploader where when the character moves it is uploaded to a Server, now i am trying to add the multiplayer where other player movements are downloaded, i have started off with this code:

Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
dim client as new net.webclient
Label1.Location.X = client.DownloadString("ftp://User:Pass@Host/" + "Player_1_X_location" + ".txt")
Label1.Location.Y = client.DownloadString("ftp://User:Pass@Host/" + "Player_1_Y_location" + ".txt")

i Receive the Error:

Expression is a Value and therefore and cannot be the target of an assignment.

View 4 Replies

Form Location Above Task Bar?

Apr 21, 2012

Is there a way I can place my form above the task bar?

Something like this: But, people have different sized task bars..

Is there something like: my.computer.screen.taskbar ?

My current code is: Me.Top = My.Computer.Screen.Bounds.Height - 116

Me.Left = My.Computer.Screen.Bounds.Width - 365

View 7 Replies

Location To Bottom Of Form?

Apr 3, 2012

I am trying to get this PictureBox to always be in the bottom of the Form and not depend on what screen resolution the screen has. I am using VB 10?

View 7 Replies

Set A Form's Location By Percent?

May 20, 2009

i was wondering if it's possible to do such:

'form location Me.Location = New Point(10%, 50%)

i know this code doesn't work as it looks, just loads the location by pixels. this is just a question, hopefully with a working code for a marked answer..so much work to do and so many choices to choose from.

View 7 Replies

Setting The Location Of A Second Form?

Aug 4, 2009

I have a second form that loads when the main form loads. It sits behind the main form, is mainly transparent and does not allow interaction from the User.

Its as if the form is on the desktop, which is what I'm going for.

I set the location of the form to be in the top right hand corner of the desktop. On my PC, which is a 23" monitor, it works and looks great. But when I use my application on a notebook or a smaller screen, the form gets cut off. Why is obvious, because of the screen size differences.

What I want to know is how I might set the form to a more... definitive position. Rather, relative to the size of the screen.

I haven't searched much yet, but maybe there is a way to set the location of the form to a specific location of the desktop, not relative to the size of the screen.

View 4 Replies

Starting Location For A Form?

Oct 4, 2008

I'm a bit confused when it comes to setting the start location of a form, relative to another form.I know how to set the start location for a form, however, I have a "main" form, which is behind this form. The main form will be displaying different images, labels, ect. I need the second form to display at the bottom of the main form. The main form's resolution is 800x600, and the bottom form is 800x65. I tried to set the bottom form's location to 0,535, which WOULD make it right at the bottom of the main form, but it seems that it puts it at that location relative to the user's display resolution.So basically, I just need help with getting this form to appear at the bottom of the main form. I read a bit about "containers", but am not sure exactly if they would work for this, and if they did, how exactly I would incorporate them into my situation.

View 2 Replies

Change Location Of Second Instance Of Form?

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

Form Should Open At Specific Location

Feb 24, 2010

i m using vb. net when i run my form

View 1 Replies

MDI Child Form Not Opening In Specified Location?

Jun 25, 2011

I have an MDI form with child forms which I open on it. The following statement in each form's load event places a child form in the location I want:

Me.Location = New Point(0, 136) I have several of these working. However, I have one form for which this statement does not work. It opens spread out over the entire parent form. Also, there is a border at the top with min, max, and close buttons even though the form has no border. This form has a picture box on it, if that means anything. why this child form does not open in the specified location?

View 1 Replies

Moving Labels From One Location To Another In A Form In 4?

Feb 26, 2011

I'm making a small program in which i want to move labels from one position to another , I used the following statementLabel1.Location.Y = 10 ' Error - Expression is a value and cannot be the target of an assignment

View 3 Replies

Persist Control Location On A Form?

Jun 16, 2010

I need to save the controls location and size on the parent form to file. My aim is to be able to simply copy that file to the path where an instance of my program is running and then it automatically applies the previously saved layout of controls. How can I use My.Settings to do that or is there another better option?

View 12 Replies

Setting Form Window Location?

Apr 19, 2009

I'm having trouble setting a form's location in the load event.

config_set = File.ReadDatabaseKey(Public_Variables.settings_radar, _
"Window Position X", Public_Variables.config, Public_Variables.config_path, 5)
If Misc.GetContainsOnlyNumbers(config_set) Then
Me.Location.X = CInt(config_set)
End If

View 4 Replies

VS 2010 Setting The Form Location?

Apr 1, 2011

In my Windows application I have 2 forms, Form1 & Form2 in Form1 there is a Button so now I want to place the form2 exactly bottom of the Button when I click.

View 3 Replies

Auto-resize Form And Location Of Buttons

May 25, 2012

Ive already tried searching regarding w/ my problems and unfortunately, I found nothing. Anyway, my form is automatically resized to full screen once it is started. here's my code:

[Code]...

View 2 Replies

Creating A Time And Location Schedule Form?

Jun 5, 2011

I am currently designing an application form that the user fills to use a room in a specified time. The application is to check if the room specified is available at the time period specified. I am stil wondering how to do this such that there is no clash.

View 17 Replies

Form And Location Of Mouse - Finding X And Y Values?

Oct 8, 2010

I want to get the border of the form when its load but how? Then I'll compare between the form location and the mouse ,if the mouse out of the form, the visibility is false when the mouse move or key press up /down and become in the form border, the form visibility must be true. How to find the x and y values to the form?

View 2 Replies

Forms :: Determining Opening Location Of A Form?

Jul 4, 2011

I have a button on my form. When I click it, I want a form to be opened exactly on the location where the button is.

View 1 Replies

Forms :: Show Form Random Location?

May 26, 2009

im working on a little project and i need my form1 to basically spam itself in random locations...

View 5 Replies

Locate A Form On A Custom Location On Desktop?

Aug 15, 2011

I need to know how do i locate a form window on custom location at the desktop[code]..

View 3 Replies

Lock Child Form Location To Parents?

Jun 8, 2010

I have a Dialog which I'm calling via Loading.Show()Can I lock the position and location to the parent form? In such a way so if the parent is minimised or moved, the child will stay centred to the parent?

I was using ShowDialog() but this obviously stops the parent from being accessible. This is being used to display a progress gif. (Child is 50% opacity)

View 3 Replies

Move Form Change Location Of PictureBox?

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

Setting Form Location Property Within Program?

Feb 9, 2010

I have a single form that I would like to move across the screen with my VB program. Of course it's simple to set the location X and Y property for compile time using the properties tab, but I want the form to move as the program runschanging the coordinates within a for-next loop.I can easily get the X and Y coordinates of the form within my program by using X = me.location where X has been dimmed as type point.console.writeline(X) will appear as {X=20, Y=40}. for example

View 2 Replies

Setting Form's Screen Location Not Working?

Jan 27, 2010

I'm working on a vb 2010 project where I am playing mpeg movies using the Media Player control.The computer has dual heads (extending windows desktop to other display). My aim is to be able to selectwhich screen to show the video on. I have two forms, the first form (frmControl) has two buttons, Play and Stop.The second form (Player) has the embedded Media Player. Initial tests worked fine (not choosing a screen, but making the player fullscreen and playing a movie). When I add the following code to allow choosing the screen

View 4 Replies

String Popup Location Of A Form Control?

Feb 22, 2012

After a little research, I managed to get a working Help button added to my form. I did this by setting the MinimizeBox and MaximizeBox properties of the form to false, set the ShowHelp property of the form to true and added a HelpProvider component. I then added a string to each control's HelpString property that I want to display help on.

Everything works with one minor exception. When I clcik the help button in the form and then select a control, the HelpString (tooltip) is displayed in the far lower left corner of the screen. I assumed I would see this pop up at the cursor rather than where it is. I cannot seem to find a property to control the position of the HelpString popup.

View 3 Replies

VS 2008 Check Form Border Location

Apr 23, 2009

I need a check that will see the location of the edge of the form. An example would be (for what I am trying to do) is, when a form is moved, the main form will get bigger depending which border and which way the second form is going.So basically I need some way to make Form1 get bigger if Form2 is near the left border or near the bottom border.

*I have a mini system for making it grow(LocationChanged) on the form I want it to work for.

*I also know about ".left" and ".top",

View 2 Replies

VS 2008 How To Static Mdi Child Form Location

Nov 6, 2009

i create StudentForm as my mdi child form, what i suppose to do to let user unable to move my mdi child form to other location? how to make it in static location? Private Sub StudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentToolStripMenuItem.Click

StudentForm.Show()
StudentForm.MdiParent = Me
End Sub

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved