Link: .NET 1.1 templates for VS2005

Teetow wrote on 9/27/2006, 2:15 AM
http://dotnet.org.za/armand/archive/2005/11/01/47857.aspx

Just figured I'd post this, for those of us who are still starting out with C# development and want to use Visual Studio 2005 and develop for pre-v7 versions of Vegas. It worked fine for me, I can now both build .DLL-files that Vegas understands, and debug them in run-time with the -SCRIPT: parameter. That's just kickass =)

Comments

JohnnyRoy wrote on 10/8/2006, 11:20 AM
Have you been able to create scripts with GUI/Dialogs and compile them in MS Studio 2005 for Vegas 5 & 6? I tried one approach but since the MS Studio 2005 IDE uses .NET 2.0 features that are not part of .NET 1.1 (like partial classes for Forms), it wouldn’t work for me.

Did your script have a GUI?

~jr
Teetow wrote on 10/13/2006, 8:18 AM
Nope, no GUI as of yet. I haven't been at this whole thing for very long.

I did come across something, though:

I've recently started using the Hashtable class to speed up e.g. matching Event names against Region names, and it seems the .NET 1.1 implementation doesn't support the Item() method. I can't really say how, but somehow VS "knew" I was targetting 1.1, and wouldn't let me use the Item() method. So it would seem that you can, in some sense, limit VS to .NET 1.1 specifications.

Again, I'm a complete noob, so I can't really offer a good explanation or help you very much.
Teetow wrote on 11/25/2006, 1:01 PM
A brief update: No, the GUI Designer doesn't work in the projects I've set up. I've tried several workarounds, and the most stable seems to be opening a separate solution for desiging GUI:s and then moving that project into your Vegas solution ("rendering" it, in a sense).

This is obviously a tiresome workaround, so I've stuck to writing most of my GUI code manually. It's bit of a bitch, but then again I haven't really made any humongous GUI projects yet.
JohnnyRoy wrote on 11/25/2006, 2:14 PM
This is why I still use Visual Studio 2003 for Vegas scripts. No workarounds. It simply works like it's supposed to.

~jr
Teetow wrote on 11/25/2006, 3:36 PM
That makes sense, yes. Well, it'll be a moot problem soon enough, as Vegas 7 supports .NET 2.0.
JohnnyRoy wrote on 11/26/2006, 6:00 AM
> Well, it'll be a moot problem soon enough, as Vegas 7 supports .NET 2.0.

As long as you are writing scripts for yourself or you are only sharing your scripts with Vegas 7 users. Otherwise if you need backward compatibility you need to continue to use Visual Studio 2003 and .NET 1.1 to stay compatible with Vegas 5 & 6. I don't know how many people have upgraded to Vegas 7 but people are still using Vegas 4 (which is another script nightmare on its own)

~jr
Teetow wrote on 11/26/2006, 2:35 PM
No, I'm an in-house sound designer - my scripts currently satisfy the very modest demographic of two people =)

I've moved on to .NET 2.0 now, by the way. The VS Designer is very convenient, but I've noticed that the event handler functions retain their generic names (button1, checkbox2 etc) even though I rename the controls to more semantic names (btnOK, cbRenderRegions). Any way around that, or am I stuck with manually editing the "forbidden" auto-code?
JohnnyRoy wrote on 11/26/2006, 6:04 PM
> even though I rename the controls to more semantic names (btnOK, cbRenderRegions). Any way around that, or am I stuck with manually editing the "forbidden" auto-code?

You have to rename the control BEFORE you create the event handler. Once you double-click on a control and create a handler, the handler will take on the name of the control at that time. So if the control is named button1 when you create the handler, the handler will be button1_Clicked. But if you rename the button to bntOK and THEN create the handlers the handler will be called bntOK_Clicked. I always rename my controls as soon as I drop them on the form so I don't forget and create generic named handlers.

~jr
Teetow wrote on 11/26/2006, 7:00 PM
Yeah, I discovered that after a while =)

Here's a quick snapshot of what I'm working on:

http://jmb.mine.nu/~teetow/pics/regionforge.png