DotNetUser 0 Junior Poster in Training

I'm coding in VC++.NET 2003. I have a tabcontrol with 6 tabpages. In Form_Load, I dynamically create buttons on each of the tabpages, but make them invisible. Inside a static function, I would make buttons visible according to the parameters. My program would get stuck in a loop when I have the selected tabpage open before making the buttons visible. Everything works if I have the tabpage other than the selected tabpage open. I'll have to switch to the selected tabpage to see which buttons became visible. Is this a bug?

Thanks.

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.