
Introduction
Tray popup is a free .NET component to display information window above tray
area. It works almost like standard windows 2k/xp balloons, but have more
impressive look, place for icon and title. Also information window have
customizable gradient background and level of transparency.
How to use
The control is easy to use. Just add it to a form in design mode. After that
you can setup properties:
- Width and Height of information window
- Bottom and Top color of gradient background, you can use the same
colors to make solid background
- Define opacity (0-100)
- Select Font and text Color
- Select Icon for window, information system icon by default
- Setup display duration (in seconds)
After that you can call method ShowWindow(string
messageToShow, string
messageTitle)
And that's all! Pretty information
window appears!
The library presented in this article is freeware software.
Any additional information on Tray Popup as well as its latest versions
can be obtained at http://adss.com.ua/
| You must Sign In to use this message board. |
|
| | Msgs 1 to 10 of 10 (Total in Forum: 10) (Refresh) | FirstPrevNext |
|
 |
|
 |
Hello, I'm creating program for File Monitoring using "FileSystemWatcher" class (Winforms C#). The purpose is for notifying user with message box whenever there was some folder/file creation, then i tried to use tray pop up for display the message, (i downloaded from http://www.codeproject.com/useritems/adsstraypopup.asp). But the Tray Pop up won't run when was called in my File Monitoring program. (I separated those 2 files - Tray Popup & Filewatcher)
These are snippets of my programs public void OnCreated(object ob, FileSystemEventArgs arg) { //showTrayPopUp(arg.FullPath + " Created"); --> doesn't work MessageBox.Show(arg.FullPath + " Created"); } private void showTrayPopUp(string msgStr) { popUpWnd1.Width = Convert.ToInt32(300); popUpWnd1.Height = Convert.ToInt32(80); popUpWnd1.opacity = Convert.ToInt32(75); popUpWnd1.BottomColor = Color.LightSkyBlue; popUpWnd1.TopColor = Color.DodgerBlue; popUpWnd1.ShowWindow(msgStr, "Information"); }
My Questions are:Why does it happen? In case I used message box for displaying a message when method onCreated triggered it was run, but if i changed by showing TrayPopUp it wasn't.
Renata
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
I came to know about this article last week. I don't know what was your environment when you posted this problem but I also faced exactly the same issue with VS 2005 (i.e. .NET 2.0). I managed to solve this with minor code changes.
Change# 1. Just goto ShowWindow in TrayPopup.cs and replace dlg.Show() with dlg.ShowDialog().
Change# 2. Another code change which you may want to do is to call this.Dispose(); while closing the MessageForm. i.e. the MessageForm.cs should look like
private void timer1_Tick(object sender, System.EventArgs e) { this.Close(); this.Dispose(); } post above change you need to remove "dlg.Visible = true;" from ShowWindow() in TrayPopup.cs.
Since it is more than 2 years you posted this problem so I am not expecting you to be still connected with this issue but in case anyone else is looking for some inputs/solution then I guess it will be helpful for them.
Ishwar Jindal
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Currently I was not able to solve the problem, even with Genghis it does not seem to work. Is it possible to do this with the ADSS Tray Popup? This is the order how the effects should appear: 1. Display First Popup for 5 seconds. 2. Play a sound, e.g. for 1 second. (or just sleep for a second) 3. When the sound is finished, raise popup 2 for 5 seconds (popup 1 is still visible) 4. Play sound2 for 1 second. 5. After sound2 (step 4) is finished, raise popup 3 for another 5 seconds. 6. Close popup 1 (step 1) after it has been displayed for 5 seconds. 7. Close popup 2 (step 3) after it has been displayed for 5 seconds. 8. Close popup 3 (step 5) after it has been displayed for 5 seconds. Could this be done with the ADSS Tray Popup? As said above, I tried with genghis (displays all 3 popups at the same time) and another notification project from CodeProject (displays second notification after first disappears) without success. I would be grateful if your application could do this and you could provide a demo (Mail to OTALOTXYBQJH@spammotel.com ). Many thanks in advance!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Just use the genghes code library instead of this. It allows your own popup design as it just pops-up custom forms.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
There's really not much to your article. I think I understand your point, that this controls easy to use. Just the same, why not tell us how you have used the control? Show us a real-world example. That's what I enjoy most when reading articles on The Code Project?
T-luv
don't spit into the wind... Jim Croce
|
| Sign In·View Thread·PermaLink | 3.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
General
News
Question
Answer
Joke
Rant
Admin