473,473 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

restore button - activate

26 New Member
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 1972
Killer42
8,435 Recognized Expert Expert
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
kowndinya
26 New Member
What VB version?
i am working with VB-6
Dec 23 '06 #3
Killer42
8,435 Recognized Expert Expert
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
kowndinya
26 New Member
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 Recognized Expert Expert
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
kowndinya
26 New Member
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

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

Similar topics

0
by: Lee Harr | last post by:
I wanted to modify the program Tests/04-button.py like so: def simulate_hello(): btn1.activate() becomes... def simulate_hello(): if btn2.enabled: btn2.activate()
1
by: Martin Karlsson | last post by:
Hi guys, Does anyone know how I can restore a selection created with createRange()? The problem is that I have a function that opens a new window with window.open() which of course makes the...
1
by: heeheelim lim via .NET 247 | last post by:
i currently has an backup of a database (called ybam) in a sql script (called c:\20053131028.sql)... now i want to create a button where an user can restore the ybam database by click on restore...
2
by: Buck Turgidson | last post by:
I have an SAP development system running on Linux. It is not a critical system, but I would like a restore-able backup. I have taken an offline backup, but I am unable to restore it. I am...
3
by: Jason Kyle Baginski | last post by:
Here's a little test app to demonstrate a problem I'm having. It creates four buttons, each one with the different FlatStyle types available. Three of them behave exactly the same way(and the...
7
by: Wayne | last post by:
I have found the following code on this newsgroup that removes the Access Application minimize, restore and close buttons. Private Const GWL_EXSTYLE = (-20) Private Const GWL_STYLE = (-16) ...
0
by: debian75 | last post by:
Hi. I have two servers in the same MS network area: 1: MS 2000 Server, with an Oracle 9 installed (with license 1), and a DB1. 2: MS 2003 Enterprise R2, with an Oracle 10.2.0.3 installed (with...
6
by: Jerad Rose | last post by:
I recently installed Visual Studio 2003, after having already installed VS 2005. Unfortunately, it took over all of the file associations. There is an option in Visual Studio 2005 to restore...
5
by: homayountabrizi | last post by:
What should I add to event procedure to activate FIND command Button in Access 2000. I created a Find (command Button) on a created Form but I can't activate it.
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.