Re: Lines() like property

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Josip Medved (jmedved_at_jmedved.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 08:32:13 +0200


> > How to create property that can be edited in Properties
> > windows similar to Lines() property of TextBox.
> > In short: I want multiline property that is visible during
> > design time.

> \\\
> Private m_Lines() As String
>
> Public Property Lines() As String()
> Get
> Return m_Lines
> End Get
> Set(ByVal Value As String())
> m_Lines = Value
> End Set
> End Property
> ///

I tried that but that doesn't show in design properties... I can only edit
it at runtime...

-- 
Pozdrav,
  Josip Medved, MCP
  http://www.jmedved.com


Relevant Pages

  • Re: Property is loosing value
    ... This property is only set at design time. ... > the property would need to utilize ViewState ... > Property As String ... >> that when I add the component the following code is added to the webform: ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: TADOTable problem
    ... ADODatasets rather than tables as they are far more powerful ... I set the properties at design time and change the active property to true ... Name (String) ... Now even more strange. ...
    (borland.public.delphi.database.ado)
  • Re: using the Items property in the design time property window
    ... types like string and ints seem to be handled correctly. ... I have a custom server control that I am building. ... > to be able to configure the control at design time through the Items ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: How to assign a very long string to a variable ?
    ... > text property can be assigned with Ctrl_V in design mode. ... > to retrieve the long string in run time. ... Properties window at design time. ... then click on the Text property field and an entry box ...
    (microsoft.public.vb.controls)
  • How to create multi line string?
    ... I need to assign a multiline string to a textbox in design time, ...
    (microsoft.public.dotnet.languages.vb)