Issues with some vb6 datagrids on Windows 7 -
i apologize in advance long question...
i have large project written in vb6 need use on windows 7 pcs. there many forms datagrids on them. 3 of these datagrids buggy in sense (a) have remnants of on screen before datagrids shown (portions of desktop, or other parts of application underneath datagrid) , (b) clicking, highlighting, , scrolling doesn't work (selection of 1 row doesn't de-select row, scrolling 1 way doesn't let scroll back, among other bugginess).
additional info:
- on windowsxp , win7 32-bit, problem not appear; appears on win7 64-bit
- if vb6 installed (yes, numerous errors along way) on win7 64-bit machine, problem disappears
- there issues 1 other grid's rows being blacked out , many of textboxes in app being dark , hard read (on both win7 32 , 64-bit), corrected in both cases switching windows 7 classic theme (aero off)
what have tried:
- manipulated
msdatgrd.ocx
many times. copied working winxp, win7 32-bit, , original vb6 sp6 installation disk. tried each replacement of ocx file insyswow64
,system32
folders, unregistering , re-registering in each place. should note when unregistered file (regsvr32.exe
bothsystem32
,syswow64
folders) , received success notice, still found in registry (regedit). - i tried creating new form , copied controls , code on new form.
- i tried removing reference ocx @ top of form in notepad (where says
object = "{cde57a40-8b86-11d0-b3c6-00a0c90aea82}#1.0#0"; "msdatgrd.ocx"
). didn't error in case, grid still worked expected. time able response manipulating ocx file when deleted syswow64; @ point, app wouldn't open.
the reason thought form might issue because came across log files 2 forms broken datagrids (note: 1 datagrid on each form). guess log files generated while during 1 compilation. both following:
could not create reference: '{cde57a40-8b86-11d0-b3c6-00a0c90aea82}#1.0#0'. not create reference: '{831fdd16-0c5c-11d2-a9fc-0000f8754da1}#2.1#0'.
note: first reference in each file msdatgrd.ocx
, 2nd mscomctl.ocx
(which doesn't seem have problem).
so...is there else can think of me solve issue? prefer fix problem instead of using method using mshflexgrid or 3rd party grid, etc.
you may find rid of lot of issues running exe in compatibility mode. right click exe file. select properties, compatibility tab. tick box says 'run program in compatibility mode :' , select 'windows xp (service pack 3)'
click apply , save etc , try running application again.
the problem blacked out rows colour changed default in design , colour chosen system palette rather standard palette, in highlight, highlight text etc. if change theme on xp machine colours had been set system palette colours change automatically match theme. not work aero theme in windows 7 , control appear black. think option change colour standard palette colour in form designer or turn off aero theme (as have done). if have lots of controls on lots of forms try search , replace through .frm files colour code using grepwin try if confident in doing, , make sure have backup of first.
the scrolling caused fact vb6 pre-dates mouse-wheel need install third party app make mouse wheel work. try 'vbscroll' or 'freewheel'. effect mouse-wheel in ide though far know.
you try setting your_msflexigrid_name.redraw=true
after datagrid has been populated. might clear of display issues.
Comments
Post a Comment