Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
GeneralWindows XP and Many Many Windows Pin
Adam Turner3-Mar-03 21:29
Adam Turner3-Mar-03 21:29 
GeneralProvideProperty for event property Pin
jclanz3-Mar-03 21:10
jclanz3-Mar-03 21:10 
GeneralData Grid doubt Pin
Smitha Nishant3-Mar-03 19:51
protectorSmitha Nishant3-Mar-03 19:51 
GeneralRe: Data Grid doubt Pin
Peter Kiss4-Mar-03 0:34
Peter Kiss4-Mar-03 0:34 
GeneralRe: Data Grid doubt Pin
A.Wegierski4-Mar-03 0:34
A.Wegierski4-Mar-03 0:34 
GeneralRe: Data Grid doubt - Thanks Pin
Smitha Nishant4-Mar-03 4:21
protectorSmitha Nishant4-Mar-03 4:21 
Generalodd form behavior Pin
grv5753-Mar-03 10:51
grv5753-Mar-03 10:51 
Generalscroll and focus bug Pin
bwells3-Mar-03 9:22
bwells3-Mar-03 9:22 
I have created a MDI parent form which has a UserControl
inside.

I create two instances of the form with the UserControl as
mdi children.

I shrink them down vertically so scroll bars appear. Then
drag the scrollbars down to the bottom of the form.
Select one child form, and then select another child form,
in effect, changing focus between the two forms.
When I click on one child, then another, the contained
UserControl jumps and the scroll bar moves to reposition
the contents of the form.

I do not see this behavior if I use a label instead of a
user control.

I dont want the contents of the child form to be
repositioned when you change focus to/from a child.
Having this behavior really breaks my app; I cannot have
windows automatically moving contents after a user has
carefully positioned the windows and the scroll bars where
they want them.

How can I keep the contents of a form with a UserControl
in the same place even if the user moves around between
different MDI child windows?

I saw mention of a known bug in .NET that was described as
follows from the following link:

http://www.windowsforms.com/Forums/showpost.aspx?
tabindex=1&tabid=41&PostID=261

Case in point, killing that annoying autoscroll reset to
upper left corner on a scrollable control recieving focus.
Took me about 8 hours to work around it; the simple
override of WndProc to ignore WM_SETFOCUS seemed OK at
first, but screwed up the setting of the active control
property. If I had access to source, it would have taken
me all of 5 minutes to find the proper workaround (setting
the scroll state to manual during the WM_SETFOCUS handler)-
-

Can anyone suggest what is going on here, and perhaps give
me a start on how to fix the problem? I am not familiar
with overriding Wndproc.

GeneralHelp: Unable To Copy Data (In Structure) from Unmanged MFC/C++ App to .NET Pin
Gaul3-Mar-03 9:00
Gaul3-Mar-03 9:00 
GeneralSaving Treeview/Listview selections Pin
vlusardi3-Mar-03 7:47
vlusardi3-Mar-03 7:47 
GeneralRegistry and dWord values Pin
codeweenie3-Mar-03 7:36
codeweenie3-Mar-03 7:36 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 7:51
leppie3-Mar-03 7:51 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 8:05
codeweenie3-Mar-03 8:05 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 8:31
Paul Riley3-Mar-03 8:31 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:46
codeweenie3-Mar-03 9:46 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 11:56
Paul Riley3-Mar-03 11:56 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 9:05
leppie3-Mar-03 9:05 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:53
codeweenie3-Mar-03 9:53 
GeneralHelp! Release the COM Pointer Pin
sning3-Mar-03 7:25
sning3-Mar-03 7:25 
GeneralRe: Help! Release the COM Pointer Pin
Jarrod Marshall3-Mar-03 8:11
Jarrod Marshall3-Mar-03 8:11 
GeneralRe: Help! Release the COM Pointer Pin
Stephane Rodriguez.3-Mar-03 8:16
Stephane Rodriguez.3-Mar-03 8:16 
Generalembedding HTML and trapping events.... Pin
LongRange.Shooter3-Mar-03 5:51
LongRange.Shooter3-Mar-03 5:51 
GeneralRe: embedding HTML and trapping events.... Pin
Michael Mac4-Mar-03 9:05
Michael Mac4-Mar-03 9:05 
GeneralThreads and multiple http connections Pin
PeterJensen3-Mar-03 5:05
PeterJensen3-Mar-03 5:05 
GeneralRe: Threads and multiple http connections Pin
leppie3-Mar-03 6:33
leppie3-Mar-03 6:33 

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.