|
-
Feb 27th, 2002, 03:32 PM
#1
Thread Starter
New Member
DataGrid
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
-
Feb 27th, 2002, 03:45 PM
#2
Frenzied Member
your second question
Code:
TextBox1.ForeColor = Color.Red
-
Feb 27th, 2002, 03:55 PM
#3
Thread Starter
New Member
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.
-
Feb 27th, 2002, 03:57 PM
#4
-
Feb 27th, 2002, 04:31 PM
#5
Frenzied Member
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.
do what i did in vb 6
put the textbox in picturebox (which is a container)
and enable and disable the container instead of the textbox itself
-
Feb 27th, 2002, 04:31 PM
#6
Thread Starter
New Member
I will need to download the database samples before I can look at this. Thanks for the help though Cander
-
Feb 27th, 2002, 04:35 PM
#7
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|