Make sure you set the parent window handle correctly in the CHOOSECOLOR
structure.

--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/

"SK" wrote in message
news:f76eebb2.0308051124.281d04f@posting.google.co m...
> Hi...
> I need to position window's standrad color selection dialog box which
> I am opening through API call ChooseColorA. I couldn't find any
> property in Choosecolor structure through which you can control X,Y
> co-ordibates of window. It always open at upper left corner of the
> screen. I am using PowerBuilder 6.5 on Win 2000.
> Please can anybody direct me how can I do this?
> Thanks in advance.
> -Sunil