Tag | VB.NET Posts

I have blogged about how you can use WebAPI 2 hosted on OWIN with legacy applications. Visit the link below for more information. http://blogs.msdn.com/b/afr... Technorati Tags: WebAPI,AfricaApps,OWIN,JSON... ...
If you’re familiar with NetSqlAzMan or CanCan, you know that checking permissions based on a user’s activities is easier to manage and more flexible that working with the roles a user is in. Whatever method you take to add activity based authorization, if you are working in MVC you will run into the issue that AuthorizeAttribute only cares about Users and Roles. The good news is that you can inherit from AuthorizeAttribute and easily adapt it to account for activity-based authorization. If you didn’t ...
Today's 50% off Deal of the Day from O'Reilly is Developer's Guide to Collections in Microsoft® .NET "Put .NET collections to work—and manage issues with GUI data binding, threading, data querying, and storage. Led by a data collection expert, you'll gain task-oriented guidance, exercises, and extensive code samples to tackle common problems and improve application performance. This one-stop reference is designed for experienced Microsoft Visual Basic® and C# developers—whether you’re already using ...
Version 3.2.7.230 has been released at www.campwoodsw.com/sourcemo... Monitor is a very useful programme for statisticly analysing a variety of source codes VB.NET / C# and so on. Historical trends can be monitored. On the project I have just finished, when I started there were ~100,000 lines of code and when I handed it over to my sucessor there were some 275,000 lines of code. It provides a simple way of identifying areas of high code complexity.Source monitor is free to use even ...
Today's $10 Deal of the day from APress at http://www.apress.com/97814... is Design Driven Testing"Design Driven Testing brings sanity back to software development by restoring the concept of using testing to verify a design instead of pretending that unit tests are a replacement for design" This is a book that all J*** developers should read from cover to cover. I look forward to C# and VB.NET versions. There is a tendency in software development to go to extremes. This book helps to correct ...
I have just published a new open source project called WinGrep at http://wingrep.codeplex.com/

