Tab Control Icon |
Post Reply |
Author | |
starface100
Newbie Joined: 11 August 2011 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 16 July 2012 at 10:38am |
Hi,
I want to have my tab control different Icons on the tabs. The sample in c:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v15.0.1\Samples\Common\VB\TabManager\ shows the same picture on the tabs. I want different pictures. How do I do that? I've browsed all topics, I even found similar questions, but never a solution... See http://forum.codejock.com/forum_posts.asp?TID=11783&title=tabcontrol-header-icons for what I mean. The answer is not giving me a clue... Thanks in advance |
|
giorgio
Newbie Joined: 17 February 2013 Location: Italy Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Before to load new doc set the Icon:
Private Sub LoadNewDoc() Static lDocumentCount As Long Dim frmD As frmDocument lDocumentCount = lDocumentCount + 1 Set frmD = New frmDocument frmD.Caption = "Document " & lDocumentCount Set frmD.fMain = Me frmD.Icon = LoadPicture("C:\Program Files (x86)\Microsoft Visual Studio\Common\Graphics\Icons\Misc\face01.ico") frmD.Show End Sub Or you can add a parameter on sub sign: Private Sub LoadNewDoc(ByVal sPathIcon As String) frmD.Icon = LoadPicture(sPathIcon) End Sub |
|
Codejock 15.3.1
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |