For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > May 2005 > Form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Form
Ed Wyche

2005-05-27, 3:55 am

I have a form with a sstab with 97 tabs and each tab has another sstab with
4 tabs. Each one of those tabs has 5 items on it and I get an error after
doing a couple of them because I run into the problem with to many controls
on it. If someone can give me some suggestions in getting this to work.

Thanks
Ed


Michael Cole

2005-05-27, 3:55 am

Ed Wyche wrote:
> I have a form with a sstab with 97 tabs and each tab has another
> sstab with 4 tabs. Each one of those tabs has 5 items on it and I
> get an error after doing a couple of them because I run into the
> problem with to many controls on it. If someone can give me some
> suggestions in getting this to work.


97 tabs, are you serious? What the hell are you writing - I am seriously
intrigued here.

--
Regards,

Michael Cole


Veign

2005-05-27, 3:55 am

I would like to see a screenshot of this form - can you post one
somewhere...

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"Ed Wyche" <whocares> wrote in message
news:uyN5OIlYFHA.2128@TK2MSFTNGP14.phx.gbl...
> I have a form with a sstab with 97 tabs and each tab has another sstab

with
> 4 tabs. Each one of those tabs has 5 items on it and I get an error after
> doing a couple of them because I run into the problem with to many

controls
> on it. If someone can give me some suggestions in getting this to work.
>
> Thanks
> Ed
>
>



Bob Butler

2005-05-27, 3:55 am

"Ed Wyche" <whocares> wrote in message
news:uyN5OIlYFHA.2128@TK2MSFTNGP14.phx.gbl
> I have a form with a sstab with 97 tabs and each tab has another
> sstab with 4 tabs. Each one of those tabs has 5 items on it and I
> get an error after doing a couple of them because I run into the
> problem with to many controls on it. If someone can give me some
> suggestions in getting this to work.


The first thing I'd do is redesign the interface. 97 tabs is going to be
unmanageable for the users. Maybe a treeview on the left listing the 97
categories, in some logical order, and then 4 nodes under each category
replacing the child sstab controls...

If you insist on using the tabs then you do have all of the child sstab
controls in a control array, right?

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Jeff Johnson [MVP: VB]

2005-05-27, 3:55 am


"Ed Wyche" <whocares> wrote in message
news:uyN5OIlYFHA.2128@TK2MSFTNGP14.phx.gbl...

>I have a form with a sstab with 97 tabs


http://homepage.mac.com/bradster/iarchitect/tabs.htm


Veign

2005-05-27, 3:55 am

What about up / down arrows attached to a textbox. This way the user can
use the arrows to cycle through the 97 containers or type a number in the
textbox. Then display a frame or display the same frame handling the frame
based on the selected value.

Does each tab duplicate the exact same interface?

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"Ed Wyche" <whocares> wrote in message
news:utnH%23blYFHA.3648@TK2MSFTNGP14.phx.gbl...
> Yes they are in a array. There is a form before this that they select the
> ones that they want to see and then the other tabs I make invisable. I

will
> take a look at the treeview suggestion.
>
> "Veign" <NOSPAMinveign@veign.com> wrote in message
> news:OOOwaOlYFHA.2264@TK2MSFTNGP10.phx.gbl...
work.[color=darkred]
>
>
>



Ed Wyche

2005-05-27, 3:55 am

Yes each tab does duplicate. Can you give me a quick sample of what you are
talking about?

"Veign" <NOSPAMinveign@veign.com> wrote in message
news:eak$CklYFHA.796@TK2MSFTNGP10.phx.gbl...
> What about up / down arrows attached to a textbox. This way the user can
> use the arrows to cycle through the 97 containers or type a number in the
> textbox. Then display a frame or display the same frame handling the
> frame
> based on the selected value.
>
> Does each tab duplicate the exact same interface?
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Ed Wyche" <whocares> wrote in message
> news:utnH%23blYFHA.3648@TK2MSFTNGP14.phx.gbl...
> will
> work.
>
>



Bob Butler

2005-05-27, 3:55 am

"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
news:uRXXJelYFHA.4036@tk2msftngp13.phx.gbl
> "Ed Wyche" <whocares> wrote in message
> news:uyN5OIlYFHA.2128@TK2MSFTNGP14.phx.gbl...
>
>
> http://homepage.mac.com/bradster/iarchitect/tabs.htm


