none
FromArgb gives "Not Part Of" error

    Frage

  • Project: VB with multiple Standard Forms where one contains a DataGridView object.

    I use FromArgb on several forms to change a textbox color with no problem.  But, when I try to use it in the form that contains the DataGridView, I get an error that says FromArgb is not part of the DataGridView.

    To get around this error, I use a common module with a function that returns Color.

    So, I can set a cell color with Color but I can not use Color.FromArgb to do it.

    I have tried the FromArgb on my three other forms and it defines the Color with no error.

    I have deleted the form with DataGridView and recreated it but I still get the "Not Part Of" error.

    Exact error: 'FromArgb' is not a member of 'DataGridView TextboxColumn'

    This (to me) indicates that the Color Class is being overloaded by the DataGridView class.

    Thanks for any suggestions on how to fix this (because I hate to use module code like this)

    Lance

    Donnerstag, 7. Juni 2018 06:08

Antworten

  • LanceSummers,

    This forum is dedicated to questions/issues about Microsoft Project, a project management application. I suggest you re-post to a VB.net forum such as the following:

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vbgeneral

    John

    Donnerstag, 7. Juni 2018 19:56

Alle Antworten

  • LanceSummers,

    This forum is dedicated to questions/issues about Microsoft Project, a project management application. I suggest you re-post to a VB.net forum such as the following:

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vbgeneral

    John

    Donnerstag, 7. Juni 2018 19:56
  • Thanks for the info John.  As this is my first post, I was not sure where to post it. 

    Thanks again, Lance

    Freitag, 8. Juni 2018 06:51
  • Lance,

    You're welcome and thanks for the feedback. Hope you find the help you need.

    John

    Samstag, 9. Juni 2018 14:38