473,836 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference between Form.DesktopLoc ation() and Form.Location() ??

153 New Member
The code below shows the same values for both
private void mainform_Move(o bject sender, EventArgs e)
{
lbllocation.Tex t = "location" + this.Location.T oString();
lbldesktoplocat ion.Text = "location" + this.DesktopLoc ation.ToString( );
}

what exactly is the difference ?
Dec 3 '08
14 5027
Curtis Rutland
3,256 Recognized Expert Specialist
No, I'll answer.

They don't have to both show the same thing...you can extend your desktop across both of them, making it act like one large display, except maximizing still only fills one window. It's especially nice for coding, if you have to look at your database at the same time. Have your code up in one, your DB up in the other. Or if you have to compare documents...or anything that requires more than one window at a time.

So, for example, I have two 19 inch monitors right now. They're both at 1280x1024 resolution. My desktop is actually 2560x1024 pixels, because it treats them as one big screen.

Also, there are some good uses for the "cloned view" where both show the same thing...like for projectors. Also, I saw a setup in a photographer's place, where they had a monitor facing forward and backwards, so that the client could sit on the other side of the desk, and preview pics with them.
Dec 3 '08 #11
balabaster
797 Recognized Expert Contributor
@insertAlias
I have 3 and some days I still wonder if I could have more. I'm working my way up to the 6 that John Travolta has in Operation: Swordfish.
Dec 3 '08 #12
Curtis Rutland
3,256 Recognized Expert Specialist
IIRC that was seven, and that would be all kinds of neat...having them all wall mounted....
/drools


Anyway, I think you can go up to nine without specialized hardware...I heard that somewhere from someone, so I have no idea if that's true.
Dec 3 '08 #13
balabaster
797 Recognized Expert Contributor
@insertAlias
I doubt very much my boss would let me have all that equipment and if I "wasted" that kind of money my home computer, my wife would kill me. hehe. I guess I should've married a woman that's as into computers as I am :o)
Dec 3 '08 #14
Curtis Rutland
3,256 Recognized Expert Specialist
No, because then you'd be buying her those monitors ;)

But seriously, I'm picking up a 24" over the holidays....it' s going to be great.

At home I like to have one big monitor, because I play games. Working, I like multiples.
Dec 3 '08 #15

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

Similar topics

3
50437
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
3
1174
by: Jarek Mielcarek | last post by:
hi, I've problem to locate form on screen. I'd like to show modal form near a textbox after user click on it. here is the code: Private Sub myTextBox_MouseDown(ByVal sender As Object, ByVal e As (...) Dim r As New Rectangle(TextBox.Width, 1, 16, 18) If r.Contains(New Point(e.X, e.Y)) Then With popUp .DesktopLocation = PointToScreen(New Point(r.Right - popUp.Size.Width, r.Bottom + 2))
4
3164
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
4
1716
by: Philip Wagenaar | last post by:
I have made a form with a tab that containts groupboxes and those contain checkboxes. When I run the application sometimes the outlining for some groupboxes are not shown, if I switch tabs and back sometimes all outlining is shown and sometimes are not shown. I have no idea what is going wrong. What also is weird is that when I open the form from my main application I can resize the form, even though it is locked, and that when I cut...
14
3440
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System.Drawing.Rectangle = _ Screen.PrimaryScreen.WorkingArea ' Set the size of the form slightly less than size of
2
4292
by: Rich | last post by:
Greetings. I have a child form inside an MID parent form. The child form is wider than the MID parent form. The child form contains a number of textboxes which are positioned from left to right on the child form where the textbox on the right is not viewable because it extends beyond the right border of the MDI parent form. What I need to happen is when I tab through the textboxes - when I tab into the textbox on the right side of...
8
3597
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a picture box, lots of text boxes (for input).. you get the idea. All of a sudden everything on the form has disappeared, it looks like a blank, newly created form. I can still get to the properties of every item on the form using the drop-down box in...
1
9459
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works when the form is in its minimal size. However, when the form is maximized using the appropriate button the code that is supposed to set the location is ignored. When the form is switched back to the standard dimensions through the restore...
2
2172
by: Steve Richter | last post by:
I am using ShowDialog to show a popup form and want to position the popup relative to the control on the form the popup is pertinent to. For this, I am using FormStartPosition.Manual to set the position of the form relative to the desktop. I can calc the location of a control relative to the client rect of a form. But since I am positioning the popup form relative to the desktop, I need to know the DesktopLocation of controls on the...
0
9656
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10819
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10240
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6972
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.