WinGrep is a WinForms utility for searching through text files such as VB6, VB.NET or C# code for a designed string. There is a facility to ignore WinForms designer files.
I work as a Tech Lead/Web Developer, focusing mainly in ASP.NET technologies. My exploration into programming began at the age of 15;Turbo PASCAL, C, C++, JAVA, VB6,Flash and a variety of other equally obscure acronyms, mainly as a hobby. After several detours, I am here today on the VB.NET to C# channel. I now work on ASP.NET+C#+MSSQL+EF+LINQ+AJ... which go together like coffee crumble ice cream. I am a Microsoft ASP.NET MVP since 2009, Microsoft Influencer and a regular ...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive ...
Today's $10 Deal of the day from APress at http://www.apress.com/97814... is Beginning ASP.NET 4 in VB 2010"The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 4 in VB 2010 guides you through Microsoft's latest technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and assumes only the most basic knowledge of Visual Basic." I recommend this book to all VB.NET developers ...
Today's $10 Deal of the day from APress at http://www.apress.com/97815... is Dan Appleman's "Moving to VB .NET Strategies, Concepts, and Code"."Visual Basic guru Dan Appleman exposes the reality behind the VB .NET hype, and shows you how to evaluate this technology in the context of your specific problems."Considering the vast amount of VB6 still in use, this book from 2001 will be of immense help to all tasked with converting Vb6 to VB.NET or C# ...
At http://weblogs.asp.net/scot... Scott Guthrie talks about data binding is ASP.NET 4.5.There is a key statement "Because our GetProducts() method is returning an IQueryable<Product>, users can easily page and sort through the data within our GridView. Only the 10 rows that are visible on any given page are returned from the database."Consider paging through a large dataset, this is going to give ...
At http://blogs.msdn.com/b/som... Somasegar has discussed the next version of Visual Studio - Visual Studio 11.Have a read -Visual Studio 11 looks to be awesome!Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
The code is well illustrated by diagrams. The approach is practical. The code is well commented, however the C# code samples would be better had they been fully Style Cop compliant. I am looking forward to reviewing the rest of this excellent book. I recommend this book to all C# and VB.NET Development teams. I concur with the author who states that the book is not for learning C# or VB.NET. It is an excellent book for C# or VB.NET developers to extend their knowledge of the Dot Net framework. To ...
Today's$10 Deal of the Day from APress at http://www.apress.com/97814... is "Beginning GIMP". "In this fully-updated second edition, author and long-time member of the GIMP community Akkana Peck introduces the GIMP and shows you everything about it that you'll want to know—including how to prepare images for display on web pages, touch up digital photos, tap into powerful filters, effects, and plug-ins, and automate tasks using scripts." For those of you unfamilar with GIMP it is the GNU Image ...
O'Reilly are offering a series of good offers through to Jan 19, 2012. The main page is at http://shop.oreilly.com/cat... Already available are: JavaScript path to Mastery set at http://shop.oreilly.com/cat... I recommend JavaScript: The Definitive Guide, 6th Edition- PDF is 50% off at http://shop.oreilly.com/pro... HTML 5 Programming set at http://shop.oreilly.com/cat... Again the PDF's are 50% off. Can't ...
Today's $10 Deal of the day from Apress at http://www.apress.com/97814... is Accelerated C# 2010 "C# 2010 offers powerful new features, and this book is the fastest path to mastering them—and the rest of C#—for both experienced C# programmers moving to C# 2010 and programmers moving to C# from another object-oriented language. " I cannot improve on the description on thew APress web site: "If you're an experienced C# programmer, you need to understand how C# has changed with C# 2010. If you're ...
In trying to comparing complex objects to confirm a unit test, I thought rather than going through the hassle of trying to implement IComparable or overriding .Equals that perhaps reflection would be a better means. A quick google search turned up some useful code that compares via reflection. This was close to what I wanted but I thought it’d be better to have it available as an extension method and I needed it in vb.net (excuse the horror) so this is what I came up with: <System.Runtime.Compiler... ...
In SQL Server 2008 you can use table valued parameters which can be pretty useful. In the example I use a very simple one to overcome SQL Server’s lack of having a parameter as an array. The example goes through creating the new type, using it in a stored procedure and calling it from an application (VB.Net in this example). You start off with creating the new type. Under Programmability/Types/User-... Table Types create a new table. Here I created a table with a single column to hold an integer. ...
Today's 50% off deal from O'Reilly at http://shop.oreilly.com/pro... is Coding Faster: Getting More Productive with Microsoft® Visual Studio® "Expert advice to help you work smarter and increase your productivity with Visual Studio. Take a detailed look into Visual Studio—and learn practical techniques to help you work more efficiently. This fully revised and expanded version of Visual Studio Tips: 251 Ways to Improve Your Productivity includes a comprehensive collection of tips ...
Recently I heard from a reader of the blog about an alternative to GhostDoc - the Atomineer Utils Addin at http://www.atomineerutils.com/ Besides working with C# and Vb.NET it does also handle C++ and J***. Should you be a J*** fan then this could be a very useful utility. There is a feature comparison with respect to ghostDoc at http://www.atomineerutils.c... There is a 30-day evaluation available at http://www.atomineerutils.c... The single-user license of $9.99 and the annual ...
Unlike the release of VB.NET with .NET 4.0, the next release of VB.NET doesn’t have the anything like as many new features, which is almost certainly because the language is really maturing and a lot more parity has been achieved between C# and VB.NET. Async The big new feature for both languages is the introduction of the await/async keywords. I won’t go into detail here because they are covered in lots of other places (including the VB.NET team blog). Yield One if the freebees we get because of ...
OpenXML SDK 2.0: Export a DataTable to Excel Very good article and download project http://lateral8.com/article... The DocumentFormat.OpenXml.dll is registered in the GAC when the SDK is installed so it doesn't physically copy it to your project's output folder by default when you build the application. If you select the option to Show All Files in Visual Studio (Project | Show All Files), you'll see a References node appear in your VB.NET project ...
At http://devcheatsheet.com/ there is a comprehensive list of cheat sheets. Of particular note are: http://devcheatsheet.com/ta... SQL Injection! http://devcheatsheet.com/ta... ReSharper Cheat Sheets https://www.owasp.org/index... OWASP's SQL Inject Sheet Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
Learn .NET, C#, VB, ASP NET and more! Click the link below to get started today on your path to learning .NET! Save 30% at LearnVisualStudio.NET Today http://www.learnvisualstudi... Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
Today's $10 Deal of the day from Apress at http://www.apress.com/97814... is Beginning ASP.NET 4 in VB 2010 "The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 4 in VB 2010 guides you through Microsoft's latest technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and assumes only the most basic knowledge of Visual Basic. " Can't code withoutInstant VB.NET code generation in Microsoft ...
At http://john-sheehan.com/blo... is an excellant compendium of cheat sheets. Proud user ofInstant C# and VB.NET code generation in Microsoft Visual Studio ...
There is a misunderstanding about SQL Injection attack in that some people think that that is is restricted to Microsoft. Here is a case where it happened on a PHP system. see http://www.securityfocus.co... Proud fan ofThe best C# & VB.NET refactoring plugin for Visual Studio ...
The origin of the following is now lost in the mists of time but it bears repeating. A big party is being held to honor relational database systems & their impact on the modern society. Outside the venue, the host awaits the guests. The first limousine arrives and out steps Oracle followed by 4 people Host: Who have you brought along? Oracle: I have 4 DBA’s in tow. One to install me, one to design the databases, one to administer me and the other to justify the cost. A second limo arrives and ...
When working on Web Forms and Windows forms, it is useful to be able to measure height and width on the screen. I have used Iconico ruler before and it is a very useful gadget. Download it from http://www.arulerforwindows... Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
Next Tuesday Microsoft will release patches to fix 22 vulnerabilities in Internet Explorer, Windows, Visio and Visual Studio. Be prepared to patch your PCs. Details are at: http://www.microsoft.com/te... http://www.computerworld.co... Passionate aboutInstant C# and VB.NET code generation in Microsoft Visual Studio ...
The IE6 Countdown continues - two more Countries (Sweden and Denmark) are now below 1%! I congratulate the users in these countries for upgrading their browsers. I note that the Czech Republic and Poland are now at the 1% level. Soon they too will have consigned IE6 the the Museum! So what are you doing to encourage your clients and your friends to upgrade to a more up to date browser? Can't code withoutInstant C# and VB.NET code generation in Microsoft Visual Studio ...
Recently I was working on a project where I needed to implement mapping functionality - I am not new to mapping technology, as a matter fact, a few years back I created my own Winform mapping control which interfaced with yahoo and ArcGIS maps which works great in some of my apps, however, I was looking for something more and didn’t want to re-invent the wheel – so to speak. I stumbled upon GMap.NET and as one user put it, “Absolutely fantastic piece of work”. The only thing lacking is proper documentation. ...
This is a very through book about Dot Net that I have completed reviewing. I commend it to all C# development teams and to individual developers with at least a year's worth of C# experiance. The only drawback is that there should be a VB.NET equivalent book for the benefit of the many programming shops that have chosen VB.NET. For further details about the book see: http://oreilly.com/catalog/... One very interesting thing I found (on page 835) was that the C# lock keyword can give rise ...
As of today, the official release of Lightswitch is now available. Visit: http://www.microsoft.com/vi... or you can download from your MSDN subscription. What is Lightswitch? It is basically a simple to use application generator that can be used to build applications within minutes in many cases. If you have an existing, well structured (primary keys, relationships) SQL Server database you are just a few clicks away from an administration tool and well on the way to a full ...
Further to the discussions at http://stylecop.codeplex.co... and http://devnet.jetbrains.net... please will everybody who values the Stylecop/Resharper integration, post at http://devnet.jetbrains.net... a request to the Jetbrains team that they expedite the production of the updated API for ReSharper 6. Passionate aboutAutomated C# & VB.NET code formatting and sharing code styles in your team ...
Setting up formatting when using a XmlWriter is pretty easy. Declare a XmlWriterSettings variable and set the formatting options you want. The two main items are for indenting and new lines. You add the XmlWriterSettings variable as the second parameter in the XmlWriter.Create function. VB.Net Example Dim mySettings As New XmlWriterSettings() mySettings.Indent = True mySettings.NewLineOnAttributes = True Using writer As XmlWriter = XmlWriter.Create("c:\test.x... settings) C# Example XmlWriterSettings ...
Yesterday I received an email from Jetbrains to notify me of the release of ReSharper 6. Highlights of ReSharper 6 include: Rich support for JavaScript, CSS, HTML, and ASP.NET MVC 3 (Razor) Bundled assembly decompiler New navigation actions and valuable additions to existing navigation features Code inspections and quick-fixes for code quality analysis in VB.NET code Multiple new code inspections and quick-fixes for C# Improved refactorings and context actions, including those helping convert LINQ ...
Stylecop 4.5.20.0 is available is available at http://stylecop.codeplex.co... This is the StyleCop 4.5 RC8. "This release includes the very latest StyleCop for ReSharper plugin and will automatically uninstall previous versions of StyleCop. This updated release contains around 200 bug fixes since the 4.4 RTW release and includes 5 new rules. Support for the async CTP is also added. SA1125 - UseShorthandForNullableTypes SA1411 - AttributeConstructorMustNot... ...
Sometimes you need to access a control within a GridView, but it isn’t quite as straight forward as just using FindControl to grab the control like you can in a FormView. Since the GridView builds multiple rows the key is to specify the row. In this example there is a GridView with a control for a player’s errors. If the errors is greater than 9 the GridView should display the control (lblErrors) in red so it stands out. Here is the GridView: <asp:GridView ID="gvFielding" runat="server" DataSourceID="sqlFielding" ...
When we build an application that will be deployed on Windows Azure, one thing we should keep in mind is that the assemblies installed on the virtual machines on Windows Azure are very limited. It only contains the default assemblies in .NET 3.5 SP1 and .NET 4.0. For those references not included on Windows Azure, we should set their Copy Local = True. As the image shown above I set the unity reference as Copy Local = True as I pretty know that in Windows Azure the assemblies of Enterprise Library ...
Today's OReilly Deal of the Day at http://oreilly.com/ is CLR via C# price $23.99 I am currently reading CLR via C# ISBN 978-0-7356-2704-8. Whilst quite correctly described by the publisher as a "Deep Dive", this is a book that C# developers with 6-18 months plus experiance ought to read. Certainly any serious Microsoft programming shop ought to have a copy. Even our experianced VB.NET bretheren will benefit from reading this book. When I started programming 31 years ago I went through IBM 360 Orientation ...
Save 30% at LearnVisualStudio.NET http://www.learnvisualstudi... Learn Visual Studio have just added dozens of new Silverlight 4.0 videos to their collection and will continue adding new Silverlight videos as well as new ASP.NET 4.0 videos throughout June and July! Get immediate access to all of these videos and over 1,000 video tutorials in our collection on ASP.NET, C#, VB.NET and more! Get started for as little as $48.97 for a 1 Year Subscription! You can ...
I am astounded - Visual Basic is 20 years old! I have been using it since VB3 but am now bi-lingual C# and VB.NET. I am very pleased regarding the news that the next version of VB.NET will be written in VB.NET. This will put alongside languages such as Assembler, C, C++ and C# where the compiler can compile itself. Read about it at http://blogs.msdn.com/b/vbt... ...
If nobody else but me reads this that is OK, this is just something I forget from time to time when working in VB.Net. To short circuit an expression the && or || operators in many other languages are AndAlso or OrElse in VB.Net. Two really simple examples: If a > b AndAlso a < c Then If a > b OrElse a > c Then Technorati Tags: VB.Net ...
For a long I have been aware that Java has appeal that is greater than is justified. I found the article entitled "Any program that could be well-written in Java would be better written in C++. ", to be very interesting. I suggest that there is an extension to the article whereby any application that could be written in Java, C++, C# or VB.NET would be better written in C# or VB.NET. There are most certainly items such as device drivers that have to be written in C++. The article at doscientist.com/it-never-ma... ...
I am in the midst of style-copping the Irony project for possible use for a VB.NET parsing for StyleCop. I have GhostDoc Pro and a licence for ReSharper. When I first un-zipped Irony, I compiled it and then run the unit tests - all pased. I then started the style-cop process. The first step was to put in a Style-Cop compatible copyright header. Initially there were so many style issues that Stylecop stopped after its self-imposed 1000 issue limit. To get round this, StyleCop is run either per file ...
There has been discussion within the StyleCop project at http://stylecop.codeplex.co... of extending it to check VB.NET as well as C#. If you are VB.NET developer who is aware of the benefits of using StyleCop then I suggest you respond positively to the thread at http://stylecop.codeplex.co... If you have suggestions as to a coding standard for VB.NET to implement, then please post a link to it on that thread. I would however suggest that you confine your suggestions ...
Fellow Techies of the world.. Welcome! In this obligatory first post I want to just tell you a little about myself and what I intend to do with this blog. I’ve worked in fits and starts on a tech blog before so I’m happy to be a part of the GeeksWithBlogs community now and make it my new home. Let’s begin at the beginning… Sometime back in 1995 my dad (who has worked with computer pretty much since there have been computers) brought home 2 books. Visual Basic 4 and Visual C++ 4 (For Beginners). I ...
Over the last few days I’ve been coding away with several ORMS and code generators trying to find me one which I am comfortable with. Here is what I learn Not all ORMs are perfect! SubSonic Telerik OpenAccess nHibernate via Code smith Generator and LLBLGen LLBLGen Pro Framework SubSonic This is an awesome piece of work my Mr. Conery (and team)…for FREE! I’ve been using this for quite a while now. It is excellent for small projects, both Web and Winform apps. It’s a breeze to setup and get off and ...
For anybody who might have missed the news, XNA is coming to Visual Basic. I’ll admit that my first reaction was to groan and grumble and mumble. But this is actually a very good thing. While nothing’s ever certain, the fact that Microsoft has spent time making Visual Basic a supported language in XNA Game Studio is a further sign of Microsoft’s long-term commitment to XNA. (Note that VB.NET with XNA is not an immediately available thing; it’s still a few months off as the original blog post notes). ...