Start Position For A New Form?

Mar 24, 2010

I have two forms: Main and Options. Main can be moved around the screen (like a normal window).When the user clicks a button, the Options form opens up and the Main form HIDES. How do I set the Options form to open in the exact place that the Main form was last on the screen (to give it the effect the MAIN form never went into hidding)

I was thinking to set Option form's StartPosition to Main's current position, but I don't know the syntax for that or if it's even something you can do.Option.StartPosition = Main.Position

View 2 Replies


ADVERTISEMENT

Setting Start Position For A New Form To Another Form's Position

Mar 24, 2010

I have two forms: Main and Options.Main can be moved around the screen (like a normal window).When the user clicks a button, the Options form opens up and the Main form HIDES.How do I set the Options form to open in the exact place that the Main form was last on the screen (to give it the effect the MAIN form never went into hidding)I was thinking to set Option form's StartPosition to Main's current position, but I don't know the syntax for that or if it's even something you can do.

View 4 Replies

Start Position Of Child Form?

Jan 21, 2011

In the form property i set CENTER TO PARENT but its not working then i also write a code but still form not shown in the center

Private Sub About_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles About.Click
Dim aboutdev As New aboutaut()
aboutdev.MdiParent = Me

[code]....

View 1 Replies

Set Child Form Start Up Position In Program?

Feb 21, 2009

How to set child form start position in vb.net that will be work in different screen resolutions

View 1 Replies

Set MDI Child Form To Start In Specific Position? (Or Dock In Panel)

Dec 6, 2009

How can I make my MDI child form to load in a specific position in the parent form? Or preferably, how can I make the child form Dock Inside a Panel in the parent form?

View 4 Replies

Start The Program At Position Which Start Minimized?

Feb 11, 2010

While i Minimized the program and clossing the program , next times i start the program, it also minimized. how can i prevent this problem happen!! And i want to start the program at position which start minimized. how can i do it!!!

View 4 Replies

.net - Set Winform Start Position At Top Right?

Oct 25, 2011

How to set winform start position at top right? I mean when user click (start) my winform application the winform will appear at the top right of the screen?

View 2 Replies

Change The Position Of The Start Button?

Jun 21, 2010

i have a program that change the look of the taskbar. But i have a problem, i want to set the start button position to the middle of the taskbar but can't find any code to do this. I know that its possible because there are some programs that do this.

View 11 Replies

Make NOT Start From 0,0 But Current Position?

Mar 30, 2012

Private Sub Button7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button7.Click

[Code]...

oook so this when button7 clicked it will move my mouse to the X:700 and Y:700, but will start from the X:0 and Y:0 but i tried making start from my current mouse position but idk how not working:

View 11 Replies

Start A For Loop From Current Position?

Mar 29, 2012

i have a for loop "for each val in values" I want to within this loop some how check positions ahead of the current position for a condition. I am unsure how i can do this however apart from having an inner for loop to loop from the current position. If that is the case I am not sure how i can get the current position.I have attempted this with this code below, the inner for loop.

If creditPoints = "10" Then
Dim valcount As Integer = Val.Count
For intLoopIndex = valcount To Values.Cou

[code].....

View 2 Replies

[2008] Set A Manual Start Position?

Jan 9, 2009

I have a form that I just want to pop up right above the time on the lower right side of the screen. Does anyone know how to set a manual start position?

View 3 Replies

Program To Position The Cursor At The Start Of The Text?

Nov 30, 2011

Using VB 2010 Express

My program writes text to a multiline textbox. After the input is finished, the cursor is at the end of the text. I want the program to position the cursor at the start of the text so that I can see it.

MSDN suggests:-
tbPositionCursor.Select(0, 0)

I believe the cursor is now repositioned, but I cannot see the start of the text. How do I scroll back automatically, refresh or whatever so that I can see the start of the text?

View 3 Replies

VS 2010 - How To Set Program Start Position Lower Right On Screen

Aug 16, 2009

Is it any way to make my program start in the lower right of the users screen? Above the clock you know.

View 4 Replies

VS 2010 - Masked Textbox Cursor Start Position

Dec 23, 2011

I have created a maskedtextbox to do a simmple validation >L99999. My problem is when the user clicks on the empty box the cursor stays where they clicked it, not at the beginning of the box as it would with a normal textbox. I have found some suggestions but these all seem to affect the way the cursor moves within the box rather than just changing the start position. As far as the end user is concerned the box should behave just as any other textbox but with validation.

View 2 Replies

Load The Sub Main At The Start Rather Than Loading A Form On Start Up?

Feb 24, 2012

How can I get my application to load the Sub Main at the start rather than loading a form on start up.

I have tried declaring 'Public Sub Main' on my forms and in some modules, yet in my project properties, it is not one of the options.

View 12 Replies

Change Startup Position And Move A Docked Form With Parent Form?

Mar 23, 2011

well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used

Me.toplevel = false
Me.parent = form1

View 6 Replies

C# - Detect If Application Start Using A Manual Handling (Pressing An Icon) Or Start When Windows Start?

Feb 28, 2011

