
294 Chapter 7 • Creating Windows Forms
In Visual Basic .NET, you can also quickly change a form’s location by
increments.The following example adjusts the form’s y-coordinate to 100 pixels
farther than the current setting:
frmPalette.Top += 100
You can use the DesktopLocation property instead of the Location property to
adjust a form’s location.The DesktopLocation property determines the location of
a form relative to the Windows taskbar.This is useful if the taskbar is not auto-
matically hidden and has been docked to the left or top of the monitor, which
obscures the desktop coordinates (0, 0). Setting the desktop location of a form to
(0, 0) ensures ...