DotNet Visual Basic: '' Could not be set on property 'Items' - Error

  • murray / 204 / Sun, 05 Apr 2009 11:57:00 GMT / Comments (2)
  • 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,

  • Keywords:

    set, property, items, error, dotnet, visual basic, vb, .net

  • http://dotnet.itags.org/dotnet-visual-basic/182931/«« Last Thread - Next Thread »»
    1. I have foud the problem it was due to the Items property being read/write

      so the property definition should be

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

      "Murray" <murrayjack...yahoo.com> wrote in message
      news:%23MDzgVqOFHA.4052...TK2MSFTNGP12.phx.gbl...
      > 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,
      >
      >


      murray | Wed, 04 Jun 2008 01:43:00 GMT |

    2. 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" <murrayjack...yahoo.com> wrote in message
      news:%23MDzgVqOFHA.4052...TK2MSFTNGP12.phx.gbl...
      > 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,
      >
      >


      chris | Wed, 04 Jun 2008 01:45:00 GMT |

  • DotNet Visual Basic Questions

    • is this feasible??

      pls chk this and comment on the design.http://createthefuturecontest.com/pages/view/entriesdetail.ht...

      By createurfuture_gmail_com

    • IDeserializationCallback

      In Jeffrey Richters article on Serialization--part 2 from MSDN 2002, hementions that "IDeserializati...

      By sstory

    • IDeserializationCallback

      In Jeffrey Richters article on Serialization--part 2 from MSDN 2002, hementions that "IDeserializati...

      By sstory

    • Data Driven Subscriptions SSRS 2005

      I have vb code that I am triggering a Data Driven Subscription. The problem I am having is that I n...

      By bcorbett

    • Is this even Possible?

      I am trying to create an inputbox(prompt) with 2 questions. The first asking for a persons name, the...

      By briandelphino, 1 Comments

    • Writing 32 bit integer to a file

      Is there an easy way of writing a number in 32 bit integer format into fourbytes of a file? I am exp...

      By simonc, 2 Comments

    • is this even possible?

      hey all,is there a way to call a vb.net app from excel (i know the vice versa ispossible of course)?...

      By rodchar, 4 Comments

    • singleton

      HiI would like to implement a singleton in vb.net. The application only can berun by one user at the...

      By nickc, 5 Comments

    • is this even possible?

      hey all,is there a way to call a vb.net app from excel (i know the vice versa ispossible of course)?...

      By rodchar, 4 Comments