Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2007, 12:52 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default create property

hi expert
i wanna to create a windows control library that one of the my properties is Items


as you know for example when you click the font property on property
window the font form will be open and you can select your font

i wanna to my property (Items) become a font property style (but this is not font property) in fact i wann when user click Items property a window become open and user select his items and then press Ok or press cancle

i hope you understand my problem
regards
 
Old June 5th, 2007, 01:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Although this is certainly doable, it's not an easy thing to do. You'll need a reasonable good understanding of the control architecture and their designer classes.

You'll need to create a custom ControlDesigner class that you associate with your control. Here's a starting point to get you familiar with the terminology, so you get other terms to Google for:
http://msdn2.microsoft.com/en-us/lib...ldesigner.aspx

You may also want to get yourself a copy of "Developing Microsoft ASP.NET Server Controls and Components" by Nikhil Kothari.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old June 5th, 2007, 01:13 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Sorry, I meant a UITypeEditor: http://msdn2.microsoft.com/en-us/lib...ypeeditor.aspx

although with a control that requires a UITypeEditor, you'll probably also want a ControlDesigner.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old June 8th, 2007, 01:38 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks dear Imar for your reply
how can i download that code completilly ? i don;t found any link for download code
is ther any way ? or i must use that code in myself program ?
thanks again
 
Old June 10th, 2007, 12:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, you need much more than that. Like I said, it's just a starting point so you know what other terms to Google for. With these terms, you can bring up many other useful articles that'll get you in the right direction.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old June 10th, 2007, 01:29 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok and thanks again dear Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Create generic XSL Template to create table Venkatachalapathy XSLT 5 March 11th, 2008 07:49 AM
property umeshtheone Beginning VB 6 2 May 18th, 2007 12:37 AM
Create Custom Field Property using ADOX BoGusman Pro VB Databases 2 July 13th, 2006 05:16 PM
What is @@identity property? subhashbankey SQL Server 2000 2 December 22nd, 2005 09:01 PM
Create an About property for custom control mouratx General .NET 1 March 27th, 2004 11:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.