Tuesday, September 6, 2011
Wednesday, July 20, 2011
Bipasha's new boy friend
Priyanka Chopra Hot Images
http://images-dev.com/index.php/category/bollywood/priyanka-chopra/
http://tinyurl.com/3u4buzp
Happy Birthday to Priyanka Chopra
Priyanka Chopra Hot Images
http://images-dev.com/index.php/category/bollywood/priyanka-chopra/
http://tinyurl.com/3u4buzp
Thursday, January 7, 2010
How to create web browser using .NET
Open Visual Studio .NET, and click New Project. Then type in a name and location for your project.
Select the Visual Basic Windows application or Visual C# Windows application, depending on which language you wish to develop in.
When the form appears, right-click on the toolbox and select Customize Toolbox (Visual Studio .NET 2002) or Add/Remove Items (Visual Studio .NET 2003). Then select Microsoft Web Browser from the dialog box, and press OK.
Drag the Explorer icon onto the form, and then drag a button and textbox onto the form.
The next step is to set the properties of all the user interface elements. Right-click on the button and select the Properties option. You will see the Properties snap-in window appearing. Scroll up to the top of this window, and click on the property labeled (Name). Enter in the new name,
btnBrowse,Similarly, name the textbox tbURL and the Microsoft Web Browser control webBrowser.
If you double-click on the button, you will see a page of code already written for you. Find the reference to btnBrowse_Click and insert the following code:
VB.NET
Private Sub btnBrowse_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
btnBrowse.Click
webBrowser.Navigate(tbURL.Text)
End Sub
C#
private void btnBrowse_Click(object sender, System.EventArgs
e)
{
object notUsed = null;
webBrowser.Navigate(tbURL.Text,ref notUsed,ref notUsed, ref
notUsed, ref notUsed);
}
Select the Visual Basic Windows application or Visual C# Windows application, depending on which language you wish to develop in.
When the form appears, right-click on the toolbox and select Customize Toolbox (Visual Studio .NET 2002) or Add/Remove Items (Visual Studio .NET 2003). Then select Microsoft Web Browser from the dialog box, and press OK.
Drag the Explorer icon onto the form, and then drag a button and textbox onto the form.
The next step is to set the properties of all the user interface elements. Right-click on the button and select the Properties option. You will see the Properties snap-in window appearing. Scroll up to the top of this window, and click on the property labeled (Name). Enter in the new name,
btnBrowse,Similarly, name the textbox tbURL and the Microsoft Web Browser control webBrowser.
If you double-click on the button, you will see a page of code already written for you. Find the reference to btnBrowse_Click and insert the following code:
VB.NET
Private Sub btnBrowse_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
btnBrowse.Click
webBrowser.Navigate(tbURL.Text)
End Sub
C#
private void btnBrowse_Click(object sender, System.EventArgs
e)
{
object notUsed = null;
webBrowser.Navigate(tbURL.Text,ref notUsed,ref notUsed, ref
notUsed, ref notUsed);
}
Saturday, May 17, 2008
Simple Webservice for C#.Net
Webservices
Definition:
A web service allows a site to expose programmatic functionality via the Internet. Web services can accept messages and optionally return replies to those messages.How to work with Web services in c#?
And click on the web services in this solution then you will get
{ return n1 + n2; }
After that we have to add another new item for our project named webservices.aspx.
In the design window I will take two text boxes , one label and one button . In the button click event i.e., in .cs file we need to write code as like this
{ Service ser = new Service();
lblTotal.Text = ser.add(Convert.ToInt32(TextBox1.Text),Convert.ToInt32(TextBox2.Text)).ToString();
}
And then build the application and run it.
In the output window you will get like this
Thursday, November 1, 2007
Subscribe to:
Comments (Atom)
