Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Control (command buttons) display problem

1 view
Skip to first unread message

Jack

unread,
Oct 11, 2008, 1:38:08 PM10/11/08
to
Sometimes, there are some black spots (mostly below) the command buttons.
Resizing removes them, or shifts them into a different location.
What that can be and how to deal with it?
I have clipped some samples of them for viewing in here:
1.
http://www.phonedialerpro.com/Clip2.jpg
There are something black appearing under OK button.
2.
http://www.phonedialerpro.com/Clip6.jpg
There are some black spots close to the bottoms of 3 command buttons: *, 0
and #
They appeared after restoring window to the normal size from a minimized
state.
3.
http://www.phonedialerpro.com/Clip5.jpg
On this clip, please notice the black outline on the right side of the
middle small command button (0)
Neigbouring buttons (* and #) (same size), do not have it.

Resizing the window clears that spots and sometimes makes them to appear
again.
And to make it clear:
I do not have any other controls (visible or hidden) around those buttons.

Your comments appreciated,
Jack


Jack

unread,
Oct 11, 2008, 1:45:35 PM10/11/08
to
Here is one more clip:
http://www.phonedialerpro.com/Clip7.jpg

Here, appears something blue on the right side of button 0.
It appeared after restoring window to the normal size from a minimized
state.
Jack


"Jack" <replyto@it> wrote in message
news:O1Abjg8K...@TK2MSFTNGP05.phx.gbl...

Larry Serflaten

unread,
Oct 11, 2008, 2:13:04 PM10/11/08
to

"Jack" <replyto@it> wrote

> Here is one more clip:
> http://www.phonedialerpro.com/Clip7.jpg
>
> Here, appears something blue on the right side of button 0.
> It appeared after restoring window to the normal size from a minimized
> state.


Have you taken note of what is on the screen before you restore
those forms? It would appear to me that the forms are not being
rendered properly, that some parts are not being cleared of the
old data (previous application image).

While not a fix, I wonder if changing the form's ClipControls property
might have an effect....

LFS


Jack

unread,
Oct 11, 2008, 2:20:34 PM10/11/08
to
Larry, I start believing that they are "holes".
For example blue color it is my desktop color.
So, the other black spots can be what was the background at that moment.
That happens, mostly (or always?) when restoring to the normal size.
I tried to restore, when the background was white and there were some white
strikes in my window.
But that only appears around those command buttons, not anywhere else.
Jack

"Larry Serflaten" <serf...@usinternet.com> wrote in message
news:O1LIxz8K...@TK2MSFTNGP05.phx.gbl...

Chris D

unread,
Oct 11, 2008, 3:13:59 PM10/11/08
to
Jack,

Is it an ATI graphical controller in Your PC.
I have had the same issue but only on an ACER with ATI controller.

Chris

Jack

unread,
Oct 11, 2008, 7:23:44 PM10/11/08
to
Nope.
I have NVIDIA GeForce 8600 GT and I can see the same display problem on
different computers running different video adapters.
Jack

"Chris D" <xh...@xdtexhnologies.info> wrote in message
news:48f0fafc$0$2863$ba62...@news.skynet.be...

Jack

unread,
Oct 11, 2008, 7:30:21 PM10/11/08
to
I have form's ClipControls set to TRUE..
When I changed it to FALSE I have strange thing happenning when resizing the
form. Sometimes window appears blank! with no controls visible whatsoever.
Jack

"Larry Serflaten" <serf...@usinternet.com> wrote in message
news:O1LIxz8K...@TK2MSFTNGP05.phx.gbl...
>

Jack

unread,
Oct 11, 2008, 7:41:46 PM10/11/08
to
I think I am dealing with 2 different problems here.
Problem 1.
Black (sometimes blue) spots at the bottom or right side of the command
button.
Interestingly they never appear on the top or left side of the control.
This problem appears only when the form is returned to the normal state from
minimized state.
It looks like "holes" in the controls, allowing the background color to be
shown.
Problem 2.
Outline of the command buttons is darker or lighter or completely flat
appears sometimes during resizing and after it.
I believe that this problem has something to do with the control being grid
align or not.
More of your comments appreciated,
Jack


"Jack" <replyto@it> wrote in message
news:O1Abjg8K...@TK2MSFTNGP05.phx.gbl...

Ralph

unread,
Oct 11, 2008, 8:45:33 PM10/11/08
to

"Jack" <replyto@it> wrote in message
news:OxzJYl$KJHA...@TK2MSFTNGP04.phx.gbl...

> I have form's ClipControls set to TRUE..
> When I changed it to FALSE I have strange thing happenning when resizing
the
> form. Sometimes window appears blank! with no controls visible whatsoever.
> Jack
>

Perhaps you need to back up a step or two.
Just how and where are you resizing these buttons?
Is your code dependent on a particular ordering of events?
Is your code dependent on specific events and assumes no duplication or
missing events?

Can you create a minimal project/form that exhibits this behavior outside
your current program?

-ralph


Jack

unread,
Oct 12, 2008, 2:36:58 PM10/12/08
to
Please see inline
"Ralph" <nt_cons...@yahoo.com> wrote in message
news:uszLTSAL...@TK2MSFTNGP04.phx.gbl...

>
> "Jack" <replyto@it> wrote in message
> news:OxzJYl$KJHA...@TK2MSFTNGP04.phx.gbl...
>> I have form's ClipControls set to TRUE..
>> When I changed it to FALSE I have strange thing happenning when resizing
> the
>> form. Sometimes window appears blank! with no controls visible
>> whatsoever.
>> Jack
>>
>
> Perhaps you need to back up a step or two.
> Just how and where are you resizing these buttons?
Buttons are resized in Form_Resize event.
They are square, proportionally spaced with the size depending on the width
of the frame they are placed in.
The number of buttons is fixed, of total of 12 placed in the grid 3 x 4
Interestingly, the black spots appear only when restoring to normal size
from minimized state.
Manual resizing clears all these spots and never creates new ones.

> Is your code dependent on a particular ordering of events?

I do not get it, but I guess the right answer is no.

> Is your code dependent on specific events and assumes no duplication or
> missing events?

I do not get it either.
When the program starts it is in the idle state. It does nothing, waiting
for the user action.
Just simple minimizing and restoring window creates those spots. Also,
sometimes they appear on the program startup too.
Jack

Mike Williams

unread,
Oct 13, 2008, 2:02:08 AM10/13/08
to
"Jack" <replyto@it> wrote in message
news:OlRcGmJL...@TK2MSFTNGP06.phx.gbl...

> Buttons are resized in Form_Resize event.
> They are square, proportionally spaced with the size
> depending on the width of the frame they are placed in.

What happens if you take them out of the Frame, or if you perhaps (at least
temporarily) use a different container, such as a PictureBox?

Mike

Jack

unread,
Oct 13, 2008, 12:03:43 PM10/13/08
to
Sorry, my mistake, Mike.
They are placed in the picture box not a frame.
I changed a frame container to picture box quite a while ago.
Jack

"Mike Williams" <Mi...@WhiskyAndCoke.com> wrote in message
news:%23EjL5kP...@TK2MSFTNGP02.phx.gbl...

nor...@hotmail.com

unread,
Dec 10, 2010, 8:12:17 AM12/10/10
to
0 new messages