You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 {Visual C++} Web on Thu Nov 11, 2010 9:26 pm

des

avatar
Achiever
Loading
Let's start.

1. Create a new Windows Application.



2. Now add a Panel and Dock it to the top. (For the Address Bar and GO Button)

3. Now add web browser control from the toolbox.

4. Add the label, textbox and button on the panel.


5. Now the basic structure is ready, its time for the real action.

Double click on the Button to generate a event handler and type the following code

private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(textBox1.Text);
}

6. Now, just build your solution and type any website name in the address bar and click on go button.

Note: The website address should be in the format [You must be registered and logged in to see this link.]


Extra Features
you can add several extra features to the Windows form that you have created..

Status Strip
Menu Strip

Accept Button (to generate the event when user hits ENTER in the address bar)


All Images were from someone else.
If this helped you get a start on Visual C++, +rep

2 Re: {Visual C++} Web on Sun Jan 09, 2011 9:02 pm

OwenWilson

avatar
Master
Loading
oh huh, thanks Smile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Related topics

Permissions in this forum:
You cannot reply to topics in this forum