General information
Category:
Forms & Form designer
I tried the interface method but it always tells me 'Can't add this object to grid' when I drop the class. It works fine for regular text boxes and checkboxes but I always get this message with a custom class. It maybe because I'm dragging from the Project Manager rather than clicking from the toolbar.
Thanks a bunch for your help. I'm just not sure why I can't make the interface method work.
Greg
>Define the grid columns setting thegrid.ColumnCount property to a proper value.
>I'll see the columns in the grid.
>Right click on the grid and select "edit".
>The grid border become green.
>then drag&drop the textbox as you do with the form.
>At this moment you have ADDED your textbox to the column, you have to remove the default textbox VFP create.
>So: activate the properties Dialog, select (using the combo in the top of the dialog) the other textbox you need to remove from the grid's column, then re-activate the form designer clicking on the title bar and finally press delete key.
>
>You have added your custom textbox and remove the VFP default textbox.
>
>OR, you should define your own column object with the proper textbox in it, then add your column object to the grid using the MemberClassLibrary property.
>
>Franco
>
>>I'm using VFP 8 and have a custom text box class for managing SQL dates. I need to use this textbox with a grid but can't seem to figure out how to get it in their through the interface. Is there anyway to do this without hacking the SCX?
>>
>>Thanks in advance!
>>
>>Greg
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only