A Problem with TableFrameLayout in C#

This is a discussion on A Problem with TableFrameLayout in C# within the C# Programming forums, part of the General Programming Boards category; Hello people. I have a problem. I am using VS2008C# and I am using it to create a program ( ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    45

    A Problem with TableFrameLayout in C#

    Hello people.

    I have a problem. I am using VS2008C# and I am using it to create a program (). When users click on a button, the Click() method should add some content to a predefined TableLayout. Typing this code:

    Code:
    TableRow someRow = new TableRow();
    I get this error: error CS0246: The type or namespace name 'TableRow' could not be found .

    Any ideas how to solve it,
    Regards,
    mintsmike

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    There is no such class (for tablelayout). You set RowCount to some value and the rows are "created" automatically. You add controls using MyTableLayout.Controls.Add(control, column, row).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    45
    Thank you for your reply. I would like to know:

    How to arrange the rows in the table. I want to have 4 headings and the rows to be added down-ways, as currently the rows are added at the bottom (in other words: I want the rows to begin at the top of the TableLayout than the bottom.

    Is there any way this can be done

    Regards

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21