welshTerrier2
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Dec-22-04 10:21 PM
Original message |
sheesh ... what a lively group ... here's a .Net question ... |
|
i built a "user control" that basically contains a list of the menu options available on a website I'm building ...
when i drag the user control onto a form, its default behavior is to position itself in the upper left corner of the form ...
is there anyway to position the control anywhere else ??
i might try wrapping a <div> tag around it or trying to move the control onto a panel ...
any ideas ??
|
kcr
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Dec-22-04 11:06 PM
Response to Original message |
|
And its been a few months, if your default layout is flow, that is the behavior you would expect. Change your layout style to grid, and I believe your problem is solved.
|
welshTerrier2
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Dec-22-04 11:14 PM
Response to Reply #1 |
2. i'm using grid layout ... |
|
when i drag regular web controls to the form (e.g. text boxes, labels, etc.), i can position them anywhere I want to ... but that's not the case with a "user control" ... user controls are the ones that get a default ".ascx" extension ...
thanks for trying though ... i sure hope this forum picks up a bit ...
|
kcr
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Dec-22-04 11:31 PM
Response to Reply #2 |
3. Are you saying that the control never allows you to move it? |
|
I just went and checked my project, and there is nothing special in the controls we built, and yet I am able to positon them as needed. I do notice, however, that we put all the user controls in panels.
Some research turned up several complaignts about the behavior you describe, and the only solutions I have seen are what we did -- wrap the controls.
|
welshTerrier2
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Dec-22-04 11:37 PM
Response to Reply #3 |
4. ok ... i'll try to embed the user control in a panel ... |
|
what happens when i drag the control onto a form (using grid layout) is that i see (in visual studio) the control positioned in the upper left corner of the form ... i can't drag it to any other position ... i also couldn't find any properties on the control to set it's coordinates or alignment ...
and when i browse this web page, the control always displays in the upper left corner ...
thanks for the research ... it sounds like embedding it in a panel may do the trick ... i'll report back tomorrow morning ...
|
welshTerrier2
(1000+ posts)
Send PM |
Profile |
Ignore
|
Thu Dec-23-04 12:37 PM
Response to Reply #4 |
5. yup ... embedding the user control in a panel worked great ... |
|
i was able to move the panel containing the user control around on the form ...
thanks again for the help !!
|
kcr
(1000+ posts)
Send PM |
Profile |
Ignore
|
Mon Jan-17-05 08:59 PM
Response to Reply #5 |
DU
AdBot (1000+ posts) |
Sat Sep 27th 2025, 03:32 AM
Response to Original message |