Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to get the left and top coordinate of custrom control?

Reply
Thread Tools

How to get the left and top coordinate of custrom control?

 
 
Björn Marthen
Guest
Posts: n/a
 
      12-08-2003
Hi guys,

I wrote a custom control. I added the properties "public Unit height;" and
"public Unit width;" to get the control sizeable. It works well. But how can
I get the Left and Top position of the control? If I add "public Unit Top;"
and "public Unit Left;" it doesn't work. If i moving the control in
designtime the properties will not be updated.

I hope you understand my problem although my bad english.


 
Reply With Quote
 
 
 
 
Alessandro Zifiglio
Guest
Posts: n/a
 
      12-08-2003
hi Bjorn,
I've been having that same problem and i've posted a solution some time
back. You might want to read that first. If your still having problems,
askaway ;P

http://www.developersdex.com/asp/mes...b%2E9539%24i%5
F5%2E1073%40news%2Eedisontel%2Ecom%3E

"Björn Marthen" <> wrote in message
news:...
> Hi guys,
>
> I wrote a custom control. I added the properties "public Unit height;" and
> "public Unit width;" to get the control sizeable. It works well. But how

can
> I get the Left and Top position of the control? If I add "public Unit

Top;"
> and "public Unit Left;" it doesn't work. If i moving the control in
> designtime the properties will not be updated.
>
> I hope you understand my problem although my bad english.
>
>



 
Reply With Quote
 
 
 
 
Alessandro Zifiglio
Guest
Posts: n/a
 
      12-08-2003
hi Bjorn,
I've been having that same problem and i've posted a solution some time
back. You might want to read that first. If your still having problems,
askaway ;P

http://www.developersdex.com/asp/mes...b%2E9539%24i%5
F5%2E1073%40news%2Eedisontel%2Ecom%3E

"Björn Marthen" <> wrote in message
news:...
> Hi guys,
>
> I wrote a custom control. I added the properties "public Unit height;" and
> "public Unit width;" to get the control sizeable. It works well. But how

can
> I get the Left and Top position of the control? If I add "public Unit

Top;"
> and "public Unit Left;" it doesn't work. If i moving the control in
> designtime the properties will not be updated.
>
> I hope you understand my problem although my bad english.
>
>





 
Reply With Quote
 
Björn Marthen
Guest
Posts: n/a
 
      12-09-2003
Thanks, Style["LEFT"] and Style["TOP"] works fine.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to get HTML elements by coordinate values? (CSS2 compatibility) lujooo@gmail.com Java 0 06-05-2006 08:50 AM
Canvas with scrollbars - how to get correct canvas coordinate when the scroll bars have moved? PhilC Python 2 10-25-2004 11:57 AM
SVG Web custrom control abicz ASP .Net Web Controls 1 04-27-2004 06:58 PM
A Custom Control as a property of antoher Custrom Control Björn Marthen ASP .Net Web Controls 0 11-06-2003 09:53 AM



Advertisments