Tag Archives: VB.Net

Download: Visual Studio Community 2013– A full featured IDE for FREE


image 

Now you can download Visual Studio Community 2013. It’s a full featured IDE for FREE – Yes, it’s Smile

It contains that all you need. So what it all contains:-

– Designers, editors, debuggers, profilers – all packaged up in a single environment.  
– Code in C++, Python, HTML5, JavaScript, and of course C#, VB, and F#.
– Extensive web support for ASP.NET, Node.js, and JavaScript
– Tools for Apache Cordova and Unity to reach even more platforms

In short, using Visual Studio Community 2013, you can code faster than ever with an advanced code editor and seamless debugging. The power of the cloud, state-of-the-art tools, and agile development services provide you with the most comprehensive free developer offering ever! So you can start coding the app of your dreams for Windows, Android, and iOS using that.

Download: http://go.microsoft.com/fwlink/?LinkId=517284 
Q&A and System requirements: Check out – https://www.visualstudio.com/products/visual-studio-community-vs.aspx and the one I like the below….

image

Start downloading it and make use of it. Happy app building and more with VS Community 2013 & enjoy Winking smile

Book review: Programming Windows Phone 7


Are you the Windows Phone 7 developer or want to know how to create WP7 apps? Then this book is meant for you. To give you a sense of this offering, here is Charles’s Introduction—beneath that you’ll find the ebook’s full Table of Contents:

Introduction

This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. Within the pages that follow, I show you the basics of writing applications for Windows Phone 7 using the C# programming language with the Silverlight and XNA 2D frameworks.

Yes, Programming Windows Phone 7 is truly a free download, but for those readers who still love paper—as I certainly do—this book will also be available (for sale) divided into two fully-indexed print editions: Microsoft Silverlight Programming for Windows Phone 7 and Microsoft XNA Framework Programming for Windows Phone 7. ]

The best thing would be, with the money you’ve saved downloading this book, please buy other books. Despite the plethora of information available online, books are still the best way to learn about programming within a coherent and cohesive tutorial narrative. Every book sale brings a tear of joy to an author’s eye, so please help make them weep overflowing rivers.

In particular, you might want to buy other books to supplement the material in this book. For example, I barely mention Web services in this book, and that’s a serious deficiency because Web services are likely to become increasingly important in Windows Phone 7 applications. My coverage of XNA is limited to 2D graphics and while I hope to add several 3D chapters in the next edition of this book, I don’t really get into the whole Xbox LIVE community aspect of game development. Nor do I discuss any programming tools beyond Visual Studio—not even Expression Blend.

Sections:

This book is divided into three parts. The first part discusses basic concepts of Windows Phone 7 programming using example programs that target both Silverlight and the XNA framework. It is likely that many Windows Phone 7 developers will choose either one platform or the other, but I think it’s important for all developers who have at least a little knowledge of the alternative to their chosen path.

The second part of this book focuses entirely on Silverlight, and the third part on XNA 2D. For your convenience, the chapters in each part build upon previous knowledge in a progressive tutorial narrative, and hence are intended to be read sequentially.

To use this book properly you’ll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com.

PDF Download:BTW, you can download a PDF here (38.6 MB).

