473,395 Members | 1,443 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,395 software developers and data experts.

How to position a toolbar in its parent ?

Hi,

I have a a custom control derived from System.Windows.Forms.Control.
Inside I have some sub controls (let's say an editbox) that I can place
manually correctly.

But When I try to add a toolbar (Dock set to false), Location and Size
doesn't work properly and the toolbar is badly positioned. For example
toolbar.Location = new Point(0,0) doesn't put the toolbar at the top left of
the control.

Could someone explain me this behaviour ?

Thank you

Herve
Nov 16 '05 #1
0 934

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

Similar topics

0
by: Ilariu Raducan | last post by:
Hi All, I'm trying to create a dynamic toolbar. This function tries to create the toolbar and add a button to it. It craches at tbctrl.SteBitmapSize(32,32) What is wrong with it? Thank you,...
1
by: Felix Natter | last post by:
hi, I have a structure like: <topic name="xxx"> <subtopic name="subxxx"> <subsubtopic name="subsubxxx"> </subsubtopic> </subtopic> </topic>
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
2
by: Joachim Bauer | last post by:
I'm using the code below to display a menu that opens when the mouse goes over the main menu item (try it in your browser to understand the behaviour). It uses "position:absolute" and a switch...
0
by: ibsuzanne | last post by:
hello there, I am having a really diffuclt time positioning the toolbars where I want them in Access 2000. I have a main toolbar open and docked at the top, and I want to open an additional...
3
by: adrian.chandler | last post by:
I have a form with a subform. The subform occupies about the bottom two thirds of the screen. The form has a custom CommandBar docked at the top. The subform also has its own CommandBar. I want...
0
by: Bob | last post by:
I have my own toolbar docked at the top of an MDI parent form's client area. When a child form is maximized, the toolbar gets bumped down underneath an area that shows the child form's topmost...
0
by: Dan Baumbach | last post by:
I'm working on a toolbar for IE. I have everything working well but I'm unable to get the toolbar to have the same gradient background under XP that other toolbars on IE have. To start with, I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.