Click here to Skip to main content
16,018,419 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Docked Windows Pin
Pete O'Hanlon26-Feb-07 5:13
mvePete O'Hanlon26-Feb-07 5:13 
QuestionDesigning the GUI outside of VS2005 Pin
yuvalby7425-Feb-07 0:48
yuvalby7425-Feb-07 0:48 
AnswerRe: Designing the GUI outside of VS2005 Pin
Hesham Amin26-Feb-07 1:08
Hesham Amin26-Feb-07 1:08 
AnswerRe: Designing the GUI outside of VS2005 Pin
Pete O'Hanlon26-Feb-07 8:52
mvePete O'Hanlon26-Feb-07 8:52 
Questionhow i can do that??? Pin
Member 283282724-Feb-07 22:54
Member 283282724-Feb-07 22:54 
AnswerBind a data grid with an array list (Re: how i can do that???) Pin
RabidHamster2-Mar-07 4:18
RabidHamster2-Mar-07 4:18 
QuestionHow Windows Graphics and mouse movement is mapped Pin
bil_geo24-Feb-07 19:48
bil_geo24-Feb-07 19:48 
QuestionIExtenderProvider [modified] Pin
Scott Dorman22-Feb-07 16:39
professionalScott Dorman22-Feb-07 16:39 
[modification @ 10:12 Monday 26th February, 2007]

Moved to the C# forum:
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=1912526#xx1912526xx[^]

[/modification]


I am implementing a custom IExtenderProvider derived class so I can dynamically set the following properties on a control:

Required (using an ErrorProvider)
Description (ToolTip)
Errors (using an ErrorProvider)
Caption

I have everything working except for the caption. Ideally, I would like to add a Label control to the form for the given UI element. I know how to draw the label text myself, but that doesn't give me any of the accessability features that I gain when using a label.

The problem I'm running in to is that I can get the label to appear at design time but not at run time. Essentially, when I detect that a new control has been added I try to add a new label control (positioned appropriately) to the parent's Controls array. This works fine at design time but at run time the Parent property of the control I'm extending is null.

I'm trying to do this using an IExtenderProvider so I don't have to create subclassed versions of the UI controls to add a caption. In case you want the background, the project I'm working on needs to allow a dynamically rendered UI based on various pieces of meta data contained in the business object. The business object can be customized by the end-user through an admin interface, so I will never know what fields will be present and what their captions should be until it is time to actually render the screen.

Has anybody done anything similar to this? I've pretty much exhausted the information available on Google, which isn't much beyond creating a simple provider.

-----------------------------
In just two days, tomorrow will be yesterday.

AnswerRe: IExtenderProvider Pin
Pete O'Hanlon28-Feb-07 10:24
mvePete O'Hanlon28-Feb-07 10:24 
GeneralRe: IExtenderProvider Pin
Scott Dorman1-Mar-07 15:36
professionalScott Dorman1-Mar-07 15:36 
GeneralRe: IExtenderProvider Pin
Pete O'Hanlon1-Mar-07 22:40
mvePete O'Hanlon1-Mar-07 22:40 
QuestionIs there a way to create a file of type PST with our own structure [modified] Pin
Sivaprakash4u21-Feb-07 18:04
Sivaprakash4u21-Feb-07 18:04 
QuestionHow to load a document into an existing instance of an application via ShellExecute() ? Pin
MatthiasBiel21-Feb-07 1:11
MatthiasBiel21-Feb-07 1:11 
AnswerRe: How to load a document into an existing instance of an application via ShellExecute() ? Pin
kubben21-Feb-07 3:20
kubben21-Feb-07 3:20 
AnswerRe: How to load a document into an existing instance of an application via ShellExecute() ? Pin
Mike Dimmick21-Feb-07 4:41
Mike Dimmick21-Feb-07 4:41 
QuestionHow to customize the WinPE with Internet Explorer Pin
Vamsee_Krishna20-Feb-07 4:11
Vamsee_Krishna20-Feb-07 4:11 
QuestionHow to work with ToggleButton Pin
pashitech19-Feb-07 17:41
pashitech19-Feb-07 17:41 
QuestionRe: How to work with ToggleButton Pin
Newbie0020-Feb-07 0:27
Newbie0020-Feb-07 0:27 
AnswerRe: How to work with ToggleButton Pin
Bulky Fellow20-Feb-07 20:49
Bulky Fellow20-Feb-07 20:49 
GeneralRe: How to work with ToggleButton Pin
Newbie0021-Feb-07 0:58
Newbie0021-Feb-07 0:58 
QuestionVSTO error handling Pin
FlorentBzh19-Feb-07 5:48
FlorentBzh19-Feb-07 5:48 
QuestionKeeping MDI children alive Pin
CPP_Student18-Feb-07 23:18
CPP_Student18-Feb-07 23:18 
AnswerRe: Keeping MDI children alive Pin
Newbie0019-Feb-07 5:05
Newbie0019-Feb-07 5:05 
GeneralRe: Keeping MDI children alive Pin
CPP_Student19-Feb-07 17:20
CPP_Student19-Feb-07 17:20 
QuestionEquivalent to WM_HOTKEY? Pin
LionAM18-Feb-07 1:34
LionAM18-Feb-07 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.