ahsan ashfaq

ahsan ashfaq

  • NA
  • 14
  • 0

C# 2.0 tabcontrol button click event problem

Nov 16 2009 2:57 AM
i m using vs 2005 C# framework 2.0
i have a simple application
in which i have main button
when user clicks on it 2 things happen
1.for the click on first time main button creates a tabcontrol.
2.each time it creates a tabpage and add it to the tabcontrol created.

each tabpage contains 2 controls
1.textbox (named:ttb)
2.panel (named:search)

each panel contains 2 controls.
1.textbox (stb)
2.button (sbtn)

now what i have done is
when user click on sbtn then the click event of sbtn fires and it displays the contents of stb into ttb.

this is working fine
unless i create a new tab.
when the new tab is created, then in the previos created tab the sbtn doesn't work(i.e. it doesnot copy the contents of stb into ttb)

what i might think is that the problem is related to click event.
plz help me to solve this

regards,
Ahsan Ashfaq

Answers (4)