m_Canvas = new PhotoCanvas(); // initializing the picture box control m_Canvas.BackColor = Color.White; m_Canvas.Width = 500; m_Canvas.Height = 400; m_Canvas.Left = 0; m_Canvas.Top = 0; this.MainTab.TabPages[0].Controls.Add(m_Canvas); //adding the picture box control to tabpage
if (m_OpenFileDialog.ShowDialog() == DialogResult.OK) { m_Canvas.Image = new Bitmap(m_OpenFileDialog.FileName); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)