|
-
Apr 27th, 2002, 02:23 PM
#1
Thread Starter
Lively Member
hmm... that can't be too right...
i made a tool bar with a drop down menu on one of the buttons.
the problem is, i used a menu right and i tried clicking the link through the menu and it worked. but when i went to go try it in my tool bar, in a beside the button, with the drop down...nothin'. the form won't appear get what i'm sayin?
i'm using code
Code:
Case "Set Home Page"
PopupMenu mnudropdown
thats what i'm using for the tool bar code
i dont' know what the hell is wrong wit it tho
Last edited by RoBskEwL; Apr 27th, 2002 at 02:37 PM.
-
Apr 27th, 2002, 02:33 PM
#2
Stuck in the 80s
Re: hmm... that can't be too right...
Originally posted by RoBskEwL
get what i'm sayin?
Actually, no. Try using more punctuation?
-
Apr 27th, 2002, 02:43 PM
#3
PowerPoster
Well
First : make sure your case statement is correct.
Second : Smart ass people on the forum usually don't get much help. Tone down a bit. This forum is a great help, but we must understand the problwm in order to help fix it...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Apr 27th, 2002, 03:04 PM
#4
Stuck in the 80s
Re: Well
Originally posted by James Stanich
First : make sure your case statement is correct.
Second : Smart ass people on the forum usually don't get much help. Tone down a bit. This forum is a great help, but we must understand the problwm in order to help fix it...
Are you talking to me or him? I don't know how I made it harder to understand the problem, so I hope you're talking to him.
All I did was state that I didn't understand what he was saying by answering the question, then suggested a method at which he could be clearer in asking the questions.
In no way was I being a smart ass. Try making your posts less contradictory so that we may better understand the purpose of what you're trying to say.
Good day.
-
Apr 27th, 2002, 03:24 PM
#5
PowerPoster
Well
The Hobo : To him.
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Apr 27th, 2002, 03:34 PM
#6
Stuck in the 80s
Well, I feel like an ass now, then.
-Off to work
-
Apr 27th, 2002, 04:31 PM
#7
PowerPoster
You can't make a popup menu from a toolbar menu.
-
Apr 28th, 2002, 09:54 AM
#8
Stuck in the 80s
Originally posted by cafeenman
You can't make a popup menu from a toolbar menu.
You can make a popup menu off almost any event. Clicking on a toolbar icon would be one of them.
[edit]Sorry, I didn't catch the last word in that sentence. You be correct[/edit]
-
Apr 28th, 2002, 09:56 AM
#9
Stuck in the 80s
Re: hmm... that can't be too right...
Originally posted by RoBskEwL
i made a tool bar with a drop down menu on one of the buttons.
the problem is, i used a menu right and i tried clicking the link through the menu and it worked. but when i went to go try it in my tool bar, in a beside the button, with the drop down...nothin'. the form won't appear get what i'm sayin?
i'm using code
Code:
Case "Set Home Page"
PopupMenu mnudropdown
thats what i'm using for the tool bar code
i dont' know what the hell is wrong wit it tho
Are you saying that when you click on menu items nothing happens or that when you click on it, the menu doesn't appear?
-
Apr 29th, 2002, 02:42 PM
#10
Thread Starter
Lively Member
lol it was my first time making a drop down menu beside a button on a tool bar. i added a drop down
but one thing i made it so it said Set Home Page
but where would i add the show form code?
i can't add the case to the toolbar button
do i add it to the Toolbar1_ButtonDropDown
or the Toolbar1_ButtonMenuClick
and how would i make the case?!
with Select Case Button.Caption ?
-
Apr 29th, 2002, 02:48 PM
#11
All buttons on a toolbar have a Key. The toolbar has a built in event called the ButtonClick. In this event, you code what happens when you click on a button on your toolbar. Example
VB Code:
Private Sub tbToolBar_ButtonClick(ByVal Button As MSComctlLib.Button)
On Error Resume Next
Select Case Button.Key
Case "New"
mnuFileNew_Click
Case "Open"
mnuFileOpen_Click
Case "Save"
mnuFileSave_Click
Case "Print"
mnuFilePrint_Click
Case "YourButtonKey"
PopUpMenu mnudropdown
End Select
End Sub
-
Apr 29th, 2002, 04:33 PM
#12
Thread Starter
Lively Member
i attached what i'm talking about
i'm making a browser
but the code just don't seem to work
of course i know about
Case "Set Home Page"
HomePage.Show
i tryed that on the Toolbar
this is what i did
VB Code:
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Caption
Case "Go Back"
On Error Resume Next
WebBrowser1.GoBack
Case "Go Forward"
On Error Resume Next
WebBrowser1.GoForward
Case "Stop Loading"
WebBrowser1.Stop
Case "Refresh Page"
WebBrowser1.Refresh
Case "Home Page"
WebBrowser1.Navigate ReadKey("HKCU\Software\kEwL Progz\Zone Explorer\Home Page")
Case "Set Home Page"
HomePage.Show
Case "Zone Log In"
WebBrowser1.Navigate "http://zone.msn.com/services/login.asp"
Case "Zone Games"
PopupMenu mnuzonelinks
End Select
End Sub
Last edited by RoBskEwL; Apr 29th, 2002 at 04:44 PM.
-
Apr 29th, 2002, 04:38 PM
#13
FYI
WebBrowser1.Navigate ReadKey("HKCU\Software\kEwL Progz\Zone Explorer\Home Page")
It's easier to use:
WebBrowser1.Navigate "about:home"
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Apr 29th, 2002, 04:40 PM
#14
Thread Starter
Lively Member
yea but i made it so u can set your own home page so it navigates that when ever u click home it goes to the registry
-
Apr 29th, 2002, 04:43 PM
#15
Thread Starter
Lively Member
-
Apr 29th, 2002, 04:45 PM
#16
Thread Starter
Lively Member
-
Apr 29th, 2002, 04:47 PM
#17
I see that -- now.
I didn't actually look at the value you had there.
I think it's time to post your code (or a sample of it). I would need a form to work from.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Apr 29th, 2002, 04:59 PM
#18
Thread Starter
Lively Member
i'll send u a p.m. cause i don't wanna go over the bandwith
-
Apr 29th, 2002, 06:10 PM
#19
Thread Starter
Lively Member
still any help!?
i don't really wanna post my whole project
-
Apr 29th, 2002, 06:11 PM
#20
Thread Starter
Lively Member
-
Apr 29th, 2002, 10:47 PM
#21
Thread Starter
Lively Member
-
Apr 29th, 2002, 10:51 PM
#22
Thread Starter
Lively Member
man i'm never gonna get a good reply from people that just don't get it I NEED A REAL XPERT PLZ HELP ME!!!!!!
-
May 3rd, 2002, 01:59 AM
#23
Thread Starter
Lively Member
-
May 3rd, 2002, 09:42 AM
#24
Thread Starter
Lively Member
-
May 3rd, 2002, 09:51 AM
#25
PowerPoster
why haven't you posted your code?
-
May 3rd, 2002, 11:17 AM
#26
Stuck in the 80s
I believe you need to add this to your code:
VB Code:
Private Sub Toolbar1_[b]ButtonMenuClick[/b](ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Select Case ButtonMenu.Text
Case "Set Home Page"
HomePage.Show
End Select
End Sub
It's a seperate event for buttons and menu's on the toolbar.
-
May 4th, 2002, 12:28 AM
#27
Thread Starter
Lively Member
heh i thought so.
i wasn't quite sure witch one it was
thnx alot!
:-)
-Rob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|