Connecting Tech Pros Worldwide Help | Site Map

How to move Control Using CodeBehind

Robson Machado
Guest
 
Posts: n/a
#1: Nov 18 '05
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons, etc..) using CodeBehind?

Regards,

Lau Lei Cheong
Guest
 
Posts: n/a
#2: Nov 18 '05

re: How to move Control Using CodeBehind


By using the word "move", do you mean "changing the location/coordinates of
control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Machado@discussions.microsoft.com> ¦b¶l¥ó
news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ¤¤¼¶¼g...[color=blue]
> Dear friens,
>
> Does anybody knows how to move controls (images, textboxes, buttons,[/color]
etc..) using CodeBehind?[color=blue]
>
> Regards,
>[/color]


Robson Carvalho Machado
Guest
 
Posts: n/a
#3: Nov 18 '05

re: How to move Control Using CodeBehind


Sorry ...

I need to change the location/coordinates of
control

"Lau Lei Cheong" wrote:
[color=blue]
> By using the word "move", do you mean "changing the location/coordinates of
> control" or "moving the control to another page" or whatever?
>
> "Robson Machado" <Robson Machado@discussions.microsoft.com> ¦b¶l¥ó
> news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ¤¤¼¶¼g...[color=green]
> > Dear friens,
> >
> > Does anybody knows how to move controls (images, textboxes, buttons,[/color]
> etc..) using CodeBehind?[color=green]
> >
> > Regards,
> >[/color]
>
>
>[/color]
Robson Carvalho Machado
Guest
 
Posts: n/a
#4: Nov 18 '05

re: How to move Control Using CodeBehind


Sorry ...

I need to change the location/coordinates of control in the same page

"Lau Lei Cheong" wrote:
[color=blue]
> By using the word "move", do you mean "changing the location/coordinates of
> control" or "moving the control to another page" or whatever?
>
> "Robson Machado" <Robson Machado@discussions.microsoft.com> ¦b¶l¥ó
> news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ¤¤¼¶¼g...[color=green]
> > Dear friens,
> >
> > Does anybody knows how to move controls (images, textboxes, buttons,[/color]
> etc..) using CodeBehind?[color=green]
> >
> > Regards,
> >[/color]
>
>
>[/color]
Robson Carvalho Machado
Guest
 
Posts: n/a
#5: Nov 18 '05

re: How to move Control Using CodeBehind


I’m sorry …

I need to change the location/coordinates of
Control on the same page.


"Lau Lei Cheong" wrote:
[color=blue]
> By using the word "move", do you mean "changing the location/coordinates of
> control" or "moving the control to another page" or whatever?
>
> "Robson Machado" <Robson Machado@discussions.microsoft.com> ¦b¶l¥ó
> news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ¤¤¼¶¼g...[color=green]
> > Dear friens,
> >
> > Does anybody knows how to move controls (images, textboxes, buttons,[/color]
> etc..) using CodeBehind?[color=green]
> >
> > Regards,
> >[/color]
>
>
>[/color]
Lau Lei Cheong
Guest
 
Posts: n/a
#6: Nov 18 '05

re: How to move Control Using CodeBehind


Since the page layout of ASP.NET page is in fact built by HTML, you have to
control
the location by putting them in table and control the width, height and
which cell does will the control be place in. and maybe you'll need to
generate the controls dynamically.

"Robson Carvalho Machado" <Robson Carvalho
Machado@discussions.microsoft.com> ¦b¶l¥ó
news:C131B2AF-A154-4C88-8768-8D6D0295FF97@microsoft.com ¤¤¼¶¼g...[color=blue]
> Sorry ...
>
> I need to change the location/coordinates of
> control
>
> "Lau Lei Cheong" wrote:
>[color=green]
> > By using the word "move", do you mean "changing the location/coordinates[/color][/color]
of[color=blue][color=green]
> > control" or "moving the control to another page" or whatever?
> >
> > "Robson Machado" <Robson Machado@discussions.microsoft.com> |b?l¢Do
> > news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ?????g...[color=darkred]
> > > Dear friens,
> > >
> > > Does anybody knows how to move controls (images, textboxes, buttons,[/color]
> > etc..) using CodeBehind?[color=darkred]
> > >
> > > Regards,
> > >[/color]
> >
> >
> >[/color][/color]


Alvin Bruney [MVP]
Guest
 
Posts: n/a
#7: Nov 18 '05

re: How to move Control Using CodeBehind


use attributes to move it
dropdownlist1.attributes.add("left","10px"); top 50px for example

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
news:OQUS9nUeEHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> Since the page layout of ASP.NET page is in fact built by HTML, you have
> to
> control
> the location by putting them in table and control the width, height and
> which cell does will the control be place in. and maybe you'll need to
> generate the controls dynamically.
>
> "Robson Carvalho Machado" <Robson Carvalho
> Machado@discussions.microsoft.com> ¦b¶l¥ó
> news:C131B2AF-A154-4C88-8768-8D6D0295FF97@microsoft.com ¤¤¼¶¼g...[color=green]
>> Sorry ...
>>
>> I need to change the location/coordinates of
>> control
>>
>> "Lau Lei Cheong" wrote:
>>[color=darkred]
>> > By using the word "move", do you mean "changing the
>> > location/coordinates[/color][/color]
> of[color=green][color=darkred]
>> > control" or "moving the control to another page" or whatever?
>> >
>> > "Robson Machado" <Robson Machado@discussions.microsoft.com> |b?l¢Do
>> > news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ?????g...
>> > > Dear friens,
>> > >
>> > > Does anybody knows how to move controls (images, textboxes, buttons,
>> > etc..) using CodeBehind?
>> > >
>> > > Regards,
>> > >
>> >
>> >
>> >[/color][/color]
>
>[/color]


