Saved Form Position Get Set To Off-screen Values?

Feb 15, 2012

I have now had two occurances of (different) users "losing" their frm position. I save the position to my.settings in the formClosing event ... and this is the only place that these values are set. When the users loaded the form the first time it worked just fine. At some later point the for got repositioned to -32000 (top) and -32000 (left). I now check for this and reposition the form when it is not on the monitor, but I'd like to understand what causes this. I'm using VS2010 and compiling against .net 3.5

Is the formClosing the wrong place to put the logic to save the settings?

View 18 Replies


ADVERTISEMENT

Get The Form Position In Relation To The Screen?

Apr 16, 2011

I have this code working fine , it takes pictures of the correct size and correct file name , however , all the pictures it takes are in the top left corner of the screen , rather than where i have the form to. FYI the picture box in the middle has no picture in it , and is transparent , i want to save a bitmap of the contents of the picturebox ( a user defined size of the screen). The picture box and button are docked so that the form scales properly when being resized.

[Code]....

View 4 Replies

Interface And Graphics :: Get Form Boundary Position With Respect To Screen

Sep 3, 2008

I have a ScreenCapture class that allows me to capture the content of the screen by specifying a X Y value of the top left and X Y value of the bottom right corner of a rectangle. This all works fine, however the problem that I have is that I want to capture the content of a panel on a form, the panel obviously has a location X and Y which gives me the top left position and I can use the width and height propoerty of the panel to determine the bottom right position. The problem that I have is this obviously gives me location of the panel on the form and not the screen. The other problem that I have is that this form is a MidiChild for another form.

So basically what I want to know is how can I get the location of the panel but as a screen position?

View 3 Replies

Position Form At The Bottom Right Corner Of The Screen In Visual Basic?

Dec 4, 2009

How can I position a form at the bottom right corner of the screen when the form load?

I use visual basic 2010 express

here;

Dim x As Integer
Dim y As Integer
x = Screen.PrimaryScreen.WorkingArea.Width - 400

[Code]....

View 3 Replies

Can't Make Application Window The Size And Position Saved In Registr

Dec 12, 2011

No matter what I've done, I can't make my application window the size and position saved in the registry. Below is the code at the end of my Form1_Load: [code]

View 1 Replies

Touch Screen VB Application -Get Log In Form To Allow The Input Of Values From Clicking On Buttons?

Apr 17, 2010

Using Visual Basic 2008 Express Edition.Note: Program is to be used with Touch Screen. (No keyboard or mouse)TODO: Get Log in form to allow the input of values from clicking on Buttons 1 thru 0.*,# '1. So far Buttons on Log in form allow one entry only. Form needs to allow 9 entries. 2. When Clear button is clicked. Password box entry clears, but then, there is no Cursor.Will worry about the rest (authentication) Later its taken two weeks to get this far.NOTE: Not using a User Name Just a Password

[code]...

View 1 Replies

Make A Picture Saved On Computer Go Full Screen?

Mar 22, 2009

(vb 2008) how coud you make a picture saved on my computer go full screen and stay full screen for 30 seconds?

View 1 Replies

'Print Screen' Button Is Pressed, Screenshot Saved To Desktop?

May 1, 2011

I am looking to create simple application that means that when the 'Print Screen' button is pressed, the screenshot is not just sent to the clipboard but saved to the desktop in either JPEG or PNG format.The application will run at startup so that the 'new' print screen functionality is there but the interface of the app is opened manually.(the app interface includes simple options such as choose where file is saved.)

View 4 Replies

Printscreen My Screen That Can Be Saved In Gif / Jpeg Format Locally In Program?

Aug 26, 2010

How can I printscreen my screen that can be saved in gif or jpeg format locally in VB.net

View 1 Replies

VS 2010 Compare Pixel Range On Screen To A Saved Image?

Dec 1, 2011

