Posted By Chris B on 07/23/2008 7:51 AM Managed to get around issue by putting a timer on the page that runs every 500 milleseconds, as I couldnt get the AddHandler event on MarginChanged to fire.
Anybody got any ideas how I can run the TabPageProfit_Control Click event that interprise have wrote from my code, as if i dont do this in my page_load of my section it will get a null reference to the object.
Im using: TabPageProfit_Control = TryCast(Me.FindForm().Controls("PanelBody").Controls("SalesOrderControl").Controls("PluginContainerBody").Controls("TabBody").Controls("TabPageProfit"), DevExpress.XtraTab.XtraTabPage)
But you cant use RaiseEvent TabPageProfit_Control.Click as nothing appears..........................
Help!!! Soo far now but soo close to finishing this first module. Hi Chris,
If you were able to get the instance of the tab control (not the tabPage control), use this code to trap the event each time the "TabPageProfit" is selected.
Addhandler myTabControl.SelectedPageChanged, AddressOf mySelectedPageChanged
Private Sub mySelectedPageChanged( ByVal sender As Object, _ ByVal e As DevExpress.XtraTab.TabPageChangedEventArgs) _ Handles TabCustomer.SelectedPageChanged Select Case e.Page.Name Case "TabPageProfit" 'Put your codes here End Select End Sub
Hope this helps.
Note that in current SDK 2007 SP4HF1 release, controls are not yet exposed publicly. In our 2009 versions, we'll have the "Plugin Communicator" which will provide plugin developers a bridge to communicate to existing controls.
Regards,
Raymond Dazo Interprise Solutions Team
|