home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,716 of 10,840   
   Otie to J French   
   Re: Child forms and operation - non-MDI   
   29 Oct 05 22:17:51   
   
   XPost: comp.lang.basic.visual   
   From: otie_nospam@adelphia.net   
      
   >> I doubt that you really want ten differnt Forms visible at the   
   same time.   
      
   Yes, I do. I want to be able to hit the main form's CALCULATE button   
   10 different times, with 10 different calculation parameters, and then   
   fill 10 separate forms with grids with data (the data will all be   
   different because of the different calculation prameters), all visible   
   at the same time (so I can compare data, one grid against all the   
   others).   
      
      
      
      
   ---   
   Otis   
      
      
      
   "J French"  wrote in message   
   news:4363259c.91033335@news.btopenworld.com...   
   > On Fri, 28 Oct 2005 10:55:49 -0700, "Otie"   
      
   > wrote:   
   >   
   > >Yes, thank you so much.   
   > >   
   > >I see I have one other problem. If I want to keep the data that   
   > >appears in the grids separate for each form and grid (because new   
   > >forms will have different calculated data in the grids), I will   
   have   
   > >to keep track of the separate data in separate arrays (or at least   
   use   
   > >a 2-dimension array instead of the 1-dimension array I now have).   
   This   
   > >being the case, I wonder if it just isn't as easy to actually   
   create   
   > >10 different grids forms and just call them separately. Yes,   
   putting   
   > >everything into arrays is perhaps cleaner, but making 10 different   
   > >forms all identical except for the titles and what data is loaded   
   from   
   > >which array seems easy enough, too. Maybe it's a toss up. I suppose   
   > >good programming practice is to make form arrays and dimension data   
   > >arrays that correspond to these form arrays.   
   >   
   > It does sound as if you should use an MDI Form to hold the 10   
   separate   
   > forms, I doubt that you really want ten differnt Forms visible at   
   the   
   > same time.   
   >   
   > Certainly designing ten separate forms that are virtually identical   
   is   
   > not exactly efficient or elegant. Also a PITA to maintain.   
   >   
   > You could have a Control Array of UserControls on one Form and   
   simply   
   > Show/Hide them as required.   
   > That would make it easy to encapsulate the code and Raise an Event   
   in   
   > the parent form to request data or keep it informed.   
   >   
   > I've a feeling that I would use a TabStrip here.   
   > A lot easier for the User to navigate.   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca