If you're using .NET 2.0 you're probably not showing all the files in the
solution. The designer generated code gets placed into a seperate file now
using the partial class functionality that was introduced with 2.0. Since
you don't know where the code is at, I'm guessing you're using the designer
to hook your control to your data, in which case to see it you're going to
need to do the following:
In solution explorer, click the project you were talking about. Next, you
should see 4 buttons being displayed at the top of the solution explorer,
one of them will be named "Show All Files". Simply click it to view the rest
of the files associated with the project. You should see +s next to your
Form names. If you expand the form where your combobox is at, you'll see a
<form>.designer.cs file in there. That's where the code will be at that is
being used to populate the data.
Also, about the designer files - they get generated quite frequently so it's
best to leave the code in there alone.
"I have worked out how to configure the ComboBox creating my own object
however it leave me with a lot of management updating as the table
changes."
Using an ORM tool such as LINQ to SQL might help alleviate those headaches
for you - however depending on your skill level you might spend more time
learning it and forget what you were working on to begin with.
"Ken Foskey" <(E-Mail Removed)> wrote in message
news:486d6c1f$(E-Mail Removed)...
>
> I don't understand how to get to the code. When I select the 'game'
> datasource, I want ComboSelect comes up as a field I can use to populate
> the ComboBox. ComboSelect looks something like this:
>
> String ComboSelect
> {
> get {
> read venue using this.venuecode, get venuedesc and countrycode;
> read country using countrycode returning countrydesc;
> return formatted( "{0} ({1}) - {2}", this.description,
> venudesc, countrydesc);
> }
> }
>
> I have the actual pseudo code working to do the above, I want to add the
> method to the actual game object.
>
> datasource game is derived from an access table automatically by adding a
> datasource. How do I extend 'game' to add the extra fields. I can then
> use the new improved description in my combo box automatically.
>
> Ta
> Ken