Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Extending My.Application and My.Computer

Extending existing members such as Application and Computer is straightforward because both are implemented as partial classes, so you can add your own partial classes without the need of editing auto-generated code. Previous considerations remain unchanged, meaning that your partial classes’ names need to start with My (such as MyApplication and MyComputer) and that both must be enclosed within an explicit declaration of a Namespace My..End Namespace code block. For example, imagine you want to extend My.Application with a method that associates a file extension with your application so that each time you double-click a file with that particular extension it will be opened by your application. Listing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book