I want to pop up an error messsage in a radio button list example.if user fails to select a button i want to a pop up showing an error message saying you have to select each buton. how do I do that. Can I have the code please.
If you really don't know the "How" then look at wizzards solution. I'm quite sure that you're not really concerned with "how" to show the message, but rather the "When".—MRB
Without knowing the intended workflow within your windows form application it's kind of hard to tell. I'll assume that you're doing a WinForm application and not doing ASP.NET as you didn't tag your question with ASP.NET.
If there is a button that gets pressed to process the form, that buttons click method would be the ideal place to check if a radio button is selected and show the message.
Edited 29-Aug-11 10:03am
Instead of doing it that way, use the event mechanism to set flags, and enable/disable the buttons as appropriate. Users HATE being interrupted by message box popups.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)