Results 1 to 3 of 3

Thread: Data prop. Is it so tough ?

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Data prop. Is it so tough ?

    I want to create an activex control with properties

    databindings,datasource,datafield,dataformat,datamember.

    how do i create these properties ?

    I mean what should be the type of each of these properties
    so that these should work the same way they work for other controls ?

    seems to be very tough , put at lot of forums, but no reply.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Well I think generally this is a tricky thing for everybody, but here are some links that may help:

    http://msdn.microsoft.com/library/de...ataSources.asp

    http://msdn.microsoft.com/library/de...datasource.asp

    Also just searching for keywords that the ActiveX Control Wizard uses when you have it make a data-aware control.

  3. #3
    New Member
    Join Date
    Dec 2001
    Posts
    5

    Thumbs up no code needed.

    Firstly you must create a property for example Text property for Textbox in your activex control. Then from <Tools> menu select <Procedure Attributes>. In the window select Text property. After that click <Advanced> button, at the bottom of the window you can see <Data Binding> frame. Click <Propert is data bound> check box and next two items which are <This propert binds to DataField>,<Show in DataBindings collection at design time> and that's all. Good Luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width