Enjoy with new release of Visual Studio and SQL SERVER :)

Dear All,

Although, I am bit late to share this information and might be possible most of you people aware of this.Recently Microsoft released Visual Studio 2015

and SQL SERVER 2016 CTP. Not needed to say that there are various awesome features in both build.

You can download latest Visual Studio 2015 from below link

https://www.visualstudio.com/downloads/download-visual-studio-vs

and SQL SERVER 2016 CTP from below link

https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2016 

In future post you will be find tips & tricks related to SQL SERVER 2016 & Visual Studio 2015.

Enjoy Learning !!!

Thanks

RJ

A new milestone 125th post on Indiandotnet.wordpress.com so far so good

Dear Friends,
This post is different post from my regular technical articles and it is my 125th post on Indiandotnet.wordpress.com.

I would like to thank all of my friends, family members, colleges & most valuable the reader of this blog who continuously giving feedback and improving my skill also.
So thank you very very much.
Keep reading, Keep commenting, and keep giving feedback.
I need more improvement and I know you people will help me in sharing my thoughts.
God bless you all.


Happy Holidays.


Merry Christmas.
Thanks
Rajat Jaiswal

Project List on which we will work in future

Dear Friends,

 Merry Christmas!

I Hope you are enjoying  the holidays.

 After seeing the market trend and requirements I am interested in making following projects which will help me and other friends to understand basic project development and use latest technologies with some productive output.

 In coming up sessions i am going to use this project topic and create sample with latest technologies like Silverlight, Windows phone 7, VS 2010 etc.

 So here we go

 1) College Management

 2) School Management

3) Job Portal

 4) Forums

5) Blog

6) Employee Management

7) Bug Tracker

8) Time Sheet

9) Address Book

10) Project Management

11) Survey engine

 12) Stock Manager

13) Property Broker

14) Shop Management

15) Matrimonial

 16) Social Networking

17) Hotel Management

 18) Inventory Management

19) Accounting

20) Transport Management

21) Hospital Management

22) Ecommerce

Etc are the project list on which I will work in future to enhance my knowledge with productive work.

I will share code base and case study also in future

Hope you like it Once again wish you Merry Christmas.

 Thanks

 Rajat Jaiswal



Simple web Browser with Animation using WPF

Dear Friends,
How are you ?
Today we will create a simplest web browser in WPF with some basic animation handling.
To do this task we have a simple control which is webBrowser control.
We need to just drag & drop webBrowser control and design the screen as you need just check out below fig.

once you done with the design.
Then to open a web page in browser control you need navigate method provided by webbrowser control.
The navigate method has string, uri parameter so you can utilize that according to your need.
Just check out below code.

The browser control also maintain forward , back history which we can utilize according to our need. Please see below code for that.

We can very much customize the web browser like block particular URL , bookmark etc.
Now you are just wondering that what is animation here ? so I would like to say that WPF give us tremendous opportunity for eye catching look and animation.
It give approx. 32 different animation object which is helpful in different scenario. All are available with name space “System.Windows.Media.Animation
”. Here I am with One of the simplest object which is double Animation.
The double animation is just basic animation control which can be utilize for animation you can do it with either XAML or code.
Here I am giving example of code.
So check out below code.
Dim da As New DoubleAnimation()
da.From = 30
da.To = 300
da.Duration = New Duration(TimeSpan.FromSeconds(1))
Me.wbctrl.BeginAnimation(WebBrowser.HeightProperty, da)
da.AutoReverse = True
da.RepeatBehavior = RepeatBehavior.Forever

Here wbctrl is webBrowser control . The double animation has duration property for how much time it will take. It has auto reverse property to
In the above code we using height property animation . just see below line
Me.wbctrl.BeginAnimation(WebBrowser.HeightProperty,da)

In similar manner you can go for width , position , opacity etc.
For more detail information please download attached code at

Enjoy coding.
Thanks
Rajat jaiswal

Simple Game With WPF

Hello Friends,
As we know WPF is mainly related with designing stuff. So I just tried to utilize basic designing stuff and try to make a simple game which is Tic-Tac-To.
Right now the game use simple but attractive graphics (as you know I am not a good designer).
Later on we will make it more attractive using images.
You can download source code from Download Link

Till than b bye.
Enjoy Tic-Tac-To game. 🙂
Thanks
Rajat

