CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/17/2005 10:13:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 86 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
Salameh
Asp.Net User
expandable property3/17/2005 10:13:11 PM

0/0

I have a expandable property

[DefaultValue("Enter"), Category("Menu Folder Appearance"),
PersistenceMode(PersistenceMode.InnerProperty),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public Icon Icon
{
get{return IconInfo;}
set{IconInfo = value; }
}

How do I define it so its reference won't show up in the properties designer window.

It show customSql.Icon in the properties window window. How do I blank this out or put in my own description.
plblum
Asp.Net User
Re: expandable property3/18/2005 4:42:19 PM

0/0

I'm a bit confused. You want to hide its reference fom the Properties Editor but you also want to change what it looks like which means to show it.

If you were to hide a property, you would use this attribute:
[Browseable(false)]

But I think you want to show it and make it expandable. Use this "TypeConverter":
[TypeConverter(typeof(ExpandableObjectConverter))]

If you want to make the label shown by the ExpandableObjectConverter different, subclass it like this:
public class MyTypeConverter : ExpandableObjectConverter

{

public override object ConvertTo(ITypeDescriptorContext pContext,
CultureInfo pCulture, object pValue, Type pDestinationType)
{
if (pDestinationType == typeof(string))
{
string vText = "";
// define the text to show here. The pValue object is the actual data so you can use it to determine the text if you like.
return vText;
}
return base.ConvertTo(pContext, pCulture, pValue, pDestinationType);
}

}

I think the .net documentation covers these ideas pretty well but if you are really trying to learn custom controls, I recommend the book "Developing ASP.NET Server Controls and Components" from Microsoft Press.
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Foundations of coding theory Authors: William E. Hartnett, Pages: 216, Published: 1974
Graphic Java 2: mastering the JFC Authors: David M. Geary, Pages: 1622, Published: 1999
The Constitution of Society: Outline of the Theory of Structuration Authors: Anthony Giddens, Pages: 417, Published: 1986
Windows forms programming in Visual Basic .NET Authors: Chris Sells, Justin Gehtland, Pages: 680, Published: 2004
Windows forms programming in C# Authors: Chris Sells, Pages: 681, Published: 2004
Endovascular intervention: basic concepts and techniques Authors: Frank J. Criado, Pages: 190, Published: 1999

Web:
Adding Expandable Property Support? - ProgrammingTalk Adding Expandable Property Support? Windows .NET Programming.
HOW TO: Create a Web Control with an Expandable Property in the ... This step-by-step article demonstrates how to use Visual Basic .NET to create a custom Web control that has an expandable property.
CodeProject: Automatic Expandable Properties in a PropertyGrid ... Jan 4, 2006 ... The article describes a family of classes that will automatically enable each of your custom-type's public properties to be expandable in a ...
Expandable Property (TREENODE, TREENODETYPE) Sets or retrieves a value that indicates whether a plus-sign image displays on a node.
HOW TO: Create a Web Control with an Expandable Property in the ... NET is a tutorial in which the author shows the step-by-step process of creating a custom web control and adding the expandable property to it using the ...
.NET Tips and Tricks -Make properties expandable in the Property ... ExpandableObjectConverter converts objects to expandable representations. It overrides GetProperties and GetPropertiesSupported to expose properties through ...
Using Property Grid in a control and Expandable types are always ... Using Property Grid in a control and Expandable types are always readonly .NET VB.
uitype editor passing an expandable property object - ASP.NET Forums Passing an expandable property to a uitypeeditor. Value updates in the property designer window but the updated value does not show when the ...
DevASP.Net HOW TO: Create a Web Control with an Expandable ... HOW TO: Create a Web Control with an Expandable Property in the Designer by Using ... NET to create a custom Web control that has an expandable property. ...
Graphic DNA: Making a PropertyGrid´s property expandable, in one ... Oct 2, 2008 ... If only we could make the PropertyGrid treat that object as an expandable property, allowing us to see it´s internals... Easy as shit! ...

Videos:
Status Expandable Villa, Faridabad - Sample Villa For booking & further details, call +91.99.102.24999 or log on to www.aravalihills.com
Gamemaker dialog Window Wish: Expandable / Export all object ... A quick screencast of a small wish.
Homes for sale Watertown WI $175,000 3 BRs, 1 full BA $175,000 3 bedrooms, 1 full bath 317 Montgomery St, Watertown, WI 53098 http://shorewest.com/1040578 For more information contact: Liz Curro and ...
2008-07-23: BOLT Meeting -- Shaw Library Computer Lab and ... Shaw residents questioned Chief Librarian Ginnie Cooper about a computer lab and the ability to expand the library in the future. Chief Cooper ...
$158,000 Single Family Home, Laconia, NH Visit http://www.lakesregionrealestate.com for additional information regarding this property. Century 21 Lakes Region Realty/Meredith ...
LUXURY HOMES: 10215 Gopher Rd, Howey In The Hills, FL PRICE: $2,495,000 CONTACT: Sandy Lawson Company Name: ERA Professional Real Estate Services, Inc. Company Address: 731 East Highway 50, Suite A ...
Kansas City Real Estate for Sale Two Bedroom One Bath Bungalow/Ranch for Sale in Kansas City, MO. *Investor Special* Priced 18,000 under county appraisal. Other homes on the ...
Kansas City Missouri Real Estate Two Bedroom One Bath Bungalow/Ranch for Sale in Kansas City, MO. *Investor Special* Priced 18,000 under county appraisal. Other homes on the ...
Church Security Using Baton http://www.churchsecuritymember.com church security armed with expandable batons. Bringing self defense weapons on church property for self ...
$295,000 Single Family Home, Newbury, NH Visit http://www.newlondonagency.com for additional information regarding this property. New London Agency MLS #2745712 Located in ...




Search This Site:










using the virtualpathutility class

pageerror

is there an event handler for when the browser is closed?

ui for database design

error - string methods do not exist

how can i grab just the first n records in a sql statement?

wwf designer and assemblies in vs 2005 & .net foundation 2.0

controlling ascx page in aspx page

where can i find a beginner tutorial for making a login/members only page?

passing values between web forms pages

asp.net detect browser refresh button ?????????

crystal reports

want to query sql server and put results in text boxes.

"__dopostback is not defined" - webresource.axd is not being rendered in the page!

self inflicted password issue

simple guestbook with pictures

how to change the grey text color on a disabled textbox?

quick question about dropdownlist..

sessions

godaddy help

how to send sms through .net

commercial image resizing .net software?

style a wizard control using css

user tracking

object casting (or mayb i should say conversion, explicit/implicit???)...

error with stateserver configuration

trim questions

get a list of folders (names) in a direcrory

wizardsteps and repeater

a default role for users registering on my website

  Privacy | Contact Us
All Times Are GMT