Code samples (C#): You can download the ebook’s C# sample code here (5.03 MB).

Code samples (VB.Net): And you can download the sample code in Visual Basic for Chapters 1-18 here (5.21 MB).

Nice way to start with! Wonderful book for the Windows Phone 7 programming!

Coding practices : Outlook automation using VB.Net


You can try when you do programming with VB.Net and Outlook automation:

  • When you start automation code by declaring object variables with a specific object type that represents the top-level object and then declaring any child objects you want to reference.
    Dim olApp  As Outlook.Application

    .csharpcode, .csharpcode pre
    {
    font-size: small;
    color: black;
    font-family: consolas, “Courier New”, courier, monospace;
    background-color: #ffffff;
    /*white-space: pre;*/
    }
    .csharpcode pre { margin: 0em; }
    .csharpcode .rem { color: #008000; }
    .csharpcode .kwrd { color: #0000ff; }
    .csharpcode .str { color: #006080; }
    .csharpcode .op { color: #0000c0; }
    .csharpcode .preproc { color: #cc6633; }
    .csharpcode .asp { background-color: #ffff00; }
    .csharpcode .html { color: #800000; }
    .csharpcode .attr { color: #ff0000; }
    .csharpcode .alt
    {
    background-color: #f4f4f4;
    width: 100%;
    margin: 0em;
    }
    .csharpcode .lnum { color: #606060; }

  • You then create an instance of the top-level object by using the Set statement and the New keyword.
  • Set olApp = New Outlook.Application

    .csharpcode, .csharpcode pre
    {
    font-size: small;
    color: black;
    font-family: consolas, “Courier New”, courier, monospace;
    background-color: #ffffff;
    /*white-space: pre;*/
    }
    .csharpcode pre { margin: 0em; }
    .csharpcode .rem { color: #008000; }
    .csharpcode .kwrd { color: #0000ff; }
    .csharpcode .str { color: #006080; }
    .csharpcode .op { color: #0000c0; }
    .csharpcode .preproc { color: #cc6633; }
    .csharpcode .asp { background-color: #ffff00; }
    .csharpcode .html { color: #800000; }
    .csharpcode .attr { color: #ff0000; }
    .csharpcode .alt
    {
    background-color: #f4f4f4;
    width: 100%;
    margin: 0em;
    }
    .csharpcode .lnum { color: #606060; }

Please note: You need to understand that the New keyword can’t be used to create a new instance of a child object.

  • To create an instance of a child object, use the appropriate method of the parent object along with the Set statement.
  • Set MailMessage = olApp.CreateItem(olMailItem)

    .csharpcode, .csharpcode pre
    {
    font-size: small;
    color: black;
    font-family: consolas, “Courier New”, courier, monospace;
    background-color: #ffffff;
    /*white-space: pre;*/
    }
    .csharpcode pre { margin: 0em; }
    .csharpcode .rem { color: #008000; }
    .csharpcode .kwrd { color: #0000ff; }
    .csharpcode .str { color: #006080; }
    .csharpcode .op { color: #0000c0; }
    .csharpcode .preproc { color: #cc6633; }
    .csharpcode .asp { background-color: #ffff00; }
    .csharpcode .html { color: #800000; }
    .csharpcode .attr { color: #ff0000; }
    .csharpcode .alt
    {
    background-color: #f4f4f4;
    width: 100%;
    margin: 0em;
    }
    .csharpcode .lnum { color: #606060; }

  • At the end of the procedure, each object variable is destroyed by explicitly setting it equal to the Nothing keyword. If you do this, there is no need to use a Set statement to instantiate the object. However, this technique is not recommended because you have no control over when the object variable is created.

  • In detail, if your code must test to see if an object exists by using a statement such as If olApp Is Nothing Then, this test will return True if you have created an instance of the object in the Dim statement. Additionally, you might not need to use an object except at the user’s request.

  • If you create an instance of the object by using New in the Dim statement, the object will be created even if it isn’t used. To maintain control over when an object is created, don’t use the New keyword in the Dim statement, and instantiate the object by using a Set statement at the point in your code where you must use the object.

Part # 1 : Exchange Web Services (EWS) & VB.Net – Creating Calendar (non-Recurrence type)


Hi Peers,

I have include the part 1 of Exchange Web Services & VB.Net. Earlier my couple of VB developer customers were looking for relevant VB.Net related articles and found very few. Keeping in that mind, i have created this EWS_VB.net_Calendar thread to start with.

In this session we will going to see how we can create the Calendar using Exchange Web Services (EWS). I tried to provide things as simpler as i can…

I would appreciate to know if you have any suggestions/clarifications regarding this…

 

Step 1: Create Exchange Service Binding

'Create Exchange Service Binding
Dim esb As New ExchangeServiceBinding()
'Provide the NetworkCredential
esb.Credentials = New NetworkCredential("username", "password", "domain")
'Provide the URL
esb.Url = https://Fully qualified domain/ews/exchange.asmx.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }



Step 2: Create Calendar

' Create the appointment.
Dim appointment As New CalendarItemType()



Step 3: Set the properties of the appointment

' Set the properties of the appointment.
appointment.Start = "2/24/2009 12:30:00PM"
appointment.StartSpecified = True
appointment.[End] = "2/24/2009 1:30:00PM"
appointment.EndSpecified = True
appointment.Subject = "Planning meeting by Deva"
appointment.Location = "Building 3, Room 311"
appointment.Body = New BodyType()
appointment.Body.BodyType1 = BodyTypeType.Text
appointment.Body.Value = "Plan the department party."

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Step 4: Add the required attendees

' Add required attendees.
appointment.RequiredAttendees = New AttendeeType(1) {}
appointment.RequiredAttendees(0) = New AttendeeType()
appointment.RequiredAttendees(0).Mailbox = New EmailAddressType()
appointment.RequiredAttendees(0).Mailbox.EmailAddress = "chris@contoso.com"

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Step 5: Create the array of items that will contain the appointment

' Create the array of items that will contain the appointment.
Dim arrayOfItems As New NonEmptyArrayOfAllItemsType()
arrayOfItems.Items = New ItemType(1) {}
 
' Add the appointment to the array of items.
arrayOfItems.Items(0) = appointment
 
' Create the CreateItem request.
Dim createRequest As New CreateItemType()
 
'The SendMeetingInvitations attribute is required for calendar items.
createRequest.SendMeetingInvitations = CalendarItemCreateOrDeleteOperationType.SendToAllAndSaveCopy
createRequest.SendMeetingInvitationsSpecified = True
 
'Add the destination folder(calendar) to the CreateItem request.
createRequest.SavedItemFolderId = New TargetFolderIdType()
Dim dfCalendarFolder As DistinguishedFolderIdType = New DistinguishedFolderIdType()
dfCalendarFolder.Id = DistinguishedFolderIdNameType.calendar
createRequest.SavedItemFolderId.Item = dfCalendarFolder

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }



Step 6: Add the items to CreateItem request

' Add the items to the CreateItem request.
createRequest.Items = arrayOfItems
 

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Step 7: Create the appointment by calling the CreateItem method & Check the result

' Create the appointment by calling the CreateItem method, which has the side effect of sending invitations to attendees.
Dim createResponse As CreateItemResponseType = esb.CreateItem(createRequest)
 
' Check the result.
If createResponse.ResponseMessages.Items(0).ResponseClass <> ResponseClassType.Success Then
     Throw New Exception("SendAppointment failed.")
Else
            Console.WriteLine("Calendar Item Created")
End If

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }



Step 8: Result

image