473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Linked lists?

Hi, I have a couple of questions that I hope someone can help me with. I'm
pretty new to c# and have been able to use C# Express pretty well (it's a
great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open windows
in a new tab page when requested. Now, I know how to create the tab pages
and the web browser controls in code, but I'm not sure of the best way to do
it. How would I store/create/delete each tab along with the web browser
control which is on that tab? I hope I am explaining this correctly. If
not please ask more questions...

2. The web browser has an event which is fired when the user right clicks
on the control and selects "Open in new window". The only problem is that I
can cancel the event using "e.Cancel = true;", which stops the opening of a
new browser window, but I cannot seem to find out which link the user has
right-clicked on. Does anyone have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!
Nov 16 '05 #1
5 1294
When you say C# Express, I think you are talking about framework 2.0 right?

Either way - doesn't matter.

I hope you are using the tabcontrol that comes with VStudio. If so, it must
have a tag property on it, use that to put the web browser control in it.

To answer your other question - I have to first ask you another question -
are you using the ie activex control through interop, or are you using the
new managed browser control?

It is possible to detect which link was clicked; I just gotta know what
you're usin' :) .. but since I think you might already be using framework
2.0, let me answer it anyway.

The webBrowser control has a Navigating event on it, you basically need to
subscribe it, thats all. Then e.Url would give you what you need.

The interop'ed browser (ActiveX Control) had a similar event on it.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"John Young" <polomint77ATAThotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, I have a couple of questions that I hope someone can help me with. I'm pretty new to c# and have been able to use C# Express pretty well (it's a
great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open windows
in a new tab page when requested. Now, I know how to create the tab pages
and the web browser controls in code, but I'm not sure of the best way to do it. How would I store/create/delete each tab along with the web browser
control which is on that tab? I hope I am explaining this correctly. If
not please ask more questions...

2. The web browser has an event which is fired when the user right clicks
on the control and selects "Open in new window". The only problem is that I can cancel the event using "e.Cancel = true;", which stops the opening of a new browser window, but I cannot seem to find out which link the user has
right-clicked on. Does anyone have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!

Nov 16 '05 #2
Incidentally, why was the topic of this post "linked lists?" Are you using a
doubly linked list for back next browsing? Just curious :)

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"John Young" <polomint77ATAThotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, I have a couple of questions that I hope someone can help me with. I'm pretty new to c# and have been able to use C# Express pretty well (it's a
great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open windows
in a new tab page when requested. Now, I know how to create the tab pages
and the web browser controls in code, but I'm not sure of the best way to do it. How would I store/create/delete each tab along with the web browser
control which is on that tab? I hope I am explaining this correctly. If
not please ask more questions...

2. The web browser has an event which is fired when the user right clicks
on the control and selects "Open in new window". The only problem is that I can cancel the event using "e.Cancel = true;", which stops the opening of a new browser window, but I cannot seem to find out which link the user has
right-clicked on. Does anyone have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!

Nov 16 '05 #3
Sahil Malik wrote:
When you say C# Express, I think you are talking about framework 2.0
right?

Either way - doesn't matter.

I hope you are using the tabcontrol that comes with VStudio. If so,
it must have a tag property on it, use that to put the web browser
control in it.

To answer your other question - I have to first ask you another
question - are you using the ie activex control through interop, or
are you using the new managed browser control?

It is possible to detect which link was clicked; I just gotta know
what you're usin' :) .. but since I think you might already be using
framework
2.0, let me answer it anyway.

The webBrowser control has a Navigating event on it, you basically
need to subscribe it, thats all. Then e.Url would give you what you
need.

The interop'ed browser (ActiveX Control) had a similar event on it.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"John Young" <polomint77ATAThotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, I have a couple of questions that I hope someone can help me
with. I'm pretty new to c# and have been able to use C# Express
pretty well (it's a great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open
windows in a new tab page when requested. Now, I know how to
create the tab pages and the web browser controls in code, but I'm
not sure of the best way to do it. How would I store/create/delete
each tab along with the web browser control which is on that tab?
I hope I am explaining this correctly. If not please ask more
questions...

2. The web browser has an event which is fired when the user right
clicks on the control and selects "Open in new window". The only
problem is that I can cancel the event using "e.Cancel = true;",
which stops the opening of a new browser window, but I cannot seem
to find out which link the user has right-clicked on. Does anyone
have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!


Apologies, I am using Framework 2.0 and the new managed WebBrowser control.
Thank you for the info about the tag property.
I think I may not have explained correctly about the new window event. When
a user right clicks on a link in the browser control, the context menu
appears which has 'Open in a new window' on it. When the user selects this,
the NewWindow event is fired. The only arguments passed through to my code
is one which lets me decide on whether the new window should be opened or
not. Here is the event code...wbStart is the name of the webbrowser
control. I need to find out what link the user is requesting to be opened
in a new window.

private void wbStart_NewWindow(object sender, CancelEventArgs e)

{

// User has requested to open a web page in a new window

e.Cancel = true; // stop new window from opening

// Create a new tabcontrol and webbrowser

}

Thanks again..

John
Nov 16 '05 #4
Sahil Malik wrote:
Incidentally, why was the topic of this post "linked lists?" Are you
using a doubly linked list for back next browsing? Just curious :)

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"John Young" <polomint77ATAThotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, I have a couple of questions that I hope someone can help me
with.

