sorry if I my queries is not clear. What I mean from the tabpage to put icon. Under the tabpages collection I need my tabpage with icon and put dynamically using my resource file that will assign in the imageindex property and not to put background image per tabpage.
Add an ImageList control to the form and assign it to the Tabcontrol. Either add images directly in Designer to the ImageList or dynamically in code (accessing the image resource as djjeavons example). When the Tabcontrol has got an ImageList with images you can set the imageindex/key for each Tabpage. Note that if this is the only use of these images you don't need them in application resources, just add them directly to the ImageList.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.