Results 1 to 9 of 9

Thread: THE TOUGHEST QUESTION IN THIS WHOLE FORUM!!!!!

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472

    Lightbulb

    Not really...lol

    How can I make the status bar say "Active..." when they are moving the mouse?

    Private Sub sbStatusBar_PanelClick(ByVal Panel As Lib.Panel)
    'INSERT CODE HERE
    End Sub


  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Question Blur...

    What do you mean ... How can I make the status bar say "Active..." when they are moving the mouse?
    ???

    it is this???

    Code:
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    StatusBar1.Panels(1).Text = "Active..."
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472

    ahhh

    its been a week since I posted that, and I dont even know what the hell I am saying...

    NEW QUESTION>>>
    I have a program where it has the options menu (so uncommon) and I want to allow them to check an option on or off so that the program knows to do something at the end of the session... HOw do I make the program keep the info of the box checked or unchecked so that next time they load the program it is the way it was last time...(Would I store it in a .dll file or something?)

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Smile save all the setting into registry.

    All you need to do is just save all this eeting into the registry and retrieve it in the Form_Load() events.

    For more information, please refer to this Thread or this as well Registry

  5. #5
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321

    Use the registry

    Use this code for the menu click:
    Code:
    Private Sub mnuAny_Click()
    mnuAny.Checked = Not mnuAny.Checked
    SaveSetting "Your App Name", "Your Section", "Menu Key", mnuAny.Checked
    End Sub

    and this one in the load_form:

    Code:
    Private Sub Form_Load()
    
    mnuAny.Checked = GetSetting("Your App Name", "Your Section", "Meny Key", 0)
    
    End Sub
    Signed, Rodik ([email protected])
    Programmer,usesVB6ED
    ===========================
    Copyright©RodikCo,2002.

    Dont mind this signature ;] Its old

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Re: ahhh

    this is of the top of my head:
    Code:
    if check1.value = checked then
    ' your code
    NXSupport - Your one-stop source for computer help

  7. #7
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    I would suggest using App.Title rather than "Your app name" as a string because this will then insert the name of your application automatically from the settings you have given to the VB development environment.

    This way if you decide to change your mind later and rename it you will get a new area in the registry.

    Just a bit of standardization

  8. #8

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    rodik...can you explain the code a little more...im not quite understanding what it does...

  9. #9

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    well can someone explain the functions he/she used in their post...?

    Private Sub mnuAny_Click()
    mnuAny.Checked = Not mnuAny.Checked
    SaveSetting "Your App Name", "Your Section", "Menu Key", mnuAny.Checked
    End Sub

    and this one in the load_form:

    Private Sub Form_Load()
    mnuAny.Checked = GetSetting("Your App Name", "Your Section", "Meny Key", 0)
    End Sub

    whats mnuany.checked? and why do I put in my app name? and whats the section, and meny key?

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