Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datarepeater...help!

Status
Not open for further replies.

JHerr

Programmer
May 25, 2001
42
US
I have a custom control used for a datarepeater control. On the control i have some events and two command buttons that call the events. How can i use these with datarepeater, or more precisley, how do i get the datarepeater to recognize when someone has clicked a button and fire the appropriate event? any help would be GREATLY appreciated!!
-jacob
 
I'm not sure I quite understand what you're trying to do, but...If you want to set a routine for the button, just double click on it...this will open up your source view, and it will show -

Private Sub Command1_Click()

End Sub

Or something along those lines. Now you just insert your "event" In-between...eg.

Private Sub Command1_Click()
Form1.print "Hello World"
End Sub

is this what you needed?

Rob
 
Define your events in the custom control. Like Rob explained above. Best Regards and many Thanks!
Michael G. Bronner X-)

"They who drink beer will think beer." Washington Irving
 
I have the events defined in the control,
( i.e. Public Event Orders() ), but when the datarepeater uses the control as the repeated control, the events and properties should be exposed by "datarepeater1.repeatedcontrol._______" but for some reason its not working,and i was hoping someone who has used the DR alot would have some information that might help me...
 
look into this topic in MSDN
Exposing User Control Events of the RepeatedControl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top