I want to execute some simple code, i.e. myControl.BringToFront(); when a button is selected at design time. I have a form with about 10 panels, the panel that is shown depends on the buton that was last pressed. It works fine in run time however design time is kind of a pain, having to manually bring the panel I want to work on to the front.
Isnt there a way to fire a method at design time using some kind of attribute? I know I have seen it done but cant think of what to search for.
Any help much appreciated.
Isnt there a way to fire a method at design time using some kind of attribute? I know I have seen it done but cant think of what to search for.
Any help much appreciated.