Simbon Ba

Simbon Ba

  • NA
  • 3
  • 2.3k

GTK# : how to load widget at runtime

Jul 10 2013 9:31 AM
I'm using MonoDevelop (IDE) to create a small GTK# application.

I placed a HBox (m_Hbox with 3 columns)  container on the MainWindow.

in the first column of the HBox i added one button (m_AddContenButton). in the third column I added another button (m_RemoveContentButton).

Started the application and it run fine.

My problem:

I created two custom widgets that I want to load into the second column of the  HBox (m_HBox) at runtime using m_AddContentButton_Click and remove it with m_RemoveContentButton_Click.

How can I do this ?

Thanks in advance for you Help

Answers (1)