Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...