Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: Strange problem with display time Pin
Rei Miyasaka23-Nov-07 13:22
Rei Miyasaka23-Nov-07 13:22 
AnswerRe: Strange problem with display time Pin
zafersavas23-Nov-07 23:09
zafersavas23-Nov-07 23:09 
QuestionGUI Form Exception when running C# form on Mono Pin
DigiOz Multimedia23-Nov-07 6:49
DigiOz Multimedia23-Nov-07 6:49 
AnswerRe: GUI Form Exception when running C# form on Mono Pin
Kristian Sixhøj23-Nov-07 6:57
Kristian Sixhøj23-Nov-07 6:57 
AnswerRe: GUI Form Exception when running C# form on Mono Pin
Anthony Mushrow23-Nov-07 7:45
professionalAnthony Mushrow23-Nov-07 7:45 
GeneralRe: GUI Form Exception when running C# form on Mono Pin
DigiOz Multimedia23-Nov-07 12:18
DigiOz Multimedia23-Nov-07 12:18 
AnswerRe: GUI Form Exception when running C# form on Mono Pin
DigiOz Multimedia23-Nov-07 17:04
DigiOz Multimedia23-Nov-07 17:04 
Questiondynamically address class vairables [modified] Pin
shwaguy23-Nov-07 6:09
shwaguy23-Nov-07 6:09 
Is there a way to convert a string type into a variable type: "string" > this."string"?

The effect I am looking for would be like the dynamic at runtime statement"this.'string' = 'the strings value'" sets a vaulue for the static compile time value "this.stringName"


Any comments or help?


Class MyClass
{
private string cn;
private string sn;
///I know.....not correct syntax
string this.cn = cn;
string this.sn = sn;

public void GetADObjectInfo(string dn)
{
DirectoryEntry entry = new DirectoryEntry("LDAP://"+ dn);
foreach (string strAttrName in entry.Properties.PropertyNames)
{
try
{

this.cn = (string)result.Properties[cn][0];
//I want the above to become something like this
//this.strAttrName = (string)result.Properties[strAttName][0];

}
catch
{
}
}
}
}


with Regards,

shwa guy





-- modified at 12:18 Friday 23rd November, 2007
AnswerRe: dynamically address class vairables Pin
Mustafa Ismail Mustafa23-Nov-07 6:28
Mustafa Ismail Mustafa23-Nov-07 6:28 
AnswerRe: dynamically address class vairables Pin
Luc Pattyn23-Nov-07 6:35
sitebuilderLuc Pattyn23-Nov-07 6:35 
GeneralRe: dynamically address class vairables Pin
Mustafa Ismail Mustafa23-Nov-07 8:33
Mustafa Ismail Mustafa23-Nov-07 8:33 
GeneralRe: dynamically address class vairables Pin
Luc Pattyn23-Nov-07 8:57
sitebuilderLuc Pattyn23-Nov-07 8:57 
GeneralRe: dynamically address class vairables Pin
Mustafa Ismail Mustafa23-Nov-07 10:04
Mustafa Ismail Mustafa23-Nov-07 10:04 
QuestionSerialDataReceivedEventArgs does not fire Pin
stevenlberntsen23-Nov-07 5:55
stevenlberntsen23-Nov-07 5:55 
QuestionDB Table Exsits Pin
half-life23-Nov-07 5:48
half-life23-Nov-07 5:48 
AnswerRe: DB Table Exsits Pin
SABhatti23-Nov-07 11:56
SABhatti23-Nov-07 11:56 
GeneralRe: DB Table Exsits Pin
half-life24-Nov-07 0:52
half-life24-Nov-07 0:52 
QuestionNotifyIcon Click Problem Pin
Sukhjinder_K23-Nov-07 5:48
Sukhjinder_K23-Nov-07 5:48 
AnswerRe: NotifyIcon Click Problem Pin
DaveyM6923-Nov-07 8:21
professionalDaveyM6923-Nov-07 8:21 
Questioncombo+sql+C# Pin
sajid.salim.khan23-Nov-07 4:50
sajid.salim.khan23-Nov-07 4:50 
AnswerWhy did you repost your message? Pin
pmarfleet23-Nov-07 5:46
pmarfleet23-Nov-07 5:46 
AnswerRe: combo+sql+C# Pin
Paul Conrad23-Nov-07 7:38
professionalPaul Conrad23-Nov-07 7:38 
Questionstore procedure problem [modified] Pin
Raza Hussain23-Nov-07 4:50
Raza Hussain23-Nov-07 4:50 
AnswerRe: store procedure problem Pin
Rob Philpott23-Nov-07 5:27
Rob Philpott23-Nov-07 5:27 
QuestionSql Table Foriegn Key Problem in C# Pin
sajid.salim.khan23-Nov-07 4:47
sajid.salim.khan23-Nov-07 4:47 

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.