what i want to do is make a notification system, kind of like aim were a new little box will show up to alert the user of a couple different things.
this is how far i have gotten :
I use an arraylist because i dont know how many messages will come around the same time, but i could switch to an array if i must.
this is the form that i made as kind of a template :
its just got a couple text boxes for now
how can i make these new forms every time i have a new message to display and the clean up after them when they are done.
this is how far i have gotten :
VB.NET:
Dim popups As ArrayList
Public Sub newEvent(ByVal title As String, ByVal description As String)
popups.Add(New Form())
lastPopup.setText(title, description)
lastPopup.Left = 1440 - lastPopup.Width
lastPopup.Top = 900 - lastPopup.Height
lastPopup.Visible = True
End Sub
Public Function lastPopup() As Events
Return popups.Item(popups.Count - 1)
End Function
I use an arraylist because i dont know how many messages will come around the same time, but i could switch to an array if i must.
this is the form that i made as kind of a template :
VB.NET:
Public Class Events
Public Sub setText(ByVal t As String, ByVal d As String)
title.Text = t
Description.Text = d
End Sub
End Class
its just got a couple text boxes for now
how can i make these new forms every time i have a new message to display and the clean up after them when they are done.