Home All Groups Group Topic Archive Search About

VB6 to VB2005 question about Frame control

Author
13 Jun 2006 8:26 PM
Kevin
I have a Windows form with several Frame controls containing
Textboxes, Comboboxes, Buttons, etc. The Enabled property on the
Frames are set to False and the user can't edit any of the Textboxes
until they click a button. 

When I try this in VB2005 and set the Enabled property to False,
everything in the Frame turns gray and is hard to read (relatively
speaking).

Is there any way to duplicate the functionality of the VB6 Frames?

Author
14 Jun 2006 6:43 AM
Cor Ligthert [MVP]
Kevin,

What do you mean with a frame, I know frames in web pages, but in VBNet
there are no frames.

Please be correct in the description of your questions, we see less than, so
using own invented of in past used words means only that other people cannot
help quick.

Cor

Show quoteHide quote
"Kevin" <kevin@nospam.com> schreef in bericht
news:bk7u82do19khp1rju0ocqmf66r0d61fkpr@4ax.com...
>I have a Windows form with several Frame controls containing
> Textboxes, Comboboxes, Buttons, etc. The Enabled property on the
> Frames are set to False and the user can't edit any of the Textboxes
> until they click a button.
>
> When I try this in VB2005 and set the Enabled property to False,
> everything in the Frame turns gray and is hard to read (relatively
> speaking).
>
> Is there any way to duplicate the functionality of the VB6 Frames?
Author
14 Jun 2006 7:31 AM
Herfried K. Wagner [MVP]
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> schrieb:
> What do you mean with a frame, I know frames in web pages, but in VBNet
> there are no frames.

The OP refers to the groupbox control.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
14 Jun 2006 7:46 AM
Cor Ligthert [MVP]
Herfried,

> The OP refers to the groupbox control.

Are you sure, it shows that it is true what I wrote, while doing that  I
thought that he meant the surface (background) of the window.

Cor

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schreef in bericht
news:%23%23biYS4jGHA.4508@TK2MSFTNGP05.phx.gbl...
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> schrieb:
>> What do you mean with a frame, I know frames in web pages, but in VBNet
>> there are no frames.
>
> The OP refers to the groupbox control.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
14 Jun 2006 10:28 PM
Kevin
Sorry I didn't make myself clear.

I'm using a frame control in VB6.  I put all the controls on the form
inside the frame control.  The frame's border property is set to None
so it's invisible on the form--the user doesn't know it's there.

When the Enabled property of the frame is set to False, all of the
controls inside appear like they would if they were directly on the
form, but the user is not able to access any of them.  When I set the
frame's Enabled property to True, then the user can type in the
textboxes, etc.

I'm trying to use a panel control in VB2005.  When I set the panel's
Enabled property to False, all of the controls inside it appear grayed
out.  Is there some other control that I can use that will allow me to
lock other controls without changing their looks?




On Wed, 14 Jun 2006 08:43:02 +0200, "Cor Ligthert [MVP]"
<notmyfirstn***@planet.nl> wrote:

Show quoteHide quote
>Kevin,
>
>What do you mean with a frame, I know frames in web pages, but in VBNet
>there are no frames.
>
>Please be correct in the description of your questions, we see less than, so
>using own invented of in past used words means only that other people cannot
>help quick.
>
>Cor
>
>"Kevin" <kevin@nospam.com> schreef in bericht
>news:bk7u82do19khp1rju0ocqmf66r0d61fkpr@4ax.com...
>>I have a Windows form with several Frame controls containing
>> Textboxes, Comboboxes, Buttons, etc. The Enabled property on the
>> Frames are set to False and the user can't edit any of the Textboxes
>> until they click a button.
>>
>> When I try this in VB2005 and set the Enabled property to False,
>> everything in the Frame turns gray and is hard to read (relatively
>> speaking).
>>
>> Is there any way to duplicate the functionality of the VB6 Frames?
>
Author
15 Jun 2006 4:32 AM
Cor Ligthert [MVP]
Kevin,

You can use for that two (one goes as well but this is easier to describe).

On one you put all the controls on the others you put nothing
You set the dock property of both in the form load event to Full
Than you can hide (visible = false or true) everytime one of those.

(If you use one you set the controls on the surface of the window and use
the panel to hide them by showing a blank pannel, I would use two because
that makes the way you do it in my idea more clear)

I hope this helps,

Cor
Show quoteHide quote
"Kevin" <kevin@nospam.com> schreef in bericht
news:rl2192hl0ibqp6545u7ugus4lcve6sfsai@4ax.com...
> Sorry I didn't make myself clear.
>
> I'm using a frame control in VB6.  I put all the controls on the form
> inside the frame control.  The frame's border property is set to None
> so it's invisible on the form--the user doesn't know it's there.
>
> When the Enabled property of the frame is set to False, all of the
> controls inside appear like they would if they were directly on the
> form, but the user is not able to access any of them.  When I set the
> frame's Enabled property to True, then the user can type in the
> textboxes, etc.
>
> I'm trying to use a panel control in VB2005.  When I set the panel's
> Enabled property to False, all of the controls inside it appear grayed
> out.  Is there some other control that I can use that will allow me to
> lock other controls without changing their looks?
>
>
>
>
> On Wed, 14 Jun 2006 08:43:02 +0200, "Cor Ligthert [MVP]"
> <notmyfirstn***@planet.nl> wrote:
>
>>Kevin,
>>
>>What do you mean with a frame, I know frames in web pages, but in VBNet
>>there are no frames.
>>
>>Please be correct in the description of your questions, we see less than,
>>so
>>using own invented of in past used words means only that other people
>>cannot
>>help quick.
>>
>>Cor
>>
>>"Kevin" <kevin@nospam.com> schreef in bericht
>>news:bk7u82do19khp1rju0ocqmf66r0d61fkpr@4ax.com...
>>>I have a Windows form with several Frame controls containing
>>> Textboxes, Comboboxes, Buttons, etc. The Enabled property on the
>>> Frames are set to False and the user can't edit any of the Textboxes
>>> until they click a button.
>>>
>>> When I try this in VB2005 and set the Enabled property to False,
>>> everything in the Frame turns gray and is hard to read (relatively
>>> speaking).
>>>
>>> Is there any way to duplicate the functionality of the VB6 Frames?
>>