Home All Groups Group Topic Archive Search About

Enable/Disable Checkboxes based on Parent Check value?

Author
5 Jun 2009 5:14 AM
Mike
I am wondering if VB.NET GUI logic has this already built-in.

I have two check boxes in a Login Windows Form:

    UserName: _________________________
    Password: _________________________

    [_] Remember Credentials
        [_] Auto Login

Normally, under MFC if I wanted to disable/enable Auto Login depending
on the state of Remember Credentials, you have to do it yourself in
the click events.

I don't see it in the properties, but can I associate the check state
of sub-checkbox based on its parent some how?

Its a common thing so I just wondering if there is already something
in .NET for this?  Of course, no problem to create the events, just
wondering. :-)

Thanks

--

Author
5 Jun 2009 7:43 AM
Cor Ligthert[MVP]
Mike,

Most people use currently integrated security, that means the IsInRole part,
just search for that IsInRole and you find the right Net classes for that.

Therefore login is a little bit from yesterday (in desktop applications)

Cor

Show quoteHide quote
"Mike" <unkn***@unknown.tv> wrote in message
news:eUqsByZ5JHA.2656@TK2MSFTNGP05.phx.gbl...
>I am wondering if VB.NET GUI logic has this already built-in.
>
> I have two check boxes in a Login Windows Form:
>
>    UserName: _________________________
>    Password: _________________________
>
>    [_] Remember Credentials
>        [_] Auto Login
>
> Normally, under MFC if I wanted to disable/enable Auto Login depending on
> the state of Remember Credentials, you have to do it yourself in the click
> events.
>
> I don't see it in the properties, but can I associate the check state of
> sub-checkbox based on its parent some how?
>
> Its a common thing so I just wondering if there is already something in
> .NET for this?  Of course, no problem to create the events, just
> wondering. :-)
>
> Thanks
>
> --
Author
5 Jun 2009 9:41 AM
Mike
Cor,

I appreciate your input, I really do, but I am afraid you make too
many assumptions and this doesn't address the question.

Seems you were responding to my other posting with regards to
My.Settings. :)  I am not using Windows Authentication of any kind so
it doesn't matter what most are using.  Based on my reading I need to
use System.Configuration and maybe the dictionary within the DLL
and/or figure out how the .NET DLL maps to the .NET process memory.

--



Cor Ligthert[MVP] wrote:
Show quoteHide quote
> Mike,
>
> Most people use currently integrated security, that means the IsInRole
> part, just search for that IsInRole and you find the right Net classes
> for that.
>
> Therefore login is a little bit from yesterday (in desktop applications)
>
> Cor
>
> "Mike" <unkn***@unknown.tv> wrote in message
> news:eUqsByZ5JHA.2656@TK2MSFTNGP05.phx.gbl...
>> I am wondering if VB.NET GUI logic has this already built-in.
>>
>> I have two check boxes in a Login Windows Form:
>>
>>    UserName: _________________________
>>    Password: _________________________
>>
>>    [_] Remember Credentials
>>        [_] Auto Login
>>
>> Normally, under MFC if I wanted to disable/enable Auto Login depending
>> on the state of Remember Credentials, you have to do it yourself in
>> the click events.
>>
>> I don't see it in the properties, but can I associate the check state
>> of sub-checkbox based on its parent some how?
>>
>> Its a common thing so I just wondering if there is already something
>> in .NET for this?  Of course, no problem to create the events, just
>> wondering. :-)
>>
>> Thanks
>>
>> --
>