PC Review


Reply
Thread Tools Rate Thread

bound properties

 
 
=?Utf-8?B?cGh4ZGF0YWRy?=
Guest
Posts: n/a
 
      19th Feb 2007
How can I bind the caption property to a database field.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      19th Feb 2007
Hi phxdatadr,

You can't "bind" it to a field, but in the form on current event you can set
the caption to a field like this:

me.CONTROL.caption = me.FIELDNAME

Assuming the control supports the caption property...

Hope this helps.

Damian.

"phxdatadr" wrote:

> How can I bind the caption property to a database field.

 
Reply With Quote
 
=?Utf-8?B?cGh4ZGF0YWRy?=
Guest
Posts: n/a
 
      20th Feb 2007
It is like this .
I have a table with restaraunt menu items in it. I want to dynamically
populate a form with a button for each item in the table and then have the
the caption property dynamically populated with the menu_item field in the
table.

"Damian S" wrote:

> Hi phxdatadr,
>
> You can't "bind" it to a field, but in the form on current event you can set
> the caption to a field like this:
>
> me.CONTROL.caption = me.FIELDNAME
>
> Assuming the control supports the caption property...
>
> Hope this helps.
>
> Damian.
>
> "phxdatadr" wrote:
>
> > How can I bind the caption property to a database field.

 
Reply With Quote
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      20th Feb 2007
Hi again,

Perhaps you could have a combo box for the user to select the item, and a
single button on your form to process the selected item. This would be
easier and cleaner than creating (potentially many) buttons on the fly.

Damian.

"phxdatadr" wrote:

> It is like this .
> I have a table with restaraunt menu items in it. I want to dynamically
> populate a form with a button for each item in the table and then have the
> the caption property dynamically populated with the menu_item field in the
> table.
>
> "Damian S" wrote:
>
> > Hi phxdatadr,
> >
> > You can't "bind" it to a field, but in the form on current event you can set
> > the caption to a field like this:
> >
> > me.CONTROL.caption = me.FIELDNAME
> >
> > Assuming the control supports the caption property...
> >
> > Hope this helps.
> >
> > Damian.
> >
> > "phxdatadr" wrote:
> >
> > > How can I bind the caption property to a database field.

 
Reply With Quote
 
Alex Dybenko
Guest
Posts: n/a
 
      20th Feb 2007
Hi,
you can just use a textbox, which you can easy bound, instead of label, just
set it's properties Enabled=False, Locked=True

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"phxdatadr" <(E-Mail Removed)> wrote in message
news:2AFC1EDC-12C8-4780-AECC-(E-Mail Removed)...
> How can I bind the caption property to a database field.


 
Reply With Quote
 
=?Utf-8?B?cGh4ZGF0YWRy?=
Guest
Posts: n/a
 
      20th Feb 2007
I have a table with restaraunt menu items in it. I want to dynamically
populate a form with a button for each item in the table and then have the
the caption property dynamically populated with the menu_item field in the
table. the contol has to be a button as this is a touch screen POS system.

 
Reply With Quote
 
Alex Dybenko
Guest
Posts: n/a
 
      20th Feb 2007
Then you can still use textbox, but place transparent button over it (if
this works in touch screen POS system)

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"phxdatadr" <(E-Mail Removed)> wrote in message
news:61BDC7D5-B94E-403E-A2A1-(E-Mail Removed)...
>I have a table with restaraunt menu items in it. I want to dynamically
> populate a form with a button for each item in the table and then have the
> the caption property dynamically populated with the menu_item field in the
> table. the contol has to be a button as this is a touch screen POS system.
>


 
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
How to read late bound Excel worksheets collection properties? J Daniel Melton Microsoft VC .NET 1 22nd Apr 2006 02:19 PM
Table Properties, Bound Column in Lookup... =?Utf-8?B?TS4gSG9tYXlvbg==?= Microsoft Access Getting Started 2 14th Dec 2005 05:20 AM
Oracle Parameter bound problem: ORA-01008: not all variables bound =?Utf-8?B?Zmlq?= Microsoft ADO .NET 1 24th Dec 2004 08:31 AM
Re: PropertyManager.EndCurrentEdit() marks the bound dataview row as Modified even if the data in the bound control is unchanged Miha Markic [MVP C#] Microsoft ADO .NET 0 5th Jun 2004 11:19 PM
Properties bound textboxes do not update. Steve Roberts Microsoft Dot NET 0 10th Jul 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.