CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    146

    [RESOLVED] Content listbox and cmdbuttons visible after seconds

    I make programs on a computer with Windows XP.
    When i run the compiled version everything is ok. The contents are visible direct.
    However, when i run the programm on a computer with Windows 7 Pro
    i get problems.
    I have a mainform frmwnstam. When i save the content of that form the program controls the input fields.
    When there are errors the listbox will be filled on the form frmFouten.
    At this time the frmFouten is not visable.
    When i, on the Windows 7 computer, show the form frmFouten, the form itself will be showed immeditately.
    The listbox, the content of the listbox and the two commandbuttons are visible after aprox 5 to 10 seconds.
    Please help.
    Herman

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Content listbox and cmdbuttons visible after seconds

    Another post about the same thing? Don't do that...

    I mentioned the FONT COLOR. Looks like it's set to the background color on W7
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    146

    Re: Content listbox and cmdbuttons visible after seconds

    My first posting was wrong.
    What i discribed was not the real problem.
    Therefore i close the first one.

    The color is not he problem.
    I made a complete new form 'frmfouten' with, again, the right colors.
    When showing the form there is only a white form with white commandbuttons.
    After 5 to 10 seconds (it is different) the form shows automaticly as it should be.
    There is no timer on the form, i use no refresh of the form or what so ever.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Content listbox and cmdbuttons visible after seconds

    Should we have to guess what code you typed into your PC, or should we just write the whole thing for you (NOT)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Content listbox and cmdbuttons visible after seconds

    Sounds like you have code running during the form load procedure that is eating up processor cycles and preventing the form from loading. Without knowing what you are doing there is no way to say what the real issue is.
    Always use [code][/code] tags when posting code.

  6. #6
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    146

    Re: Content listbox and cmdbuttons visible after seconds

    Dglienna, sorry man, i did not mean to upset you.
    It even did not cross me mind that you should quess what i am typing or even worse, you should write my code.

    DataMiser
    I have a program with two forms.
    In form1 i fill a listbox on form2 when the a input is wrong.
    At a certain moment, when form2.listbox.listcount > 0, form2 is shown.
    On the old XP computer, with much less memory than the Windows 7, form2 is shown direct, including listbox with his lines and the commandbuttons.

    On the windows 7 (newer computer) the (white) form is shown direct, but the listbox an commandbuttons are shown afte several seconds.
    During form2 load there is no further action.
    I just wondered why that is.

    Meanwhile i changed the code, myself, and show the errors on form1.
    Thanks to all of you for thinking with me.
    Have a nice weekend.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured