How do you hide the scroll bars with DBGrid control

Delphi version 4.0. How do you hide scroll bars in dbgrid control.
mdlittleAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
intheConnect With a Mentor Commented:
hi,
there is an API function you can use to show or hide the window scrollbars of about any window or control:
 
ShowScrollbar( dbgrid1.handle, SB_VERT, False );

Regards Barry
0
 
mdlittleAuthor Commented:
Could you be more specific? Where should I put this code?
0
 
intheCommented:
on form activate event seems best:

procedure TForm1.FormActivate(Sender: TObject);
begin
ShowScrollbar( dbgrid1.handle, SB_BOTH, False );
end;

0
All Courses

From novice to tech pro — start learning today.