PC Review


Reply
Thread Tools Rate Thread

'' Could not be set on property 'Items' - Error

 
 
Murray
Guest
Posts: n/a
 
      6th Apr 2005
Sorry if this is not the correct group i could not see one for web controls

Hello

I am trying to write a cutom web control, The control contains a customer
collection that i want to use the Collection Editor in properties to add
members to this collection.

In design mode the control works correctly but when i run the application
the control in the designer swaps to a "Error creating Control" gray box,
but it seems to display correctly in the web browser

Im fairly new to this so not sure what people would like to see to help me -
but shout and i send something

Thanks in advance,



 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      6th Apr 2005
I have foud the problem it was due to the Items property being read/write

so the property definition should be

<DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
PersistenceMode(PersistenceMode.InnerProperty), _
Bindable(True), Category("Appearance")> ReadOnly Property Items() As
TableDef.ItemsCol
Get
Return mobjTable.Items
End Get
End Property



"Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Sorry if this is not the correct group i could not see one for web
> controls
>
> Hello
>
> I am trying to write a cutom web control, The control contains a customer
> collection that i want to use the Collection Editor in properties to add
> members to this collection.
>
> In design mode the control works correctly but when i run the application
> the control in the designer swaps to a "Error creating Control" gray box,
> but it seems to display correctly in the web browser
>
> Im fairly new to this so not sure what people would like to see to help
> me -
> but shout and i send something
>
> Thanks in advance,
>
>
>



 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      6th Apr 2005
Here is a web control property
<Bindable(True), Category("PROPERTY CATEGORY"), DefaultValue("")> Property
[NAME]() As Integer
Get
Return NAME
End Get
Set(ByVal Value As Integer)
NAME = Value
End Set
End Property
"Murray" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Sorry if this is not the correct group i could not see one for web
> controls
>
> Hello
>
> I am trying to write a cutom web control, The control contains a customer
> collection that i want to use the Collection Editor in properties to add
> members to this collection.
>
> In design mode the control works correctly but when i run the application
> the control in the designer swaps to a "Error creating Control" gray box,
> but it seems to display correctly in the web browser
>
> Im fairly new to this so not sure what people would like to see to help
> me -
> but shout and i send something
>
> Thanks in advance,
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime error 380 - Could not set the list property. Invalid property value. viktorka.mail@gmail.com Microsoft Excel Programming 3 27th Feb 2007 06:35 AM
Exposing control property as list of items on property sheet... Charlie@CBFC Microsoft Dot NET Framework Forms 0 17th Nov 2006 05:31 PM
Items property =?Utf-8?B?Z3V5?= Microsoft VB .NET 10 22nd Feb 2006 12:46 AM
Runtime Error 380 – Could not set the list property. Invalid property value BernzG Microsoft Excel Programming 0 19th Aug 2005 05:22 AM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Microsoft Excel Programming 0 6th Oct 2004 09:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 AM.