473,839 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Docking a form to the side of the screen and getting menus to work?

Hi, I'm in the process of trying to make my app into an "Applicatio n
Desktop Toolbar" (or at least that's what i've discovered you need to do
in order to dock the main form to the left/right sides of the monitor).

Anyway I found a tutorial at code project that does this (c# does shell,
part 3 - http://www.codeproject.com/csharp/csdoesshell3.asp) and
everything works ok (there's a comment at the bottom with updated code
to make the window dock by draging it past the edges) except for 2 things:

1. Main Menu doesn't work in this code when the window is not in float
state. I made a form, set it to use the compiled dll instead of a
normal system.windows. forms.form, then added a main menu. What happens
is the main menu doesn't respond when the form isn't floating. The
items don't get the grey background and clicking on them does nothing.
Why is this? Should I be doing something else to dock the window
instead of what this code does? Is this code just a base and do I need
to add something to get menus to work?

2. This one is less important to me, but, using the code in the comment
the window stays huge when you drag it back from off the edge. I hacked
the crap out of it and was able to get it to not resize huge, but this
was a major hack, basically disabling resizing of the form for 10
seconds after making it a floating window. I'm wondering why the window
tries every time it moves (until you let go of the mouse) once it's in
the floating state to become huge.

Any help would be awesome... thanks guys!

~Benny
Nov 17 '05 #1
0 1652

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

Similar topics

0
1789
by: Pamela Thalacker | last post by:
The default configuration for the VS.Net IDE is two combination windows docked to the right of the screen and tiled vertically(by which I mean one on top of the other). The upper window has the Solution Explorer, Properties Window and something else tabbed in it and the lower window has Dynamic Help and something else tabbed in it. The other day I inadvertantly undocked the lower window (I am still getting used to the touchpad on my...
0
3135
by: ka | last post by:
I'm using Corwnwood.Magic library for docking in my application. My application to let the users to create their screen look to show some particular data. I treid to dock my things in the way, Left Side: ToolBox Middle: WorkPanel Right: Package Explorer + PropertyWindow WorkToolBox, Package Explore, PrepertyWindow : derived from Content
9
2827
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
3
8119
by: Colt Ramsden | last post by:
How would I go about docking my main form to the side of the left side of the screen, ala Trillian or Desktop Sidebar, where any other maximized apps will only maximize to the docked form's left border? Any help would be most appreciated. -Colt Ramsden
4
10940
by: EdB | last post by:
Does VB.Net provide any means of mimicking the behaviour of the auto hide/docking controls, such as the solution explorer and toolbox?
1
1239
by: Ahmed | last post by:
Hello everyone, I am designing an application to work with two screen resolutions, 1024x 768 and 800x600. If the user is using a higher resolution the form should have the same size as 1024x768 screen I started building the application in 1024x 768 form size but everything got screwed up when I used the 800x600 screen. So, I decided to set the size of the form in the design mode to 800x600. The screen draws fine but I have a lot of...
2
2637
by: Matt Brown - identify | last post by:
Hello, I've spent the better part of the day going over code and thinking and have come up with the following docking method that works perfectly. At this point, my brain is about to explode and I was wondering if someone can help me figure out the calculations for right and bottom docking: note: lRelOffsetLeft and lRelOffsetTop are calculated on mousedown (location of mouse in relation to top and left of picturebox)
10
27666
bentleyw
by: bentleyw | last post by:
In a current project I am working on, I have the need to dock forms on each other. For example, you have form1 and when you move form2 close to the borders of it, it attaches itself to form1. Then it could move with form1. I would have thought that this would be a built in feature already in .NET, but after doing some brief searches I was not able to find it. If anyone knows how to do this automatically in C# .NET, or if you have a...
0
1180
by: Phil Townsend | last post by:
This question pertains to WPF. In a XAML form, is there a way to cause a window object to dock itself to a particular location on the screen? I've been taked to create a "manager" for a larger app that would be located on the right side of the screen, similar to something like Yahoo's widget manager. We would also like the ability for it to "slide" to the right into a tab or out of view wehn it loses focus.
0
9697
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
10906
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...
0
10585
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10647
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
9426
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
7828
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
7017
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
5866
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3132
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.