why userform is with

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

why userform is with

Post by sal21 »

When i start a code from button in useform the userform appera white!
Peraphs is a memory prob?

in this case i read line by line a txt file.

How to resolve?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: why userform is with

Post by HansV »

The processor is probably too busy reading the file to draw the form. You can force the form to be drawn by adding a line

Me.Repaint

in the code behind the button.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

Re: why userform is with

Post by sal21 »

HansV wrote:The processor is probably too busy reading the file to draw the form. You can force the form to be drawn by adding a line

Me.Repaint

in the code behind the button.
sorry but i use VB6 classic, in this case i can use me.refresh....?

i use me.repaint in vba for excel -(:

in other case tested with me.refresh in the behind the button but same prob.. :sad: :scratch:

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: why userform is with

Post by HansV »

Sorry, no idea then.
Best wishes,
Hans