vb.net 2005 enhancement and Modern Software Development WebCast Series

http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/html/vbnet2005_preview.asp

My

For example, to play an audio file in Visual Basic 2005, rather than using DirectX or Win32 API calls, you could write this simple single line of code:

My.Computer.Audio.Play("C:/Beep.wav") 

The My also adds functionality that returns many of the RAD features of Visual Basic 6 to the .NET development platform. For example, Visual Basic developers historically accessed forms by name, relying on the runtime engine to maintain a collection of all the available form classes. Using the new My.Forms object, developers can write code to open and interact with an instance of a form class created as part of a solution, like the following:

My.Forms.HelpForm.Show() 

In addition, My supplies functionality that otherwise requires substantial code. For example, the following code demonstrates how you can use a single line of code to ping a computer:

If My.Computer.Network.Ping("http://www.microsoft.com") Then MessageBox.Show("Microsoft's site is available.") End If 

Edit and Continue

Quick development turnaround time has always been the hallmark of developing in Visual Basic, and programmers

who miss the edit and continue feature in Visual Basic 6 can rejoice—it's back! In Visual Basic 2005,

you can make changes to your code during debugging, back up the code instruction pointer if you want,

and re-execute lines of code with the modified content. While in Break mode, you can modify code or fix bugs;

almost any code modification will work. (Of course, some modifications force you to switch back to design mode

and rebuild the project and there's no way around it.) This change for Visual Studio 2005 has huge numbers of

Visual Basic developers cheering!

 

Modern Software Development

http://msdn.microsoft.com/vbasic/community/webcasts/modern/default.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值