Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why a disabled button handles a Click Event !! Pin
Thomas Stockwell11-Jul-08 3:54
professionalThomas Stockwell11-Jul-08 3:54 
GeneralRe: Why a disabled button handles a Click Event !! Pin
Sifar - 011-Jul-08 4:14
Sifar - 011-Jul-08 4:14 
GeneralRe: Why a disabled button handles a Click Event !! Pin
DaveyM6911-Jul-08 4:34
professionalDaveyM6911-Jul-08 4:34 
GeneralRe: Why a disabled button handles a Click Event !! Pin
Thomas Stockwell11-Jul-08 4:41
professionalThomas Stockwell11-Jul-08 4:41 
AnswerRe: Why a disabled button handles a Click Event !! Pin
PIEBALDconsult11-Jul-08 11:21
mvePIEBALDconsult11-Jul-08 11:21 
Questiondatagrideview and data base Pin
A.firooz11-Jul-08 3:08
A.firooz11-Jul-08 3:08 
AnswerRe: datagrideview and data base Pin
half-life11-Jul-08 11:47
half-life11-Jul-08 11:47 
QuestionFieldInfo.SetValue on nested types Pin
FireFly_7411-Jul-08 2:56
FireFly_7411-Jul-08 2:56 
I have a class which loads it own values at startup from a database. I've abridged the following a little, but given the following:

public class AppSettings
{
     int notNestedType;

     public class _nestedClass
     {
         int nestedType;
     }
     _nestedClass nested = new _nestedClass();


    protected void Load()
    {
            MemberInfo[] MemberList = me.GetMembers(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
            foreach (MemberInfo mi in MemberList)
            {
                if (mi.MemberType == MemberTypes.Field)
                {
                   fld.SetValue(this, someValue);
                } 
                else if (me.MemberType == MemberTypes.NestedType)
                {
                   // enumerate the nested types so that we find _nestedType
                   // assuming fld = (MemberTypeInfo)_nestedType
                   // How do we do fld.SetValue(whatInstance, someValue);
                }

            }
    }
}


Setting values on this.notNestedType is not a problem.

The problem is setting values on this.instance.nestedType as I have an instance of this but don't know how to find the instance of nestedType.


I'd be very grateful for any pointers as I've spent hours searching google and trying to come up with a solution.

Thanks,
Mark.
QuestionHow to Create a Global Variable Pin
Admin88711-Jul-08 2:48
Admin88711-Jul-08 2:48 
AnswerRe: How to Create a Global Variable Pin
carbon_golem11-Jul-08 2:58
carbon_golem11-Jul-08 2:58 
AnswerRe: How to Create a Global Variable Pin
Thomas Stockwell11-Jul-08 3:56
professionalThomas Stockwell11-Jul-08 3:56 
Questionhow to call matlab command from c#? such as figure; plot Pin
Seraph_summer11-Jul-08 2:41
Seraph_summer11-Jul-08 2:41 
QuestionIIS7, provisiong sample and Quota control Pin
SilverAdder11-Jul-08 2:33
SilverAdder11-Jul-08 2:33 
QuestionConvert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 2:32
professionalDaveyM6911-Jul-08 2:32 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
Luc Pattyn11-Jul-08 3:05
sitebuilderLuc Pattyn11-Jul-08 3:05 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:28
professionalDaveyM6911-Jul-08 3:28 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
User 665811-Jul-08 3:08
User 665811-Jul-08 3:08 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:36
professionalDaveyM6911-Jul-08 3:36 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 4:19
professionalDaveyM6911-Jul-08 4:19 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
User 665811-Jul-08 6:38
User 665811-Jul-08 6:38 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
carbon_golem11-Jul-08 3:15
carbon_golem11-Jul-08 3:15 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:39
professionalDaveyM6911-Jul-08 3:39 
AnswerMessage Closed Pin
19-Nov-12 19:11
professional0xfeeddeadbeef19-Nov-12 19:11 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6919-Nov-12 19:15
professionalDaveyM6919-Nov-12 19:15 
RantRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
0xfeeddeadbeef20-Nov-12 5:43
professional0xfeeddeadbeef20-Nov-12 5:43 

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.