Why not create your own selection sub class that communicate with the component
Public _textbox as textbox Property Start as integer Public function Start() as integer Return _textbox.selection.start End In your component Property read selection as CSelection Private $hSelection As New CSelection Public sub _new () $hselection._textbox=mytextbox So user can use My component.Selection.start=6 Le 7 févr. 2014 01:29, "Bruce" <bbr...@paddys-hill.net> a écrit : > I have a custom control that contains a TextBox. I need to expose the > Selection property of that textbox through a property in the custom > control. Alas, Selection is a virtual class. > > I've tried several approaches without any joy, including trying to pass > it as a generic Object. > > Any clues? > > tia > Bruce > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user