Program Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert

    #1

    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.
  • DWS

    #2
    RE: Program Question

    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(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Timer1.Enabled = True
    x = 1
    End Sub

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

    Private Sub Timer1_Tick(ByV al sender As Object, ByVal e As
    System.EventArg s) 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:
    [color=blue]
    > 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.[/color]

    Comment

    • Robert

      #3
      RE: Program Question

      Thanks, that should get me off to a good start.

      "DWS" wrote:
      [color=blue]
      > 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(B yVal sender As System.Object, ByVal e As
      > System.EventArg s) Handles Button1.Click
      > Timer1.Enabled = True
      > x = 1
      > End Sub
      >
      > Private Sub Form1_Load(ByVa l sender As Object, ByVal e As
      > System.EventArg s) Handles Me.Load
      > Timer1.Enabled = False
      > End Sub
      >
      > Private Sub Timer1_Tick(ByV al sender As Object, ByVal e As
      > System.EventArg s) 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:
      >[color=green]
      > > 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.[/color][/color]

      Comment

      • Chris Dunaway

        #4
        Re: Program Question

        You might try this link:

        http://sourceforge.net/projects/toasterbox

        Comment

        Working...