Results 1 to 2 of 2

Thread: [2005] Combobox Odd Behavior

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    [2005] Combobox Odd Behavior

    I have a form that inherits from a base form. The base form has four comboboxes on it and the base form has code to load the values into these comboboxes. (The DataSource, DisplayMember and ValueMember are set by a subroutine that gets the values and populates the combos at runtime.)

    I have been getting an odd error from time to time on my child forms and finally decided to investigate it. (The error was "Invalid RESX file" or something like that. It always pointed to information in the RESX file that related to the comboboxes.) I noticed that on the child form, the DataSource property on these combos did not show "(none)" like it should and the DisplayMember and ValueMember properties were set to something. These properties have not been set at design-time on any of the combos. I proceeded to remove this information and save the project. The next time I built the project, they were back again. I even cleared them from the Designer.vb file and upon rebuilding the project, they showed up on the controls, but not in the Designer.vb file.

    I don't have a clue as to why the IDE is attempting to set this information, but that is the cause of my problem. It is trying to set the datasource to the DataSet that the form is using. However, the datasource for these combos is a different DataTable.

    Note: I have another base form that is almost identical to this one (let's not discuss base forms and inheritance here ). The child forms of that base work fine and do not have any of these properties set.


    Can someone give me a good place to start looking for this? Since the 2 forms that I am having this problem with both inherit from the same base form, I am strongly concentrating on the base form to see what is different.

    The base form is not having this problem, only the children of this base.
    My.Settings.Signature = String.Empty

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Combobox Odd Behavior

    Bump. Anyone...
    My.Settings.Signature = String.Empty

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