For my latest project, I got a chance to use Visual Studio 2008 to create a Windows application in the vb.net language. After learning my way around the interface, I was off and running at the speed of light.

My previous encounters with Visual Basic were with Visual Basic 6.0  and the VB macro editor that comes with built into Microsoft Office 2002. So I have hardly come to this with no experience, however it is true to say that without much effort and a quick tutorial, even beginners can achieve quite interesting things.

For those that aren’t familiar with it, VB.net is an evolution of the Visual Basic language created by Microsoft. It includes a whole new set of .net framework class libraries, as well as the most of the traditional class libraries.  VB.net is used for both offline and online applications. For this article, I’m interested only in the traditional Windows “forms” application.

The Visual Editor:

Screenshot of the visual editor

As the name suggests, Visual Basic involves a visual component, which is the graphical forms editor. This allows you to add components to the forms space, such as buttons, text boxes, scroll bars, labels etc, and then you code in the interactions between these components. At the side of the editing area is a properties box, which lists all the various properties that dictate the behavior of those components.

Visual Studio functions much the same as Visual Basic 6.0 in regards to the visual editor.

When I first learnt to use Visual Basic, I picked it up very fast because it was more or less intuitive. What made it very easy to achieve things that I had not even learnt, but only imagined, was one of the program’s great features:

The Object Browser:

Object Browser

The object browser contains a browse-able list of class libraries that you can use. Looking through the list, you can get an idea of what can be achieved with Visual Basic, and can browse the syntax and required objects/parameters for various functions. It is important to note that some sub-classes and operations are not shown in the browser.

User Friendliness:

One of my more favourite features in Visual Studio (and its’ predecessors) is the drop down auto-complete list.

Visual Basic is an object oriented language, and the objects are elaborated through the . (dot). For example, to reference a parameter “height” of a text box named “txtBox”, we would refer to it as txtBox.height

The auto-complete list will pop up when I type the . (dot), and list all those properties that I may choose from. Height would be found within it, and have an icon that represents that it is a property.

Drop-down box

Also found within the auto-complete list, are functions. These have different icons. Examples of these would be show(), hide(), close()

This makes for very easy coding. I can be guided along by the auto-complete without having learnt the ins and outs of the object with which i’m interacting.

As for user-friendliness as a whole, there is more complexity in Visual Studio than there was in Visual Basic 6.0. This has great advantages, but one disadvantage is that it is definitely less user-friendly than it once was, especially at compile time.

Builds can be debug or release, and there are versions and references that must be accounted for. All of this can be learnt fairly easily.

Releasing your software to the world:

Visual Studio has a publish option, that lets you publish a software installer. For me this process was counter-intuitive to my expectations, as most applications I have downloaded have been in standalone single install files, either msi or exe.

When you publish your application it will be placed in a folder with subdirectories that contain your application and its’ files.

The best way to publish with a standalone installer is to compile your application in the standard way, and then create a new project choosing the “installer package” template. This will create an msi installer into which you can add your executable and program files.

I didn’t find any good tutorials that go through this process from start to finish, so be prepared to spend some time searching the web for any answers you may have, and do plenty of testing if you wish to take this path.

Of course you can stick with the published installer.

Conclusion:

Overall, Visual Studio 2008 and vb.net (with net framework 3.5) has plenty of great features and lots of class libraries to help you achieve what you want.

I haven’t even touched on the possibilities that arise from the online projects that can be created and managed with VS2008, so I’m sure there’ll be plenty more adventures for me in the years to come in the world of VB.net

One Response to VB.net and Visual Studio 2008

  1. Draq 发表于2012年02月21日 19:30上个体验版没有解决这个问题,也没人联系我,我就想知道你们到底在干什么。就因为这个体验版,我装上去后在覆盖正式版的都运行不起来,最后卸载了,把文件都删了才装上正式版的,我的设置皮肤都没了,你们敢有个回答吗?我交年费就换来这服务?广告都还没说你们的事呢。我再发一遍,诺顿安全特警2012正式版报的警,我买的正版激活码,别说是用的破解杀毒软件完整路径: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\minizip.dll威胁: WS.Reputation.1________________________________________________________在电脑上的创建时间 不可用上次使用时间 2012/2/17 ( 12:52:03 )启动项目 否已启动 否________________________________________________________未知诺顿社区中使用此文件的用户数量: 未知____________________________未知此文件版本当前未知。____________________________中此文件具有中等程度风险。____________________________威胁详细信息威胁类型: 智能网络威胁。 很多迹象表明此文件不可信任,不安全________________________________________________________文件操作文件: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\minizip.dll已删除____________________________文件指纹 – SHA:e612f29d671235b5d83bc9701390d659001a22a4b43261d6e8e59d8237ceb665____________________________文件指纹 – MD5:45e651145bf7880cccb640bf8a2bf8ff____________________________完整路径: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\zlib1.dll威胁: WS.Reputation.1________________________________________________________在电脑上的创建时间 不可用上次使用时间 2012/2/17 ( 12:52:59 )启动项目 否已启动 否________________________________________________________未知诺顿社区中使用此文件的用户数量: 未知____________________________未知此文件版本当前未知。____________________________中此文件具有中等程度风险。____________________________威胁详细信息威胁类型: 智能网络威胁。 很多迹象表明此文件不可信任,不安全________________________________________________________文件操作文件: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\zlib1.dll已删除____________________________文件指纹 – SHA:a25fbe3d11e9a386dd88829d1ef37b7c0b26ce2943b9734b67d7021d2c09d2c1____________________________文件指纹 – MD5:bf9275314e9dd2ef1a65e9240b7b49d7____________________________完整路径: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\libexpat.dll威胁: WS.Reputation.1________________________________________________________在电脑上的创建时间 不可用上次使用时间 2012/2/17 ( 12:55:16 )启动项目 否已启动 否________________________________________________________未知诺顿社区中使用此文件的用户数量: 未知____________________________未知此文件版本当前未知。____________________________中此文件具有中等程度风险。____________________________威胁详细信息威胁类型: 智能网络威胁。 很多迹象表明此文件不可信任,不安全________________________________________________________文件操作文件: c:\program files (x86)\common files\thunder network\tp\ver1\1.1.2.101_1111\libexpat.dll已删除____________________________文件指纹 – SHA:353e7be5cfa58f86d35cd146aef08982a807224ec67c56ab49d5de9a77ef24ed______________

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

Switch to our mobile site