restore button - activate

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kowndinya
    New Member
    • Sep 2006
    • 26

    restore button - activate

    Hello All,

    How to activate my restore button when my (program) window/form is in minimized state through code at a particular time only. I have a timer control on my from. Can i use showwindow function or is there any other simple solution.
    Please help me.
    Thank you all.
    Raj
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by kowndinya
    How to activate my restore button when my (program) window/form is in minimized state through code at a particular time only. I have a timer control on my from. Can i use showwindow function or is there any other simple solution.
    What VB version?

    Comment

    • kowndinya
      New Member
      • Sep 2006
      • 26

      #3
      Originally posted by Killer42
      What VB version?
      i am working with VB-6

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by kowndinya
        i am working with VB-6
        Hm... I see what you mean. If you try to change the ControlBox property at runtime you get "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic". Sorry, I've never come across this before.

        Comment

        • kowndinya
          New Member
          • Sep 2006
          • 26

          #5
          Originally posted by Killer42
          Hm... I see what you mean. If you try to change the ControlBox property at runtime you get "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic". Sorry, I've never come across this before.
          Hai,
          Thank you for your response. I want to make it more clear with my new requirement. I want to do a small program similar to Messenger service by using netsend command. i created interface for sending mesages and it is fine.when i receive the message from other user i copied this message to textbox in my interface. now my problem is:
          1. how to invoke my program when i got message from other user?
          2. If i keep my program running always and in minized state ( during working hours), how can i see it immediately when there is new message.
          3. Is there any other alternative solution to this.

          Thank you all
          raj

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by kowndinya
            Hai,
            Thank you for your response. I want to make it more clear with my new requirement. I want to do a small program similar to Messenger service by using netsend command. i created interface for sending mesages and it is fine.when i receive the message from other user i copied this message to textbox in my interface. now my problem is:
            1. how to invoke my program when i got message from other user?
            2. If i keep my program running always and in minized state ( during working hours), how can i see it immediately when there is new message.
            3. Is there any other alternative solution to this.

            Thank you all
            raj
            Ok, I think you can do this. If you keep the program running minimised, then to show it you should be able to simply change the .WindowState property to vbNormal.

            As for point 3, in programming there are usually lots of different ways you can do things.

            Comment

            • kowndinya
              New Member
              • Sep 2006
              • 26

              #7
              Originally posted by Killer42
              Ok, I think you can do this. If you keep the program running minimised, then to show it you should be able to simply change the .WindowState property to vbNormal.

              As for point 3, in programming there are usually lots of different ways you can do things.
              It is working fine.
              thank you once again for your timely support.
              Raj.

              Comment

              Working...