OVH Cloud OVH Cloud

Controle Web personnalisé

1 réponse
Avatar
Luc
Je tente de creer un controle personnalisé avec VS 2005 (pro). Le but est de
créer une gridView perso.
Je créer donc un fichier "web custom control" herité de "gridview".
Je crée ensuite un second fichier "class", hérité de "GridViewDesigner".

Lorsque je veux glisser mon objet depuis la toolbox vers une page aspx, il
m'indique "Error Creating Control - NomDuControle"
"Failed to create designer '...'..."

Quelqu'un aurait une idée ?

Merci beaucoup !

1 réponse

Avatar
Paul Bacelar
Regardez du coté des Attributs Designer et Editor.
http://www.bewise.fr/download/articles/article-28.doc
http://www.bewise.fr/download/articles/article-29.doc
http://msdn.microsoft.com/library/fre/default.asp?url=/library/FRE/cpref/html/frlrfSystemComponentModelDesignerAttributeClassTopic.asp
--
Paul Bacelar
MVP VC++

"Luc" wrote in message
news:
Je tente de creer un controle personnalisé avec VS 2005 (pro). Le but est
de
créer une gridView perso.
Je créer donc un fichier "web custom control" herité de "gridview".
Je crée ensuite un second fichier "class", hérité de "GridViewDesigner".

Lorsque je veux glisser mon objet depuis la toolbox vers une page aspx, il
m'indique "Error Creating Control - NomDuControle"
"Failed to create designer '...'..."

Quelqu'un aurait une idée ?

Merci beaucoup !