473,378 Members | 1,671 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,378 software developers and data experts.

Property binding

..Net has this great abillity of binding controls direct to user settings.
I've made an user control that has a Text property, but when I use the
browse box in the property binding of the control, Text is not mentioned.
How do I add it?

My property:
Public Overrides Property Text() As String
Get
Text = TheControl.Text
End Get
Set(ByVal Value As String)
TheControl.Text = Value
End Set
End Property

Apr 11 '06 #1
2 3719
You'll need to add the appropriate attributes. See the link below for more.
http://groups.google.com/group/micro...cb94cfe5?hl=en

--
Tim Wilson
..NET Compact Framework MVP

"VictorH" <Vi*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
.Net has this great abillity of binding controls direct to user settings.
I've made an user control that has a Text property, but when I use the
browse box in the property binding of the control, Text is not mentioned.
How do I add it?

My property:
Public Overrides Property Text() As String
Get
Text = TheControl.Text
End Get
Set(ByVal Value As String)
TheControl.Text = Value
End Set
End Property

Apr 11 '06 #2
Thanks,

I used

<System.ComponentModel.EditorBrowsable(System.Comp onentModel.EditorBrowsableState.Always)> _
<System.ComponentModel.Browsable(True)> _

<System.ComponentModel.DesignerSerializationVisibi lity(System.ComponentModel.DesignerSerializationVi sibility.Visible)> _
<System.ComponentModel.Bindable(True)> _

since I'm using VB.

"Tim Wilson" wrote:
You'll need to add the appropriate attributes. See the link below for more.
http://groups.google.com/group/micro...cb94cfe5?hl=en

--
Tim Wilson
..NET Compact Framework MVP

"VictorH" <Vi*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
.Net has this great abillity of binding controls direct to user settings.
I've made an user control that has a Text property, but when I use the
browse box in the property binding of the control, Text is not mentioned.
How do I add it?

My property:
Public Overrides Property Text() As String
Get
Text = TheControl.Text
End Get
Set(ByVal Value As String)
TheControl.Text = Value
End Set
End Property


Apr 12 '06 #3

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

Similar topics

2
by: Boniek | last post by:
Hi, How I can create property to binding with other objects. I want to create a data object which work as a DataTable. DataTable contains columns and dataTable is used to binding with a textBox...
4
by: Bill Coan | last post by:
NOTE: This was posted earlier to vsnet.vstools.office under a different subject line but received no response. I'm having a problem automating Word's Find object from a .NET application, using...
1
by: suki | last post by:
How can i set the data binding property of an label to a field of a dataset (defined in a class in my project) ? In this data field, there are many entries and i want to have as much labels as...
8
by: Al | last post by:
I'd like to create Class Library in VB 2005, which has a property accessible by external programs. I decided to include 1 Class with 1 property in this project. I placed this code in Class:...
8
by: stephen | last post by:
Hi, I make use of properties to store values that are relevant to the page but this time I am posting the page to itself and the values are Zero or null (they disappear). is there any other way...
3
by: TS | last post by:
when binding to a datagrid for example, is it possible to use databinding syntax to bind to a property of a property? Say the datasource="Cars" which is a collection of car classes and the...
7
by: Naveen | last post by:
I posted this message to another board and have hardly had any views on it, leave alone answers. So I am cross-posting here. This may be a very simple question but I can't get my head around it....
2
by: cjard | last post by:
I ask, because I have a textbox bound to a bindingsource, which is bound to a datatable(row) The datatable is typed, and hence exports a Property called Column1 I added another property to the...
5
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hi, I have a couple of labels on a form and their visible property is bound to boolean properties on a custom object. When I first load the form, all works as it should. This form is 'tied'...
1
by: =?Utf-8?B?VG9kZCBCZWF1bGlldQ==?= | last post by:
I have a "Save Changes" button on the form. I'm binding its IsEnabled property to a property of the object that I'm dealing with. When I connect the panel the buttons are in with an object (set the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.