473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Moving Web Control Programmatically

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
10 1608
"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

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
"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
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
"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
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
Fripper,

See my sample in your first thread about this

Cor
Nov 20 '05 #8
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Craig Phillips | last post by:
Hi, Does anyone know how to programmatically move to a anchor point (a tag). I am using vb.net. When the user presses a server-side control on the webpage, I need to do some server processing and...
1
by: Martine | last post by:
Hi there! I have a problem with programmatically adding user controls to my mobile webforms. If I load my usercontrol programmatically (in the Page_Load), the object is instantiated, I have...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
1
by: Rich | last post by:
I have a solution that is in development under VS2003 and has been 'ported' to VS2005. The painful experience of running this newer version of VS revolves around one form. This form is very dense...
7
by: Dale Sampson | last post by:
As you can tell, I am new to VS.net. I have a VB project with a defined data source pointing to a table in a ..mdb file.-- The associated fields are displayed in textboxes using the...
0
by: Ginger Estherskip | last post by:
How do you programmatically start moving a SDI winform? Here's the issue: I've got a form as part of a tabbed MDI set, and I wrote it so that a user can "tear" the form off of the MDI by...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
3
by: =?Utf-8?B?QW5nZWw=?= | last post by:
I seem to understand how the control works as long as I mated to SqlDataSource or ObjDataSource it works fine. But I do not want to flatten my design in this manner. I am interested in how I can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.