|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 Ed Wyche wrote:
> I have a form with a sstab with 97 tabs and each tab has another 97 tabs, are you serious? What the hell are you writing - I am seriously> 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. intrigued here. -- Regards, Michael Cole I would like to see a screenshot of this form - can you post one
somewhere... -- Show quoteHide quoteChris 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 > > 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. Show quoteHide quote "Veign" <NOSPAMinveign@veign.com> wrote in message [attached file: Machine.JPG]news:OOOwaOlYFHA.2264@TK2MSFTNGP10.phx.gbl... >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 >> >> > > 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? -- Show quoteHide quoteChris 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... > >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 > >> > >> > > > > > > > Yes each tab does duplicate. Can you give me a quick sample of what you are
talking about? Show quoteHide quote "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... >> 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... >> >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 >> >> >> >> >> > >> > >> >> >> > > 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/ShowCode.asp?txtCodeId=52342&lngWId=1 -- Show quoteHide quoteChris 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... > > 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... > >> >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 > >> >> > >> >> > >> > > >> > > >> > >> > >> > > > > > > > Yes each tab does duplicate. Can you give me a quick As Chris said, it is hard to give an example without knowing what is> sample of what you are talking about? 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 "Ed Wyche" <whocares> wrote in message The first thing I'd do is redesign the interface. 97 tabs is going to benews: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. 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..." "Ed Wyche" <whocares> wrote in message
http://homepage.mac.com/bradster/iarchitect/tabs.htm
news:uyN5OIlYFHA.2128@TK2MSFTNGP14.phx.gbl... >I have a form with a sstab with 97 tabs "Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message Thanks! I had lost that site when they last moved.news:uRXXJelYFHA.4036@tk2msftngp13.phx.gbl > "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 -- Reply to the group so all can participate VB.Net: "Fool me once..." "Bob Butler" <tiredofit@nospam.com>'s wild thoughts were released on Thu, 26 May 2005 18:34:15 -0700 bearing thefollowing fruit: >"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message They moved? The last site was blocked by our filter but I've>news:uRXXJelYFHA.4036@tk2msftngp13.phx.gbl >> "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 > >Thanks! I had lost that site when they last moved. 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/]
Generate email from user
Correct way to get random results with arrays VB6 vs VB.net compatibility Restore Form to Prior State How do you make child sub-commands visible in DataReport controls? Releasing lock on MDB file after DataReport1 closes Can VB6 & VB.net co-exist How do I put the focus back in a text box One procedure for a textbox array? Help on char or string var |
|||||||||||||||||||||||