In my book a new tabpage is created programmatically this way:

auto tabPage3 = gcnew System::Windows::Forms::TabPage();

but I want to do it without "auto" word because that's a new 2010 feature and I use VS2008.

The MSDN solution didn't help. I hope it'll take just a little tweast to solve this.

Recommended Answers

All 2 Replies

Then it would be this:

TabPage^ tabPage3 = gcnew System::Windows::Forms::TabPage();

I use VS2008.

Upgrade your compiler.

Thanks, it's worked.

Ok I'll change my compiler, but I asked because of educating purposes mostly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.