473,472 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows Control Library

I am trying to create a custom control and I have the need to implement a
collection similar to the Collections that controls like the Listview
control uses (ex. ColumnHeader Collection). I have not found and article
that really explains how this works. Can anyone help me with this or does
anyone know where I can get document that will explain this?
Thanks
Nov 20 '05 #1
2 1573
jim
Hi Tim, if i understand correctly what you're asking, it's pretty simple...

just basically create your windows control library project, in the code view
of the control create a new property of whatever type you'd like ot
implement.

\\\
private m_myCollection as Collections.ArrayList
public property MyCollection as Collections.ArrayList
Get
return m_myCollection
End Get
Set(byval value as Collections.ArrayList)
me.m_myCollection = value
End Set
End Property
///

adding full featured design time support for this property can get a little
tougher, depending on exactly what you'd like to do (support custom
collection etc) but a good place to start is the following page on msdn.

http://tinyurl.com/2aoz6

hope this helps,

jim

"Tim Joyner" <tj*******@msn.com> wrote in message
news:OR*****************@TK2MSFTNGP10.phx.gbl...
I am trying to create a custom control and I have the need to implement a
collection similar to the Collections that controls like the Listview
control uses (ex. ColumnHeader Collection). I have not found and article
that really explains how this works. Can anyone help me with this or does
anyone know where I can get document that will explain this?
Thanks

Nov 20 '05 #2
Thanks

I will try this and see if it works

"jim" <james_matthews_at_shi_dotcom> wrote in message
news:ec******************@TK2MSFTNGP10.phx.gbl...
Hi Tim, if i understand correctly what you're asking, it's pretty simple...
just basically create your windows control library project, in the code view of the control create a new property of whatever type you'd like ot
implement.

\\\
private m_myCollection as Collections.ArrayList
public property MyCollection as Collections.ArrayList
Get
return m_myCollection
End Get
Set(byval value as Collections.ArrayList)
me.m_myCollection = value
End Set
End Property
///

adding full featured design time support for this property can get a little tougher, depending on exactly what you'd like to do (support custom
collection etc) but a good place to start is the following page on msdn.

http://tinyurl.com/2aoz6

hope this helps,

jim

"Tim Joyner" <tj*******@msn.com> wrote in message
news:OR*****************@TK2MSFTNGP10.phx.gbl...
I am trying to create a custom control and I have the need to implement a collection similar to the Collections that controls like the Listview
control uses (ex. ColumnHeader Collection). I have not found and article that really explains how this works. Can anyone help me with this or does anyone know where I can get document that will explain this?
Thanks


Nov 20 '05 #3

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

Similar topics

2
by: zapazap | last post by:
-- Pythonic control of Windows GUI application: tabs and listviews Dear Snake-charming Gurus, I have learned to manipulate some controls ("Button", "ComboBox", etc) through such means as: ...
0
by: Brett Gerhardi | last post by:
Hi all, I'm having a nightmare with Windows Installer projects and souce control. My situation is that I have a few related windows application / dlls, some generic shared library files and a...
4
by: rajendra | last post by:
how to extend existing windows forms control like if i want to add new add method to combo box ,how to go abt. it? can anyone help me abt. this
2
by: Miky | last post by:
Hi, I have the following problem: I have a .CFM web page and I have to populate, from VB, two textboxes on it. I was thinking using sendkeys (even if I don't like it too much) but when I...
10
by: Sylvain Audet | last post by:
Hello! We have a Windows application that is using Crystal Reports reports containing Barcode fonts. Those reports are called through reflection into a Crystal Report Viewer and we need to have...
3
by: eBob.com | last post by:
I have several applications which mine web sites for personal information which they publish. They publish the info in one form, I transform the info into Excel spreadsheets. So all these...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file. One project that build a class library dll One project that build a windows control dll In...
2
by: Iwan Budihalim | last post by:
Dear All, I try to create Windows Control Library and embedded it to my web project. after successfull creating the windows control library and put the control to my web all the control show...
23
by: Dan Tallent | last post by:
A textbox has a attribute for ReadOnly. This seems like such a simple concept. When a textbox is set to read only the user cannot change the contents of the field. I have been trying to find...
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
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
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...
1
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...
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...
0
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.