PC Review


Reply
Thread Tools Rate Thread

Changing Custom Control Property

 
 
=?Utf-8?B?Sm9iIExvdA==?=
Guest
Posts: n/a
 
      19th Feb 2005
How can I make a property change value of another property at design time? I
have added HighlightRow property to custom DataGrid control. Now I want to
assign this property similar to DataGrid’s ReadOnly property. For instance,
when in property window ReadOnly property is set to True, the HighlightRow
property should be set to true and vice-versa. I did something like this does
not seems to work

Public Shadows Property [ReadOnly]() As Boolean
Get
Return m_blnReadOnly
End Get
Set(ByVal Value As Boolean)
m_blnReadOnly = Value

If Value Then
Me.HighlightRow = True
Else
Me.HighlightRow = False
End If

End Set
End Property

<Browsable(True), Description("Determines whether to highlight current row
when ReadOnly property is set to True. By default set to False."),
DefaultValue(False)> _
Public Property HighlightRow() As Boolean
Get
Return m_blnHighlightRow
End Get
Set(ByVal Value As Boolean)
m_blnHighlightRow = Value
End Set
End Property

Thanks

 
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
Asp.net User Control or Custom control Property doesnt accept inlineasp.net constract <%= %> is there a workaround? AleXmanFree Microsoft ASP .NET 3 9th Oct 2008 08:39 PM
How do you access a control property of a main form from a custom user control? forest demon Microsoft C# .NET 6 22nd Aug 2007 11:36 PM
feeding a SQLDataSource embedded in an .ascx user control a custom property assigned to that control Microsoft ASP .NET 4 16th Jul 2006 01:20 PM
can a custom control have an image property that can be set in design time from the property browser? news.austin.rr.com Microsoft Dot NET Compact Framework 3 3rd Mar 2005 02:08 AM
Custom Control Property HelpText Property =?Utf-8?B?R3JleUFsaWVuMDA3?= Microsoft Dot NET Framework Forms 1 20th Jan 2005 06:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 PM.