Issue with strange user control stretching in VS Designer
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have been working on a freelance project for a couple of days and two of my user controls started to stretch in size within the designer. It doesn't seem to have an effect when compiled, but it makes it impossible to design the forms when everything is stretched out.
https://i.imgur.com/dK6Zn3C.png
Whenever I reset the size in the properties, it just snaps back to what it currently is.
I've tried resetting the size and restoring Visual Studio back to default settings.
The WinForm should be 806,649 in the designer so I can continue to design the forms.
visual-studio winforms user-controls
add a comment |
I have been working on a freelance project for a couple of days and two of my user controls started to stretch in size within the designer. It doesn't seem to have an effect when compiled, but it makes it impossible to design the forms when everything is stretched out.
https://i.imgur.com/dK6Zn3C.png
Whenever I reset the size in the properties, it just snaps back to what it currently is.
I've tried resetting the size and restoring Visual Studio back to default settings.
The WinForm should be 806,649 in the designer so I can continue to design the forms.
visual-studio winforms user-controls
Do you have some layout logic in those UserControls? Have you tried to set theAutoscaleMode
toDPI
orNone
?
– Jimi
Jan 3 at 5:45
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37
add a comment |
I have been working on a freelance project for a couple of days and two of my user controls started to stretch in size within the designer. It doesn't seem to have an effect when compiled, but it makes it impossible to design the forms when everything is stretched out.
https://i.imgur.com/dK6Zn3C.png
Whenever I reset the size in the properties, it just snaps back to what it currently is.
I've tried resetting the size and restoring Visual Studio back to default settings.
The WinForm should be 806,649 in the designer so I can continue to design the forms.
visual-studio winforms user-controls
I have been working on a freelance project for a couple of days and two of my user controls started to stretch in size within the designer. It doesn't seem to have an effect when compiled, but it makes it impossible to design the forms when everything is stretched out.
https://i.imgur.com/dK6Zn3C.png
Whenever I reset the size in the properties, it just snaps back to what it currently is.
I've tried resetting the size and restoring Visual Studio back to default settings.
The WinForm should be 806,649 in the designer so I can continue to design the forms.
visual-studio winforms user-controls
visual-studio winforms user-controls
asked Jan 3 at 4:57
DocBrocDocBroc
113
113
Do you have some layout logic in those UserControls? Have you tried to set theAutoscaleMode
toDPI
orNone
?
– Jimi
Jan 3 at 5:45
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37
add a comment |
Do you have some layout logic in those UserControls? Have you tried to set theAutoscaleMode
toDPI
orNone
?
– Jimi
Jan 3 at 5:45
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37
Do you have some layout logic in those UserControls? Have you tried to set the
AutoscaleMode
to DPI
or None
?– Jimi
Jan 3 at 5:45
Do you have some layout logic in those UserControls? Have you tried to set the
AutoscaleMode
to DPI
or None
?– Jimi
Jan 3 at 5:45
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37
add a comment |
1 Answer
1
active
oldest
votes
Your question is rather confusing. You mention two user controls, but I see only one in your image. You say: "I reset the size in the properties, it just snaps back to what it currently is"--to what does "it" refer? Is it the user control or the form? "The WinForm should be 806,649 in the designer", it is unclear what WinForm you're referring to--and why you cannot resize it. When you say "it" doesn't have an effect when compiled, do you mean that everything looks good when running a compiled version of the project?
Let's start with basics: If you open each of your user controls independently into a designer, does each user control appear the way you want? Or are you having problems only when you place the user control on a form in design mode?
What are the two user controls you're referring to? Are you saying that each user control has a sizing issue?
Can you show a screenshot not of the user control's property grid, but of the parent form's property grid?
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016569%2fissue-with-strange-user-control-stretching-in-vs-designer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your question is rather confusing. You mention two user controls, but I see only one in your image. You say: "I reset the size in the properties, it just snaps back to what it currently is"--to what does "it" refer? Is it the user control or the form? "The WinForm should be 806,649 in the designer", it is unclear what WinForm you're referring to--and why you cannot resize it. When you say "it" doesn't have an effect when compiled, do you mean that everything looks good when running a compiled version of the project?
Let's start with basics: If you open each of your user controls independently into a designer, does each user control appear the way you want? Or are you having problems only when you place the user control on a form in design mode?
What are the two user controls you're referring to? Are you saying that each user control has a sizing issue?
Can you show a screenshot not of the user control's property grid, but of the parent form's property grid?
add a comment |
Your question is rather confusing. You mention two user controls, but I see only one in your image. You say: "I reset the size in the properties, it just snaps back to what it currently is"--to what does "it" refer? Is it the user control or the form? "The WinForm should be 806,649 in the designer", it is unclear what WinForm you're referring to--and why you cannot resize it. When you say "it" doesn't have an effect when compiled, do you mean that everything looks good when running a compiled version of the project?
Let's start with basics: If you open each of your user controls independently into a designer, does each user control appear the way you want? Or are you having problems only when you place the user control on a form in design mode?
What are the two user controls you're referring to? Are you saying that each user control has a sizing issue?
Can you show a screenshot not of the user control's property grid, but of the parent form's property grid?
add a comment |
Your question is rather confusing. You mention two user controls, but I see only one in your image. You say: "I reset the size in the properties, it just snaps back to what it currently is"--to what does "it" refer? Is it the user control or the form? "The WinForm should be 806,649 in the designer", it is unclear what WinForm you're referring to--and why you cannot resize it. When you say "it" doesn't have an effect when compiled, do you mean that everything looks good when running a compiled version of the project?
Let's start with basics: If you open each of your user controls independently into a designer, does each user control appear the way you want? Or are you having problems only when you place the user control on a form in design mode?
What are the two user controls you're referring to? Are you saying that each user control has a sizing issue?
Can you show a screenshot not of the user control's property grid, but of the parent form's property grid?
Your question is rather confusing. You mention two user controls, but I see only one in your image. You say: "I reset the size in the properties, it just snaps back to what it currently is"--to what does "it" refer? Is it the user control or the form? "The WinForm should be 806,649 in the designer", it is unclear what WinForm you're referring to--and why you cannot resize it. When you say "it" doesn't have an effect when compiled, do you mean that everything looks good when running a compiled version of the project?
Let's start with basics: If you open each of your user controls independently into a designer, does each user control appear the way you want? Or are you having problems only when you place the user control on a form in design mode?
What are the two user controls you're referring to? Are you saying that each user control has a sizing issue?
Can you show a screenshot not of the user control's property grid, but of the parent form's property grid?
answered Jan 3 at 20:30
JazimovJazimov
7,22252940
7,22252940
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016569%2fissue-with-strange-user-control-stretching-in-vs-designer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have some layout logic in those UserControls? Have you tried to set the
AutoscaleMode
toDPI
orNone
?– Jimi
Jan 3 at 5:45
Not that I remember changing but I can go back and try to look at those settings. I just find it weird that they were fine one second then blown out of proportion a second later and only in the Designer.
– DocBroc
Jan 3 at 13:37