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

Design time properites in user control

I am creating a user control that inherits the standard listview. I want to add a couple properties that should be available in the designer, but haven't the fogiest idea how. Please help

Thanks
Eric Fleet
Nov 20 '05 #1
7 1075
Cor
Hi Eric,

One halfour ago distributed by Herfried, K Wagner

<http://www.codeproject.com/cs/miscctrl/#TreeView+Controls>

Someone has proposed his company to give a credit card from the company

:-)

Cor

"> I am creating a user control that inherits the standard listview. I want
to add a couple properties that should be available in the designer, but
haven't the fogiest idea how. Please help!

Nov 20 '05 #2
* "Cor" <no*@non.com> scripsit:
One halfour ago distributed by Herfried, K Wagner

<http://www.codeproject.com/cs/miscctrl/#TreeView+Controls>

Someone has proposed his company to give a credit card from the company


I am not sure, but ListView <> TreeView...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Cor
Hi Eric,
Someone has proposed his company to give a credit card from the company

To Herfried of course, I changed the text and deleted that

:-)

Cor
Nov 20 '05 #4
Cor
Hi Eric,

I did misread me I thought really it was the listview

No extra creditcard for Herfried,

But there are listview things also on that page

http://www.codeproject.com/cs/miscct...tView+Controls

Sorry

Cor

One halfour ago distributed by Herfried, K Wagner

<http://www.codeproject.com/cs/miscctrl/#TreeView+Controls>

Someone has proposed his company to give a credit card from the company

:-)

Nov 20 '05 #5
Hi Eric,

If you wanted a Simple Answer!

Just add a Property to your inheriting class.

Public Class MyObj
Inherits ListView

Private _myProp as Object
Public Property MyProp as Object
Get
Return _myProp
End Get
Set (Value as Object)
_myProp = Value
End Set
End Property

End Class

My Property will now be visible in the Designer, after compiled of course..

Also you can add and checkout

Imports System.ComponentModel

Then above your property type <

This will present a list of things you can assign for your property,
Some usefull one's from the designer's point of view are, DefaultValue,
Browsable, Category

There should be some doc under ComponentModel.

If you need any more help then please ask.
Rigga.

"Eric Fleet" <an*******@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
I am creating a user control that inherits the standard listview. I want to add a couple properties that should be available in the designer, but
haven't the fogiest idea how. Please help!
Thanks,
Eric Fleet

Nov 20 '05 #6
Thank you much! I thought I had done this a couple times... I wonder if I forgot to recompile :)

At any rate, late me tell you something else I am trying to do: in my extended listview, I would like to use extended column headers, and add them at design timejust like you would through ColumnHeaders Collection Property (click on the elipses by 'Columns' in the properties window). If I drop my extended listview onto a test form, and click on the columns elipses, I can add a normal listview header... how to make it add an extended listview header?

I have set up an eColumnHeader class... but confused where to go from here.

Any help would be appreciated.

Thanks,
Eric
Nov 20 '05 #7
Hi Eric,

there is a good tutorial here,
http://www.divil.co.uk/net/articles/...oncontrols.asp

HTH.

Rigga.

"Eric Fleet" <an*******@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
Thank you much! I thought I had done this a couple times... I wonder if I forgot to recompile :)
At any rate, late me tell you something else I am trying to do: in my extended listview, I would like to use extended column headers, and add them
at design timejust like you would through ColumnHeaders Collection Property
(click on the elipses by 'Columns' in the properties window). If I drop my
extended listview onto a test form, and click on the columns elipses, I can
add a normal listview header... how to make it add an extended listview
header?
I have set up an eColumnHeader class... but confused where to go from here.
Any help would be appreciated.

Thanks,
Eric

Nov 20 '05 #8

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

Similar topics

3
by: Sorin Dolha | last post by:
Hello, We intend to create an ASP.NET-based Web application (hosted on Internet Information Services, or IIS) and one feature of the application needs to allow the end user to upload photos to...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
11
by: chopsnsauce | last post by:
Here's the example: Dim frm As New FORM1 Try frm.show Catch ex As Exception msgbox ex.message
3
by: reageer | last post by:
Hi all, I have a design question: I have a bunch of users (name, address, zip, etc.). They are assigned a card with a specific id. The only thing unique is this card id, or probably the...
3
by: George Jordanov Ivanov | last post by:
Folks, I am implementing a WebUserControl, which will have its own custom event StateChanged. Now, I want to add this event to the Events tab in the control properties, so that the users of my...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
1
by: =?Utf-8?B?QnJldHQ=?= | last post by:
I have a basic user control that I want to localize. I created a global resource and connected up the properties I want to localize using an explicit localization expression. Everything works...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.