Hi!
Do not bind textbox to that object property. Leave control source empty. In the Refresh event of the combobox assign date value to the Value property of textbox after converting datetime to the date using TTOD() function. Use Valid event of textbox to assign value to the object property back after editing.
>Hi Guys,
>
>
>Is there a way where I can convert the datetime value of an object of a class/DLL to date type?
>
>I have a form that has a textbox in it, the control source of the textbox is an object from the dll that was created during the form is loading. The dll fetches the data from a date field in a table and stores the value to one of its object. The problem is that it is being stored as "datetime" type. and the ouput is that it displays the date and time in the textbox instead of date alone. Any Ideas?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.