C
cwineman
Hello,
I've been trying to do something which I think should be very simple. I
posted about it a few days ago in this group -- "swapping controls within a
form". I think my problem is that I don't really understand how the whole
windows forms painting-updating-hiding-showing process works.
I'm looking for documentation on any of the following topics:
-When to call paint(), invalidate(), refresh() and the differences between
the calls
-When to make calls on a parent control versus a child control
-What to do when a change doesn't seem to be taking place on the GUI
-What to expect when I call Hide() or Show()
-When is it necessary to drop into lower level Win32 API calls?
-How do UI threads work? When do I need to be in one if ever?
-If I'm not in a UI thread and I need to do an update that should only be
done within a UI thread, how?
I have a couple of books on windows forms, but they really aren't that much
help. Most of the things described in these books I can figure out by
playing around with the properties of different widgets in the VS.NET IDE.
But when I run into a problem (a control isn't showing up, or isn't
updating, or is flickering), I usually don't know where to look, and I end
up fixing the problem with a lot of trial and error. Assuming I fix the
problem at all.
So any pointers to some decent documentation would be appreciated.
Thanks,
-cwineman
I've been trying to do something which I think should be very simple. I
posted about it a few days ago in this group -- "swapping controls within a
form". I think my problem is that I don't really understand how the whole
windows forms painting-updating-hiding-showing process works.
I'm looking for documentation on any of the following topics:
-When to call paint(), invalidate(), refresh() and the differences between
the calls
-When to make calls on a parent control versus a child control
-What to do when a change doesn't seem to be taking place on the GUI
-What to expect when I call Hide() or Show()
-When is it necessary to drop into lower level Win32 API calls?
-How do UI threads work? When do I need to be in one if ever?
-If I'm not in a UI thread and I need to do an update that should only be
done within a UI thread, how?
I have a couple of books on windows forms, but they really aren't that much
help. Most of the things described in these books I can figure out by
playing around with the properties of different widgets in the VS.NET IDE.
But when I run into a problem (a control isn't showing up, or isn't
updating, or is flickering), I usually don't know where to look, and I end
up fixing the problem with a lot of trial and error. Assuming I fix the
problem at all.
So any pointers to some decent documentation would be appreciated.
Thanks,
-cwineman