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

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 "Application
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 1612

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

Similar topics

0
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...
0
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,...
9
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...
3
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...
4
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
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...
2
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...
10
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...
0
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...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...

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.