473,320 Members | 2,124 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,320 software developers and data experts.

How to create a menu via a button? and how to see, in a label, a link that the mouse pass over?

Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,
hot to delete these two menus?
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseur
de la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com
Jul 17 '05 #1
8 3872
On Sun, 16 Nov 2003 02:53:13 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,
hot to delete these two menus?
Have a look at Form.PopupMenu
- you create the Menu as normal using the Menu Designer
- but set its visible property to False
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseur
de la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com


Jul 17 '05 #2
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.
I know how to creat menu with 'Load Menu' for exemple, but this need first
at least one menu exist. Me, I'd like to creat one when none menu already
exits. :-)
Raymond H.

"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f**************@news.btclick.com...
On Sun, 16 Nov 2003 02:53:13 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,hot to delete these two menus?


Have a look at Form.PopupMenu
- you create the Menu as normal using the Menu Designer
- but set its visible property to False
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseurde la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com

Jul 17 '05 #3
On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.
I know how to creat menu with 'Load Menu' for exemple, but this need first
at least one menu exist. Me, I'd like to creat one when none menu already
exits. :-)


Load Menu
I'm using VB5 - that option does not exist

If I wanted to create Menus on the fly I would use Control Arrays

That way you can do:
Load mnuUtil( 1 )

You can 'design' menus inside UserControls as well as inside Forms
- so it is quite possible to create something that builds menus from
'designed seed Control Arrays' completely on the fly

It is a bit difficult to demonstrate in a NG

However this bit of code is in a UserControl :-

Public Property Get TheMenu() As Menu
Set TheMenu = mnuTop
End Property

And this is in a Form :-

Private Sub Command1_Click()
PopupMenu UserControl11.TheMenu
End Sub

Jul 17 '05 #4
Hello,
I'm not able to create a new sub-menu with your codes. I'd like to
create a sub-menu that already not exist.
a+
Raymond H.

"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f***************@news.btclick.com...
On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.I know how to creat menu with 'Load Menu' for exemple, but this need firstat least one menu exist. Me, I'd like to creat one when none menu alreadyexits. :-)


Load Menu
I'm using VB5 - that option does not exist

If I wanted to create Menus on the fly I would use Control Arrays

That way you can do:
Load mnuUtil( 1 )

You can 'design' menus inside UserControls as well as inside Forms
- so it is quite possible to create something that builds menus from
'designed seed Control Arrays' completely on the fly

It is a bit difficult to demonstrate in a NG

However this bit of code is in a UserControl :-

Public Property Get TheMenu() As Menu
Set TheMenu = mnuTop
End Property

And this is in a Form :-

Private Sub Command1_Click()
PopupMenu UserControl11.TheMenu
End Sub

Jul 17 '05 #5
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member of
the menu array in order to create submenu's on the fly.

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Raymond H." <di*******@hotmail.com> wrote in message
news:ae*******************@news20.bellglobal.com.. .
: Hello,
: I'm not able to create a new sub-menu with your codes. I'd like to
: create a sub-menu that already not exist.
: a+
: Raymond H.
:
: "J French" <er*****@nowhere.com> a écrit dans le message de
: news:3f***************@news.btclick.com...
: > On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
: > <di*******@hotmail.com> wrote:
: >
: > >Hello,
: > > Thank you but it's not exactly what I need. I'd like to create a
: > >sub-menu (that already is not exist) via a Command button. I'd like to
: > >create (not to appear one that already exist) and appear after his
: creation.
: > >I know how to creat menu with 'Load Menu' for exemple, but this need
: first
: > >at least one menu exist. Me, I'd like to creat one when none menu
: already
: > >exits. :-)
: >
: > Load Menu
: > I'm using VB5 - that option does not exist
: >
: > If I wanted to create Menus on the fly I would use Control Arrays
: >
: > That way you can do:
: > Load mnuUtil( 1 )
: >
: > You can 'design' menus inside UserControls as well as inside Forms
: > - so it is quite possible to create something that builds menus from
: > 'designed seed Control Arrays' completely on the fly
: >
: > It is a bit difficult to demonstrate in a NG
: >
: > However this bit of code is in a UserControl :-
: >
: > Public Property Get TheMenu() As Menu
: > Set TheMenu = mnuTop
: > End Property
: >
: > And this is in a Form :-
: >
: > Private Sub Command1_Click()
: > PopupMenu UserControl11.TheMenu
: > End Sub
: >
: >
: >
:
:
Jul 17 '05 #6
On Tue, 18 Nov 2003 01:34:39 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member of
the menu array in order to create submenu's on the fly.


Absolutely

I would personally have three 'seeds'

mnuUtil
mnuLevel1(0)
mnuLevel2(0)
mnuLevel3(0)

all are set to Visible = False

Then you Load the items you want

However Raymond, your first priority is getting VB5 or VB6
- VB4 will drive you completely mad
Jul 17 '05 #7
Thank you very much :-)
Raymond H.
"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f****************@news.btclick.com...
On Tue, 18 Nov 2003 01:34:39 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member ofthe menu array in order to create submenu's on the fly.


Absolutely

I would personally have three 'seeds'

mnuUtil
mnuLevel1(0)
mnuLevel2(0)
mnuLevel3(0)

all are set to Visible = False

Then you Load the items you want

However Raymond, your first priority is getting VB5 or VB6
- VB4 will drive you completely mad

Jul 17 '05 #8
On Tue, 18 Nov 2003 14:33:34 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Thank you very much :-)
Raymond H.


Just get VB5 or VB6

I would not inflict VB4 on my worst enemy

Good Luck

Jul 17 '05 #9

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

Similar topics

1
by: eltronic | last post by:
here is some code to add right click context menus. in the few apps I've edited sofar, it just works, once you run rCbinder with the root of the gui or bind B3 all present and future widgets will...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
3
by: John Ortt | last post by:
Hi everyone, I posted with the title "Javascript Menu Not Loading Images" last week but I only posted the code as the site was on a corporate Intranet. Thanks to advice on the thread I have...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
1
by: ColorWorld | last post by:
Hi there I am setting up a menu. It is an "button" with roll over function. The background image changes. That works fine :) But: underneath is an image. Each menu item has its own image AND i...
2
by: Ravi Joshi | last post by:
The menu on my site works fine in IE6 and Firefox. In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
1
by: Carl | last post by:
"Chuckk Hubbard" <badmuthahubbard@gmail.comwrites: Try creating the "main" popup menu before the sub-menus, and when instantiating the sub-menus, pass the main menu as the "master" instead of...
59
by: vishal1082 | last post by:
first, i don't know what could i possibly write for the "question" field... i have a button, and i put a label over it, i did that, and transparency and other things are not a problem for me, the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.