ThinkGeo.com    |     Documentation    |     Premium Support

Problem using the Map in a TabControl

Hello


 


I am using the winformsMap in a tabControl,


on the form load, i am adding my layers and styles,


but the map is not showing until i pan or zoom or call the refresh


I think that the problem is because of the HandleCreated event on TabControl which is not called till you open the specified Tab


Can you give me a solution, or this is problem that i wish to take it in consideration


 


Thanks.



Krypton,


Thanks for your post.


I try to recreate your problem, so I create a simple sample, it works fine. Can you download it and test in your environment?


By the way, our HowDoI samples also use the map in the tabControl, it works fine too.


Thanks


James



1819-TestUsingMapInTabControl.zip (10.6 KB)

OK, I will try it and regenerate my situation 
  
 thanks

I let you know that I also tested the attached sample in my environment and I did not encounter any problem. I hope that this is working for you too now.