Default language in Visual Studio 2010 - visual-studio-2010

I am discovering currently Visual Studio 2010. I have no experience whatsoever with Visual Basic. I see that Visual Studio supports several languages, that C# is easier than C++ for newbies, but I still don't know what is the default language in that program.
In my first test application, I can insert buttons and many other things on a form. Looking at the code gives something like that:
Private Sub Beenden_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Beenden.Click
End Sub
This looks to me like VBA, but I never decided what language I want to use. Is that Visual Basic? Or VB.NET then?
Thanks for clarifying all this!

The language is most probabaly VB.NET.
Visual Studio does not have a "default language".
What language you use depends on the project you have created - there are templates for C#, VB.NET and C++ in the default installation, but you can add many other templates and languages.
The above applies to the non-free versions of Visual Studio (Pro, Ultimate etc...).
The Express Editions are language specific (you can download and run these side-by-side).

Related

GUI for C++ program in visual studio 2005

I am a beginner programmer in C++. I just created a product configurator in C++ now i want to develop a GUI for that in Visual studio 2005. I have never worked in Visual studio before. can someone give some hints that how to start, links for some basic lessons would be a great help.
Visual Studio supporting many language for GUI creation like C#, MFC(C++), Visual F#.
As you said C++ you can go with MFC projects.
You can select/create projects by going into file->new projects->Visual C++->Mfc Application
And for every language you need some guidance.
please follow the below link for more detail.
msdn link for creating GUI in visual stuudio

IntelliSense suggestions for F# in Visual Studio Express 2012 for Web

In Visual C# 2010 Express, if I type using S suggestions automatically popup:
In Visual Studio Express 2012 for Web using F#, if I type 'open S' nothing happens. I have to key ctrl-j in order to trigger suggestions:
Is there any way to get the former behavior in 2012? I.e. not have to type ctrj-j for suggestions, but have them come up automatically?
The C# and F# Intellisense implementations are written by different teams and have different goals. In general the F# experience is more minimal than the C# one. For items like open they won't automatically popup an experience and you must manually invoke it. There is no way to change this behavior.

Visual Studio 2010 Supported Code Models

I'm developing an addon for Visual Studio 2010, and for some features I need access to the events provided by the FileCodeModel associated to a project item. So far, this have been tested and works well in C#, VB.Net, and C++ (although each model has its gotchas).
I tried to reuse the same code for F# projects, but it seems there is no support for F# in the code model mechanism. Stepping through the debugger I see that the FileCodeModel property of the corresponding ProjectItem is null.
so my question is, what are the languages with support for the CodeModel mechanism in Visual Studio 2010? does it work with F#? what about Javascript?
Thanks
The CodeModel.Language property is documented here. It has code examples in C#, C++, F#, JScript, and VB.NET.
Some members of the CodeModel object are not supported in every language in Visual Studio.

Can not open VB 6.0 files in Visual Studio 2010

If Visual Studio includes Visual Basic, why can't I open a VB 6.0 file in Visual Studio 2010?
Because there's a difference between Visual Basic 6.0 and Visual Basic .NET which is what Visual Studio 2010 includes.
Darin is basically right but omits an important detail.
There's a difference between VB6 and VB.Net, and Visual Studio 2010 includes VB.Net
Earlier versions of VB.Net included an upgrade wizard to help convert VB6 code to VB.Net. This was dropped in Visual Studion 2010. You might want to use Visual Studio 2008 to help upgrade your VB6 to VB.Net, and then migrate to Visual Studio 2010 later. Upgrading VB6 to VB.Net can be a large task.
That's correct. I upgrade to 2008 then to 2010. You have to run the installed program from vb6 first then it will upgrade. You might have terminal failures from unfound assemblies. Go into the .vb form file with a text editor. REM out any failed to load assemblies from the fail report. Then you can re-write the VB code for code errors as the lingo changed. Next upgrade to vb 2010 using that wizard and re-write for new lingo again.
Form sizes are converted to vb6. in 2008, then that is scrapped in 2010, don't re-write that in 2008, if you're upgrading right away, you'll have to re-write in 2010 anyway.
Common file open/save/browse/color/font routines become vb powerpacks 10 which you load with your vb 2010 assembly. You have to re-insert the new common assemblies into the form from the toolbox and re-work the code. There's a bunch of stuff there, but it is do-able.
I have not used VS 2010, but based on my readings, the latest VB is effectively a new language altogether. Since introduction of VB .NET, VB 6.0 has become a stagnant language.

Development Environment For VBP FIles

I come from a C# background but we have an app that is written a long time ago and is a vbp project file
What development enviroment will open that file - I know cls and frm files are class and form files but have never used vbp projects
This is a Visual Basic project file for vb6. Visual Studio should be able to open this file but you will need the VB6 IDE.
Update: As of Visual Studio 2010, VB6 projects are no longer supported. VB6 is still supported by Microsoft, but you will need the specific IDE for it to perform project updates. As of 9 February 2018, this can be found on the VB6 support site.
You need the original VB6 IDE.
Versions of Visual Studio from 2003 - 2010 will attempt to migrate the VB6 to VB.Net, but this usually introduces significant errors which are difficult to fix.
If you have an MSDN subscription, you can download Visual Basic 6 free.
Otherwise try somewhere like eBay, although VB6 is often surprisingly expensive.
Once you have obtained the VB6 IDE, look at the VB6 IDE tools-and-tricks question for some good tips and free add-ins for improving the development experience.
Visual Basic 6 creates projects which have the extension vbp. I think it stands for Visual Basic Project (obviously).
As Joel suggested in his answer, you can use the VB6 IDE to open the file.
Since you stated that you have a C# background, I take the liberty to assume that you're using Visual Studio. If that's the case, you can open the project with visual studio and it will be automatically upgraded for you.
You must note, however, that the project will be 'upgraded' to VB.NET.
If the project was large and fairly complicated, you'll have to be prepared for quite some time correcting errors. VB6 and VB.NET are quite different you know.
Plus, unless you fix all the errors in the upgraded project, you can't convert the code to C# or any other .NET language.
You need the VB 6 IDE Microsoft Visual studio

Resources