Error when adding Tabpages in vb.net -


i having issues adding tab pages tab control. using visual studio 2012. when execute code below 4 tab pages following captions - index 4, index 2, index 3, index 4. 4 tabs. loose frist tab should "index 1" , tab 4 repeated first tab. below code.

    index = 0 3         itemname = "index " + convert.tostring(index)         tabpage.text = itemname         frmconsole.tbcmain.tabpages.add(tabpage)     next  

you need make new tabpage each iteration.

for index = 1 4     dim tabpage new tabpage     tabpage.text = "index " & index.tostring     frmconsole.tbcmain.tabpages.add(tabpage) next  

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -