### Add Image to TabPage

Example of adding an Image to a TabPage.
The TabPage is called tabpageBlogs.
Define the Main Layout using B4J Visual Designer
The layout contains a View tabpaneMain.
Set properties accordingly, like Tabs Side.
Add the View tabpaneMain to the B4J Project File via Tools > Generate Members.
Define the TabPage Layout using the B4J Visual Designer
Generate the Views via Tools > Generate Members.
Add the TabPage Image File to the Project
Copy the image, in this example blogs.png to the Project Files folder (file.dirassets).
Add the file in the project files list via the Files Manager in the B4J IDE Files Manager.
Define Code in B4J Module
`Sub Process_Globals
'Generated via the B4J Visual Designer
Private tabpaneMain As TabPane
'Add new TabPage
Private tabpageBlogs As TabPage
...
End Sub`
Load the layout and add the image in f.e. AppStart
'The layout file is blogs.bjl and the TabPage Title is called Blogs
tabpageBlogs = tabpaneMain.LoadLayout("blogs", "Blogs")
'The image is set to the TabPage by loading from the Project Files folder.
tabpageBlogs.Image = fx.LoadImageSample(File.DirAssets, "blogs.png", 24, 24)

Changed: , Category: TabPage and TabPane, File: T6C260M1908.htm, ID: 1908