By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Moving Web Control Programmatically

P: n/a
I have a VB .Net web app and I want to reposition a textbox control on the
webform programmatically. I'm not sure how to do that ... can someone help
please?

Thanks ...

Nov 20 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
"fripper" <fr*****@insightbb.com> wrote in
news:uk**************@TK2MSFTNGP09.phx.gbl:
I have a VB .Net web app and I want to reposition a textbox control on
the webform programmatically. I'm not sure how to do that ... can
someone help please?


You can't really... because there is no X's and Y's on the web.

You can put a placeholder in a different location and move it there
instead.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2

P: n/a

Hmmm ... I was afraid that was the case. I gather that I cannot draw, say,
a rectangle on the web form ... it appears that all the GDI+ graphics
capabilities are available to Windows forms only.

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"fripper" <fr*****@insightbb.com> wrote in
news:uk**************@TK2MSFTNGP09.phx.gbl:
I have a VB .Net web app and I want to reposition a textbox control on
the webform programmatically. I'm not sure how to do that ... can
someone help please?


You can't really... because there is no X's and Y's on the web.

You can put a placeholder in a different location and move it there
instead.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #3

P: n/a
"fripper" <fr*****@insightbb.com> wrote in
news:uW**************@tk2msftngp13.phx.gbl:
Hmmm ... I was afraid that was the case. I gather that I cannot draw,
say, a rectangle on the web form ... it appears that all the GDI+
graphics capabilities are available to Windows forms only.


Yup exactly.

If you need to draw complex shapes, you may want to consider using another
technology such as Flash, Java, or Winforms in IE.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #4

P: n/a
That's not quite true. I know that you can dynamically create image files
and display those on web pages.

Here is the first article I googled.

http://www.samspublishing.com/articl...le.asp?p=25487

Really depends on what you are trying to do.

Greg

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"fripper" <fr*****@insightbb.com> wrote in
news:uW**************@tk2msftngp13.phx.gbl:
Hmmm ... I was afraid that was the case. I gather that I cannot draw,
say, a rectangle on the web form ... it appears that all the GDI+
graphics capabilities are available to Windows forms only.


Yup exactly.

If you need to draw complex shapes, you may want to consider using another
technology such as Flash, Java, or Winforms in IE.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #5

P: n/a
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in
news:eP**************@TK2MSFTNGP11.phx.gbl:
That's not quite true. I know that you can dynamically create image
files and display those on web pages.


I don't think that is what the OP was looking for. You can't arbitrarily
draw lines anywhere on a webpage in ASP.NET.

Creating image files is a different matter - but once you've created the
image file, you still can't arbitrarily place the file anywhere on the
screen.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #6

P: n/a
ACK

Greg

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in
news:eP**************@TK2MSFTNGP11.phx.gbl:
That's not quite true. I know that you can dynamically create image
files and display those on web pages.


I don't think that is what the OP was looking for. You can't arbitrarily
draw lines anywhere on a webpage in ASP.NET.

Creating image files is a different matter - but once you've created the
image file, you still can't arbitrarily place the file anywhere on the
screen.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #7

P: n/a
Fripper,

See my sample in your first thread about this

Cor
Nov 20 '05 #8

P: n/a
Lucas,

You can (in IE) using the fixed style and JavaScript

http://huizen.ddsw.nl/bewoners/ligthert/

This is now already old personal webpages of my (completly dutch)

Choose for "foto groter" in that

Cor
Nov 20 '05 #9

P: n/a

This has been a helpful exchange ... thanks very much. I have a VB .Net web
application and at one point I want to draw a bar graph where the length and
position of each bar is related to the value of particular variables (think
charting in Excel). I had hoped to do this without having to get into
client side scripting but it appears that I cannot.

Guess I cannot put it off any further ... gotta learn JavaScript!

Thanks again.
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in
news:eP**************@TK2MSFTNGP11.phx.gbl:
That's not quite true. I know that you can dynamically create image
files and display those on web pages.


I don't think that is what the OP was looking for. You can't arbitrarily
draw lines anywhere on a webpage in ASP.NET.

Creating image files is a different matter - but once you've created the
image file, you still can't arbitrarily place the file anywhere on the
screen.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #10

P: n/a
Bar Graphs to Go

Creating a Custom Graph Control from Scratch

http://www.aspnetpro.com/features/20...200407so_f.asp

(subscription required)

Greg

"fripper" <fr*****@insightbb.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...

This has been a helpful exchange ... thanks very much. I have a VB .Net web application and at one point I want to draw a bar graph where the length and position of each bar is related to the value of particular variables (think charting in Excel). I had hoped to do this without having to get into
client side scripting but it appears that I cannot.

Guess I cannot put it off any further ... gotta learn JavaScript!

Thanks again.

Nov 20 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.