Play Music with WPF

Hello friends,
Today I am coming with another passion after computer. “Music” is part of my life if it’s not in my life than I don’t know what happened to me. So I am dedicating this small creation to my musical friends who helps, enjoy music. Here I am with solution how to play synthesizer by WPF application.
I choose WPF here just because it’s very much attractive and I seem its give emphatic vision to my program, so friends its very simple and attractive task. We have to go in 3 simple steps.
Step1:- Design a WPF page with buttons as shown below fig.

Step2:- Download notes wav file (Sa,Re,Ga,Ma, Pa’s wav file) and include in your project.
Step3:- Now play music on key press and button click event as shown below
Dim btn As Button = CType(sender, Button)
Dim player As New SoundPlayer

Dim strPath As String = Configuration.ConfigurationManager.AppSettings(“path”).ToString()
Select Case btn.Name
Case “btnA”
player.SoundLocation = strPath & “\a.wav”
Case “btnB”
player.SoundLocation = strPath & “\b.wav”
Case “btnC”
player.SoundLocation = strPath & “\c.wav”
Case “btnD”
player.SoundLocation = strPath & “\d.wav”
Case “btnE”
player.SoundLocation = strPath & “\e.wav”
Case “btnF”
player.SoundLocation = strPath & “\f.wav”
Case “btnG”
player.SoundLocation = strPath & “\g.wav”
Case “btnH”
player.SoundLocation = strPath & “\gg.wav”
End Select
player.Play()
player.Dispose()
You can download the source code from Download link

I hope you all are musical lover and use it enhance it and more over send me updated version 
Enjoy music with dot net.
Thanks
Rajat Jaiswal

integrate twitter with asp.net in 3 easy steps.

Hello friends,
Here I am with new and very interesting topic which is how to integrate twitter with your application and more over the application is in WPF (windows application).

To integrate Twitter we have Twitterizer.Framework.dll
Which you can download from http://code.google.com/p/twitterizer/

Once you download that just copy Twitterizer.Framework.dll and past in your project’s bin folder.
After this set reference of twitterizer.FrameWork.dll in your project.
Once you done with this now everything will go smooth now.
To connect with Twitter you have to write following code.
Private pvt_Twt As Twitter
pvt_Twt = New Twitter(Me.txtName.Text, Me.txtPassword.Password)
Once you done with this and if any error does not come means you won half battle.
Now you have to play with above object.
Suppose you want to set new status on your twitter then. You have to write following code.
Me.pvt_Twt.Status.Update(Me.txtStatus.Text)


Now suppose you want to know information about your friends and no. of follower to them
Then you have to write following code.
Dim twfriends As TwitterUserCollection = Me.pvt_Twt.User.Friends()
Dim str As New System.Text.StringBuilder
For Each TwitterUser As Twitterizer.Framework.TwitterUser In twfriends
str.Append(“ScreenName : ” & TwitterUser.ScreenName.ToString() & vbCrLf)
str.Append(“No of Followers: ” & TwitterUser.NumberOfFollowers.ToString() & vbCrLf)
str.Append(“———————————————————–” + vbCrLf)
Next
Me.txtQuery.Text = str.ToString()

Now suppose if you want to see all status then you have to write following code
Dim twStatusCollection As New Twitterizer.Framework.TwitterStatusCollection
twStatusCollection = Me.pvt_Twt.Status.UserTimeline()
Dim str As New System.Text.StringBuilder
For Each tws As TwitterStatus In twStatusCollection
str.Append(“status: ” & tws.Text & “Created” & tws.Created.ToString() & vbCrLf)
str.Append(“User :” & tws.TwitterUser.ScreenName.ToString() + vbCrLf)
str.Append(“—————————————————–” + vbCrLf)
Next
Me.txtQuery.Text = str.ToString()

This just a sample which I tired more over you can sent direct message to user.
Delete any status. Delete and friend, with this DLL.
For learning purpose I used it and enjoyed a lot .I hope you like it and dig more to enjoy facility of twitterizer.framework.dll.
More over you can download the code from
Download link

Thanks
Rajat

Some useful Terminology (acronyms)

Hello friends,
Cheers!
Here I am with some useful terminology and these acronyms are generally used now days in broad way take a look.
1) ESB : Enterprise Service Bus
2) POX : Plain OLD XML
3) REST: Representational State Transfer
4) SOAP: Simple Object Access Protocol
5) RIA : Rich Internet Application
6) XML : Extensible Markup Language
7) JASON: Java Script Object Notation
8) DOM : Document Object Modeling
9) XAML : Extensible Application Markup Language
10) LINQ : Language Integrated Query
11) RSS: Really Simple Syndication
12) WCF: Windows Communication Foundation
13) WF: Windows Foundation
14) WPF: Windows Presentation Foundation
15) AJAX: Asynchronous Java script and XML
16) XLST: Extensible Style Sheet Language Transformation
17) INDIGO: Code name of Microsoft windows Communication foundation Technology
18) OSLO: Code name of Microsoft Modeling Technology
19) SOA: Service Oriented Architecture
20) ORCAS: dot net 3.5 Version called ORCAS
21) AVALON: code name of Microsoft Windows Presentation foundation Technology
22) Azure: Microsoft new Operation system Related to Cloud computing
23) Astoria : Code name of Ado.net Data services

I hope you people like it.
Enjoy life with dot net.

Your host
Rajat Jaiswal

WPF Windows Persentaion Foundation with me PART- II

Hello friends,
In this session we are going to take a look how do we connect a silver light application with database.
So here I would like to say that there are basically 4 options by which you can handle database in silver light application.
1) WCF for Silver light
2) Ado.net Data Services
3) Web services
4) RIA Services (need to explore more)

Here I will explain how to connect your WPF Silver light application with database using well know Web service.
It’s easy and I think we all already work on some part of Web services.

So let’s start with it.
We have added a silver light navigation project. In navigation silver light project part we have added 2 new pages employee, register page.
Employee page is for show employee list,And register page is for register employee.


Just see project structure as below.

projectPhoto

And In web part we have added a new web service with name my services.
Whose functionality to save, updates, Delete, and read all employee record.
As shown in below fig.

MyWebService

Now our next step is how to integrate this web service with silver light.
For this we add a services reference in our navigation project with the help of Add services reference menu as shown below.

AddServices

Now you can rename name space according to your choice.

If you do not get any error in referencing then till now you are ok with your work.
Now our next step is calling web method in our pages.
Here I am taking first page which is employee list
We are calling web method which returns all employee lists so here we go.

Private Sub EmployeePage_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Try
Dim myBinding As New ServiceModel.BasicHttpBinding()
Dim myEndPoint As New ServiceModel.EndpointAddress(New Uri(“http://localhost/MyTest/MyWebService.asmx”, UriKind.Absolute))
Dim proxy As New MyWebServiceSoapClient(myBinding, myEndPoint)
proxy.pub_ReadAllDataAsync()
AddHandler proxy.pub_ReadAllDataCompleted, AddressOf proxy_ReadAllEmployeeCompleted

Catch ex As Exception

End Try
End Sub

Private Sub proxy_ReadAllEmployeeCompleted(ByVal sender As Object, ByVal e As myService.pub_ReadAllDataCompletedEventArgs)
Try
Me.myGrid.ItemsSource = e.Result
Catch ex As Exception
Me.HeaderText.Text = ex.InnerException.Message.ToString
End Try
End Sub

Now things to remember here
1) Dim myBinding As New ServiceModel.BasicHttpBinding()
Its shows the binding is http binding
2) Dim myEndPoint As New ServiceModel.EndpointAddress(New Uri(“http://localhost/MyTest/MyWebService.asmx”, UriKind.Absolute))
Here the path can be absolute or relative.

3) Next you have to call web method like we have call here proxy.pub_ReadAllDataAsync()
4) once we have call the method asyncronously then we have to make a event handler like we have create here

AddHandler proxy.pub_ReadAllDataCompleted, AddressOf proxy_ReadAllEmployeeCompleted

5) when the asyncronous method is complete we have to take result complete argument and covert according to our requirement.
I have just bind the result to datagrid and get below screen.
Just see below.

employeeList

So friends in this way we can call web service in a Silverlight application.

Still we can use DataServices, RIA services, and WCF services for data manipulation application.

Hope in next few chapter we will take this example and work on it.

That’s all friends, thanks for reading the article.

Happy programming!

Thanks
Rajat