By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,558 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,558 IT Pros & Developers. It's quick & easy.

Program Question

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
You might try this link:

http://sourceforge.net/projects/toasterbox

Feb 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.