I'm
pretty new to c# and have been able to use C# Express pretty well
(it's a great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open
windows in a new tab page when requested. Now, I know how to
create the tab pages and the web browser controls in code, but I'm
not sure of the best way to do it. How would I store/create/delete
each tab along with the web browser control which is on that tab?
I hope I am explaining this correctly. If not please ask more
questions...

2. The web browser has an event which is fired when the user right
clicks on the control and selects "Open in new window". The only
problem is that I can cancel the event using "e.Cancel = true;",
which stops the opening of a new browser window, but I cannot seem
to find out which link the user has right-clicked on. Does anyone
have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!


Oops, the linked list information was supposed to be my 3rd question, I was
going to ask which was the most efficient way of using a doubly linked list
for exactly that reason. Any links appreciated..

Thanks again..

John

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!
Nov 16 '05 #5
Hmm .. there is a NewWindow2 delegate mentioned in the documentation, but I
don't see it on the object. That seems to do what you want it to do. The
ActiveX interop'ed allowed you to do something similar too, so they might
end up fixing that afterwards.

Doubly linked list --
http://www.codeproject.com/csharp/doubly-linkedlist.asp

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"John Young" <polomint77ATAThotmail.com> wrote in message
news:OR**************@TK2MSFTNGP14.phx.gbl...
Sahil Malik wrote:
Incidentally, why was the topic of this post "linked lists?" Are you
using a doubly linked list for back next browsing? Just curious :)

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"John Young" <polomint77ATAThotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi, I have a couple of questions that I hope someone can help me
with. I'm
pretty new to c# and have been able to use C# Express pretty well
(it's a great IDE).
My problem is twofold....
1. I am writing a basic web browser which allows the user to open
windows in a new tab page when requested. Now, I know how to
create the tab pages and the web browser controls in code, but I'm
not sure of the best way to do it. How would I store/create/delete
each tab along with the web browser control which is on that tab?
I hope I am explaining this correctly. If not please ask more
questions...

2. The web browser has an event which is fired when the user right
clicks on the control and selects "Open in new window". The only
problem is that I can cancel the event using "e.Cancel = true;",
which stops the opening of a new browser window, but I cannot seem
to find out which link the user has right-clicked on. Does anyone
have any idea?

Thanks for taking the time to read this.. I hope someone can help..

John

--

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!


Oops, the linked list information was supposed to be my 3rd question, I

was going to ask which was the most efficient way of using a doubly linked list for exactly that reason. Any links appreciated..

Thanks again..

John

--
--------------------------------------------------------------
Polomint {uk}
===============================
try
{
Linux (any version)
}
catch
{
Format (mainHardDisk)
Install (Windows2000/XP/2003)
}
// You know you want to !!!

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris Ritchey | last post by:
Hmmm I might scare people away from this one just by the title, or draw people in with a chalange :) I'm writting this program in c++, however I'm using char* instead of the string class, I am...
10
by: Kent | last post by:
Hi! I want to store data (of enemys in a game) as a linked list, each node will look something like the following: struct node { double x,y; // x and y position coordinates struct enemy...
1
by: Booser | last post by:
// Merge sort using circular linked list // By Jason Hall <booser108@yahoo.com> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> //#define debug
12
by: Jonathan Bartlett | last post by:
Just finished a new IBM DeveloperWorks article on linked lists, and thought you all might be interested. It's not an introduction -- it instead covers some of the more interesting aspects of...
3
by: s_subbarayan | last post by:
Dear all, 1)In one of our implementation for an application we are supposed to collate two linked lists.The actual problem is like this: There are two singularly linked lists, the final output...
4
by: MJ | last post by:
Hi I have written a prog for reversing a linked list I have used globle pointer Can any one tell me how I can modify this prog so that I dont have to use extra pointer Head1. When I reverse a LL...
3
by: Little | last post by:
Could someone tell me what I am doing wrong here about declaring mutiple double linked lists. This is what the information is for the project and the code wil be below that. Thank your soo much for...
12
by: joshd | last post by:
Hello, Im sorry if this question has been asked before, but I did search before posting and couldnt find an answer to my problem. I have two classes each with corresponding linked lists, list1...
19
by: Dongsheng Ruan | last post by:
with a cell class like this: #!/usr/bin/python import sys class Cell: def __init__( self, data, next=None ): self.data = data
51
by: Joerg Schoen | last post by:
Hi folks! Everyone knows how to sort arrays (e. g. quicksort, heapsort etc.) For linked lists, mergesort is the typical choice. While I was looking for a optimized implementation of mergesort...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.