Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Reports - Runtime Pin
SysJey6-Jul-06 23:00
SysJey6-Jul-06 23:00 
QuestionFOP it Pin
Support1236-Jul-06 23:00
Support1236-Jul-06 23:00 
QuestionHow to find the Server IP using .net Pin
rajkasa6-Jul-06 22:38
rajkasa6-Jul-06 22:38 
AnswerRe: How to find the Server IP using .net Pin
stancrm6-Jul-06 22:49
stancrm6-Jul-06 22:49 
Questionstring problem ? help please ¿ Pin
cmpeng346-Jul-06 22:37
cmpeng346-Jul-06 22:37 
AnswerRe: string problem ? help please ¿ Pin
stancrm6-Jul-06 22:58
stancrm6-Jul-06 22:58 
AnswerRe: string problem ? help please ¿ Pin
Guffa6-Jul-06 22:59
Guffa6-Jul-06 22:59 
AnswerRe: string problem ? help please ¿ Pin
Nader Elshehabi6-Jul-06 23:15
Nader Elshehabi6-Jul-06 23:15 
Hello

You can parse and excute C# statements from text files but in your case it's not worth it. Instead you should store the names of your controls, and the the values. Then you might want to check them with if/else if statements. eg:

string MyReadLine = TextFile.ReadLine();
if(MyReadLine.StartWith("TabPage1"))
{
    string temp = MyReadLine.SubString(8);
    tabPage1.Text = temp;
}
else if(...


Another more advanced approach would be Reflection. Just type Reflection in your MSDN's index. Yet again I don't think it's worth it.

RegardsRose | [Rose]
GeneralRe: string problem ? help please ¿ Pin
Anh_Tuan7-Jul-06 2:18
Anh_Tuan7-Jul-06 2:18 
AnswerRe: string problem ? help please ¿ Pin
V.7-Jul-06 1:10
professionalV.7-Jul-06 1:10 
Questioninstance of a crystal report Pin
cellardoor07166-Jul-06 22:25
cellardoor07166-Jul-06 22:25 
AnswerRe: instance of a crystal report Pin
V.7-Jul-06 1:14
professionalV.7-Jul-06 1:14 
QuestionMarshaling Object Pin
Anh_Tuan6-Jul-06 22:22
Anh_Tuan6-Jul-06 22:22 
AnswerRe: Marshaling Object Pin
mav.northwind7-Jul-06 1:14
mav.northwind7-Jul-06 1:14 
GeneralRe: Marshaling Object Pin
Anh_Tuan7-Jul-06 3:20
Anh_Tuan7-Jul-06 3:20 
Questionrunning a function in a thread Pin
Mridang Agarwalla6-Jul-06 22:21
Mridang Agarwalla6-Jul-06 22:21 
AnswerRe: running a function in a thread Pin
Anh_Tuan6-Jul-06 22:32
Anh_Tuan6-Jul-06 22:32 
GeneralRe: running a function in a thread Pin
Adadurov7-Jul-06 0:22
Adadurov7-Jul-06 0:22 
Questioncreate custom database [modified] Pin
z1z16-Jul-06 22:14
z1z16-Jul-06 22:14 
AnswerRe: create custom database Pin
Paul Conrad6-Jul-06 23:18
professionalPaul Conrad6-Jul-06 23:18 
Questioncombo box issue Pin
V.6-Jul-06 22:10
professionalV.6-Jul-06 22:10 
Questionexporting int array from c++ dll to c# client Pin
Tugberk_Kara6-Jul-06 22:07
Tugberk_Kara6-Jul-06 22:07 
QuestionOutlook automation in Citrix MetaFrame supresses notifications [modified] Pin
Corinna John6-Jul-06 22:03
Corinna John6-Jul-06 22:03 
QuestionMousePosition vs lParam Pin
syedhassan46-Jul-06 21:11
syedhassan46-Jul-06 21:11 
AnswerRe: MousePosition vs lParam Pin
fang_eric6-Jul-06 21:20
fang_eric6-Jul-06 21:20 

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.