Thanks! I had lost that site when they last moved.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Veign

2005-05-27, 3:55 am

Hard to because I'm unsure what you are trying to accomplish with each
frame. But it would seem that you could use one interface and handle it
based on the requested value (0 - 96)...

I think the control is referred to as a spinner control.
http://www.pscode.com/vb/scripts/Sh...=52342&lngWId=1

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"Ed Wyche" <whocares> wrote in message
news:uZHD$olYFHA.3272@TK2MSFTNGP14.phx.gbl...
> Yes each tab does duplicate. Can you give me a quick sample of what you

are
> talking about?
>
> "Veign" <NOSPAMinveign@veign.com> wrote in message
> news:eak$CklYFHA.796@TK2MSFTNGP10.phx.gbl...
can[color=darkred]
the[color=darkred]
sstab[color=darkred]
>
>



Jan Hyde

2005-05-27, 8:55 am

"Bob Butler" <tiredofit@nospam.com>'s wild thoughts were
released on Thu, 26 May 2005 18:34:15 -0700 bearing the
following fruit:

>"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
>news:uRXXJelYFHA.4036@tk2msftngp13.phx.gbl
>
>Thanks! I had lost that site when they last moved.


They moved? The last site was blocked by our filter but I've
got access again... Cool.

Jan Hyde (VB MVP)

--
If native Americans made a raw fish dinner, would it be called
Souix-shi? (Obnoxio The Clown)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Rick Rothstein

2005-05-27, 8:55 am

> Yes each tab does duplicate. Can you give me a quick
> sample of what you are talking about?


As Chris said, it is hard to give an example without knowing what is
supposed to be going on behind that interface. However, consider this.
Place your four controls on a form... just four of them (NOT in a
control array, if you know what that is) and place two more TextBoxes on
there too (this is for "concept" example purposes; I would probably
eventually go with the Up/Down control that Chris suggested) one to let
the user specify the "Jackpot Tab" number and the other to let the user
specify one of the 96 shown tabs (you said 97 tabs in your original
posting, but only show 96 physical tabs). Now, create four 2-dimensional
arrays, one dimension for each of the four tabs, and the other for of
your controls, to store your data. Here is a sample declaration for
them...

Dim FramesData(1 To 4, 1 To 96) As String

Dim TypeData(1 To 4, 1 To 96) As String

Dim StartData(1 To 4, 1 To 96) As String

Dim EndData(1 To 4, 1 To 96) As String

The user can still type in (or select from the ComboBox) the values that
you plan them to, but they will only have 4 physical controls to do it
in. The tracking of the data will be done through the arrays and the
specified values in the two additional TextBoxes I had you use. You
might need an "OK" button for the user to signal when he changed the
values in the two extra TextBoxes (I haven't thought the complete
interface through; this is only a concept example that I am making up
off the top of my head). When the user clicks the "OK" button, place
this in its Click event

txtFrames.Text = FramesData(txtJackPotValue.Text, txtTabValue)
txtType.Text = FramesData(txtJackPotValue.Text, txtTabValue)
txtStart.Text = FramesData(txtJackPotValue.Text, txtTabValue)
txtEnd.Text = FramesData(txtJackPotValue.Text, txtTabValue)

and when the user indicates he's done with the process, reverse the
above assignments to store the values

JP = txtJackPotValue.Text
TB = txtTabValue.Text
FramesData(JP, TB) = txtFrames.Text
FramesData(JP, TB) = txtType.Text
FramesData(JP, TB) = txtStart.Text
FramesData(JP, TB) = txtEnd.Text

Don't forget to add these declarations to your others

Dim JP As Long
Dim TB As Long

Note that txtJackPot is meant to be the extra TextBox designated for the
user to specify the Jackpot number in; txtTab is the TextBox for the
user to specify which of the 96 tabs he would have selected from your
original interface. The other txtXXXX names are meant to correspond to
your four original controls.

You will have to dress the interface up to suit your purposes, but the
idea I'm trying to show you is you do not need to duplicate your four
controls 4 times for each Jackpot tab and then duplicate that structure
96 more times to track all of your information. Just use four controls
to take in the information and store those values in arrays in
accordance with the user's selection of Jackpot and Tab.

Rick - MVP

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com