473,883 Members | 2,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add to Favorites / Organize Favorites dialogs

I'm implementing the WebBrowser control in my app and I would like to be able
to show the Add to Favorites and Organize Favorites dialogs that are used in
Internet Explorer. Is this possible?

Thanks,
Lance

Nov 21 '05 #1
17 2681
ljEvend,

Was it you I showed this week the as far as I remember me first and last
(greath) help I ever got from Herfried.

\\\
AxWebBrowser.Na vigate("about:< html><body
onload=javascri pt:window.exter nal.addFavorite ('" + textbox1.Text +
"')></body></html>")
///

I hope this helps,

Cor
Nov 21 '05 #2
"ljlevend2" <lj*******@nosp am.nospam> schrieb:
I'm implementing the WebBrowser control in my app and I would like to be
able
to show the Add to Favorites and Organize Favorites dialogs that are used
in
Internet Explorer. Is this possible?


Normally this should work using 'ExecWB' + 'IDM_ADDFAVORIT ES', but I could
not get it work.

'IDM_ADDFAVORIT ES' Command ID
<URL:http://msdn.microsoft. com/library/default.asp?url =/workshop/browser/mshtml/reference/commandids.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Thanks a lot for the idea. That sounds similar to what I am looking for, but
I could not get it to work. Any other ideas or suggestions?

Thanks again,
Lance

Nov 21 '05 #4
Peter,

""Peter Huang" [MSFT]" <v-******@online.m icrosoft.com> schrieb:
So far the AxWebBrowser1.E xecWB method did not support IDM_ADDFAVORITE S.
I didn't find any information in the documentation which states that
'IDM_ADDFAVORIT ES' is not supported by 'WebBrowser', however, as it doesn't
work it is obviously not supported.
I think you may try Cor's suggestion


ACK. If you do not want to change the URL in the primary webbrowser control
you may want to place a second webbrowser control on the form and prevent
the user from accessing it as shown below:

\\\

' Dummy webbrowser control used to display the favorites dialog.
With Me.AxWebBrowser 2
.TabStop = False
.Size = New Size(0, 0)
End With
Me.AxWebBrowser 1.Navigate("htt p://dotnet.mvps.org/dotnet/")
..
..
..
Me.AxWebBrowser 2.Navigate( _
"about:<html><h ead></head>" & _
"<body onload=""javasc ript:window.ext ernal.addFavori te('" & _
Me.AxWebBrowser 1.LocationURL & _
"');""></body></html>" _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Peter,
think you may try Cor's suggestion


I think that Herfried did not see that it is his sollution, therefore you
did probably of course mean.

"Think you may try Cor's suggestion to use Herfrieds solution showed in far
past to Cor".

Although I agree with you probably as well that this is very confusing for
the OP.

:-)))

Cor
Nov 21 '05 #6
Hi

Thank's Herfried and Cor's reply.
I am sorry I did not make it clear, I do not mean IWebBrowser2 unmanged
interface did not support IDM_ADDFAVORITE S.
I means the AxWebrowser managed Wrap did not have the option
IDM_ADDFAVORITE S, if we use VB.NET with ExecWB, the intellisence will popup
a list which did not include the IDM_ADDFAVORITE S.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #7
> ACK. If you do not want to change the URL in the primary webbrowser control
you may want to place a second webbrowser control on the form and prevent
the user from accessing it as shown below:


It looks like that should work, but unfortunately I do not know how to
create the AxWebBrowser. I am only familiar with the
Windows.Forms.W ebBrowser control. If you could help me with this I think I
would be in good shape.

Thanks again,
Lance

Nov 21 '05 #8
"ljlevend2" <lj*******@nosp am.nospam> schrieb:
ACK. If you do not want to change the URL in the primary webbrowser
control
you may want to place a second webbrowser control on the form and prevent
the user from accessing it as shown below:


It looks like that should work, but unfortunately I do not know how to
create the AxWebBrowser. I am only familiar with the
Windows.Forms.W ebBrowser control. If you could help me with this I think
I
would be in good shape.


Are you using .NET 2.0?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #9
Hi

In 2.0, we have wrap the WebBrowser control as a buildin control, we do not
try to generate the AxWebBrowser via COM Interop, just use the WebBrowser
control.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #10

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

Similar topics

1
1391
by: Alexandre Almeida | last post by:
hello, how can i put my IE favorites into a database(access). i'm trying to manage my favotites using a web page. thanks on advance AA
9
4899
by: shank | last post by:
Is there any one "add to favorites" code that will work for IE, NS, AOL, and a host of others? At least some code that will give me an effective "add to favorites" for the highest percentage of users. The code in my searches have been disclaimed has working with this but not that. I'm not sure how old some of this code is either. thanks!
5
2828
by: JP | last post by:
I have the need to be able to access the IE5+ favorites menu, read the title and URL for each shortcut so I can render the person's favorites list on a web page. The project I'm working on is written is C#, and is web based. I had hoped there was a URL property or something I could use in the System.IO class, but no such luck, and websites aren't very clear on the steps or even if its at all possible. Again, basically want to read...
9
1752
by: Dennis Ruppert | last post by:
Greetings This is rather ambitious: I have a split database that contains many different reports. I have a form that the end user launches the reports from. They select the report criteria from several combo boxes, click a "Go" command button to launch the report. I then pass the report criteria to various report "templates" as an SQL string.
2
1171
by: clintonG | last post by:
I've been hunting around. Does anybody have a URL to Microsoft'sdocumentation for Favorites? -- <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL http://clintongallagher.metromilwaukee.com/
2
1580
by: Tom McL. | last post by:
I have a new computer which came with sp2 and framework 1.1. I have noticed that my favorites that contain links to visual basic.net subjects that were saved under the earlier version framework no longer work. Upon investigating I found that the help files in the following directory: C:\Documents and Settings\All Users\Application Data\Microsoft Help no longer supporting the early vb.net help files. I could copy the files from my old...
5
1489
by: draken | last post by:
Basically, what I am looking to do is to sync up browsers favorites via a website without a download. I thought of javascript when first doing this, as I know, mozilla would allow me to pull them directly just with the js, but I do not want to have go beyond javascript and PHP. I have been going over making a mozilla extension as well as getting into some programming for a toolbar(I know some c/c++ and c#), but, if I can do something...
6
7589
by: Killer42 | last post by:
I have actually asked a pretty similar question here in the past, without a great deal of success. But I've decided to try a different tack. So, what are the ways in which a network admin could remove the Favorites menu from Windows Explorer (presumably by use of a group policy), and how can I overcome it and put my favorites menu back where it belongs? Originally I was able to get it back by correcting...
5
3781
by: andrewq2 | last post by:
I have a post in fourms.micorsoft.com but no one is responding, and i had good luck in google groups befor so i decieded on posting my question here also. Im trying to add a favorites function to my web browser. the problem when i hit the add to favorites button it does nothing. but on form close it creates the favorites.xml file. so i know the problem is somewhere in the add to favorites function. hears my code:
0
9945
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
10766
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10863
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10422
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
7978
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
7136
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5807
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
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.