Results 1 to 7 of 7

Thread: DataGrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    4

    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

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    4
    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.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    4
    I will need to download the database samples before I can look at this. Thanks for the help though Cander

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    4
    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
  •  



Click Here to Expand Forum to Full Width