Connecting Tech Pros Worldwide Forums | Help | Site Map

VB6 Question

Kevin
Guest
 
Posts: n/a
#1: Aug 18 '06
Hi,

I'm making an administrational software program in VB6 and was wondering if
there is a way to display a (borderless) form inside a frame on another
form, or to load the contents of a frame into another frame. I dont want to
use MDI. The reason i want do this is because i have 1 main form with menu
and all and want to display a number of different controls but not all at
once, i want to create those 'frames' with controls somewhere. I thought of
using some frames on the main form and making them visible or invisible on
turns but i dont really like this way.

Thnx in advance!

Kevin



Henning
Guest
 
Posts: n/a
#2: Aug 19 '06

re: VB6 Question



"Kevin" <k.streur@gmail.comskrev i meddelandet
news:44e626a0$0$65289$dbd4d001@news.wanadoo.nl...
Quote:
Hi,
>
I'm making an administrational software program in VB6 and was wondering
if
Quote:
there is a way to display a (borderless) form inside a frame on another
form, or to load the contents of a frame into another frame. I dont want
to
Quote:
use MDI. The reason i want do this is because i have 1 main form with menu
and all and want to display a number of different controls but not all at
once, i want to create those 'frames' with controls somewhere. I thought
of
Quote:
using some frames on the main form and making them visible or invisible on
turns but i dont really like this way.
>
Thnx in advance!
>
Kevin
>
>
Hmmm, I like it. Making the frames same zize and on top of each other. Then
just ThisFrame.Zorder and voila it's on top.

/Henning


Kevin
Guest
 
Posts: n/a
#3: Aug 19 '06

re: VB6 Question


Yeah, but its not really nice and easy when designing the frames, i will
have to keep moving them around and so. i was just wondering if there was a
better way. I also experimented some with the multipage control but that
didnt work out either, so now i'm either going for those stacked frames or
for a tabbed dialog control and hiding the tabs but that also seems such an
ugly workaround :)

"Henning" <computer_hero@coldmail.comwrote in message
news:44e66850$0$32154$57c3e1d3@news3.bahnhof.se...
Quote:
>
"Kevin" <k.streur@gmail.comskrev i meddelandet
news:44e626a0$0$65289$dbd4d001@news.wanadoo.nl...
Quote:
>Hi,
>>
>I'm making an administrational software program in VB6 and was wondering
if
Quote:
>there is a way to display a (borderless) form inside a frame on another
>form, or to load the contents of a frame into another frame. I dont want
to
Quote:
>use MDI. The reason i want do this is because i have 1 main form with
>menu
>and all and want to display a number of different controls but not all at
>once, i want to create those 'frames' with controls somewhere. I thought
of
Quote:
>using some frames on the main form and making them visible or invisible
>on
>turns but i dont really like this way.
>>
>Thnx in advance!
>>
>Kevin
>>
>>
Hmmm, I like it. Making the frames same zize and on top of each other.
Then
just ThisFrame.Zorder and voila it's on top.
>
/Henning
>
>

Henning
Guest
 
Posts: n/a
#4: Aug 19 '06

re: VB6 Question


I will soon be slashed for top-posting, but.... ;)

You do not have to move them around, just right-click the frame Send to Back
till the one to work on is on top.

/Henning

"Kevin" <k.streur@gmail.comskrev i meddelandet
news:44e6d415$0$79727$dbd4d001@news.wanadoo.nl...
Quote:
Yeah, but its not really nice and easy when designing the frames, i will
have to keep moving them around and so. i was just wondering if there was
a
Quote:
better way. I also experimented some with the multipage control but that
didnt work out either, so now i'm either going for those stacked frames or
for a tabbed dialog control and hiding the tabs but that also seems such
an
Quote:
ugly workaround :)
>
"Henning" <computer_hero@coldmail.comwrote in message
news:44e66850$0$32154$57c3e1d3@news3.bahnhof.se...
Quote:

