Thursday, September 13, 2012 9:01 AM
After upgrading VB6 project with VS2008, DataGrid control will be split if user control is put on the form where the DataGrid control was placed.
And it will be also split when you start debug with F5 after resizing or moving any controls.
I would like to know how to restore the state of the DataGrid control.
Replacing <value> of <data name="DataGrid1.OcxState" ...> in resX file seems to be able to restore it, but if anyone knows better solution, let me know, please.
<data name="DataGrid1.OcxState" mimetype="application/x-microsoft.net.object.binary.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAA0QEAAAIB AAAAAQAAAAAkAAAAQ0RFNTdBNTUtOEI4Ni0xMUQwLWIzQzYtMDBBMEM5MEFFQTgyAAAAAJgBAAAhQzQS CAAAAHwkAABVDQAAYOjVWgAABgABAAAAAgAAAAUAAIAIAACAAACAPwAAcEEAAAAAAQECAAEAAQEBAQAB AAAAAANS4wuRj84RneMAqgBLuFEBgAAAkAGQXwEAD4JsgnIggm+DU4NWg2KDTgNS4wuRj84RneMAqgBL uFEBgAAAkAGQXwEAD4JsgnIggm+DU4NWg2KDTgAAAAAAAAAABgAAAAQAAAAAAAAAAQAAAAEAAAABAAAA AAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAkFaDbQuQ0BGUhACgyREQ7VA4JmsCAAYAAAAAAAAAAAAAAAAA AAAAAAAAAABVAHAAZwByAGEAZAARBAAAAAAAAAAAAAAAAAAAkFaDbQuQ0BGUhACgyREQ7VA4JmsCAAYA AAAAAAAAAAAAAAAAAAAAAAAAAADohJoD/////wAAAAARBAAAAAAAAAAAAAACAAAAAQAAAAAAAAAAAAAA AQAAAAAAAAAAACdFAAAAAAIAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAJ0UL </value>
Friday, September 14, 2012 5:27 AMModerator
Welcome to the MSDN forum.
There is a new control named Datagridview to replace the datagrid in VB6. So I will suggest you to use datagridview instead of it to solve this issue.
Here is some information about DataGridView Class: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.100).aspx
Hope this helps.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
Friday, September 14, 2012 10:44 AM
I answered in the Japanese forum.
個別に明示されていない限りgekkaがフォーラムに投稿したコードにはフォーラム使用条件に基づき「MICROSOFT LIMITED PUBLIC LICENSE」が適用されます。(かなり自由に使ってOK!)
- Marked As Answer by Tetsuo Nakai Sunday, October 07, 2012 5:39 AM