Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access Database Pin
Yulianto.4-Feb-05 17:16
Yulianto.4-Feb-05 17:16 
GeneralRe: Access Database Pin
Luis Alonso Ramos4-Feb-05 19:23
Luis Alonso Ramos4-Feb-05 19:23 
GeneralRe: Access Database Pin
Cappuccino_David5-Feb-05 8:23
Cappuccino_David5-Feb-05 8:23 
GeneralRe: Access Database Pin
Luis Alonso Ramos5-Feb-05 8:30
Luis Alonso Ramos5-Feb-05 8:30 
GeneralonMaximize() or onResize() questions... Pin
new_phoenix4-Feb-05 16:46
new_phoenix4-Feb-05 16:46 
GeneralRe: onMaximize() or onResize() questions... Pin
Heath Stewart5-Feb-05 3:39
protectorHeath Stewart5-Feb-05 3:39 
GeneralRe: onMaximize() or onResize() questions... Pin
new_phoenix5-Feb-05 8:20
new_phoenix5-Feb-05 8:20 
GeneralRe: onMaximize() or onResize() questions... Pin
Heath Stewart6-Feb-05 5:35
protectorHeath Stewart6-Feb-05 5:35 
new_phoenix wrote:
Which brings up another question... I have just recently added all of the Windows 2000 Professional components, including IIS and SMTP, and all the rest, and now I get a warning message that says the "maximum registry size is too small", and that I need to change it for windows to run properly. Where would I go to increase the O/S maximum registry size?

For starters, why do you need all that installed? You're already pushing memory to the max. Do you require a web server on your machine? Whidbey will allow you to develop web sites locally without requiring IIS (including an ASP.NET host it starts and stops to test). Do you need the SMTP service to 1) send mail yourself directly to the destination host, if your ISP even allows that, or 2) more often than not the SMTP service is used to forward mail to another SMTP server that must be configured to allow forwarding from your machine. Don't run what you don't need, especially with so little memory and a slow CPU.

To change the registry size, right-click on "My Computer", select Properties, and go to, IIRC, the "Advanced" tab. The setting should be somewhere in there.

new_phoenix wrote:
Regarding the positioning of parented controls...

Whenever a control is invalidated - by something covering it up or the control was hidden from a minimize or something else - the system will send WM_PAINT to tell the control to repaint, along with the region of the control that must be repainted. If part of your control is obstructed, it is not drawn. Period. There's no way to override this. While you can draw to off-screen buffers, unless you actually swap buffers yourself Windows will not help you. There is layered windows (which is basically what I described above), but that only works on Win2K and above and requires you to P/Invoke several native APIs and implement drawing yourself. Again, this will not affect most controls that encapsulate the Windows Common Controls (which is most of them).

One problem I see in your code is that you're drawing the entire background image. As I said before, this is wasteful (especially on your 200 MHz machine). That PaintEventArgs passed to you includes a property named ClipRectangle that defines the rectangle that only needs to be redrawn. Doing some simple math to get the interestion of the clipping rectangle for the entire bounds of the control is much more efficient than drawing the whole image. The Rectangle struct even has a help method to make this easy: Rectangle.Intersect.

I would recommend making this simple change and try it on a faster computer to make sure that it's not something else you're doing. You barely meet the recommended system requirements for Win2K, so that could be causing a problem.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: onMaximize() or onResize() questions... Pin
new_phoenix6-Feb-05 12:12
new_phoenix6-Feb-05 12:12 
GeneralRe: onMaximize() or onResize() questions... Pin
Heath Stewart7-Feb-05 6:36
protectorHeath Stewart7-Feb-05 6:36 
GeneralBest Practices - Serializing Dialog Data Pin
Newbie_T4-Feb-05 16:37
Newbie_T4-Feb-05 16:37 
GeneralRe: Best Practices - Serializing Dialog Data Pin
Heath Stewart5-Feb-05 3:30
protectorHeath Stewart5-Feb-05 3:30 
QuestionHow to modify the tnsnames.ora file by method? Pin
Colinyin4-Feb-05 13:06
Colinyin4-Feb-05 13:06 
GeneralCant get drag-n-drop from Excel to work. Please help. Pin
Flack4-Feb-05 12:14
Flack4-Feb-05 12:14 
GeneralRe: Cant get drag-n-drop from Excel to work. Please help. Pin
Heath Stewart4-Feb-05 13:23
protectorHeath Stewart4-Feb-05 13:23 
GeneralRe: Cant get drag-n-drop from Excel to work. Please help. Pin
Flack4-Feb-05 14:13
Flack4-Feb-05 14:13 
GeneralRe: Cant get drag-n-drop from Excel to work. Please help. Pin
Heath Stewart4-Feb-05 14:17
protectorHeath Stewart4-Feb-05 14:17 
GeneralRe: Cant get drag-n-drop from Excel to work. Please help. Pin
Flack5-Feb-05 9:49
Flack5-Feb-05 9:49 
GeneralRe: Cant get drag-n-drop from Excel to work. Please help. Pin
Heath Stewart6-Feb-05 6:08
protectorHeath Stewart6-Feb-05 6:08 
GeneralOverriding Uninstall method Pin
Adnan Siddiqi4-Feb-05 12:13
Adnan Siddiqi4-Feb-05 12:13 
GeneralRe: Overriding Uninstall method Pin
Heath Stewart4-Feb-05 13:21
protectorHeath Stewart4-Feb-05 13:21 
GeneralRe: Overriding Uninstall method Pin
Adnan Siddiqi4-Feb-05 20:10
Adnan Siddiqi4-Feb-05 20:10 
GeneralRe: Overriding Uninstall method Pin
Heath Stewart5-Feb-05 3:01
protectorHeath Stewart5-Feb-05 3:01 
GeneralRe: Overriding Uninstall method Pin
Adnan Siddiqi5-Feb-05 4:10
Adnan Siddiqi5-Feb-05 4:10 
GeneralRe: Overriding Uninstall method Pin
Heath Stewart5-Feb-05 4:58
protectorHeath Stewart5-Feb-05 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.