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!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/7/2004 10:03:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
ranjitthayyil
Asp.Net User
property browser support for collections9/7/2004 10:03:28 PM

0/0

I am trying to create a pop up menu custom control and want to add menu items using property browser. Can somebody guide me?

Thank You.

Ranji
niallmoran
Asp.Net User
Re: property browser support for collections9/9/2004 10:43:18 AM

0/0

I have a similar control which has a columns collection property, the attributes applied to the property are important:

This will use the default collection editor:

MergableProperty(false),
PersistenceMode(PersistenceMode.InnerProperty),
Editor( typeof(CollectionEditor), typeof( System.Drawing.Design.UITypeEditor ) )
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]

Otherwise you can design windows form which will allow you to provide a custom interface for setting the menu items.


Editor( typeof(MyCustomEditor), typeof( System.Drawing.Design.UITypeEditor ) )


The code for the editor:

public class MyCustomEditor : UITypeEditor
{
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
{
if ( context != null && provider != null )
{
IWindowsFormsEditorService editorService = ( IWindowsFormsEditorService ) provider.GetService( typeof(IWindowsFormsEditorService) );
if ( editorService != null )
{
MyCustomEditorForm form = new MyCustomEditorForm ();
form.Value = (MyCustomCollectionProperty) value;
DialogResult result = editorService.ShowDialog( form );
if ( result == DialogResult.OK )
{
value = form.Value;
context.OnComponentChanged();
}
}
}
return value;
}

public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
{
if ( context != null )
return UITypeEditorEditStyle.Modal;
return base.GetEditStyle (context);
}

}



Create a windows form (MyCustomEditorForm ) and give it a Value property which takes your custom collection property and works on it.

Hope this helps

Niall
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning Ajax with ASP.NET Authors: Wallace B. McClure, Scott Cate, Paul Glavich, Craig Shoemaker, Pages: 403, Published: 2006
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
JavaScript: The Complete Reference Authors: Thomas A. Powell, Fritz Schneider, Pages: 948, Published: 2004
JavaScript & DHTML Cookbook Authors: Danny Goodman, Pages: 582, Published: 2007
Dynamic HTML: The Definitive Reference Authors: Danny Goodman, Pages: 1307, Published: 2007
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
VBScript Programmer's Reference Authors: Kathie Kingsley-Hughes, Daniel Read, Pages: 720, Published: 2004

Web:
CodeProject: Visual Studio.NET Blank Property Browser Bug. Free ... NET 2003 version's property browser goes blank, I found the remedy and I have ... your own service with integrated support for setup and custom event logs. ...
Walkthrough: Creating a Custom Data-Bound ASP.NET Web Control for ... The data collection is enumerated and a new TableCell for each enumerated ..... as property browser support when a page developer clicks the control's tag. ...
Genome Support Declaring a collection property as "protected" should work (just tried it on ... Edit in Browser, /_layouts/images/icxddoc.gif, /_layouts/formserver.aspx? ...
Works Committee Agenda - September 2000 This work is required to support the resource consent application and for ... The cost of the collection when spread across all of the properties is $9.30. ...
Yahoo! UI Library: Dom Collection Getting Started; Using Dom; YUI on Mobile Devices; Support & Community ... on the browser; setStyle and getStyle normalize this as the opacity property. ...
Browser Bugs Browser support for multiple css properties relating to tables — most notably the col , colgroup and the tr elements — is poor. ...
DAML+OIL (March 2001) reference description The first kind, ObjectRestriction, works on object properties, i.e., properties that ..... of February '99) will not support the daml:collection parseType. ...
Dublin City Council: Services, information and support for the ... Dublin City Council as the nominated authority for the Dublin Region are authorised to issue single and multi-regional waste collection permits under the ...
Dublin Core Collection Description Proposed Term : Accrual Policy Specifically this property will support searches of the form:. Which collections have Accrual Policy of "Closed"? Which Accrual Methods are in use for ...
style master :: product info Build: Our collection of wizards and templates make it easy for you to create ... With intelligent built in browser support info, Style Master will help you ...

Videos:
(ACH) Property Management No More CHECKS IN THE MAIL 646-233-4283 http://www.AutomaticLease.com What is (ACH)? The (ACH) Network is a highly reliable and efficient nationwide batch-oriented electronic ...
Charity [2008] Part of my 'Do Good Things' Series. The simple, 'good' act of helping someone, for free, i.e. a non-profit, so-called 'noble' deed, found in many re...
Mac OS Automator: Doing things over and over is over. Google TechTalks June 27, 2006 Sal Soghoian ABSTRACT Mac OS X "Tiger" introduces Automator, a new application that automates anything on your compu...
www.moldytoaster.com PUNCH, OR THE LONDON CHARIVARI [Illustration] VOLUME THE FIRST. * * * * * [Illustration: INTRODUCTION.] [I...
Hour of the Furnaces - 2 of 3 A classic protest film by Fernando Solanas. Part 2 of 3. SUBTERRANEAN CINEMA http://subcin.com THE SUBTERRANEAN COLLECTION http://subcin.com/sub...
Charlie Rose - Paul Pillar / Governor Edward Rendell Segment 1: A conversation with Paul Pillar, Former CIA National Intelligence Officer. Segment 2: The Governor of Pennsylvania Edward G. Rendell.
www.moldytoaster.com reen_ curtain, beg to assure our readers, that the Punch scene hath taken _wing_, and that the dressing-room of the above-named characters will no lo...
www.moldytoaster.com on the old man's knees, she put aside his white locks with an adorable movement, and kissed his brow. Jean Valjean, bewildered, let her have her ow...




Search This Site:










composite controls positioning

new web-site creation

persisting collection item in a server control

building user control in vwd express

custom server control sample

setting property options for a composite control

handling errors in a web custom control.

custom tag parser

re: user control not displaying background

hosting advise?

problem with databound composite control

controlbuilder/parser question

render vs render children

child control is not loding properly.

help: control

suggestions on an implementation of validator grouping?

timer control?

exporting datagrid to excel

is there any free temporary hosting?

how to raise datachanged events on a custom control, not post back

custom control intellisense

here to learn asp.net.

highly updated host

compositewebcustomcontrol ... calling propertybuilder

free asp.net 2.0 ? i do not mind it being ad-supported

mfc dll or mfc activex??

dedicated asp.net hosting question

page control discovery

need host with decent bandwidth and quick response time...

setting check box state in custom datagrid

  Privacy | Contact Us
All Times Are GMT