I am foxed about a little oddity with edit boxes - I am using D2006 although I don't think that is the cause. I have a form I show for editing data, the first field is an edit box, and because I want by default the data to be edited rather than replaced I have set AutoSelect to false (ie when focus hits the edit box the text is not selected and highlighted).
The consequence is that there is no cursor, and the user cannot tell where the typing will start. I think this is caused by the edit box being the first control to get focus after the form is shown. I think in the past I have seen a similar oddity with stringgrids too (where the current row is not shown until I move with an arrow key...) The best I have been able to do so far is append a space in the editbox, and set it to be the selected area so it sort of looks like a cursor but that is a real kludge. Any ideas how to get the normal cursor showing somewhere in the editbox? John _______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi