Are you trying to drag the class from the project to the grid? VFP doesn't like that. Use the form controls toolbar.
More specifc directions, to make sure you're not missing a step:
-Right click on the grid and choose edit
-Bring up properies and make it stay on top
-Click on the column where you want the textbox
-On the properties sheet, go down to the textbox listing for that column
-Click on the column again
-Press delete
-Click on your textbox class on the form controls toolbar
-Click on the column again
Another way to do it is to do a replace all on the .SCX. Do one textbox as above so you can get the right relative path. Then USE the .SCX. Look at the field (I think) classloc. Get the path from there. Then, on all your forms you can do:
REPLACE ALL class WITH mytextbox FOR class = "textbox"
REPLACE ALL classloc WITH
FOR class = "mytextbox"
HTH,
-Michelle
>Hi Sylvain,
>
>
>>Yes, you can:
>>- Edit the grid
>>- Drop your textbox in a column
>>- Click on the title bar of the form
>>- Press Delete to remove the original text box
>
>Well we tried that. And we get the following error message:
>
>'Cannot Add Objects To Non-Container Classes'.
>
>This happens when we try to edit our own grid. Change the columncount to 2 (for example) and move a textbox (which is in the same class library) over the grid onto the original textbox (or wherever on the grid).
>
>Is this normal?
>
>Thank for your answer!