473,903 Members | 5,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interesting IntelliSense behaviour with Webbrowser

Hi there,
I needed to use MouseOver event on Webbrowser which is NOT provided by
webbrowser control natively(what a disappointment) , so i decided to go
with another route to simulate this like:
////////////////////////////////////////////////
Public Sub DisplayHyperlin ks(ByVal sender As Object, ByVal e As
System.Windows. Forms.HtmlEleme ntEventArgs)

' My codes here

End Sub

Private Sub webbrowser1_Doc umentCompleted( ByVal sender As
System.Object, ByVal e As
System.Windows. Forms.WebBrowse rDocumentComple tedEventArgs) Handles
webbrowser1.Doc umentCompleted

' Here is my question
' Although intellisense doesn't recognize "Document", but i'm still
able to compile
' and use this addhandler syntax without any build or runtime errors
AddHandler webbrowser1.Doc ument.MouseOver , AddressOf
Me.DisplayHyper links

End Sub
\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\\\\\\

Shortly:
"AddHandler webbrowser1.Doc ument.MouseOver , AddressOf
Me.DisplayHyper links"

...that syntax claims no error when it's built / compiled, but
IntelliSense doesn't recognize "Document" after "webbrowser 1" object.

Why?

I hope i have explained enoug clear,
Thanks,

Onur Güzel
Jul 7 '08
11 2231
kimiraikkonen wrote:
>What are you trying to get. If you are trying to get a link when the mouse
is over one on a page you can use the StatusTextChang ed event to get links.

LS

Yes, but that doesn't provide when mouse is over an image which is my
goal about retrieving image location.

However, i did it using "AddHandler webbrowser1.Doc ument.MouseOver ,
AddressOf Me.DisplayHyper links" but my question and wonder was just
about why Intellisense doesn't offer "Document" after webbrowser1
while you're typing syntax manually instead of pasting from
somewhere,you can test it. Though IntelliSense doesn't offer and
recognize "Document" after "webbrowser 1" object, if i type it without
addhandler keyword just to use its members somewhere else it sees
"Document" member of "webbrowser 1" object with no problem, but as i
said if paste the code without manually typing, there are no errors
reported even on building my application.

That's weird of IntelliSense.

Thanks,

Onur
Could it be that your reference link to the MSHTML library is corrupted?
** Posted from http://www.teranews.com **
Jul 9 '08 #11
On Jul 8, 4:16 pm, "Mr. Clean" <mrclean@p&G.co mwrote:
kimiraikkonen wrote:
What are you trying to get. If you are trying to get a link when the mouse
is over one on a page you can use the StatusTextChang ed event to get links.
LS
Yes, but that doesn't provide when mouse is over an image which is my
goal about retrieving image location.
However, i did it using "AddHandler webbrowser1.Doc ument.MouseOver ,
AddressOf Me.DisplayHyper links" but my question and wonder was just
about why Intellisense doesn't offer "Document" after webbrowser1
while you're typing syntax manually instead of pasting from
somewhere,you can test it. Though IntelliSense doesn't offer and
recognize "Document" after "webbrowser 1" object, if i type it without
addhandler keyword just to use its members somewhere else it sees
"Document" member of "webbrowser 1" object with no problem, but as i
said if paste the code without manually typing, there are no errors
reported even on building my application.
That's weird of IntelliSense.
Thanks,
Onur

Could it be that your reference link to the MSHTML library is corrupted?
** Posted fromhttp://www.teranews.co m**
It doesn't seem any reference to MSHTML library, i use Webbrowser
control.

However, as i stated, pasting the whole code claims no error even on
compiling about "Document" when it's used with Addhandler, and just
IntelliSense doesn't recognize Document after Addhandler
webbrowser.Docu ment...., except Steve's workaround that is described
in previous posts which is worked.

Thanks,

Onur Güzel
Jul 9 '08 #12

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

Similar topics

12
2126
by: Peter van der Goes | last post by:
When a struct is created in C# and a parameterized constructor defined, the IntelliSense editor shows only the syntax for the parameterized constructor in tooltips, but not for the default constructor which appears to still exist. If this is not designed behavior, is it a bug or am I misusing my struct? If it is by design, could you please explain? I realize the behavior of a struct, as regards constructors, is different from that of...
6
8108
by: Stefan Kronberg | last post by:
I'm working on a solution containing about 20 projects. Some of the projects contain class definitions that are used in other of the projects. Most of the time intellisense is working ok, i.e. if I work with objects declared from my own classes intellisense will show me all alternatives (methods and properties from my classes and from the classes they are derived from). But sometimes I will get nothing from intellisense, completely nothing,...
0
1339
by: Babu Mannaravalappil | last post by:
(This is a cut-and-paste) of one of my previous posts. Since I did not get any help, I thought may be I should re-post it anew. Sorry!!) Environment: Visual Studio Enterprise 2003 DotNET 1.1 Language: C#. Microsoft SQL Server 2000. Windows XP with SP1 and all latest patches.
10
1446
by: Rakesh Rajan | last post by:
Hi, Seems like VB.NET Intellisense and complier does check for method definitions much. The following code compiles with no errors in VB.NET! (but of course, trust C# to be strict and perfect :) ) public class MyOwnClass { public void Print()
2
332
by: Marco | last post by:
Why c# intellisense is more powerful than c++ intellisense? In c# when type a character intellisense start and guide me.In c++ intellisense start only when I type a . or -> or ::. In c# user class are displayed in a specific color.Why I can't do it in c++? Marco.
12
4844
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode. When this happens its time to close VS C++.NET, which can only be done via the Windows Task Manager. I tried repairing C++. It did seem to help, but the problem is back a few hours later. I will try creating a new project, copy over source files,...
1
2661
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
i am creating a formula editor and would like to provide intellisense feature to the textbox in formula editor. does any one know how can i do that? thanks
28
2590
by: v4vijayakumar | last post by:
#include <string> #include <iostream> using namespace std; int main() { string str; str.resize(5); str = 't';
7
1607
by: Clive Dixon | last post by:
Sometimes when I'm typing the literal 'null', Intellisense decides to automatically change it to 'Nullable'. Is there any way anyone knows of stopping it doing this, apart from disabling Intellisense altogether? It's driving me totally mad.
0
9999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9847
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11283
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6093
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4727
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.