Hello
Thanks for reviewing my question. I have a simple question. I would like to know how you can arrange the docking order? For example, when I add a toolbar and I set the dock to TOP and then add a listview and set its dock to LEFT, the listview goes to left top to left bottom and my toolbar is now smaller because it was pushed over by the listview. What I want is to have toolbar top left to top right and the listview's top starting at the place below the toolbar to the bottom of the form. (I hope explained it clearly.
Many Thanks to the Exper
Peter 3 1612
Hi Peter,
You can try using panels. Put a panel with DockStyle.Fill beneath your
toolbar, and the ListView inside that panel.
Happy coding!
Morten Wennevik [C# MVP]
Peter wrote:
<snip> For example, when I add a toolbar and I set the dock to TOP and then add a listview and set its dock to LEFT, the listview goes to left top to left bottom and my toolbar is now smaller because it was pushed over by the listview.
This doesn't happen here. When I set the ListView's Dock to Left, the
ToolBar doesn't resize at all.
Can you give exact instructions on how to replicate the problem?
<snip>
This is controlled by the order the controls are added to the form:
this.Controls.A ddRange(new System.Windows. Forms.Control[]
{this.listView1 ,this.toolBar1} );
Change the order to {this.toolBar1, this.listView1} and you will change
the effect.
Bern
"Peter" <an*******@disc ussions.microso ft.com> wrote in message
news:CE******** *************** ***********@mic rosoft.com... Hello,
Thanks for reviewing my question. I have a simple question. I would like
to know how you can arrange the docking order? For example, when I add a
toolbar and I set the dock to TOP and then add a listview and set its dock
to LEFT, the listview goes to left top to left bottom and my toolbar is now
smaller because it was pushed over by the listview. What I want is to have
toolbar top left to top right and the listview's top starting at the place
below the toolbar to the bottom of the form. (I hope explained it clearly.) Many Thanks to the Expert Peter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Hoffman |
last post by:
Hello
I have a routine that among other things, reads and writes some simple settings to the registry. Everything works fine. I port this program to a windows service and start it and everthing works fine except it won't write any data to the registry. I can read it, but can't write it. I used .net 2003 debugger and attached to the process and...
|
by: David Gouge |
last post by:
Hi all,
A question on the verge of being OT, but here goes:
In my c# project in VS2005, I have a Properties folder in the Solution
Explorer and within that a Settings.settings file. At first glance i
decided this was a great place to store some simple configuration
settings for my app (like web proxy settings etc), but after putting the...
|
by: John |
last post by:
Hi
What settings do I need so my main form touches the task bar but dope snot
go over it. This is just like other applications do. Also, what happens on
windows xp where a window's borders are thicker than on windows 2000?
Thanks
Regards
|
by: Mark |
last post by:
Experts -
I have a laptop running XP docked to a dual monitor
setup. I find it quite annoying that even when I undock,
I am still on dual monitor setting, which means some of
my apps are on the hidden screen and thus unusable.
I have to mannually go to the 'display settings' and
change it to single monitor mode by not 'extending the...
|
by: Chris Dunaway |
last post by:
Where/How does VS determing docking order?
I created a form with a panel docked to the top and a tab control with fill
docking.
I had added some tabs and place some controls, etc., and decided to add a
status bar to the main form. I add the status bar and docked it to the
bottom, but the tabControl when docked as filled, fills *behind*...
| |
by: Dennis |
last post by:
Has anyone really gotten the Docking and Splitter Bars to work for anyting
but the simplest application for two controls and one splitter bar filling
the whole form? If so, can you enlighten my on HOW! I even tried creating
background panels and docking them with the controls on the panels but the
docking order seems to be random! Another...
|
by: Enrique |
last post by:
hi all,
i'd like to know how i could do a docking menu and docking toolbar.
i know it's not so easy y VS .NET 2002 and 2003.
anything will help me: links, code, articles.....
thanks a lot for your responses and i wish you a merry christmas :-)
|
by: ray |
last post by:
I have attempted to change a menubar settings so that users can do
nothing to it: move it, close it etc.
This occurred because Citrix users could pull the bar off the top of
the screen, close it and then never be able to find it again, and we
couldn't log in to fix it. We would change the menubar properties in
the next release, but they...
|
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...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |