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

Dock padding?

I'd like to introduce a gutter or deadspace between my docked controls on a
form. I've sent the Form's padding to 5 for all, but the controls still
align right against each other. I could add a dummy panel between each one
set to a height/width of 5, but that is hacky. Is there another way that
people deal witih this? Is there a property that I'm missing somewhere?

Thanks for reading,
Steve
Aug 24 '06 #1
2 7452
IIRC, "Padding" is the inner border /within/ a control; what you want
sounds closer to "Margin", but I don't believe this is respected for
tightly docked controls (e.g. 3 buttons right-docked together). The
margin certainly impacts the designer's "blue bar cue thingies" (sorry,
name escapes me at the moment).

You could try anchoring? E.g. to simulate a right-dock with Margin,
place where you want, expand until the blue bars kick in, then (for
right-dock) anchor Top | Right | Bottom.

Marc

Aug 25 '06 #2

sklett wrote:
I'd like to introduce a gutter or deadspace between my docked controls on a
form. I've sent the Form's padding to 5 for all, but the controls still
align right against each other. I could add a dummy panel between each one
set to a height/width of 5, but that is hacky. Is there another way that
people deal witih this? Is there a property that I'm missing somewhere?

Thanks for reading,
Steve
In addition, if I'm not mistaken, when you set the Dock padding for the
form, for example, the padding only affects how controls dock to the
form and not to each other. I think what Mark posted should help you.

Another way to control layout of controls is to use the
TableLayoutPanel and/or the FlowLayoutPanel (assuming you have
VS2005). These controls use the same techniques that are common on web
pages to control layout.

Aug 25 '06 #3

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

Similar topics

2
by: JohnnyB via DotNetMonster.com | last post by:
Hello, I dont know, if this has already been asked before, I'm sorry if so. VisualBasic: My problem (happens with TreeView, not with AxWebBrowser): treeview uses (no matter, if dock = left,...
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. ...
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...
3
by: Dennis | last post by:
I have been trying all evening to add two panels to a form with a horizontal splitter in middle. How can I do this. I have one panel docked to top and one docked to bottom. I have tried all of...
0
by: myPosts | last post by:
Hi all, I am having problem at a time of using datagrid in c#.net. On currentcell change event of datagrid i am displaying one combobox and setting location of combobox depending on location...
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...
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.