Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
GeneralZero Value STRRET Type - GetDisplayNameOf Pin
Tristan Rhodes27-Feb-04 23:34
Tristan Rhodes27-Feb-04 23:34 
GeneralURL Validator Pin
camasmartin27-Feb-04 18:52
camasmartin27-Feb-04 18:52 
GeneralRe: URL Validator Pin
Heath Stewart28-Feb-04 4:16
protectorHeath Stewart28-Feb-04 4:16 
GeneralRe: URL Validator Pin
camasmartin28-Feb-04 6:48
camasmartin28-Feb-04 6:48 
GeneralOutlook Bar Problem Pin
BigBlob20227-Feb-04 12:49
BigBlob20227-Feb-04 12:49 
GeneralRe: Outlook Bar Problem Pin
Matthew Hazlett27-Feb-04 13:16
Matthew Hazlett27-Feb-04 13:16 
GeneralRe: Outlook Bar Problem Pin
BigBlob20227-Feb-04 13:24
BigBlob20227-Feb-04 13:24 
GeneralExpert only question...please help me Pin
aleang7227-Feb-04 12:34
aleang7227-Feb-04 12:34 
I have created a control which main class (with attributes) is:

[DefaultProperty("Text"),ToolboxData("<{0}:MioCmd runat=server>"),
ParseChildren(ChildrenAsProperties = false),
ControlBuilderAttribute(typeof(MioCmd.MioBuilder)),
Designer("MioCmd.MioDesigner, MioCmd"),
PersistChildren(false)]
public class MioCmd : WebControl, INamingContainer{
...
}



into MioCmd I have an attribute with this declaration:

[Bindable(false),
Description("Imposta i comandi dell'editor."),
NotifyParentProperty(false),
RefreshProperties(RefreshProperties.All),
PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ComandiCollection Comandi{
set{this.objComandi = value;}
get{return this.objComandi;}
}



the type of this attribute is derived from ControlCollection and the class has this declaration:

public class ComandiCollection : ControlCollection, IEnumerable{
...
}



ComandiCollection is a Collection of child controls of type Comando which inherits from Control:

[DefaultProperty("CommandId"), Bindable(false)]
public class Comando : Control{
...
}



My problem is that everytime I try to change the property Comandi through Visual Studio collection editor I'm not able to Add/Remove elements (the two buttons are disabled!!!) and every change that I made Isn't visible in the main window by now, but It is visible only after switching from visual editor to code editor and back to visual editor...

I really don't know how to solve this problem...do I have to change architecture or do I have to made some little changes?...if you have an Idea please help me!!!

ciao


Alessandro Angelotti
MKTG Street Srl
aleang72@hotmail.com
GeneralRe: Expert only question...please help me Pin
Heath Stewart28-Feb-04 3:59
protectorHeath Stewart28-Feb-04 3:59 
QuestionImpersonation??? Pin
Bill Dean27-Feb-04 12:33
Bill Dean27-Feb-04 12:33 
AnswerRe: Impersonation??? Pin
turbochimp27-Feb-04 17:08
turbochimp27-Feb-04 17:08 
GeneralDataTable problem! Pin
visiontec27-Feb-04 12:03
visiontec27-Feb-04 12:03 
GeneralRe: DataTable problem! Pin
turbochimp27-Feb-04 16:17
turbochimp27-Feb-04 16:17 
Questionhow to use an icon in multiple places Pin
visiontec27-Feb-04 11:43
visiontec27-Feb-04 11:43 
AnswerRe: how to use an icon in multiple places Pin
Heath Stewart28-Feb-04 3:46
protectorHeath Stewart28-Feb-04 3:46 
GeneralIcons Pin
BigBlob20227-Feb-04 10:18
BigBlob20227-Feb-04 10:18 
GeneralRe: Icons Pin
Heath Stewart27-Feb-04 11:27
protectorHeath Stewart27-Feb-04 11:27 
GeneralRe: Icons Pin
BigBlob20227-Feb-04 12:08
BigBlob20227-Feb-04 12:08 
GeneralRe: Icons Pin
Heath Stewart28-Feb-04 3:21
protectorHeath Stewart28-Feb-04 3:21 
Questionwhat is wrong with code?? Pin
SherKar27-Feb-04 10:14
SherKar27-Feb-04 10:14 
AnswerRe: what is wrong with code?? Pin
Heath Stewart27-Feb-04 11:15
protectorHeath Stewart27-Feb-04 11:15 
GeneralRe: what is wrong with code?? Pin
Dave Kreskowiak27-Feb-04 16:43
mveDave Kreskowiak27-Feb-04 16:43 
GeneralRe: what is wrong with code?? Pin
SherKar27-Feb-04 20:55
SherKar27-Feb-04 20:55 
GeneralRe: what is wrong with code?? Pin
Heath Stewart28-Feb-04 3:28
protectorHeath Stewart28-Feb-04 3:28 
GeneralRe: what is wrong with code?? Pin
SherKar27-Feb-04 20:58
SherKar27-Feb-04 20:58 

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.