windows - VB6 New form/msgbox pops up behind parent form On Win7 -


i have window form application written in vb6. works fine until our users upgraded workstation winxp win7. hers detail of issue:

a child form or message box opens behind parent form. users cannot because application focused on child form/messagebox. have kill whole application using task management. also, issue happens randomly (one or twice day). cannot replicate issue in development workstation. have similar issue? or suggestion helpful?

i tried following things on users' machines, none of them works:

  1. set application run in compatibility mode windows xp (service pack 3).
  2. grant users local admin right on workstations.
  3. make sure references , components on users' machine same version our development workstation.

thank much

below code popup child window:

frmclinicalquestion2.txtcqtwocomments.text = trim(m_qviolcomm) frmclinicalquestion2.txtcqtwohistorycomments.text = trim(m_qviolhistcomm) call setvalues(txtq2, optq2, m_qviol) call setvalues(frmclinicalquestion2.txtcqtwo, frmclinicalquestion2.optcqtwo, m_qviolhist) frmclinicalquestion2.show 1, frmclinical 

here how unload form:

unload frmclinicalquestion2 

after setting application run in compatibility mode windows xp (service pack 3), frequency of issue has been reduced 2~3 daily 1~2 weekly. users ok solution now. going rewrite project using .net framework soon. thank @johnwait , @craig johnson giving me suggestions.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -