473,420 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

SetDesktopLocation - X position (VB 2010)

Hi, I'm trying to fix a program SetDesktopLocation code for a dual-screen setup.
The program keeps opening in the 1st screen (X-position = 0), even though I set the value to 1280.

Expand|Select|Wrap|Line Numbers
  1. Me.SetDesktopLocation(1280, 0) 
  2. Me.Location = New Point(1280, 0)
  3. Me.WindowState = FormWindowState.Maximized
The primary monitor resolution is 1280 x 720 by the way, so it should open on the 2nd screen.

Please advise?
Mar 16 '23 #1
0 848

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: kurotsuke | last post by:
Hi, I need to know the position (X, Y cohordinates) of the caret. I'm using the function: private static extern int GetCaretPos(ref POINT lpPoint); I'm actually getting a result but I...
9
by: Xah Lee | last post by:
REQUIREMENTS FOR A VISUALIZATION SOFTWARE SYSTEM FOR 2010 Xah Lee, 2007-03-16 In this essay, i give a list of requirements that i think is necessary for a software system for creating...
2
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I created the program below in VS2005. Form2 opens just fine, but it ignores the call to SetDesktopLocation(). Any ideas why? It seems like a should be trivial to specify a screen location where a...
2
by: Abdul Ahad | last post by:
plz help, i want to get all record between this date as 15/09/2010 to end date 25/09/2010. when i am using between '15/09/2010' and '25/09/2010' then i am getting record from 15/09/2010 to...
0
by: Jourdan | last post by:
I am creating a web application backed by a SQL database in visual studio 2010. I have created a form with a dropdownlists for date and category as well as a textbox to perform a key word search. The...
0
by: caixia song | last post by:
I use the ubuntu10.04, and when i compile a package which is in ROS, the error occurs as following: File "/usr/lib/python2.6/logging/handlers.py", line 76, in emit if...
1
topher23
by: topher23 | last post by:
A layout provides a grouping method for controls on a form or report. The two default layout types are Tabular (labels in form header, controls in detail), and Stacked (labels to the left, controls...
0
by: RCusick | last post by:
My company recently switched from SharePoint Server 2010 to SharePoint Server 2013, but for now it is the 2010 Emulation Mode. One of the older (created on SharePoint Server 2007) Visual Studio...
3
by: alexrubio | last post by:
I'm new to programming and got stuck with an issue and was wondering if you could lend a hand. I have an Access database I'm building a front end for in VB 2010, I was able to connect to the database...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.