Results 1 to 27 of 27

Thread: hmm... that can't be too right...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109

    Unhappy 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.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: hmm... that can't be too right...

    Originally posted by RoBskEwL
    get what i'm sayin?
    Actually, no. Try using more punctuation?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    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....

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    The Hobo : To him.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Well, I feel like an ass now, then.

    -Off to work
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    You can't make a popup menu from a toolbar menu.

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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]
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    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?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    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 ?

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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:
    1. Private Sub tbToolBar_ButtonClick(ByVal Button As MSComctlLib.Button)
    2.     On Error Resume Next
    3.     Select Case Button.Key
    4.         Case "New"
    5.             mnuFileNew_Click
    6.         Case "Open"
    7.             mnuFileOpen_Click
    8.         Case "Save"
    9.             mnuFileSave_Click
    10.         Case "Print"
    11.             mnuFilePrint_Click
    12.         Case "YourButtonKey"
    13.             PopUpMenu mnudropdown
    14.      End Select
    15. End Sub

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    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:
    1. Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
    2.     Select Case Button.Caption
    3.         Case "Go Back"
    4.             On Error Resume Next
    5.             WebBrowser1.GoBack
    6.         Case "Go Forward"
    7.             On Error Resume Next
    8.             WebBrowser1.GoForward
    9.         Case "Stop Loading"
    10.             WebBrowser1.Stop
    11.         Case "Refresh Page"
    12.             WebBrowser1.Refresh
    13.         Case "Home Page"
    14.             WebBrowser1.Navigate ReadKey("HKCU\Software\kEwL Progz\Zone Explorer\Home Page")
    15.         Case "Set Home Page"
    16.             HomePage.Show
    17.         Case "Zone Log In"
    18.             WebBrowser1.Navigate "http://zone.msn.com/services/login.asp"
    19.         Case "Zone Games"
    20.             PopupMenu mnuzonelinks
    21.     End Select
    22.  
    23. End Sub
    Last edited by RoBskEwL; Apr 29th, 2002 at 04:44 PM.

  13. #13
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    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)

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    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

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    anyone!?

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    *BuMp*

  17. #17
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    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)

  18. #18

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    i'll send u a p.m. cause i don't wanna go over the bandwith

  19. #19

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    still any help!?
    i don't really wanna post my whole project

  20. #20

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    *BuMp*

  21. #21

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    *BuMp*

  22. #22

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    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!!!!!!

  23. #23

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    CoUpLe DaY *BuMp*

  24. #24

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    yet another bump!!!!!!!

  25. #25
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    why haven't you posted your code?

  26. #26
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I believe you need to add this to your code:

    VB Code:
    1. Private Sub Toolbar1_[b]ButtonMenuClick[/b](ByVal ButtonMenu As MSComctlLib.ButtonMenu)
    2.   Select Case ButtonMenu.Text
    3.     Case "Set Home Page"
    4.       HomePage.Show
    5.   End Select
    6. End Sub

    It's a seperate event for buttons and menu's on the toolbar.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  27. #27

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    B.C. CANADA!!
    Posts
    109
    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
  •  



Click Here to Expand Forum to Full Width