Search results for query: *

  1. S

    Default Value for a Property?

    Thanks for the reply, John, but I can't seem to get it to work. I know I'm a big pain in the a.. neck :) My code is as follows <DefaultValue(GetType(Color), "Color.Salmon")> _ Public Property DeleteColor As Color Get Return _DeleteColor End Get...
  2. S

    Default Value for a Property?

    I think I may be misunderstaning that page, but I've entered the following code and it underlines the "Color.Salmon" part and says a "Constant expression is required" <DefaultValue(Color.Salmon)> _ Public Property DeleteColor As Color Get Return _DeleteColor...
  3. S

    Default Value for a Property?

    Hi, If I create a user control and create my own property, how do I set a default value for it? For example, I have been creating a control that I can select for deletion, and when this happens it will change color. The DeleteColor property can be set, but if I don't set it what would the...
  4. S

    conditional ReadOnly Property

    I thought that may be the case and I have done, I was just hoping that I could change it at runtime. Thanks
  5. S

    conditional ReadOnly Property

    Hi, I'm creating a UserControl where there are 2 properties, Resizable and ResizeType. Resizable is a boolean and ResizeType is an integer. I want ResizeType to be readonly if Resizable is False and writeable if it is True Is this possible?
  6. S

    Question Populating and Editing GridViews

    Hi, I wasn't sure where to put this topic, so if it's in the wrong place I apologise. I'm new to developing in VB.NET and ASP.NET and I am trying to make a website with an editable GridView. I am using Visual Studio 2005 and have got to the stage where I need a GridView. I have populated...
Back
Top