|
-
Dec 24th, 2001, 07:18 AM
#1
Thread Starter
Fanatic Member
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.
-
Dec 24th, 2001, 11:09 AM
#2
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.
-
Dec 27th, 2001, 03:10 AM
#3
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|