Community
Showing results for 
Search instead for 
Do you mean 
Reply

Sample code for adding custom tab

Copper Contributor
Posts: 13
Country: USA

Sample code for adding custom tab

Can anyone point me to sample code for adding a custom tab ?

 

I am trying to determine the feasiblity of adding an Html viewing control via a custom tab  for Act! contacts to display associated information from our companies intranet. So I am looking to give it a quick try.

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Sample code for adding custom tab

This is sudi code but it should get you the basics.

 

'------------------------------------
' Create a tab page
'------------------------------------
Dim myTabPage As System.Windows.Forms.TabPage = New System.Windows.Forms.TabPage()
myTabPage .Name = "MyCustomTableinACT"
myTabPage .Text = "MyCustomTableinACT"

'------------------------------------
' Add the UI control to the tab
'------------------------------------
Dim myUserCOntrol As UserControl = New UserControl()
myTabPage .Controls.Add(myUserCOntrol)

'------------------------------------
' Add the Tab page into ACT's GUI
'------------------------------------
HostApplication.UILayoutDesignerManager.AddTabToCurrentLayout(myTabPage )

 

 

I think there is an example in the ACT SDK also.

 

Hpe this helps

-- JIm Durkin