We stream the BBC news channel through a laptop hooked to a PC in reception for our clients. Annoyingly the stream is interrupted randomly (the line isn't dropping, it's the BBC's problem). Therefore when it's interrupted we get an error screen appearing which we have to go and manually refresh to get the stream back playing.

My intentions are to build an app which will be run alongside (silently) the stream monitoring intermittently a range of pixels. If the range matches the error screen that I mentioned previously then I'd call "Esc" to exit the full screen and then "F5" to refresh the browser and finally a double click on a specified coordinate to bring it back to full screen.

Problem: I've been doing some googling and so far have only seen related posts where the comparison is between two saved images. Due to this I expect the answer to be "Take a screenshot every now and then, compare, return result".

View 5 Replies

Set Its Screen Position And Lock It There?

Oct 14, 2010

But not my application.A app i use refuses to be brought forward, so wondered if there was a way for a vb app to run in the bg that can force a specified application to stay on top, & even maybe set its screen position and lock it there???

View 6 Replies

Set Forms Z Position On Screen?

Jan 28, 2010

Is there a way to set the forms Z position on the screen?

View 3 Replies

VS 2010 Set Screen Position?

Jul 13, 2011

Is there some way of setting anther process's position? Lets say we had our vb program up and you click a button, could this button set the position of Google Chrome to the top left corner?

View 1 Replies

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

Get The Iconimage And The Position Of All The Icons On Screen?

Mar 31, 2010

I want to get the Iconimage and the Position of all the Icons on my Screen. How is that Possible?I found that: http:[url].....Topic, but its C# and the C#-Vb Converter dies while converting,

View 6 Replies

Change The Mouse Position On The Screen

Sep 22, 2009

A simple example is: lets say that im trying to make a program that allows you to move the mouse only with the arrows (left/right/up/down) how can i change the position of the mouse on the screen programmatically? If i wanted when you press a button the mouse to change position to X=0,Y=0 of the hole screen/desktop not the window of the form how can i do it? [Code]

View 5 Replies

External Application Screen Position

Nov 3, 2010

how can I make load "DXSETUP.exe" at center screen position using this code?

Private Sub Panel3_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel3.MouseClick
Try

[Code]....

View 12 Replies

Get Pixel Color At Screen Position?

Feb 11, 2010

Is there a way to get the color at a certain mouse position in the active window? I remember doing it with AutoIt Script, but I can't find any references for it in vb?

View 6 Replies

Set Screen Position For Control(Like Button)?

Oct 11, 2011

how i can set screen position for control(Like Button)?

*I'm talking about position(screen), not about location

View 6 Replies

Move The Mouse Pointer To A Certain Position On The Screen?

Aug 11, 2010

I'm trying to move the mouse pointer to a certain position on the screen.I've done the declarations for both the SetCursorPos as well as the mouse_event, however I keep getting a Declaration expected error at this line: SetCursorPos(x,y),Perhaps something is wrong with the project or vb as well, cause I used an other declaration as well and when I wanted to use that I also got a Declaration expected error.[code]....

View 2 Replies

GetCursorPos - Read Out Absolute Cursor Position On The Screen

Aug 14, 2009

I am currently trying to read out my absolute cursor position on the screen. I read some threads in the "Legacy Visual Basic (VB 4/5/6)" Forums but this is as far as I get:

[Code]...

View 11 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

Read / Write Control Property Values That Has Been Saved As Ocx State Value In XML?

Apr 1, 2010

Can any one tell me how to read or write the control property values that has been saved as ocx state value in the XML? I have some controls. I am assigning a property values for that controls and it is saving as binary64 format. I need to automatically assign property values in the binary64 format in xml.

View 1 Replies

VS 2010 Forms Startup Position To Be Right Side Of Users Screen?

Nov 8, 2011

I have my main form which will have the option to hide itself and open up a mini version. I would like this mini version to start at the top-right of the users screen.I have went through other posts and understand that you can set distance from top-left.

View 9 Replies

Saved Games To Be Saved Onto A Encryted File?

Apr 13, 2009

I am creating a simple button based rpg and was wondering if someone could help me with 3 things how to hold information within the game until the player save's the game, Saving the game, and Loading the game.I want the saved games to be saved onto a encryted file like .db or .dat file..

View 3 Replies

Put A Timer On The Form That Needs To Be Auto-Saved?

May 5, 2009

I am creating AutoSave functionality for an application. Its an mdi application. it needs a seperate form where the user can turn AutoSave onoff and set the interval in minutes for it to execute. The users values for these i plan to saveupdate etrieve into my.settings.

I plan to put a timer on the form that needs to be AutoSaved. If the user turns off the timer from the options form, how would i go about stopping the timer on the form that needs to be saved? Should I change the timer to be "Shared Friend" and access it directly from the options form or what?

View 2 Replies

Data Not Saved Correctly In 2 Datagridview Form?

Sep 12, 2009

I have a simple Master/Detail program the database contains 2 tables and the form contanis 2 datagridview controls getting it's data from 2 bindingsource controls

I use this code to save data

Me.Validate()
Me.DataGridView1.EndEdit()
Me.DataGridView2.EndEdit()

[Code]....

my problem is when I enter a new record in the grid that belongs to the master table and enter a detail to that data the data of the new master record is saved but not it's detalis but when I enter new details for old master record the save is done well

how I can enter an new record for master table and enter a detail for it and save without loosing detail data

View 16 Replies

VS 2008 Open With Form Saved .txt File?

Sep 2, 2009

I made a buttom that saves info from RichTextBox to selected location now My problem is I want this file to be loaded when program loads so basicly folder will look like this

myprogram.exe CustomNamesFolder > Inside that folder there will be a file called names.txt how can I doit so that name.txt file loads in my ComboBox? so when user downloads the exe they can just go in to folder edit the .txt file and add names they want and when they start program it will load this list in to the ComboBox of my program

How can I achive this ? I looked at 6 pages of Loading Files in program but non told me what I wanted to know above ;s

View 4 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

IDE :: Opening Results In Form Check Out And Needing To Be Saved?

Mar 17, 2012

I have a rather large VB.NET solution that has many forms. I am using Visual Studio 2010. When opening the solution one form will check out and produce an * putting in astate of needing to be saved as though I had made a change to the code or form. I have compared the code of all 3 files (.vb, .designer.vb, and .resx) to the source repository and I get they are identical, so basically nothing has changed. It does not appear to be harming the project in any way just aggravating and I was wondering

View 6 Replies







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