473,396 Members | 1,766 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.

Form Redraw Issue

I have built a form with 2 Radio Buttons on it for basic and advanced
configuration options. When the Basic option is selected I hide and
reposition controls and visa versa for adavnced. Technically I am notmoving
the controls, I am using a C!Sizer control and resizing the rows. The issue
is that when the code executes you see the controls a flash where the
controls are being redrawn. I tried using suspendlayout and resumelayout but
that doesn't have much effect.

Is there a way to stop this visual effect from happening?
Jun 3 '06 #1
2 1353
BTW - I am using VB.NET 2003

"Jeff Waskiewicz" wrote:
I have built a form with 2 Radio Buttons on it for basic and advanced
configuration options. When the Basic option is selected I hide and
reposition controls and visa versa for adavnced. Technically I am notmoving
the controls, I am using a C!Sizer control and resizing the rows. The issue
is that when the code executes you see the controls a flash where the
controls are being redrawn. I tried using suspendlayout and resumelayout but
that doesn't have much effect.

Is there a way to stop this visual effect from happening?

Jun 3 '06 #2
Never mind I ffound what I was looking for...but for anyone else intersested
in the answer.

Public Declare Function LockWindowUpdate Lib _
"user32.dll" (ByVal hwnd As Long) As Long

Then wrap the update code in...

LockWindowUpdate(Window.Handle.ToInt32)
--Your Code
LockWindowUpdate(0&)

"Jeff Waskiewicz" wrote:
I have built a form with 2 Radio Buttons on it for basic and advanced
configuration options. When the Basic option is selected I hide and
reposition controls and visa versa for adavnced. Technically I am notmoving
the controls, I am using a C!Sizer control and resizing the rows. The issue
is that when the code executes you see the controls a flash where the
controls are being redrawn. I tried using suspendlayout and resumelayout but
that doesn't have much effect.

Is there a way to stop this visual effect from happening?

Jun 3 '06 #3

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

Similar topics

0
by: PHH | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run...
0
by: WHITETIGER | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run...
2
by: Ollie | last post by:
Hi, I'm new to C# so please be patient with me. Ok, I have a small app that analyses the content of about 10,000 log files. The application works fine and outputs the expected results. But I...
1
by: oscar | last post by:
my program draws a form and when you click the start button another form is drawn with a progress bar as it runs through a function. my issue is that when you click on another progrem then try to...
3
by: Dean Slindee | last post by:
Anybody have a source for .NET code to zoom a form from a dot to full size? Probably passe since form opaque, but I may have a good use for it. Thanks in advance, Dean Slindee
11
by: Ajith Menon | last post by:
I have created a windows application in which the form needs to be resized on the MouseMove event. The windows resize function takes a lot of CPU cycles. And as the resize function is called on the...
8
by: George | last post by:
Hello everyone, I am using C# on a Pocket PC 2003 project based on .Net Compact Framework of Visual Studio 2005. I want to re-draw some controls of a Form (Window) at a regular interval (for...
10
by: John Brown | last post by:
Hi there, Does anyone know how to (generically) determine the currently active form for an application using a "static" function (so I can call it from anywhere). There is no offiical way I've...
6
by: Tarren | last post by:
Hi: I am trying to get access to the event after a window has been resized. The events I have been using SizeChanged and Resize all fire after any pixel size change. What I am trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.