Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How: one service program for two similar forms? Pin
N3croman10-Sep-06 6:33
N3croman10-Sep-06 6:33 
QuestionCommand Line Arguments for an existing process Pin
Guinness4Strength9-Sep-06 6:58
Guinness4Strength9-Sep-06 6:58 
AnswerRe: Command Line Arguments for an existing process Pin
Nader Elshehabi9-Sep-06 7:06
Nader Elshehabi9-Sep-06 7:06 
GeneralRe: Command Line Arguments for an existing process Pin
Arjun "Mjolnir" Bahree9-Sep-06 10:03
Arjun "Mjolnir" Bahree9-Sep-06 10:03 
AnswerRe: Command Line Arguments for an existing process Pin
Arjun "Mjolnir" Bahree9-Sep-06 9:59
Arjun "Mjolnir" Bahree9-Sep-06 9:59 
QuestionHow is made documentation Pin
papa809-Sep-06 4:08
papa809-Sep-06 4:08 
AnswerRe: How is made documentation Pin
Ravi Bhavnani9-Sep-06 4:40
professionalRavi Bhavnani9-Sep-06 4:40 
AnswerRe: How is made documentation Pin
Suelinda_W20-Sep-06 8:06
Suelinda_W20-Sep-06 8:06 
QuestionApplication.Exit() not working very well Pin
J Liang9-Sep-06 3:52
J Liang9-Sep-06 3:52 
AnswerRe: Application.Exit() not working very well Pin
Nader Elshehabi9-Sep-06 6:01
Nader Elshehabi9-Sep-06 6:01 
GeneralRe: Application.Exit() not working very well Pin
J Liang10-Sep-06 2:28
J Liang10-Sep-06 2:28 
AnswerRe: Application.Exit() not working very well Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:17
Arjun "Mjolnir" Bahree10-Sep-06 4:17 
Questionhow can i make wizard in c# Pin
Parshant Verma9-Sep-06 3:21
Parshant Verma9-Sep-06 3:21 
AnswerRe: how can i make wizard in c# Pin
Ravi Bhavnani9-Sep-06 3:58
professionalRavi Bhavnani9-Sep-06 3:58 

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.