I've been going though Head First C#, making little button and text box based questions. It's simple. fun, and I seem to be learning a lot.
I then thought of a neat little Windows Form Program I want to make, just a whole bunch of a buttons of ASCII art names, and then when they click the button, the art appears. Super easy.
But I figured I should bump it up a notch, and I want to make it so when the MessageBox.Show appears, they can Copy the art that shows up and paste it into Skype, FB, or whatever.
The issue I have is that you cannot copy from a MessageBox. The user cannot highlight the text or anything.
Is there a way to do that? Or have the program throw the art on to their clipboard (this might be too difficult for me, idk)?
I'll hunt around the interwebz and try to find a solution, but any ideas or advice will be greatly appreciated!
I've been going though Head First C#, making little button and text box based questions. It's simple. fun, and I seem to be learning a lot.
I then thought of a neat little Windows Form Program I want to make, just a whole bunch of a buttons of ASCII art names, and then when they click the button, the art appears. Super easy.
But I figured I should bump it up a notch, and I want to make it so when the MessageBox.Show appears, they can Copy the art that shows up and paste it into Skype, FB, or whatever.
The issue I have is that you cannot copy from a MessageBox. The user cannot highlight the text or anything.
Is there a way to do that? Or have the program throw the art on to their clipboard (this might be too difficult for me, idk)?
I'll hunt around the interwebz and try to find a solution, but any ideas or advice will be greatly appreciated!
Is there a way to do it? YES. Are you ready for it? Not a chance.
MessageBox is a system dialog that does not support Drag/Drop or Copy. So there is no easy way to do it. Now there are ways to do it with system calls using PInvoke. But you are not even close to being ready to go there.