"Kevin" <k.streur@gmail.comskrev i meddelandet
news:44e626a0$0$65289$dbd4d001@news.wanadoo.nl...
Quote:
Hi,
>
I'm making an administrational software program in VB6 and was
wondering
Quote:
Quote:
if
Quote:
there is a way to display a (borderless) form inside a frame on another
form, or to load the contents of a frame into another frame. I dont
want
Quote:
Quote:
to
Quote:
use MDI. The reason i want do this is because i have 1 main form with
menu
and all and want to display a number of different controls but not all
at
Quote:
Quote:
Quote:
once, i want to create those 'frames' with controls somewhere. I
thought
Quote:
Quote:
of
Quote:
using some frames on the main form and making them visible or invisible
on
turns but i dont really like this way.
>
Thnx in advance!
>
Kevin
>
>
Hmmm, I like it. Making the frames same zize and on top of each other.
Then
just ThisFrame.Zorder and voila it's on top.

/Henning
>
>

Rick Rothstein \(MVP - VB\)
Guest
 
Posts: n/a
#5: Aug 19 '06

re: VB6 Question


You do not have to move them around, just right-click the frame
Quote:
Send to Back till the one to work on is on top.
Or, alternately, you can click the "down arrow" on the Properties Window's
ComboBox, select the Frame you want and key in Ctrl+J (short-cut keystroke
for the Format/Order/BringToFront menu item).

Rick


J French
Guest
 
Posts: n/a
#6: Aug 20 '06

re: VB6 Question


On Sat, 19 Aug 2006 10:59:17 -0400, "Rick Rothstein \(MVP - VB\)"
<rickNOSPAMnews@NOSPAMcomcast.netwrote:
Quote:
Quote:
>You do not have to move them around, just right-click the frame
>Send to Back till the one to work on is on top.
Quote:
>Or, alternately, you can click the "down arrow" on the Properties Window's
>ComboBox, select the Frame you want and key in Ctrl+J (short-cut keystroke
>for the Format/Order/BringToFront menu item).
And another alternative is to have a load of separate UserControls....
Henning
Guest
 
Posts: n/a
#7: Aug 20 '06

re: VB6 Question



"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@NOSPAMcomcast.netskrev i
meddelandet news:vq-dnSwKcvHbunrZnZ2dnUVZ_oGdnZ2d@comcast.com...
Quote:
Quote:
You do not have to move them around, just right-click the frame
Send to Back till the one to work on is on top.
>
Or, alternately, you can click the "down arrow" on the Properties Window's
ComboBox, select the Frame you want and key in Ctrl+J (short-cut keystroke
for the Format/Order/BringToFront menu item).
>
Rick
>
Thanx Rick! The Ctrl-J was my missing link. I've missed the two way
interaction Control - Properies.
Selecting a Control brings up the corresponding Properties window, but
selecting a Control in Properties window doesn't select the Control.

/Henning


Randy Birch
Guest
 
Posts: n/a
#8: Aug 20 '06

re: VB6 Question


Selecting a Control brings up the corresponding Properties window, but
Quote:
selecting a Control in Properties window doesn't select the Control.
It does here.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.


Kevin
Guest
 
Posts: n/a
#9: Aug 20 '06

re: VB6 Question


What exactly do you mean by that?

"J French" <erewhon@nowhere.ukwrote in message
news:44e8323a.267732361@news.btopenworld.com...
Quote:
On Sat, 19 Aug 2006 10:59:17 -0400, "Rick Rothstein \(MVP - VB\)"
<rickNOSPAMnews@NOSPAMcomcast.netwrote:
>
Quote:
Quote:
>>You do not have to move them around, just right-click the frame
>>Send to Back till the one to work on is on top.
>
Quote:
>>Or, alternately, you can click the "down arrow" on the Properties Window's
>>ComboBox, select the Frame you want and key in Ctrl+J (short-cut keystroke
>>for the Format/Order/BringToFront menu item).
>
And another alternative is to have a load of separate UserControls....

J French
Guest
 
Posts: n/a
#10: Aug 20 '06

re: VB6 Question


On Sun, 20 Aug 2006 16:32:24 +0200, "Kevin" <k.streur@gmail.com>
wrote:
Quote:
>What exactly do you mean by that?
Find out for yourself
- they are simple and very interesting

Basically the are a cross between Forms and Frames, but they reside in
their own modules.


Jan Hyde
Guest
 
Posts: n/a
#11: Aug 21 '06

re: VB6 Question


