Diogo Ribeiro Posted May 29, 2012 at 04:16 PM Report #458944 Posted May 29, 2012 at 04:16 PM (edited) Boas Pessoal. Estou com um pequeno problema, criei um sistema de abas dinamicamente num tabcontrol mas agora tenho problema de as fechar. Dim tabpage2 As New TabPage tabpage2.Text = "Compras" TabControl1.Controls.Add(tabpage2) Dim Compras As New Compras Compras.TopLevel = False tabpage2.Controls.Add(Compras) Compras.Show() o código que utilizei para criar as abas. é possível fecha-lo directamente na aba, ou num botão a parte. obg. Edited May 29, 2012 at 04:43 PM by Caça GeSHi
petvetbr Posted May 29, 2012 at 04:33 PM Report #458953 Posted May 29, 2012 at 04:33 PM seuTabControl.TabPage.Remove(seuTabPage); não funciona? Fernando Lage Bastos - MCP/MCTS/MCPD
Diogo Ribeiro Posted May 30, 2012 at 04:20 PM Author Report #459205 Posted May 30, 2012 at 04:20 PM Boas, assim não da porque não reconhece as tabpages
Caça Posted May 30, 2012 at 04:22 PM Report #459206 Posted May 30, 2012 at 04:22 PM Como não reconhece? Podes fazer também pelo RemoveAt(), onde tens de passar o respectivo índex Pedro Martins Não respondo a duvidas por PM
Diogo Ribeiro Posted May 30, 2012 at 04:39 PM Author Report #459213 Posted May 30, 2012 at 04:39 PM Boas. Eu estou a abrir um form dentro das abas. E dentro desse form quero meter um botao que feche a aba
ricasss Posted May 30, 2012 at 07:56 PM Report #459252 Posted May 30, 2012 at 07:56 PM tabcontrol.tabpage.removeat(tabcontrol.tabpages.selectindex) qualquer coisa assim
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now