anderton Posted November 10, 2003 Posted November 10, 2003 Hi ! I am building an application where I thought about using the MessageBox in C#, but I have found it to be limitted in a number of ways (mabye because I dont know it 100% yet). In some situations I want to use a messagebox (without buttons) that I can show/hide from my code. I want a messagebox that I can show when I am getting data from the server and automatically hide it again when the data i ready. There should be no way the user can remove/hide the messagebox The text I want to show in the messagebox sometimes has to be formatted, ie. showing links, different fonts etc. I want to use other icons than the ones default in the Messagebox Is all the above possible with the MessageBox in c# ?? Or do I have to make my own "MessageBox" using a winForm ? If I have to use a winForm I will welcome ideas of how to implement the above :-) Thanks in advance Anderton Quote
*Gurus* divil Posted November 10, 2003 *Gurus* Posted November 10, 2003 It sounds like you don't want a messagebox, you want your own secondard form. You can design a form to be modal just like a messagebox is. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
anderton Posted November 10, 2003 Author Posted November 10, 2003 Hi Divil Do you know of any examples on the internet where someone has used another winFOrm as a "MessageBox" ? I wouldl like more information about the easiest way to show a formatted string in a winform etc. Thanks Anderton Quote
Voca Posted November 10, 2003 Posted November 10, 2003 Try using richtextboxes. With VB.net they have a property called something like "DetectURLs" and an Event called LinkClicked, but I do not know if this is the same for ASP.net. Setting the borders of this box to None and the backcolor to Mywindow.BackColor should give the impression of a Lable. The alternative I have not yet tested is using a LinkLabel. But on this I can't give you any information. Voca Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.