jazeel

hi,

i am a beginer in the world of C#

1. I want to hide the vertical scrollbar of a listbox . In properties i can hide the horizontal scrollbar , but there s no option for vertical scroll bar.how can i hide this

2. I also want to call the event of vertical scrollbar on a button click.. i dont know it is posible or not... Is it possible then can u give any tips

thanking you in advance

jaz



Re: Windows Forms General how to hide the vertical scrollbar of listbox

TilakGopi

Hi,

1. I want to hide the vertical scrollbar of a listbox . In properties i can hide the horizontal scrollbar , but there s no option for vertical scroll bar.how can i hide this

Vertical scrollbar only comes when the visibility of it's items ,crosses it's border.If there are more items , u obviously need scrollbar.For less items , u wont' get that.

2. I also want to call the event of vertical scrollbar on a button click.. i dont know it is posible or not... Is it possible then can u give any tips

I have checked all the events, no particular event for click on vertical scroll bar , what situation made to raise this question.If u can post it, i'll try to provide the alternative solution for it.

Thanx,

Ch.T.Gopi Kumar.






Re: Windows Forms General how to hide the vertical scrollbar of listbox

jazeel

Thanks for your reply,

actually i want to customize the appearance of the listbox , by adding two buttons (up and down) instead of scrollbar.. i think if i can hide the scroll bar and , able to call that event on button clicks..

thanking you once again

jaz




Re: Windows Forms General how to hide the vertical scrollbar of listbox

TilakGopi

Hi,

I tried using some Win32 functions(SetWindowLong and GetWindowLong) but invain , to hide the scrollbar.

There may be ways.Good lcuk.

Thanx,

Ch.T.Gopi Kumar.






Re: Windows Forms General how to hide the vertical scrollbar of listbox

jazeel

thanx

shall i do this using cutom controls

jaz




Re: Windows Forms General how to hide the vertical scrollbar of listbox

TilakGopi

I'm new to C# .I don't know about custom controls.U may do.

Post this same question i a new thread , u may get some helpful answers.

Thanx,

Ch.T.Gopi Kumar.






Re: Windows Forms General how to hide the vertical scrollbar of listbox

jazeel

Thanx