"Kevin" <k.streur@gmail.com>'s wild thoughts were released
on Fri, 18 Aug 2006 22:44:19 +0200 bearing the following
fruit:
Quote:
>Hi,
>
>I'm making an administrational software program in VB6 and was wondering if
>there is a way to display a (borderless) form inside a frame on another
>form, or to load the contents of a frame into another frame. I dont want to
>use MDI. The reason i want do this is because i have 1 main form with menu
>and all and want to display a number of different controls but not all at
>once, i want to create those 'frames' with controls somewhere. I thought of
>using some frames on the main form and making them visible or invisible on
>turns but i dont really like this way.
>
>Thnx in advance!
>
>Kevin
>
How about moving those option off the menu, and onto a tab
strip (SSTAB) it will also making mataining the form a lot
easier.



Jan Hyde (VB MVP)

--
Always keep several get well cards on the mantel
or coffee table so if unexpected guests arrive, they
will think you've been sick and unable to clean!

Dean Earley
Guest
 
Posts: n/a
#12: Aug 21 '06

re: VB6 Question


>I thought of using some frames on the main form and making them
Quote:
Quote:
>visible or invisible on turns but i dont really like this way.
>
Hmmm, I like it. Making the frames same zize and on top of each
other. Then just ThisFrame.Zorder and voila it's on top.
Make sure you make the "hidden" ones invisible as well, otherwise the
user can still tab to them and blindly "change" things.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Dean Earley
Guest
 
Posts: n/a
#13: Aug 21 '06

re: VB6 Question


>I'm making an administrational software program in VB6 and was
Quote:
Quote:
>wondering if there is a way to display a (borderless) form inside a
>frame on another form, or to load the contents of a frame into
>another frame. I dont want to use MDI. The reason i want do this is
>because i have 1 main form with menu and all and want to display a
>number of different controls but not all at once, i want to create
>those 'frames' with controls somewhere. I thought of using some
>frames on the main form and making them visible or invisible on
>turns but i dont really like this way.
>
How about moving those option off the menu, and onto a tab strip
(SSTAB) it will also making mataining the form a lot easier.
Unfortunately, that also suffers from the issue I mentioned (still be
"visible" and accessible)

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jan Hyde
Guest
 
Posts: n/a
#14: Aug 21 '06

re: VB6 Question


Dean Earley <dean.earley@icode.co.uk>'s wild thoughts were
released on Mon, 21 Aug 2006 10:40:49 +0100 bearing the
following fruit:
Quote:
Quote:
Quote:
>>I'm making an administrational software program in VB6 and was
>>wondering if there is a way to display a (borderless) form inside a
>>frame on another form, or to load the contents of a frame into
>>another frame. I dont want to use MDI. The reason i want do this is
>>because i have 1 main form with menu and all and want to display a
>>number of different controls but not all at once, i want to create
>>those 'frames' with controls somewhere. I thought of using some
>>frames on the main form and making them visible or invisible on
>>turns but i dont really like this way.
>>
>How about moving those option off the menu, and onto a tab strip
>(SSTAB) it will also making mataining the form a lot easier.
>
>Unfortunately, that also suffers from the issue I mentioned (still be
>"visible" and accessible)
Huh? Maybe I missed something, can you explain?






Jan Hyde (VB MVP)

--
"I believe that's Werner Heisenberg," Tom stated uncertainly.

(Perfect Tommy)

Dean Earley
Guest
 
Posts: n/a
#15: Aug 21 '06

re: VB6 Question


>>>I'm making an administrational software program in VB6 and was
Quote:
Quote:
Quote:
>>>wondering if there is a way to display a (borderless) form
>>>inside a frame on another form, or to load the contents of a
>>>frame into another frame. I dont want to use MDI. The reason i
>>>want do this is because i have 1 main form with menu and all
>>>and want to display a number of different controls but not all
>>>at once, i want to create those 'frames' with controls
>>>somewhere. I thought of using some frames on the main form and
>>>making them visible or invisible on turns but i dont really
>>>like this way.
>>>
>>How about moving those option off the menu, and onto a tab strip
>>(SSTAB) it will also making mataining the form a lot easier.
>>
>Unfortunately, that also suffers from the issue I mentioned (still
>be "visible" and accessible)
>
Huh? Maybe I missed something, can you explain?
"The SSTab control has a nice feature of allowing you to switch tabs and
place controls at runtime, but this comes at a price. When you change
tab, the controls aren't actually hidden, but moved a long way off to
the left. This has the undesired side affect of keeping them in the tab
order and accessible (although out of sight)"

