Re: Create Dynamic Controls and Displaying Page by Page on the for

From: Bil Muh (bilmuhalper_at_hotmail.com_REMOVE_THIS_PART)
Date: 10/26/04


Date: Tue, 26 Oct 2004 07:43:14 -0700

Actually, there is not any specific limitation in my application. Please let
me explaing my intention.

 There is a one file that contains formated rows of data pertaining
parameters. The number of rows will not be fixed. Let's assume there are 1000
parameters in that file.
  I am communicating with another computer via TCP/IP. Both computers have
the same file. My computer is client and other is server. Server generate
values for 1000 parameters and sends them to the client periodically.
  At the client side, I want to display all recevied values for parameters
as quick as possible. I thought that having a Paging style display would be
user-friendly to observe the data. Due to having hundreds of parameters, I
want to display them page by page. But other solutions are acceptable.
  My constraints are simple:
  1) Be Fast,
  2) Show All,
  3) Enable dummies to understand immediately, how to observe other
parameters, that are not on that page...

  For every parameters, I have to show the followings on the form:

   Parameter_Name Parameter_Current_Value Parameter_Unit

 That's all...

 Can you explain me how to use DataGrid to display values Almost-Real-Time
in the cells and How to show them similar to Page by Page type, please?

 My Best Regards...

  

"Angelos Karantzalis" wrote:

> Is there some specific reason why you don't want to use a DataGrid control ?
>
> I'm saying this because dynamically creating a few thousand controls might
> turn out to be a real performance killer for your application, no ?
>
> If you construct a DataSet from your file ( or stream or whatever ) and
> fiddle a bit with a DataGrid you could possibly do paging very easily.
>
> Angel
> O:]
>
>
> "Bil Muh" <bilmuhalper@hotmail.com_REMOVE_THIS_PART> wrote in message
> news:9B621763-FFAB-4F47-A92A-1B85214CD44B@microsoft.com...
> > Esteemede Developers,
> >
> > I would like to Thank All of You in advance for your sincere guidances.
> >
> > I am developing a software using Visual C++ .NET Standard Edition with
> > Windows Form (.NET) template.
> >
> > Briefly :
> > --------------------------------------------------------------------------
> ------------------
> > I need to create dynamically some controls on the forms, and display
> these
> > controls page by page on the form by using "Previous Page" and "Next Page"
> > buttons.
> >
> > In detailed :
> > --------------------------------------------------------------------------
> ------------------
> > I will read some information from a file. The contents of this file
> include
> > Parameter information line by line. Each line is formatted. We may think
> > that, this file is a Table with some columns of a database.
> >
> > Format of each line is similar to following:
> > Param_Number;Param_Name;Default_Value;Unit;Info1;
> >
> > Firstly, I will read this file and determine how many rows exist. Then, I
> > will create dynamically some controls for each line. Dynamically created
> > controls are as below:
> > 1. Param_Number : Label
> > 2. Param_Name : Label
> > 3. Default_Value : Label (contents of this field will change during the
> > running of application)
> > 4. Unit : Label
> >
> > This group of controls will be created on the form dynamically.
> >
> > The number of rows ( number of parameters) may change file to file, but
> > row data format will be same.
> >
> > My form's size will be maximized. I want to create control groups as
> much
> > as on the form one under the other. Let's say the number of parameter is
> > 1000, and It is possible to dynamically create 50 control groups on the
> form.
> > This means than it is required to create 20 different pages on the form.
> >
> > These are my questions...!!
> >
> > **** How can I create dynamically controls on the form? ,
> > **** How can I show them page by page on the form.? and
> > **** How can I go through on the pages with "Previous Page" and "Next
> > Page" buttons?
> >
> > I will receive some parameter values from TCP/IP socket periodically.
> > Therefore I have to change the received parameter values at the related
> > Labels in each page on the form.
> >
> > I am requesting you to guide me ...
> >
> > With this, I extend you and all yours with my bests.
> >
> > Respectfully, yours
> >
> > Bil Muh
> >
>
>
>


Loading