473,669 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to manage / layout a custom control in TableLayoutPane l

Hi,

I am having a problem in my WinForm control which is a control derived
from "ComboBox".

Control adds a Text "Label" control in the parent control's collection
when the control handle is created. Position and size of the control
is evaluated on runtime and positioned properly in the parent control.

The problem is, when i drop this control from designer on a
TabelLayoutPane l, the label never gets the proper cell on which it is
dropped. TableLayoutPane l only allows a single control in a cell.

Is their any solution for this problem?

I have tried to make a container control and adding the two controls
into that container, but that way i have to write all the
functionalities of combo box on the container ( the problem appear to
be solved but now i get more coding and i am getting into more
problems as this is a databound control ).Also i need to have the base
to be ComboBox only.

Thanx,
Shariq Muhammad

Application Development
Tyler Works, Incode Division

Mar 6 '07 #1
0 1620

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

Similar topics

5
3942
by: Mahesh Devjibhai Dhola [MVP] | last post by:
Hi, How to achieve effect of LayoutManagers like java has Grid, Flow, Border etc layouts in .Net? The case is: I am creating the form runtime and adding controls on run-time so at that time its very hactic to manipulate about other control's sizes, positions etc so there must be easy way to do such things like what Java LayoutManagers allow without worring the actual positions in pixels. It allows me to add, insert etc operation without...
7
1706
by: David Veeneman | last post by:
I'm just getting started with ASP.NET in Visual Studio 2005. The last web work I did involved ASP 3.0 in FrontPage. I've been through the MSDN tutorials on creating web pages, but not of them seem to cover real-world page layout. In the ASP era, I used tables to provide a structure for a page, then coded HTML controls within the grid. So, my first question is: Are pages laid out the same way in ASP.NET--start with a table and add...
0
3258
by: Sudha Chennai | last post by:
I am using windows forms control TableLayoutPanel and C#, VS2005 I want to remove/delete the rows dynamically from TableLayoutPanel... i dont find any links guiding me this.... can u anyone post code snippet Thanks a lot
2
17562
by: steve | last post by:
Hi All I need to change the rowspan, columnspan properties of a control when they are within a TableLayoutPanel (VB.net 2005) At runtime the property is not available, but is at design time Any ideas Regards
14
4842
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
1
6437
by: Anoop | last post by:
Hi, Requirement: Create Edit Forms dynamically i.e. at runtime in C#.net. The child contol(s) information e.g. no.of control, their type(lable/textbox), enabled/disabled etc. is coming from the DB. Options: The available options are: 1. Use LayoutPanels - FlowLayoutPanel/TableLayoutPanel to layout the controls on the Form. 2. Use simple panels and wirte complex logic with a lot of harded values for location/size etc. of the controls...
2
30819
by: avanti | last post by:
Hi, I am trying to delete rows from a TableLayoutPanel at Runtime. I tried editing the RowStyles collection but doesn't do what I want it to. I have a table with 10 rows. I want to delete rows 2 to 10 at runtime, keeping the first row unchanged. Can this be done? Thanks,
3
1347
by: TyBreaker | last post by:
Is it possible to set controls to dock/anchor to nearby controls rather than to the edges of the form? Trying to have the form controls auto-adjust if a particular controls resizes. -- ______ ___ __ /_ __/_ __/ _ )_______ ___ _/ /_____ ____ / / / // / _ / __/ -_) _ `/ '_/ -_) __/ /_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/ /___/
1
1367
by: Mecena | last post by:
... I've built a user control that has a TableLayoutPanel that has 10 other controls on it. Now I want users to be able to use my control like a TableLayoutPanel in designtime. How? thanx, M.
0
8465
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, 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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
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
8894
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...
1
8587
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
5682
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
4206
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2029
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1787
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.