Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: question about a WEIRD problem in sending mail using smtp client. Pin
Green Fuze11-Sep-06 2:03
Green Fuze11-Sep-06 2:03 
GeneralRe: question about a WEIRD problem in sending mail using smtp client. Pin
Green Fuze10-Sep-06 3:36
Green Fuze10-Sep-06 3:36 
AnswerRe: question about a WEIRD problem in sending mail using smtp client. Pin
Amar Chaudhary9-Sep-06 17:47
Amar Chaudhary9-Sep-06 17:47 
GeneralRe: question about a WEIRD problem in sending mail using smtp client. Pin
Green Fuze9-Sep-06 21:53
Green Fuze9-Sep-06 21:53 
Questionbrief question about sending a message to a control Pin
likefood9-Sep-06 9:29
likefood9-Sep-06 9:29 
AnswerRe: brief question about sending a message to a control Pin
Arjun "Mjolnir" Bahree9-Sep-06 9:48
Arjun "Mjolnir" Bahree9-Sep-06 9:48 
GeneralRe: brief question about sending a message to a control [modified] Pin
likefood9-Sep-06 10:07
likefood9-Sep-06 10:07 
GeneralRe: brief question about sending a message to a control Pin
Arjun "Mjolnir" Bahree9-Sep-06 10:27
Arjun "Mjolnir" Bahree9-Sep-06 10:27 
GeneralRe: brief question about sending a message to a control Pin
likefood9-Sep-06 10:26
likefood9-Sep-06 10:26 
GeneralRe: brief question about sending a message to a control Pin
Arjun "Mjolnir" Bahree9-Sep-06 10:33
Arjun "Mjolnir" Bahree9-Sep-06 10:33 
GeneralRe: brief question about sending a message to a control Pin
likefood9-Sep-06 12:10
likefood9-Sep-06 12:10 
GeneralRe: brief question about sending a message to a control Pin
Arjun "Mjolnir" Bahree10-Sep-06 3:10
Arjun "Mjolnir" Bahree10-Sep-06 3:10 
Questionis there a winform label control Pin
TheCardinal9-Sep-06 9:09
TheCardinal9-Sep-06 9:09 
AnswerRe: is there a winform label control Pin
Arjun "Mjolnir" Bahree9-Sep-06 9:34
Arjun "Mjolnir" Bahree9-Sep-06 9:34 
GeneralRe: is there a winform label control Pin
TheCardinal9-Sep-06 9:55
TheCardinal9-Sep-06 9:55 
GeneralRe: is there a winform label control Pin
Arjun "Mjolnir" Bahree9-Sep-06 10:39
Arjun "Mjolnir" Bahree9-Sep-06 10:39 
GeneralRe: is there a winform label control Pin
TheCardinal9-Sep-06 19:03
TheCardinal9-Sep-06 19:03 
GeneralRe: is there a winform label control Pin
Arjun "Mjolnir" Bahree10-Sep-06 3:18
Arjun "Mjolnir" Bahree10-Sep-06 3:18 
QuestionRMI JAVA Pin
charbelasmar9-Sep-06 7:55
charbelasmar9-Sep-06 7:55 
AnswerRe: RMI JAVA Pin
WillemM9-Sep-06 8:53
WillemM9-Sep-06 8:53 
AnswerRe: RMI JAVA Pin
Arjun "Mjolnir" Bahree9-Sep-06 9:36
Arjun "Mjolnir" Bahree9-Sep-06 9:36 
QuestionHow: one service program for two similar forms? Pin
N3croman9-Sep-06 7:24
N3croman9-Sep-06 7:24 
I use VS 2005 and C# for only two weeks and I'm desperate in this problem. My program, (screenshot), has two columns with the same content - buttons and textboxes. I really don't know, how to create some simple code usable for both of them. These textboxes and buttons has similar names, like:
textBoxAInput, textBoxAIV, textBoxAIV2, richTextBoxARunda1IVBin; textBoxBInput, textBoxBIV, textBoxBIV2, richTextBoxBRunda1IVBin;
and there are buttons like: buttonTextA, buttonTextB
There is about 20 textBoxes in both colomns.

What can you recommend me to use: I want to have just one general program capable opperate with both columns? ...some delegates, or special classes, some universal usercontrol, maybe interface? I'm begginer in C# and I don't know well these special purpose "things".

The best idea I have is, if possible, using strings as names: pseudocode
void printsomething(char ID)
{
//ID is A or B
string nameIV1 = new string("textBox" + ID + "IV1");
nameIV1.Text = "something"; //any idea, how to use "string as object name"?
}

I don't wanna use unsafe code, so there's no way using references, like:
if (sender.Equals(buttonTextA))
textBoxIV = &textBoxAIV;
else
textBoxIV = &textBoxBIV;
//or is something like that possible in "non-unsafe" code?

any idea, how to do this?
thank a lot for any help.


Source code and further informations about the program - here
AnswerRe: How: one service program for two similar forms? Pin
Nader Elshehabi9-Sep-06 7:46
Nader Elshehabi9-Sep-06 7:46 
GeneralRe: How: one service program for two similar forms? Pin
N3croman9-Sep-06 9:57
N3croman9-Sep-06 9:57 
GeneralRe: How: one service program for two similar forms? [modified] Pin
Nader Elshehabi9-Sep-06 11:24
Nader Elshehabi9-Sep-06 11:24 

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.