Lau Lei Cheong
Guest
 
Posts: n/a
#8: Nov 18 '05

re: How to move Control Using CodeBehind


Ha... I didn't realise the use of attribute can be used this way. Thanks for
the information. :)

"Alvin Bruney [MVP]" <vapor at steaming post office> ¦b¶l¥ó
news:OWfjGQYeEHA.732@tk2msftngp13.phx.gbl ¤¤¼¶¼g...[color=blue]
> use attributes to move it
> dropdownlist1.attributes.add("left","10px"); top 50px for example
>
> --
> Regards,
> Alvin Bruney
> [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
> Got tidbits? Get it here... http://tinyurl.com/27cok
> "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
> news:OQUS9nUeEHA.3988@tk2msftngp13.phx.gbl...[color=green]
> > Since the page layout of ASP.NET page is in fact built by HTML, you have
> > to
> > control
> > the location by putting them in table and control the width, height and
> > which cell does will the control be place in. and maybe you'll need to
> > generate the controls dynamically.
> >
> > "Robson Carvalho Machado" <Robson Carvalho
> > Machado@discussions.microsoft.com> ¦b¶l¥ó
> > news:C131B2AF-A154-4C88-8768-8D6D0295FF97@microsoft.com ¤¤¼¶¼g...[color=darkred]
> >> Sorry ...
> >>
> >> I need to change the location/coordinates of
> >> control
> >>
> >> "Lau Lei Cheong" wrote:
> >>
> >> > By using the word "move", do you mean "changing the
> >> > location/coordinates[/color]
> > of[color=darkred]
> >> > control" or "moving the control to another page" or whatever?
> >> >
> >> > "Robson Machado" <Robson Machado@discussions.microsoft.com> |b?l¢Do
> >> > news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ?????g...
> >> > > Dear friens,
> >> > >
> >> > > Does anybody knows how to move controls (images, textboxes,[/color][/color][/color]
buttons,[color=blue][color=green][color=darkred]
> >> > etc..) using CodeBehind?
> >> > >
> >> > > Regards,
> >> > >
> >> >
> >> >
> >> >[/color]
> >
> >[/color]
>
>[/color]


Alvin Bruney [MVP]
Guest
 
Posts: n/a
#9: Nov 18 '05

re: How to move Control Using CodeBehind


DropDownList1.Style["Left"] = "500";
DropDownList1.Style["top"] = "500";

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Robson Carvalho Machado" <RobsonCarvalhoMachado@discussions.microsoft.com >
wrote in message news:2E5EC6FC-247C-4042-818F-25E9E09F7189@microsoft.com...[color=blue]
> Dear Alvin,
>
> I've tried your suggestion but it does not work.
> Have you any other tip that can help me to solution this problem?
>
>
> "Alvin Bruney [MVP]" wrote:
>[color=green]
>> use attributes to move it
>> dropdownlist1.attributes.add("left","10px"); top 50px for example
>>
>> --
>> Regards,
>> Alvin Bruney
>> [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
>> Got tidbits? Get it here... http://tinyurl.com/27cok
>> "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
>> news:OQUS9nUeEHA.3988@tk2msftngp13.phx.gbl...[color=darkred]
>> > Since the page layout of ASP.NET page is in fact built by HTML, you
>> > have
>> > to
>> > control
>> > the location by putting them in table and control the width, height and
>> > which cell does will the control be place in. and maybe you'll need to
>> > generate the controls dynamically.
>> >
>> > "Robson Carvalho Machado" <Robson Carvalho
>> > Machado@discussions.microsoft.com> ¦b¶l¥ó
>> > news:C131B2AF-A154-4C88-8768-8D6D0295FF97@microsoft.com ¤¤¼¶¼g...
>> >> Sorry ...
>> >>
>> >> I need to change the location/coordinates of
>> >> control
>> >>
>> >> "Lau Lei Cheong" wrote:
>> >>
>> >> > By using the word "move", do you mean "changing the
>> >> > location/coordinates
>> > of
>> >> > control" or "moving the control to another page" or whatever?
>> >> >
>> >> > "Robson Machado" <Robson Machado@discussions.microsoft.com> |b?l¢Do
>> >> > news:F0AD9B91-DFD0-434F-AA7F-E16337603615@microsoft.com ?????g...
>> >> > > Dear friens,
>> >> > >
>> >> > > Does anybody knows how to move controls (images, textboxes,
>> >> > > buttons,
>> >> > etc..) using CodeBehind?
>> >> > >
>> >> > > Regards,
>> >> > >
>> >> >
>> >> >
>> >> >
>> >
>> >[/color]
>>
>>
>>[/color][/color]


Closed Thread