Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I want to display 'Acknowledgment Message like successfully inserted record.' in windows application by using any control(like Memba control it's for web application).
Posted
Updated 31-Jan-12 20:07pm
v2
Comments
walterhevedeich 1-Feb-12 2:06am    
Have you tried doing it?
nareshgundapaneni 1-Feb-12 2:07am    
no,i need help which control i need to use for that.
Sergey Alexandrovich Kryukov 1-Feb-12 2:21am    
Many. Almost anything which could carry a text. This is your idea, so put forward your design.
--SA
Sergey Alexandrovich Kryukov 1-Feb-12 2:29am    
I suggested a pretty funny (but working answer) -- care to see? :-)
--SA
Rockstar_ 1-Feb-12 2:16am    
Can You Mention Your Problem Clearly?

For goodness sake! How difficult do you think it is to do?

A label.
C#
myLabel.Text = "Done";

A TextBox
C#
myTextBox.ReadOnly = true;
myTextBox.Text = "Done";

A MessageBox
C#
MessageBox.Show("Done");


If you are really desperate:
C#
myButton.AutoSize=true;
myButton.Text = "The record was inserted correctly";
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-12 2:27am    
My 5. "For goodness sake" is a very appropriate expression. :-)

I happened to invent more universal answer. Do you want to see? -- I think it's pretty interesting. :-)
--SA
OriginalGriff 1-Feb-12 2:44am    
:laugh: It's an alternative to a selection of Olde English words, mostly ending in "ing"!
Michel [mjbohn] 1-Feb-12 2:33am    
I'd take the button ;)
Do the following: scan all available controls in the library you use. Select those having a public property named "Text", "Value", "Title" or "Header", but only those of a type System.String. Learn what each of them can basically do. Choose any of them to your liking and fitness to your design ideas.

—SA
 
Share this answer
 
v3
you can use messagebox class to display Acknowledgment Message
or if you want Acknowledgment Message to appear on form and disapear automaticaly than either you can display them in a label and hide that label after predefine time by timer control
for more detailed work have a look at this post

http://bytes.com/topic/c-sharp/answers/890234-win-forms-display-self-disappearing-notifications-popups-quick-succession[^]
 
Share this answer
 
create a label lblInserted
lblInserted.text="inserted successfully";

this label should be invisible at the first time
lblInserted.visible=false;

After inserting data visible the label
lblInserted.visible=true;


else put the code in the try block.if any exception got in the catch block

catch(exception ex)
{
lblInserted.text=ex.message.tostring();
lblInserted.visible=true;
}
 
Share this answer
 
Comments
nareshgundapaneni 1-Feb-12 2:40am    
i know this one.please check this one

http://www.codeproject.com/KB/ajax/InfoBox.aspx?display=PrintAll

i need like this type of control in windows application.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900