Does anyone know how to put a combobox inside a datagrid in VB.NET? If so, can you please give me a detailed description on how to do this. Also one more question, how can you set the disabled forecolor of a textbox? Thanks for the help.
Randy
Printable View
Does anyone know how to put a combobox inside a datagrid in VB.NET? If so, can you please give me a detailed description on how to do this. Also one more question, how can you set the disabled forecolor of a textbox? Thanks for the help.
Randy
your second question
Code:TextBox1.ForeColor = Color.Red
Actually the forecolor property only changes the forecolor when the object is enabled. if it is disabled, the textbox still has the darkgray forecolor on the light gray background. Of course I set the forecolor in the design phase. Will it change it if I change the forecolor programmatically when the textbox gets disabled. I guess I can try that.
do what i did in vb 6Quote:
Originally posted by randy_belcher
Actually the forecolor property only changes the forecolor when the object is enabled. if it is disabled, the textbox still has the darkgray forecolor on the light gray background. Of course I set the forecolor in the design phase. Will it change it if I change the forecolor programmatically when the textbox gets disabled. I guess I can try that.
put the textbox in picturebox (which is a container)
and enable and disable the container instead of the textbox itself
I will need to download the database samples before I can look at this. Thanks for the help though Cander
thanks kovan, if i end up having to change the disabled forecolor for my client I will do that. I thought there would be an easier way. Visual Foxpro actually has a disabledforecolor property. I guess I took it for granted. thanks.
Randy