Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

sheesh ... what a lively group ... here's a .Net question ...

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
welshTerrier2 Donating Member (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 ??
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
kcr Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Dec-22-04 11:06 PM
Response to Original message
1. IIRC
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.
Printer Friendly | Permalink | Reply | Top
 
welshTerrier2 Donating Member (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 ...
Printer Friendly | Permalink | Reply | Top
 
kcr Donating Member (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.
Printer Friendly | Permalink | Reply | Top
 
welshTerrier2 Donating Member (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 ...
Printer Friendly | Permalink | Reply | Top
 
welshTerrier2 Donating Member (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 !!
Printer Friendly | Permalink | Reply | Top
 
kcr Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-17-05 08:59 PM
Response to Reply #5
6. No problem (n/t)
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:35 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC