473,394 Members | 2,048 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,394 software developers and data experts.

Dock my form on the desktop??

Hi,

In the buttom of my mesktop, I have the processbar (hope that it's
called processbar, because I translated it from Danish).

If I maximize an application, the processbar is always visible.

Now I want to make my form act like the processbar and dock to the left
side of the desktop, so if the user maximizes an application then the
processbar and my form will always be visible.

(If you know "radio@netscape plus" then if you minimize it, it does
excatly what I want to do).

Hope you understand what I mean (I want to "owe" a space on the desktop :o).

Thanks in advance!
M O J O

Nov 22 '05 #1
2 2414
Hi M O J O,

Thanks for your post. You can use the SystemParametersInfo API by
specifying SPI_SETWORKAREA to shrink the available area for other
applications. Please refer to MSDN article on SystemParametersInfo:

SystemParametersInfo
http://msdn.microsoft.com/library/de...us/sysinfo/bas
e/systemparametersinfo.asp

For .NET managed application, you can call this API via Platform Invoke as
described in the article below:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #2
Hi M O J O,

Thanks for your post. You can use the SystemParametersInfo API by
specifying SPI_SETWORKAREA to shrink the available area for other
applications. Please refer to MSDN article on SystemParametersInfo:

SystemParametersInfo
http://msdn.microsoft.com/library/de...us/sysinfo/bas
e/systemparametersinfo.asp

For .NET managed application, you can call this API via Platform Invoke as
described in the article below:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #3

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

Similar topics

1
by: M O J O | last post by:
Hi, In the buttom of my mesktop, I have the processbar (hope that it's called processbar, because I translated it from Danish). If I maximize an application, the processbar is always visible....
2
by: James | last post by:
I have a forms application which has many controls such as buttons,labels,listviews,text boxes etc. If you set the window size to maximum size so that it would expand to the size of the screen the...
2
by: Bill English | last post by:
Does anyone know how to dock a window on the desktop? A good example is AOL Instant Messenger. It has the option to dock on the desktop. When docked, it takes the sizable tool FormBorderStyle. ...
4
by: zav | last post by:
Hi all i`m having a small problem with windows forms, i`m attempting to provide the following functionality to a form. Ability to drag and drop another form onto a form and then to dock this...
2
by: Agnes | last post by:
I got one progress bar , one panel in my form. First , I put the progress bar at the bottom of the form and set "dock" to bottom. It runs very well. then, I put the panel in the form (set the dock...
0
by: A_PK | last post by:
Hi I got the following environment.......Form1 and inside Form1, got Panel1.... I also got another new Form ...named Form2... Form1, Panel1 Form2 Inside Form1, I click a button to show Form2...
2
by: Usarian Skiff | last post by:
Anyone know how to dock a form to the desktop? To clarify, I want my form to be fixed to the top of the screen, and all maximized forms to not cover up my form or be covered up by my form....
7
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put...
4
by: adrian.bennett | last post by:
I am trying to dock a form to the desktop like the taskbar is but I have been unable to figure out how to do this. Can anyone help? Thanks
12
by: Rotsey | last post by:
Hi, I have not had a good answer to this question. I put a menustrip on a form and so it is a main menu in affect. Now I put a webbrowser control on the form and set it dock fill. Of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.