Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / March 2004



Tip: Looking for answers? Try searching our database.

Help with ActiveX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Evans - 07 Mar 2004 18:00 GMT
Hello,

I've done quite a bit of VB6 programming but I'm new to ActiveX controls.
Let me try and explain what I'm doing:

   I've written a User Control that performs an operation on a string and
displays the result.

   I would like to pass a string to the user control from a text box on the
form. I don't want to have the text box on the ActiveX control.

Can anyone offer a suggestion about how I do this? I really am stuck.

Thanks,

Jon.
J French - 07 Mar 2004 18:48 GMT
>Hello,
>
[quoted text clipped - 8 lines]
>
>Can anyone offer a suggestion about how I do this? I really am stuck.

RaiseEvent

eg in the UserControl :

Public Event Notify( S As String )
....
    RaiseEvent Notify( "Hullo Parent Form" )
Lindsay - 07 Mar 2004 19:27 GMT
Set up a Sub in your user control that gets the name of a textbox. Eg:

Public Sub TextStuff(New_Text as TextBox)
Dim T as String
T=New_Text.Text
etc...
End Sub

> Hello,
>
[quoted text clipped - 12 lines]
>
> Jon.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.