468,720 Members | 1,567 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

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
Dec 21 '06 #1
6 1630
Killer42
8,435 Expert 8TB
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?
Dec 22 '06 #2
What VB version?
i am working with VB-6
Dec 23 '06 #3
Killer42
8,435 Expert 8TB
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.
Dec 23 '06 #4
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
Dec 23 '06 #5
Killer42
8,435 Expert 8TB
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.
Dec 23 '06 #6
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.
Dec 24 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by heeheelim lim via .NET 247 | last post: by
2 posts views Thread by Buck Turgidson | last post: by
3 posts views Thread by Jason Kyle Baginski | last post: by
1 post views Thread by Oskars | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.