Click here to Skip to main content
15,880,905 members
Articles / Programming Languages / C#
Reference

Sliding Up Popup Notification Like Skype

Rate me:
Please Sign up or sign in to vote.
4.79/5 (21 votes)
16 Nov 2014CPOL1 min read 48.1K   2.9K   39   17
Sliding Up Popup Notification Like Skype

Introduction

This tip is about Skype Type of Sliding Pop up Message Notification. Whenever you call popup function, a new message will be shown like sliding bottom to top and gets appended with old message. Top message will get removed at its preset timeout and slowly will get collapsed. When you hover your mouse to popup window, a close button will appear on Top right of pop and you can close all popups quickly.

You can show up to X messages at a time.

Background

This is for multiple messages to be shown coming at the same time with different message types.

Header Text: This for giving name of your application.

Message Type: This is for giving Message header, e.g., Error, User name, Event Name.

Message detail: This field is for giving short discription of message. For example: Error detail, User Online/offine, Event Detail.

Icon: This field is for giving image symbol to your message.

Using the Code

Simple concept like Timer (for animation and message time out), Queue and manual paint event make this Sliding popup.

Whenever new message comes to queue, animation timer gets started and on tick window is moved up and at the same time painting event is called.

You can just import DLL in your project and just set the various parameters like time out message, font style, color, etc. before calling popup function.

C#
public void popup(string strTitle, string strContent, 
int nTimeToShow, int nTimeToStay, int nTimeToHide, int notify, Image imageshow);

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
BugException if message has 25 characters Pin
RicardoGReis19-Aug-19 10:44
RicardoGReis19-Aug-19 10:44 
QuestionColor problem Pin
Member 122357613-Apr-17 0:18
Member 122357613-Apr-17 0:18 
Questiongrip.png missing Pin
Showmaster300010-Mar-16 11:55
Showmaster300010-Mar-16 11:55 
AnswerRe: grip.png missing Pin
Jigar_Patel21-Mar-16 22:43
Jigar_Patel21-Mar-16 22:43 
QuestionThis is good but... Pin
Painted Symmetric10-Feb-16 20:26
Painted Symmetric10-Feb-16 20:26 
GeneralMy vote of 5 Pin
Humayun Kabir Mamun17-Nov-14 17:04
Humayun Kabir Mamun17-Nov-14 17:04 
GeneralMy vote of 5 Pin
JayantaChatterjee11-Nov-14 18:53
professionalJayantaChatterjee11-Nov-14 18:53 
QuestionNICE ! Pin
Member 1111981611-Nov-14 14:31
Member 1111981611-Nov-14 14:31 
QuestionOne more bicycle from me Pin
Thornik11-Nov-14 7:49
Thornik11-Nov-14 7:49 
GeneralMy vote of 5 Pin
Sheepings11-Nov-14 3:39
professionalSheepings11-Nov-14 3:39 
GeneralRe: My vote of 5 Pin
Jigar_Patel11-Nov-14 4:41
Jigar_Patel11-Nov-14 4:41 
BugProblems with your post Pin
Ravi Bhavnani10-Nov-14 2:46
professionalRavi Bhavnani10-Nov-14 2:46 
GeneralRe: Problems with your post Pin
Jigar_Patel10-Nov-14 4:16
Jigar_Patel10-Nov-14 4:16 
GeneralRe: Problems with your post Pin
Ravi Bhavnani10-Nov-14 4:27
professionalRavi Bhavnani10-Nov-14 4:27 
BugThe file does not exist on the server... Pin
Stoffe8110-Nov-14 2:09
Stoffe8110-Nov-14 2:09 
GeneralRe: The file does not exist on the server... Pin
Jigar_Patel10-Nov-14 2:35
Jigar_Patel10-Nov-14 2:35 
GeneralRe: The file does not exist on the server... Pin
Jigar_Patel10-Nov-14 4:17
Jigar_Patel10-Nov-14 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.