Can the value of vertical scrollbar attached to Msflexgrid be made to maximum through vb code.

thanks & regards

Hi,

Right Click Grid and Set property : "ScrollBar - Both"

Grd.Rows = 5000
You will get scrollbar automatically..

Regards
Veena

actualy i wanted it move focus to last row when new row is added and the no of rows are more then the height of flexgreid. i am getting it with below code
SendKeys "{home}" + "{down}"

thanks

Hi,

Whenever, you add row write this :

Grd.Rows = Grd.Rows + 1
Grd.TopRow = Grd.Rows - 1

Regards
Veena

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.