c# - Same code doing two different things on two different apps? -


if have code:

class testbrowser : webbrowser {     public testbrowser()     {         panel panel = new panel();         panel.dock = dockstyle.fill;         controls.add(panel);     } } 

should panel cover webbrowser , make invisible or not? expected behavior? ask because same code giving me 2 different results on 2 different apps , can't find why (the panel covers on 1 , invisible in other).

if add new controls - add , id panel - define function change dock property value after adding controls panel contained in instance of testbrowser


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -