Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Need a little VB help

    Ojay well im currently programming a program in VB and im stuck on something i want to make a description about what a button does and i want it to be on the right side of the program. now i want it to appear when the user hovers over a button and disappear when he/she moves to a different button and i want it to also disappear when they are not hovering over a button. (Note: this means i can not simply use the tooltip as thats not what im asking for.


    Edit: is it possible to make it when the user closes the program to have a msgbox appear and say please check back at "url here" for any possible new updates. or what ever would be best for this if its possible.
    Last edited by D34th Maker; 01-05-2012 at 03:27 AM.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What is the reason for not wanting to use the tooltip?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Spookster View Post
    What is the reason for not wanting to use the tooltip?
    i want it to be displayed something like this



    as i do not want it to be located above the button itself which is why i want it like the image. Note: i added in the text through an image editing software.

    I'm sure its possible as ive seen many programs have the description like i want.

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I was going to recommend using the status bar for displaying the text but since you are dedicating space on the GUI for this and it seems to be alot of text then that should be pretty simple to do. What are you having trouble with?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Spookster View Post
    I was going to recommend using the status bar for displaying the text but since you are dedicating space on the GUI for this and it seems to be alot of text then that should be pretty simple to do. What are you having trouble with?
    well mostly everything to be honest since i just started coding in VB yesterday and not really too sure about what object in the toolbox i should use and the code to show/hide the content depending on the cursors location. so basically the whole entire description part.

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Well I really don't have time to write a bunch of code for this but I should be able to point you in the general direction. You will want to set up a label where you want the text then write a routine to update the text in that label based on either predefined strings of text in your routine or pass the string in as a parameter. Then you would activate this from each button using probably onfocus and oblur to call that routine.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Robert36521 View Post
    What is the reason for not wanting to use the tooltip

    I answered that already from one of the moderators wanting to know what my reason for not wanting to use tooltip so please just look through the replys a bit and you will see why.



    Quote Originally Posted by Spookster View Post
    Well I really don't have time to write a bunch of code for this but I should be able to point you in the general direction. You will want to set up a label where you want the text then write a routine to update the text in that label based on either predefined strings of text in your routine or pass the string in as a parameter. Then you would activate this from each button using probably onfocus and oblur to call that routine.
    Wow that really just confused me like a lot sorry. but it'd be easier for me to understand it in a written code.
    Last edited by D34th Maker; 01-05-2012 at 03:32 AM.

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by D34th Maker View Post
    I answered that already from one of the moderators wanting to know what my reason for not wanting to use tooltip so please just look through the replys a bit and you will see why.
    Disregard their post. It was a spammer and I just banned him.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Spookster View Post
    Disregard their post. It was a spammer and I just banned him.
    Alright also if you wan tto write the code for me it'd be great and you have quite a lot of hours since i have to go to bed for school.

    also this is not a hw assignment as im not currently taking a programming class. (Freshman Year) i mostly do coding just for fun.

  • #10
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Google search "VB dynamically update label text" should give you plenty of results with example code.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #11
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Spookster View Post
    Google search "VB dynamically update label text" should give you plenty of results with example code.
    alright also do you know the code or if it is possible to do the part that i edited in?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •