473,326 Members | 1,972 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,326 software developers and data experts.

screen.WorkingArea questions

I have an app that runs in the background, and adds an icon to the system
tray. When events occur, I bring up a small window in the bottom right
(sort of like msn messenger alert) that I want to appear just above the
taskbar. I have:

Screen screen = Screen.PrimaryScreen;
int w = screen.WorkingArea.Width;
int h = screen.WorkingArea.Height;

this.Left = w - targetWidth + 1; //target width id the width of the form.
this.Top = h -1;
this.Show();
The form appears roughly correct, but the top of the form is halfway down
the taskbar. I'm wanting the top of my form to start just above the taskbar.
(It will "scroll up" automatically, a feature which is working fine.) I
think this is because I have my taskbar height set to be a "double row". It
looks like the workingArea assumes the taskbar is only one row? How can I
know how many rows are specified for the taskbar, and how high they are, or
am I doing this wrong?

Thanks!

-D
Nov 15 '05 #1
0 3507

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jaco | last post by:
Hi, How can I determine in C#-code the screen resolution. If it is an 800 by 600 or an 1024 by 768 I have to show other forms (frames) on the screen (dimension of the forms depends on the...
5
by: Me | last post by:
I am about to roll out a vb.net 2003 app for screens using 1024x768. However some users will only have 800x600. Is there a quick method of scaling down the screens already written (e.g....
11
by: Arcer P | last post by:
Situation 1 (erroneous): TaskBar changes Screen.PrimaryScreen.WorkingArea still returns the old rectangle Situation 2 (OK) TaskBar changes Form Quits and Reloads...
2
by: Chen | last post by:
I want to know the screen resolution before launch my VB .NET windows form so the form can fit the screen nicely. Is that possible? Thanks.
3
by: Bala | last post by:
Hi, My current vb code having screen keyword. can anyone tell me what is the equalent in vb.net? frm.Top = (Screen.Height - frm.Height) / 2 frm.Left = (Screen.Width - frm.Width) / 2 thanks...
7
by: FabriceG | last post by:
I'm french, and I would like find the screen width and height without using the screen object. Can you Help me ?
15
by: iwdu15 | last post by:
hi, is there anyway i can make my windows form to be full screen? thanks
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi All, i Have an application functionaluty which has 4 forms which are needed to interact by the user by dragging data from these forms to one another the main form is located in the MDI Parent...
0
by: Sandra Smit | last post by:
Hi, I'm making a dual screen application with WPF. I use the following code but the weatherForcast form is not running on the second screen: protected override void OnStartup(StartupEventArgs...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.