这几行是显示部分的代码,但是图片全屏后发现tappage的选项卡还是会显示出来,如下图所示。我试过把itemsize设置成(0,0)后还是会显示出来,有没有什么方法可以隐藏选项卡(Demo和Test),让图片可以全屏显示?
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
this->WindowState = FormWindowState::Maximized;
System::Drawing::Rectangle ret = Screen::GetWorkingArea(this);
this->tabControl1->Dock = System::Windows::Forms::DockStyle::Fill;
this->pictureBox2->ClientSize = System::Drawing::Size(ret.Width, ret.Height);
this->pictureBox2->Dock = System::Windows::Forms::DockStyle::Fill;
this->pictureBox2->Image = image1; //this->pictureBox2->Load(path);
this->pictureBox2->BringToFront();