Taken from:
http://hashvb.earlsoft.co.uk/Tabbed_dialogs

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jan Hyde
Guest
 
Posts: n/a
#16: Aug 21 '06

re: VB6 Question


Dean Earley <dean.earley@icode.co.uk>'s wild thoughts were
released on Mon, 21 Aug 2006 12:02:14 +0100 bearing the
following fruit:
Quote:
Quote:
Quote:
>>>>I'm making an administrational software program in VB6 and was
>>>>wondering if there is a way to display a (borderless) form
>>>>inside a frame on another form, or to load the contents of a
>>>>frame into another frame. I dont want to use MDI. The reason i
>>>>want do this is because i have 1 main form with menu and all
>>>>and want to display a number of different controls but not all
>>>>at once, i want to create those 'frames' with controls
>>>>somewhere. I thought of using some frames on the main form and
>>>>making them visible or invisible on turns but i dont really
>>>>like this way.
>>>>
>>>How about moving those option off the menu, and onto a tab strip
>>>(SSTAB) it will also making mataining the form a lot easier.
>>>
>>Unfortunately, that also suffers from the issue I mentioned (still
>>be "visible" and accessible)
>>
>Huh? Maybe I missed something, can you explain?
>
>"The SSTab control has a nice feature of allowing you to switch tabs and
>place controls at runtime, but this comes at a price. When you change
>tab, the controls aren't actually hidden, but moved a long way off to
>the left. This has the undesired side affect of keeping them in the tab
>order and accessible (although out of sight)"
Easily resolved with a few frame controls, which is
something you want to do as standard when working with the
SSTAB.

J

Jan Hyde (VB MVP)

--
Wedding Ring: A small tourniquet. It cuts off circulation (Stan Kegel)

Dean Earley
Guest
 
Posts: n/a
#17: Aug 21 '06

re: VB6 Question


>"The SSTab control has a nice feature of allowing you to switch
Quote:
Quote:
>tabs and place controls at runtime, but this comes at a price. When
>you change tab, the controls aren't actually hidden, but moved a
>long way off to the left. This has the undesired side affect of
>keeping them in the tab order and accessible (although out of
>sight)"
>
Easily resolved with a few frame controls, which is something you
want to do as standard when working with the SSTAB.
Yes, but you'd still need to make all the non active ones "not visible"
rather than just leaving them.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jan Hyde
Guest
 
Posts: n/a
#18: Aug 21 '06

re: VB6 Question


Dean Earley <dean.earley@icode.co.uk>'s wild thoughts were
released on Mon, 21 Aug 2006 13:39:40 +0100 bearing the
following fruit:
Quote:
Quote:
Quote:
>>"The SSTab control has a nice feature of allowing you to switch
>>tabs and place controls at runtime, but this comes at a price. When
>>you change tab, the controls aren't actually hidden, but moved a
>>long way off to the left. This has the undesired side affect of
>>keeping them in the tab order and accessible (although out of
>>sight)"
>>
>Easily resolved with a few frame controls, which is something you
>want to do as standard when working with the SSTAB.
>
>Yes, but you'd still need to make all the non active ones "not visible"
>rather than just leaving them.
No you don't.



Jan Hyde (VB MVP)

--
Who knocks on your door selling Halloween cookies?
Ghoul Scouts

(Ken Pinkham)

Jan Hyde
Guest
 
Posts: n/a
#19: Aug 21 '06

re: VB6 Question


Dean Earley <dean.earley@icode.co.uk>'s wild thoughts were
released on Mon, 21 Aug 2006 13:39:40 +0100 bearing the
following fruit:
Quote:
Quote:
Quote:
>>"The SSTab control has a nice feature of allowing you to switch
>>tabs and place controls at runtime, but this comes at a price. When
>>you change tab, the controls aren't actually hidden, but moved a
>>long way off to the left. This has the undesired side affect of
>>keeping them in the tab order and accessible (although out of
>>sight)"
>>
>Easily resolved with a few frame controls, which is something you
>want to do as standard when working with the SSTAB.
>
>Yes, but you'd still need to make all the non active ones "not visible"
>rather than just leaving them.
Anyway even if you choose to change the visible propery
instead of the enabled property, we're talking two lines of
code. Seriously that can't be more of a problem than trying
to shoehorn forms into frames which will result in a lot
more code and lot more problems.



