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

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 1572
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...

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.