473,396 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

'property cannot be set declaratively.'??

Hi,

I've created a custom control yet when I add the attribute
ListStyle="astyle" to my declaration,
I get the error: "The 'ListStyle' property cannot be set
declaratively."

It shows up in the properties window in the designer though.

Any ideas what I need to do to allow me to actually set this?

<Bindable(True), _
Category("Appearance"), _
Description("The class for the list."), _
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Hidden)>
_
Public Property ListStyle() As String
Get
Return _listStyle
End Get
Set(ByVal value As String)
_listStyle = value
End Set
End Property

Sep 6 '06 #1
0 1478

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eldon Ferran de Pol | last post by:
Hi all I've got a custom control that has several image based properties I wan't each of these properties to use the standard .Net dialog box for selecting a URL that appears when setting the...
3
by: Dhana | last post by:
Hi All, I have developed one web application. In that I used aspnet web textBox control. I have set maxlength property for that text box 300 and TextMode property as multiline . When i typed...
2
by: walter | last post by:
Hi there, in our e-commerce site, we have a page base class that implements several new properties , as you can imagine, the property will be set to different value on each page which inherits from...
2
by: Dabbler | last post by:
I have a dropdown list in an item template of a gridveiw. I get the error "datasource cannot be set declaratively" when I try and assign an sqldatasource to the dropdown list. <ItemTemplate>...
1
by: Nathan Sokalski | last post by:
I am using an ASP:Table Control to make a table. I know that the HTML TD tag has a background attribute and a bgcolor attribute. The TableCell has a BackColor property, which is the equivelant of...
1
by: yeltsin27 | last post by:
I can see how to use a cookie, control property, form input value, profile, query string or session value as a parameter to a SQL Data Source. However I would like to use a property that is...
1
by: brett | last post by:
I have an aspx page with a user control (uc1) on it. There is a DIV tag in the user control and I'd like to set its width. In uc1, I have a private string varible with a value of "100px". In the...
2
by: Chris | last post by:
I have created a date picker user control. I want to have a boolean property, which I can set to determine whether the control defaults to today's date. I have created a property which I set to...
2
by: ata | last post by:
Hi, I need to create a user control that has got a property named "Items" which is of StringCollection type. On the other hand, the collection is supposed to be populated declaratively through...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.