Click here to Skip to main content
15,913,199 members
Home / Discussions / C#
   

C#

 
QuestionWhat is GetHashCode() Pin
Nadia Monalisa27-Jan-08 12:39
Nadia Monalisa27-Jan-08 12:39 
AnswerRe: What is GetHashCode() Pin
Luc Pattyn27-Jan-08 13:37
sitebuilderLuc Pattyn27-Jan-08 13:37 
GeneralRe: What is GetHashCode() Pin
Nadia Monalisa27-Jan-08 14:08
Nadia Monalisa27-Jan-08 14:08 
GeneralRe: What is GetHashCode() Pin
Luc Pattyn27-Jan-08 14:41
sitebuilderLuc Pattyn27-Jan-08 14:41 
QuestionAsync. Socket Begin/EndReceive Loop Woes Pin
foahchon27-Jan-08 11:32
foahchon27-Jan-08 11:32 
QuestionAbout WebResourceProvider.. Pin
methhoo27-Jan-08 11:19
methhoo27-Jan-08 11:19 
GeneralRe: About WebResourceProvider.. Pin
pmarfleet27-Jan-08 12:06
pmarfleet27-Jan-08 12:06 
GeneralPassing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 10:39
Jacob Dixon27-Jan-08 10:39 
Sorry to post this again, but I needed more help than I got. I just can not understand this for some reason. I see alot of things that pass a value of a textbox to another form. We'll it opens the second form when passing the value.

I need it to pass a string/value to a form that is already open.

I have two forms.

Form: EnterInformation
--> Contains listBox1 that will hold up to five phone numbers.
Form: Phone
--> Contains two textboxes and a OK button.

Now both forms are currently open. So you enter a phone number in textbox1
--> (501) 123-1234
Now enter a description in the second textbox.
--> Jacobs Cell

Put it in a string.

string PhoneN = string.Format("{0} ({1})", textBox1.Text, textBox2.Text);


which makes it: (501) 123-1234 (Jacobs Cell)

Now this will pass what is above to the listBox on the EnterInformation form.



Please help me on this, or direct me to a tutorial that talks about something like this directly. Thank you in advance!
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 10:41
professionalPaul Conrad27-Jan-08 10:41 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 10:43
Jacob Dixon27-Jan-08 10:43 
GeneralRe: Passing strings between forms that are both open. Pin
Pete O'Hanlon27-Jan-08 10:59
mvePete O'Hanlon27-Jan-08 10:59 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:08
Jacob Dixon27-Jan-08 11:08 
GeneralRe: Passing strings between forms that are both open. Pin
Pete O'Hanlon27-Jan-08 11:19
mvePete O'Hanlon27-Jan-08 11:19 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:28
Jacob Dixon27-Jan-08 11:28 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 13:20
Nadia Monalisa27-Jan-08 13:20 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 16:03
Jacob Dixon27-Jan-08 16:03 
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 16:37
professionalPaul Conrad27-Jan-08 16:37 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 23:44
Nadia Monalisa27-Jan-08 23:44 
GeneralRe: Passing strings between forms that are both open. Pin
LongRange.Shooter28-Jan-08 8:08
LongRange.Shooter28-Jan-08 8:08 
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 16:37
professionalPaul Conrad27-Jan-08 16:37 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 17:25
Jacob Dixon27-Jan-08 17:25 
GeneralDirectX and Threading Pin
Mabre of the Tadadas27-Jan-08 10:23
Mabre of the Tadadas27-Jan-08 10:23 
GeneralRe: DirectX and Threading Pin
Paul Conrad27-Jan-08 10:42
professionalPaul Conrad27-Jan-08 10:42 
GeneralRe: DirectX and Threading [modified] Pin
Mabre of the Tadadas27-Jan-08 10:45
Mabre of the Tadadas27-Jan-08 10:45 
GeneralRe: DirectX and Threading Pin
Luc Pattyn27-Jan-08 11:10
sitebuilderLuc Pattyn27-Jan-08 11:10 

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.