I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?

View 2 Replies

Fix The Mdi Child Form Position From Mdi Parent Form?

Apr 11, 2011

how to fix the child form position from parent mdi form in vb environemnt ?? i seek from several forums and articles on internet still can't find .. Currently i have 5 child form in a parent when i click on it frm the 1st frm till the 5th frm the child form position will coming down...

View 1 Replies

Manually Set Form Position To Center On Another Form?

Mar 4, 2012

i have my main form and other forms. the other forms startposition is set to manual.is there a way i can set the start position of the other forms to center at the main form

Me.Location = New Point(150, 248)

the above code will position according to the monitor not the mainform.

View 14 Replies

Multiple Forms - Declare And Instantiate Second Form On Program Start - Use Button Simply To Show Form?

Jan 14, 2010

I have a program that uses two forms. The program opens to the Main form, and the user can navigate to the other form from the Main form through use of a button. Here's the way I've currently written it: When the Main form loads, it declares and instantiates the other form during the load procedure. When the user presses a button, the second form is displayed by means of the ShowDialog method. On the second form, there is a Return to Main Screen button which closes the second form, bringing the user back to the Main form.

So, here's the structure of the code:

Code:
Public Class frmMainForm

Dim frmSecondForm As New SecondForm

Private Sub btnSecondForm_Click(blah, blah, blah) Handles blah, blah, blah

[CODE]...

Here's my reasoning: Originally, I wrote the code so that a new instance of the second form was created every time the button was pressed. The problem was that whatever data was displayed on the second form, previously, was lost when the user returned to it a second time. Since the user would be switching back and forth between these forms, frequently, I needed that data to persist.

What is the best practice for accomplishing this:

1) Declare and instantiate the second form on program start, as I have done, and use the button simply to show the form?

2) Declare and instantiate the second form each time the button is pressed but maintain the variables on the Main form and pass them ByRef to a custom constructor for the second form? Is this even possible?

3) Something else?

View 5 Replies

Stopwatch Thing - To Start On The First Form, And Stop On The Last Form?

Oct 16, 2011

I want a stopwatch thing, to start on the forst form, and stop on the last form, and to show the time.

View 2 Replies

Get Mouse Position According To Form?

Jan 30, 2010

I have a picturebox on the form. I want to let user move it by mouse. When mouse moving on the picturebox can I get the mouse position according to form?

View 6 Replies

Get X , Y Position Of A Control In A Form?

Dec 11, 2009

How Can I Get The X,Y Position Of A Control In A Form?

View 3 Replies

Getting The Form Position Window

Aug 3, 2011

In vb6, we have a windows (kind of layout of the screen), that allows us to manually position a form, by simply moving it with the mouse to the desired position.Don't we have same feature in .net ? am not finding where I can show this Window in visual studio 2008

View 6 Replies

Know The Mouse Position On The Form?

May 6, 2010

I wanna move mouse postioin(100, 100) on the form. So, I use SetCursorPos(100, 100). but, the position is not of the form. It's the position of My screen. I want to set mouse position 100, 100 of the form T_T.

Can I get the mouse position of the form?

View 5 Replies

MDI Form : Set An Exe Position Below The Menustrip?

Feb 3, 2010

I am using vb.net 2008. I have a MDI form with a menu strip added. From different menu's i calling related Exe's and opening in side the MDI form. In this case setting of MDIparent properties to the child form (Exe) in not possible. In my Exe i am reading my MDI windows handle and using the setparent API function. In this case the exe is opening inside the MDI below the titile bar but it is hiding the menu strip. (In vb6 it is working fine - Means the exe opens below the menu strip). Is their any way opening the exe below the menustrip or toolstrip.

View 1 Replies

Set Form Load Position?

Feb 17, 2012

I know there is a way to set the form load position but I don't remember the syntax for setting it manual. I need to load based on the center position then off set its self from there. so it would be like

Public Class Housing_Toolbox
Public Sub Housing_Toolbox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormStartPosition.CenterScreen()

[code].....

View 4 Replies

Cannot Change Position Of Controls On Form

Sep 6, 2010

I am using VB2008 Express. After making changes to the position of controls on the form, the controls position reverts to the original position when the program is rebuilt and run. At first, there is no problem, but after 30 minutes working with the program, the problem begins. I am careful to keep all the files together. I am using XP Professional and .net 3.5

View 21 Replies

Display Form At Cursor Position?

Mar 5, 2010

I am trying to use a windows form as a custom contextmenu which is fine as I have done a form with translucent background colour. However the problem is that I am having problems displaying the form at my cursor position. I have a mdi chaild form in my app and when I right click I want to display my custom contextmenu form at the point where I right click in the mdichild form. The only other thing is that I want the middle of the form to be displayed at the cursor point.

View 2 Replies

Form Does Not Move On Correct Position

Mar 11, 2009

I did move the form to the top position of the screen but it doesn't move on the correct position. [Code] form1 supposed to be on the top of the left of the screen. but it doesn't at the top screen but every time i click open button, form1 keep on moving downward.

View 3 Replies







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