|
Re: User v Custom Controls: msg#00345windows.devel.dotnet.winforms
Richard Heintze schrieb: How do I decide between user and custom controls? User controls are derived from UserControl and thus inherit the infrastructure to contain other controls (e.g. you can create a new user control containing buttons, list views, etc, all with Designer support). Custom controls inherit from Control and thus have no container facilities. You normally use user controls if you want to create a new control as a compound of other controls (i.e. like a form, but reusable), custom controls if you create a new control from scratch, even drawing it yourself in its OnPaint method. I'm using managed C++ for a WinForms App and I'm Where's the problem? ArrayList __gc * l = new ArrayList(); l->Add(S"Test1"); l->Add(S"Test2"); l->Add(S"Test3"); comboBox1->DataSource = l; I do know how to do this in VB.NET, however. Should I What do you want to use the user control or custom control for? Fabian |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Textbox on non-active tabcontrol page: 00345, Price, Derek |
|---|---|
| Next by Date: | Web Service accessing SqlServer WAS: SqlCommandBuilder: 00345, Greg Robinson |
| Previous by Thread: | User v Custom Controlsi: 00345, Richard Heintze |
| Next by Thread: | Re: User v Custom Controls: 00345, Richard Heintze |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |