G
Guest
Hi
I am working on pocket pc and using .NetCF. We disable any stylus operation
to protect the screen from scratches, as a part of which we disable any
vertical scroll bars operation.
Can someone please let me know how I can hide a vertical scroll bar over a
listbox. The below code works fine for a datagrid but not for a list box.
string[] list = {"one","two","three","four","five","six","seven"};
listBox1.DataSource = list;
foreach(Control c in listBox1.Controls)
{
if(c.GetType().Equals(typeof(VScrollBar)))
{
((VScrollBar)c).Width = 0;
((VScrollBar)c).Hide();
}
}
Thanks,
Naresh Mirkhelkar
I am working on pocket pc and using .NetCF. We disable any stylus operation
to protect the screen from scratches, as a part of which we disable any
vertical scroll bars operation.
Can someone please let me know how I can hide a vertical scroll bar over a
listbox. The below code works fine for a datagrid but not for a list box.
string[] list = {"one","two","three","four","five","six","seven"};
listBox1.DataSource = list;
foreach(Control c in listBox1.Controls)
{
if(c.GetType().Equals(typeof(VScrollBar)))
{
((VScrollBar)c).Width = 0;
((VScrollBar)c).Hide();
}
}
Thanks,
Naresh Mirkhelkar