469,602 Members | 1,932 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

VB6 to VB2005 question about Frame control

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?
Jun 13 '06 #1
5 2165
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" <ke***@nospam.com> schreef in bericht
news:bk********************************@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?

Jun 14 '06 #2
"Cor Ligthert [MVP]" <no************@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/>
Jun 14 '06 #3
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:%2******************@TK2MSFTNGP05.phx.gbl... "Cor Ligthert [MVP]" <no************@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/>

Jun 14 '06 #4
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]"
<no************@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" <ke***@nospam.com> schreef in bericht
news:bk********************************@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?

Jun 14 '06 #5
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
"Kevin" <ke***@nospam.com> schreef in bericht
news:rl********************************@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]"
<no************@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" <ke***@nospam.com> schreef in bericht
news:bk********************************@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?

Jun 15 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by guy | last post: by
53 posts views Thread by jaso | last post: by
5 posts views Thread by sudidelaravi | last post: by
9 posts views Thread by bz | last post: by
92 posts views Thread by =?Utf-8?B?bW9iaWxlbW9iaWxl?= | last post: by
7 posts views Thread by Galen Somerville | last post: by
15 posts views Thread by Aalaan | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.