0

Is there an easy way (or perhaps a third-party implementation) to programmatically create a MessageBox with various types of controls on it? Ideally, with some sort of scripting language (ie. XML).

I would prefer not to code this myself from scratch.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
MarkP
  • 4,168
  • 10
  • 43
  • 84

3 Answers3

2

There are two ways to do this. One is called WinForms, the other WPF. The latter even uses an XML language (called XAML). Since you didn’t specify what kinds of controls you need, this is the best answer I can offer to your question because it covers the widest available range of controls.

Timwi
  • 65,159
  • 33
  • 165
  • 230
  • I will be adding things like checkboxes, radio buttons, textboxes, updown controls, and dropdowns. – MarkP Sep 15 '10 at 22:21
0

Could you not create a form and customise it as a compromise?

Jamie Keeling
  • 9,806
  • 17
  • 65
  • 102
  • This is my backup method. I would add some sort of XML parsing on top to make it customizable. – MarkP Sep 15 '10 at 22:30
0

I had a similar question. Custom MessageBoxes are much simpler to create than what I thought.

How to create a custom MessageBox

Community
  • 1
  • 1
Sen Jacob
  • 3,384
  • 3
  • 35
  • 61