firethat Posted March 24, 2004 Posted March 24, 2004 I am having a weird problem with a program written in vb.net. A form calls a child form, but when the child form shows its height shrinks while the width stays the same. Has anybody else had this problem or know how to fix it? Quote
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 Do you have something that modify the size of your form somewhere in your code ? If yes... where ? If no... let me a couple of minute :D Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
firethat Posted March 24, 2004 Author Posted March 24, 2004 I spoke with the progamer writting this and form size increases but he has tried to fix the problem by subtracting a few pixels. He is also pulling the position and size from a registry key. Quote
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 Then maybe the problem is from the registry key. If on loading it you resize the form with the registry value... it's normal that it is like this no ? Unless you didn't write the correct value in the registry... Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
firethat Posted March 24, 2004 Author Posted March 24, 2004 The registry key works fine until there is menu on the page. It seems as if the menu is causing the form to grow. Quote
Administrators PlausiblyDamp Posted March 25, 2004 Administrators Posted March 25, 2004 What code are you using so save / restore the form size from the registry? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.