Jan Hyde (VB MVP)

--
NEWSFLASH - HIGH COURT TO HEAR DRUG CASE

Dean Earley
Guest
 
Posts: n/a
#20: Aug 21 '06

re: VB6 Question


>>>"The SSTab control has a nice feature of allowing you to switch
Quote:
Quote:
Quote:
>>>tabs and place controls at runtime, but this comes at a price. When
>>>you change tab, the controls aren't actually hidden, but moved a
>>>long way off to the left. This has the undesired side affect of
>>>keeping them in the tab order and accessible (although out of
>>>sight)"
>>Easily resolved with a few frame controls, which is something you
>>want to do as standard when working with the SSTAB.
>Yes, but you'd still need to make all the non active ones "not visible"
>rather than just leaving them.
>
No you don't.
Yes we do.
Without code to set the other frames invisible, you can use the tab key
to switch focus to controls on the other tabs.
This won't have a huge affect to most people except when they use the
keyboard to navigate and the cursor disappears for ages while it goes
through all the controls, "visible" or not.

(I did double check to make sure it still applies to the SSTab control)

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jan Hyde
Guest
 
Posts: n/a
#21: Aug 21 '06

re: VB6 Question


Dean Earley <dean.earley@icode.co.uk>'s wild thoughts were
released on Mon, 21 Aug 2006 14:09:34 +0100 bearing the
following fruit:
Quote:
Quote:
Quote:
>>>>"The SSTab control has a nice feature of allowing you to switch
>>>>tabs and place controls at runtime, but this comes at a price. When
>>>>you change tab, the controls aren't actually hidden, but moved a
>>>>long way off to the left. This has the undesired side affect of
>>>>keeping them in the tab order and accessible (although out of
>>>>sight)"
>>>Easily resolved with a few frame controls, which is something you
>>>want to do as standard when working with the SSTAB.
>>Yes, but you'd still need to make all the non active ones "not visible"
>>rather than just leaving them.
>>
>No you don't.
>
>Yes we do.
>Without code to set the other frames invisible, you can use the tab key
>to switch focus to controls on the other tabs.
You can just disable the frames.
Quote:
>This won't have a huge affect to most people except when they use the
>keyboard to navigate and the cursor disappears for ages while it goes
>through all the controls, "visible" or not.
>(I did double check to make sure it still applies to the SSTab control)
Like I said, it's two lines of code to deal with this, far
far less work than the path your attempting to follow.



Jan Hyde (VB MVP)

--
Foresight: Spectacles are (Jan Hyde)

Dean Earley
Guest
 
Posts: n/a
#22: Aug 21 '06

re: VB6 Question


>This won't have a huge affect to most people except when they use the
Quote:
Quote:
>keyboard to navigate and the cursor disappears for ages while it goes
>through all the controls, "visible" or not.
>(I did double check to make sure it still applies to the SSTab control)
>
Like I said, it's two lines of code to deal with this, far
far less work than the path your attempting to follow.
I wasn't advocating the multiple form method, it's hideous :)
I was just raising awareness of having to disable/hide the frames when
using the SSTab control.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Kevin
Guest
 
Posts: n/a
#23: Aug 22 '06

re: VB6 Question


Yeah, i already made it like that, didnt change the z-order, just make all
invisible and the one i want to see visible.

"Dean Earley" <dean.earley@icode.co.ukwrote in message
news:44e97fb2$0$1857$db0fefd9@news.zen.co.uk...
Quote:
Quote:
Quote:
>>I thought of using some frames on the main form and making them
>>visible or invisible on turns but i dont really like this way.
>>
>Hmmm, I like it. Making the frames same zize and on top of each other.
>Then just ThisFrame.Zorder and voila it's on top.
>
Make sure you make the "hidden" ones invisible as well, otherwise the
user can still tab to them and blindly "change" things.
>
--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
>
iCode Systems

Closed Thread


Similar Visual Basic 4 / 5 / 6 bytes