Raconteur567668

Hi all,

I have no idea where to even begin looking for these answers... I cannot find anything anywhere in the docs or web searches, so I thought I would post here and hope some kind soul would illuminate things for me.

I recently upgraded from Visual Studio 2003 to 2005. It is amazing, and I am totally loving the new look and feel, and all of the new functionality, but... I am missing some "old friends" and not sure how some of the new magic is happening.

For instance, in 2K3 when you dropped controls on the UI designer, and flipped to the code-behind, you could expand the region with the generated code and see all of the work it had done. Now in 2005, it seems that no matter how many controls I drop on the screen the only thing I see in the code-behind is the class declaration. What am I missing

Also, in 2003 when you would drop a DB table onto the UI designer, it would create the associated connection, data adapter, etc. Now I don't see any of that. I went through the walkthroughs and I see that the new methodology works, but do not understand how it all collapsed, especially since I cannot see generated code.

Lastly, is there any way to get back to the little bar at the bottom of the UI designer where things like the DB connection, data adapter, data view, etc. were so they were not cluttering up the screen at design time

Thanks for any input anyone can add, and my apologies if these things were addressed elsewhere and I missed them in my searching.

Cheers,

Chris




Re: Visual Studio Team System - General Help with move from VS2K3 to 2K5

William Bartholomew

Chris,

Firstly, welcome to Visual Studio 2005 Smile.

For instance, in 2K3 when you dropped controls on the UI designer, and flipped to the code-behind, you could expand the region with the generated code and see all of the work it had done. Now in 2005, it seems that no matter how many controls I drop on the screen the only thing I see in the code-behind is the class declaration. What am I missing

In Visual Studio 2005 the designer code is stored in a separate file (called <FormName>.Designer.vb) and this reduces the clutter in your code file as well as separating generated code from hand written code. To open this file you can click the "Show All Files" button in the Solution Explorer (this is available when you click on the project and is usually the second from the left). When you click this each of your forms in the Solution Explorer will get a + sign next to them and if you click this you will see the Designer.vb file.

Also, in 2003 when you would drop a DB table onto the UI designer, it would create the associated connection, data adapter, etc. Now I don't see any of that. I went through the walkthroughs and I see that the new methodology works, but do not understand how it all collapsed, especially since I cannot see generated code.

The model has changed quite significantly in .NET 2.0 and there is much less generated code and it is much more configuration driven. If you drop a BindingSource component onto your form you can then add a Project Data Source using its Data Source property and from there it will automatically create typed data-sets and table adapters etc. I suggest you read through the Windows Forms Data Binding section of the MSDN Library at http://msdn2.microsoft.com/en-us/library/ef2xyb33.aspx.

Lastly, is there any way to get back to the little bar at the bottom of the UI designer where things like the DB connection, data adapter, data view, etc. were so they were not cluttering up the screen at design time

This tray will automatically appear whenever you drop a "component" (i.e. non-visual) onto the form.

Regards,

William





Re: Visual Studio Team System - General Help with move from VS2K3 to 2K5

Raconteur

Hi William,

Thank you VERY much for the clarification! That really helps.

As for the tray, when you say that it should appear when I drop a non-visual component onto the form, wouldn't that be a data connection and the related db connectivity bits If I take a blank form and drop a table onto it from the Server Explorer, everything sits in the designer, no tray shows. What am I missing

Also, did 2005 do away with the option to design in Flow vs. Grid layout Couldn't find a way to switch.

Thanks again for the info. I have a tight deadline, and do not want VS2K5 to become a liability. Having someone cut right to the chase on this stuff if very helpful. I appreciate it.

Cheers,

Chris






Re: Visual Studio Team System - General Help with move from VS2K3 to 2K5

William Bartholomew

Chris,

Is this Windows Forms or Web Forms

Regards,

William





Re: Visual Studio Team System - General Help with move from VS2K3 to 2K5

Hua Chen - MSFT

Dear Chris:

If you design web forms, click Tools, select Options... select HTML Designer, select CSS Positioning. You can use different CSS settings.

For windows form, you may use FlowLayoutPanel to contain your controls for flow layout effect.

Thanks.






Re: Visual Studio Team System - General Help with move from VS2K3 to 2K5

Raconteur

Hi All,

Thanks for the great help. Between your comments and finding a couple of good articles on the transition, I am feeling MUCH more comfortable with the environment.

Cheers,

Chris