>>I've got a form with a comctl slider 1 control in it. I can get everything working on it but when I first start the form the slider is always invisible. The visible property is set to .t. As soon as the slider is clicked on it appears and stays for the duration of the program but start it again and no slider. This control was dropped in using the form desiger. I have searched and cannot find the answer, although I am sure it's something small that I have forgotten.
>
>I've had this trouble three years ago, and frankly, can't remember how I solved it. I think I was setting it to visible=.t. in parent container's init, or was it the trick of setting form.lockscreen=.t., then resizing the slider by one pixel up, resizing down, lockscreen=.f.; maybe it was .slider.setfocus(), or setting its .value to 1 - one of these has worked in the end. It was back then in VFP7, and I don't have the source anymore (maybe somewhere on a CD, but we moved... who knows where it is).
Put this code in the init event of form
thisform.olecontrol1.oBJECT.visible=.t.
thisform.LockScreen=.t.
thisform.olecontrol1.Height=133
thisform.olecontrol1.value=0
thisform.Refresh
thisform.olecontrol1.value=-128
thisform.olecontrol1.Height=132
thisform.refresh
thisform.LockScreen=.f.
thisform.Refresh
Still no luck. Thanks for any help