473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Refresh/Blinking Problems with VB.NET Application

Hi,

I have created a CAD type application in VB.NET. I have a strange
problem which I have been unable to resolve.

Sometimes, when I open a modal dialog on the form, the imprint of
whatever happens to be behind the main form (e.g. word document,
desktop etc.) flashes up briefly while the control is drawn. Also,
sometimes when dialogs are closed, the whole main form briefly
disappears (for maybe 0.5 of a second) and then reappears.

I am using a Panel on the main form which uses GDI+ if that helps at
all.

Any advice as to what I might be able to do to resolve this annoying
problem would be much appreciated. At the moment it makes my
application look a little bit unprofessional.

Thanks,

Mark.

Sep 21 '06 #1
2 2397
On 21 Sep 2006 00:47:54 -0700, "Mark Thompson" <ch****@dsl.pipex.comwrote:
>Hi,

I have created a CAD type application in VB.NET. I have a strange
problem which I have been unable to resolve.

Sometimes, when I open a modal dialog on the form, the imprint of
whatever happens to be behind the main form (e.g. word document,
desktop etc.) flashes up briefly while the control is drawn. Also,
sometimes when dialogs are closed, the whole main form briefly
disappears (for maybe 0.5 of a second) and then reappears.

I am using a Panel on the main form which uses GDI+ if that helps at
all.

Any advice as to what I might be able to do to resolve this annoying
problem would be much appreciated. At the moment it makes my
application look a little bit unprofessional.

Thanks,

Mark.
(VB2005)
I have had similar issues with modal forms where there is some significant owner
drawn controls in the app. In particular, the problem I had had to do with using the
Hide statement in the modal form - it behaved as you described. At the same time,
but to a lesser degree, if there is a Close statement in the modal form, it should be
replaced with a DialogResult statement.

I'm told by others that these are "bug". Will have to wait for a service pack to see
if the issue is resolved.

Gene

Sep 21 '06 #2
Thanks for that Gene.

Unfortunately it is as I feared. It seemed like such a low-level thing
that I could not see what I was doing wrong. Interestingly though, I am
using VS.NET 2003/.NET 1.1. I was kind of hoping that this may be fixed
in 2005/2.0 but obviously not.

If anyone else knows of any workaround for this, even if it means
low-level API or similar stuff I would be grateful.

Thanks,

Mark.

Sep 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Troy | last post by:
Hello- I have a website that uses a custom built webserver to serve the pages. (Please don't ask me why my boss had his own web server written). I am displaying a log of information that is an...
0
by: Jim Jaworski | last post by:
I have a page of archived newspaper articles. This week I did the "good thing" and placed them in a <div id="content"> wrapper. Now when I select an item the page blinks in Mozilla. I'm worried...
0
by: Jim Jaworski | last post by:
I have a page of archived newspaper articles. This week I did the "good thing" and placed them in a <div id="content"> wrapper. Now when I select an item the page blinks in Mozilla. Though in...
5
by: Markus | last post by:
Blinking control Perhaps my question is not exactly an Access question, but may somebody might give me an answer.i have a very important control on my report, called "Stockflow" and in case...
4
by: Erick | last post by:
i have an asp.net application and I want to save the results of an sql query in cache. Because the queries take 28 seconds to run (there are twelve similar queries) I want to run it all at 4am, ...
3
by: James Hunter Ross | last post by:
Apparently, our developers used "server transfer" in our ASP.NET, and because of this Back/Refresh presses by users are problematic. Apparently the server has information about state and other...
2
by: Ling | last post by:
Hi, I guessed this is a weird question but it really bothers me. I created a web page w/ asp.net, have a menu on the top and a listbox right below it. When I try to navigate the menu, the...
2
by: tony wong | last post by:
i wish to make the button blinking for 5 times at 1 second interval. how come i cannot see the blinking effect? is there any screen update function? Thanks. ******************************...
5
by: michels287 | last post by:
Right now I have a touchscreen with a virual keyboard. I would like to create arrow keys. If the user messed up the inputted text, he can move the blinking cursor left one space at a time between...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.