Hello again,
**** THIS IS A RESPONSE TO A PREVIOUSLY CREATED THREAD ****
Apparently the thread vanished...
Anyway you could always create a custom control, something like this, so you could pass all the extra logic there, including but not limited to themes and other info..
(The screenshots below are for the thread disappearance itself)
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
**** THIS IS A RESPONSE TO A PREVIOUSLY CREATED THREAD ****
Apparently the thread vanished...
Anyway you could always create a custom control, something like this, so you could pass all the extra logic there, including but not limited to themes and other info..
public
class
CustomDropDownList : UserControl
{
private
RadDropDownList dropDownList;
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public
RadDropDownList DropDownList
{
get
{
return
dropDownList;
}
}
public
CustomDropDownList()
{
dropDownList =
new
RadDropDownList();
dropDownList.Dock = DockStyle.Fill;
this
.Controls.Add(dropDownList);
this
.Size =
new
Size(dropDownList.PreferredSize.Width, dropDownList.PreferredSize.Height + 1);
}
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
if
(!dropDownList.Enabled || !
this
.Enabled)
{
this
.Enabled =
true
;
dropDownList.Enabled =
true
;
dropDownList.Enabled =
false
;
this
.Enabled =
false
;
}
}
protected
override
void
Dispose(
bool
disposing)
{
base
.Dispose(disposing);
if
(dropDownList !=
null
)
{
dropDownList.Dispose();
dropDownList =
null
;
}
}
}
(The screenshots below are for the thread disappearance itself)
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP