473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Program Question

Hello All,

I want to develop a program that will pop up a window to allow the user to
take an action. The window will disappear after a length of no activity. I
would like the application to act in behavior exactly the way that Outlook
2003 displays new incoming messages. I have never attempted to write an
application like this so I don't really have any idea where to begin. Does
anyone know where I could find information that would me achieve this? I
would greatly appreciate any thoughts and help.

Thanks.
Feb 13 '06 #1
3 895
DWS
Rob,
I don't do exactlies but here's some cool code to get ya rollin.
add a button and a timer to a form and put this into the class file.
Press ctrl+f5
Have fun
DWs
Public Class Form1

Private x As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
x = 1
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Timer1.Enabled = False
End Sub

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Try
x = x - 0.05
If x < 0 Then
Me.Close()
Exit Sub
End If
Me.Opacity = x
Catch ex As Exception
Me.Close()
Exit Sub
End Try
End Sub
End Class
"Robert" wrote:
Hello All,

I want to develop a program that will pop up a window to allow the user to
take an action. The window will disappear after a length of no activity. I
would like the application to act in behavior exactly the way that Outlook
2003 displays new incoming messages. I have never attempted to write an
application like this so I don't really have any idea where to begin. Does
anyone know where I could find information that would me achieve this? I
would greatly appreciate any thoughts and help.

Thanks.

Feb 14 '06 #2
Thanks, that should get me off to a good start.

"DWS" wrote:
Rob,
I don't do exactlies but here's some cool code to get ya rollin.
add a button and a timer to a form and put this into the class file.
Press ctrl+f5
Have fun
DWs
Public Class Form1

Private x As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
x = 1
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Timer1.Enabled = False
End Sub

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Try
x = x - 0.05
If x < 0 Then
Me.Close()
Exit Sub
End If
Me.Opacity = x
Catch ex As Exception
Me.Close()
Exit Sub
End Try
End Sub
End Class
"Robert" wrote:
Hello All,

I want to develop a program that will pop up a window to allow the user to
take an action. The window will disappear after a length of no activity. I
would like the application to act in behavior exactly the way that Outlook
2003 displays new incoming messages. I have never attempted to write an
application like this so I don't really have any idea where to begin. Does
anyone know where I could find information that would me achieve this? I
would greatly appreciate any thoughts and help.

Thanks.

Feb 15 '06 #3
You might try this link:

http://sourceforge.net/projects/toasterbox

Feb 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: enclume42 | last post by:
Hello, I am a pure Linux guy. I wrote a Java program that is going to be used by some Windows people, and I wish the startup of the program to be as simple as possible, namely to double-click on...
6
by: jalkadir | last post by:
As I wrote the subject of this message, I got a cold feeling about this question, I have realized that this is not only a programmer question, but it is also a question about one the most...
54
by: bnp | last post by:
Hi, I took a test on C. there was an objective question for program output type. following is the program: main() { char ch; int i =2;
4
by: Richard | last post by:
I created a program which uses the srand function to generate random numbers. The program is suppose to help an elementary student learn multipliation and ask a question, "How much is 6 times 7?"....
34
by: kevin.watters | last post by:
Hi all, I have a need for a short program: Given a drive letter, it would recursively search through all directories, "generating" each filename that it encounters (need to pass each filename...
0
by: biganimal | last post by:
I have a program and I want the program to be able to save question/answers so the program actually gets smarter without getting amnesia everytime its started. Can anyone help??? # questor.py ...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
16
by: Knute Johnson | last post by:
I'm trying to write a C wrapper to run a Java program. I need to distribute a CD with the Java runtime, my application and a C startup program. I've put the C wrapper program, my java app and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...

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.