how create user control without graphic?
when create user control using windows form control library, saw command line: public partial class usercontrol1: usercontrol. friend told me replace usercontrol1: usercontrol usercontrol1:component,idisposable. don't know component,idisposable is.
you can see friend talking if take @ 1 of other components can drop onto form don't have own interface:
public class backgroundworker : component public class errorprovider : component, iextenderprovider, isupportinitialize public class timer : component you can create own:
public class myveryowncomponent : component { public string setting1 { get; set; } public string setting2 { get; set; } public void someimportantmethodyoucancall() { // ... } } and drop on form: (you'll have rebuild first, show in toolbox)

Comments
Post a Comment