Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
QuestionRe: An exception thrown that I can't figure out how to fix Pin
harold aptroot28-Jan-10 13:47
harold aptroot28-Jan-10 13:47 
AnswerRe: An exception thrown that I can't figure out how to fix Pin
Darrall28-Jan-10 13:55
Darrall28-Jan-10 13:55 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
harold aptroot28-Jan-10 14:17
harold aptroot28-Jan-10 14:17 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 14:33
sitebuilderLuc Pattyn28-Jan-10 14:33 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 14:32
sitebuilderLuc Pattyn28-Jan-10 14:32 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
AspDotNetDev28-Jan-10 20:43
protectorAspDotNetDev28-Jan-10 20:43 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Luc Pattyn28-Jan-10 22:05
sitebuilderLuc Pattyn28-Jan-10 22:05 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6928-Jan-10 15:14
professionalDaveyM6928-Jan-10 15:14 
Ditto the comments from the others.

Probably the most correct way to acheive the result that the tutorial was aiming for would be to:

1. Create a Case enum.
2. Have a private field of type Case in the dialog form that is set according to the radio buttons and expose this field in a public read only property.
3. Check the DialogResult of the dialog form in the main form, if OK then read the property before disposing of the form.
4. Use the Case obtained from the property in a switch block and change the TextBox's Text property accordingly.

What is it you were wanting to learn from that tutorial - changing the case of a string, using a dialog to get a user selection that may be returned to the instanciating form, or general inter-object communication?

Dave

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 4:52
Darrall29-Jan-10 4:52 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6929-Jan-10 6:03
professionalDaveyM6929-Jan-10 6:03 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 7:59
Darrall29-Jan-10 7:59 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6929-Jan-10 13:03
professionalDaveyM6929-Jan-10 13:03 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall29-Jan-10 15:44
Darrall29-Jan-10 15:44 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
DaveyM6930-Jan-10 1:41
professionalDaveyM6930-Jan-10 1:41 
GeneralRe: An exception thrown that I can't figure out how to fix Pin
Darrall30-Jan-10 7:12
Darrall30-Jan-10 7:12 
AnswerRe: An exception thrown that I can't figure out how to fix Pin
Dan Mos28-Jan-10 14:31
Dan Mos28-Jan-10 14:31 
QuestionIterating through MatchCollection Pin
uglyeyes28-Jan-10 12:54
uglyeyes28-Jan-10 12:54 
AnswerRe: Iterating through MatchCollection Pin
Luc Pattyn28-Jan-10 15:12
sitebuilderLuc Pattyn28-Jan-10 15:12 
QuestionHow to get cookies from CookieContainer? Pin
hello_amigo28-Jan-10 10:54
hello_amigo28-Jan-10 10:54 
AnswerRe: How to get cookies from CookieContainer? Pin
Luc Pattyn28-Jan-10 12:02
sitebuilderLuc Pattyn28-Jan-10 12:02 
AnswerRe: How to get cookies from CookieContainer? Pin
Mycroft Holmes28-Jan-10 12:03
professionalMycroft Holmes28-Jan-10 12:03 
GeneralRe: How to get cookies from CookieContainer? Pin
hello_amigo28-Jan-10 13:32
hello_amigo28-Jan-10 13:32 
AnswerRe: How to get cookies from CookieContainer? Pin
Not Active28-Jan-10 13:37
mentorNot Active28-Jan-10 13:37 
AnswerRe: How to get cookies from CookieContainer? Pin
hello_amigo29-Jan-10 5:43
hello_amigo29-Jan-10 5:43 
GeneralRe: How to get cookies from CookieContainer? Pin
Lasha874-Mar-10 1:37
Lasha874-Mar-10 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.