Tabcontrol (imageindex etc), how to set the image to the right of the text?I have a tabcontrol, and i have set a imagelist for this tab. I want to have an image (like firefox, IE etc) to close each tab.<br><br>I have managed to get an image there (with imageindex on each tabpage), but the image is to the left for the text. So I guess the question is;<br><br>How do I set the image to be on the right side of the text of each tabpages' tab?<br><br>How do I get into the on_click on the images? (to close the tab)<br><br><br>Anders Hafreager<br>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959ahttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959ahttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959aAndeplanehttp://social.msdn.microsoft.com/Profile/en-US/?user=AndeplaneTabcontrol (imageindex etc), how to set the image to the right of the text?I have a tabcontrol, and i have set a imagelist for this tab. I want to have an image (like firefox, IE etc) to close each tab.<br><br>I have managed to get an image there (with imageindex on each tabpage), but the image is to the left for the text. So I guess the question is;<br><br>How do I set the image to be on the right side of the text of each tabpages' tab?<br><br>How do I get into the on_click on the images? (to close the tab)<br><br><br>Anders Hafreager<br>Fri, 04 May 2007 12:22:59 Z2007-05-10T03:36:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#95473308-7eed-4e25-bf22-6afd1bc8ffbbhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#95473308-7eed-4e25-bf22-6afd1bc8ffbbBruno Yuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bruno%20YuTabcontrol (imageindex etc), how to set the image to the right of the text?<p>Andeplane,</p> <p> </p> <p>I hope the following thread can help you with the problem:</p> <p> </p> <p><a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=570056&amp;SiteId=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=570056&amp;SiteId=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=570056&amp;SiteId=1</a></p> <p> </p> <p>The first thing to do is to set the TabControls DrawMode to OwnerDrawFixed as shown above.</p> <p> </p> <p>You will of course also need to assign the DrawItem event to the tabControl1_DrawItem() method. Click the lightning bolt in the properties window and after selecting the tabcontrol, click on the dropdown arrow of the DrawItem event so that you can make the association.</p> <p> </p> <p>This will only color the tabs. The problem you have is that you want a specific appearance for tabs, and that is a lot of work.</p> <p> </p> <p>Setting the TabControl to OwnerDraw will only allow you to custom Draw the Tab Content. The outline of the tabs will still be drawn by the control. </p> <p> </p> <p>From what I understand, you wish to use bitmaps to draw the tabs. To achieve this you will need to use the second example on my site as a base, but there will still be a fair amount of work to do afterwards.</p> <p> </p>Thu, 10 May 2007 03:36:09 Z2007-05-10T03:36:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#dae7ed70-e85f-4569-a56e-14503a584eedhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7ca4b58c-27b0-4ff2-8ff7-9ae77f5e959a#dae7ed70-e85f-4569-a56e-14503a584eedjayanthan.shttp://social.msdn.microsoft.com/Profile/en-US/?user=jayanthan.sTabcontrol (imageindex etc), how to set the image to the right of the text?<br><br>how do i load an image inside a tabitem of tabcontrol???? my tabitem has a grid and i replaced it with viewbox and tried to add an image but i could not able to include,could any one help me out of this issue!!!thanks in advance.<br>Wed, 05 Dec 2007 09:18:11 Z2007-12-05T09:18:11Z