Resize Table cell dynamically

I am trying to do the following:
I have a 2 by 2 table in VC++2005 and I would like to be able to have a button in each cell that, when clicked, expands the cell to span the entire table and, when clicked again, returns to original (50% by 50%) view.

Basically, I would like to change the ColumnStyle and RowStyle as I see fit at runtime... and have no idea how to do so

If your table is built using TableLayoutPanel, as I suggested in your previous question, use this code. To test it create new C++/CLI Windows application and paste this code to Form1.h replacing existing

If your table is built using TableLayoutPanel, as I suggested in your previous question, use this code. To test it create new C++/CLI Windows application and paste this code to Form1.h replacing existing code:

#pragma once

namespace test {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

Featured Post

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

The following diagram presents a diamond class hierarchy:
As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…

In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…

This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…