473,503 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UserControl with a ComboBox

Moin!

I've 'composed' a special UserControl I need for my current project. On
this Control I put a ComboBox. The user is not allowed to access the
ComboBox directly (to protect some properties), so I used Properties to
enable the user to do some things in design mode. It all works fine
except for the Items property:

public ComboBox.ObjectCollection Items
{
get { return sicherungCombo.Items; }
}

I can't edit the items in design mode. I once read, that you need to add
an attribute, but I can't find it (not even the text I read).

Has anyone an idea how to do it? Oh, BTW: I (have to) use .net 1.1.

*** Sent via Developersdex http://www.developersdex.com ***
Mar 3 '06 #1
1 2125
Apply the DesignerSerializationVisibility attribute with a value of
DesignerSerializationVisibility.Content to allow the contents of the
collection to be persisted.

--
Tim Wilson
..NET Compact Framework MVP

"Jochen Berger" <be*****@web.de> wrote in message
news:OY**************@TK2MSFTNGP15.phx.gbl...
Moin!

I've 'composed' a special UserControl I need for my current project. On
this Control I put a ComboBox. The user is not allowed to access the
ComboBox directly (to protect some properties), so I used Properties to
enable the user to do some things in design mode. It all works fine
except for the Items property:

public ComboBox.ObjectCollection Items
{
get { return sicherungCombo.Items; }
}

I can't edit the items in design mode. I once read, that you need to add
an attribute, but I can't find it (not even the text I read).

Has anyone an idea how to do it? Oh, BTW: I (have to) use .net 1.1.

*** Sent via Developersdex http://www.developersdex.com ***

Mar 3 '06 #2

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

Similar topics

5
1442
by: codymanix | last post by:
My problem is: I have comboboxes which resides in a usercontrol. Always when the usercontrol changes its visible status (the dialog is shown or you switch to the tabpage where the usercontrol...
1
3668
by: bob scola | last post by:
I have a csharp, VS 2003 solution for a winform application The application uses an object called a "matter" and the class is defined in matter.cs. I can load matter objects into a combobox ...
2
2077
by: John B | last post by:
Hello I want to create a set of controls that have some common methods and properties. I was thinking that I should subclass the UserControl class and add these common features there and then...
13
5320
by: Michael Maes | last post by:
Hi, I have a UserControl containing some controls of which one is a ComboBox. All the InternalControls are Private and some are allowed to be accessed through Public Methods. One of the things I...
8
4129
by: ChrisK | last post by:
Hi, I'm beginner with VB.net and i have a trouble... At work, they decided to program with tabcontrol...and i'mm in charge of this ! There is my problem. I've a form with one tabcontrol (TBC1...
9
15346
by: davidr | last post by:
Hi, I've researched this a lot and have a well understanding but still can't get the darn textbox in the javascript. I have a textbox that is set to runat="server" and I have a client...
5
19632
by: Blue | last post by:
We have a custom word processing type editor built with C# and .NET 2.0 and we need to support typing in languages other than English. I want to be able to use the Windows IME to enter in text...
3
2000
by: Martin | last post by:
Hi ! I've developed a small UserControl with five textbox and label. However, when I want to display the UserControl in a form, controls appear slowly one after one. I've activated double...
4
2457
by: Martin | last post by:
Hi everyone ! For those who haven't read my previous post, I have a problem with a UserControl. When I try to display it on a form, controls seem to appear one after one. In the following...
0
7091
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
7342
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
7464
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...
0
5586
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,...
1
5018
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...
0
4680
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...
0
3171
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...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.