Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralAccess Database Pin
Cappuccino_David4-Feb-05 16:51
Cappuccino_David4-Feb-05 16:51 
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 
Heath:

Regarding the possibility that my computer might not be up to par, that is a distinct possibility. The computer that I am using to develop this .NET application is a 200 MHz Gateway Pentium Pro with only 98 MB of RAM with an 80 Gig hard drive that is half full. Could this be responsible for the flickering effect, and the leaving of ghost images when another form is moved over the main form? I know, I should probably upgrade the computer, but there are financial constraints that prevent this from occurring just now.

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?

I already am implementing the three commands. Now, the question is WHERE should they be implemented to get the MOST EFFECT, and why? Should it be in the form onLoad() event, or should it be in the InitializeComponent() routine, or could it be properly placed in an individual program routine? Would including these three commands several more times improve the buffering capacity further, and is it possible for the buffering capacity to be increased to four times or more?

Regarding the positioning of parented controls, say you have one control that is on a form added as a run-time control, and another control that is a child to the parent control that is slightly off-center also added as a run time control (neither are as a design time control). For example, say the child run-time control has a location that is fifty pixels off to the right or fifty pixels off to the left. When they are parented together like this they can move together, but when they are off center from each other, the "entire" child does not show up when the form is minimized and then maximized again. Said another way, the only part of the child that is displayed is the part that overlaps with the parent control container, the rest of the child is not displayed. What could cause this? Is there a "private void override repaint()" method to correct this? Also, is there some way that the form could be repainted onMaximize() or is there a better way?

Sure, I realize that I could EXPAND the parent size (container size) to encompass ALL of the child, but then that would have the effect of stretching the parent backgroundimage. Plus it would be a quite messy end result. How could I display ALL of the child without the need to expand the parent container size?

The code is as follows:

<br />
// There is paint event handler call from a routine<br />
_ctrl.Paint += new PaintEventHandler(_ctrl_Paint);<br />
<br />
// Then there is a paint event that attempts to draw the image result to the control as a background<br />
<br />
private static void _ctrl_Paint(object sender, PaintEventArgs p)<br />
{<br />
	Control ctrl = (Control)sender;<br />
	Graphics grfx = p.Graphics;<br />
	Rectangle clientRectangle = new Rectangle(0, 0, ctrl.Width, ctrl.Height);<br />
	p.Graphics.DrawImage(ctrl.BackgroundImage, clientRectangle);<br />
}<br />
<br />


I should add here that the image file that is attempted to be presented as a background image is really larger (related to width and height) than the size provided by the clientRectangle. Where would I use the clipping rectangle in the above code? When the control is clicked, it causes the original size of the resulting image to be displayed for a very short interval. What could be causing this, and would repainting the control fix this problem as well?

Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: onMaximize() or onResize() questions... Pin
Heath Stewart6-Feb-05 5:35
protectorHeath Stewart6-Feb-05 5:35 
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 

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.