473,725 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change Control's size&location in runtime

Hi,all
I want to change Control's size&location in runtime ,(C#)
but i dont know how to do! :(so, can you provide me
with document about this.
my email: zh******@rinpak .com.cn zh***********@1 63.com

thank you in advance.
Nov 17 '05 #1
3 11348
Just set the Size and Location properties, or set them both at the same time
using the Bounds property. See the documentation linked below for more.
http://msdn.microsoft.com/library/de...oundstopic.asp

--
Tim Wilson
..Net Compact Framework MVP

<zh***********@ 163.com> wrote in message
news:uC******** ******@TK2MSFTN GP14.phx.gbl...
Hi,all
I want to change Control's size&location in runtime ,(C#)
but i dont know how to do! :(so, can you provide me
with document about this.
my email: zh******@rinpak .com.cn zh***********@1 63.com

thank you in advance.

Nov 17 '05 #2
Ok,First of all thank u 4 your reply!
I'm sorry that i have not made a particular
description of my question in the front letter .
i means that these control can be changed by
mouse drop in runtime(the same to DesignTime)!

"Tim Wilson" <TIM(UNDERSCORE )WILSON(AT)ROGE RS(PERIOD)COM> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Just set the Size and Location properties, or set them both at the same
time
using the Bounds property. See the documentation linked below for more.
http://msdn.microsoft.com/library/de...oundstopic.asp

--
Tim Wilson
.Net Compact Framework MVP

<zh***********@ 163.com> wrote in message
news:uC******** ******@TK2MSFTN GP14.phx.gbl...
Hi,all
I want to change Control's size&location in runtime ,(C#)
but i dont know how to do! :(so, can you provide me
with document about this.
my email: zh******@rinpak .com.cn zh***********@1 63.com

thank you in advance.


Nov 17 '05 #3
If you want to allow the user to move and resize controls at runtime then
there are some past discussions about this in the google archives linked
below.
http://groups-beta.google.com/groups...ontrol+runtime

In addition, if you want a commercial solution then you may want to look
here...
http://www.xraytools.net/productdetail.aspx?id=4

--
Tim Wilson
..Net Compact Framework MVP

<zh***********@ 163.com> wrote in message
news:eu******** ******@tk2msftn gp13.phx.gbl...
Ok,First of all thank u 4 your reply!
I'm sorry that i have not made a particular
description of my question in the front letter .
i means that these control can be changed by
mouse drop in runtime(the same to DesignTime)!

"Tim Wilson" <TIM(UNDERSCORE )WILSON(AT)ROGE RS(PERIOD)COM> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Just set the Size and Location properties, or set them both at the same
time
using the Bounds property. See the documentation linked below for more.
http://msdn.microsoft.com/library/de...oundstopic.asp
--
Tim Wilson
.Net Compact Framework MVP

<zh***********@ 163.com> wrote in message
news:uC******** ******@TK2MSFTN GP14.phx.gbl...
Hi,all
I want to change Control's size&location in runtime ,(C#)
but i dont know how to do! :(so, can you provide me
with document about this.
my email: zh******@rinpak .com.cn zh***********@1 63.com

thank you in advance.



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2168
by: JF | last post by:
Hi, I need to change the location of the parent window and after that scroll a little bit (because of "position:fixed" css buttons, which obscure the title). I have window.opener.location.href = "newhreflabel"; window.opener.scrollBy(0, -25);
15
5320
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have private string myArray;
0
1216
by: nedk | last post by:
I am getting the following error when attempting to login to a site where I am trying to use Membership. Does anyone know why I am getting this error and how to fix it. Thanks in advance. -Ned Server Error in '/testweb' Application. -------------------------------------------------------------------------------- This feature is not supported at the configured trust level. Description: An unhandled exception occurred during the...
7
14145
by: Doru Roman | last post by:
Hi, What is the fastest way to evaluate manually the result in this case: int a, b, c; a = 255; b = 122; c = a & b; The only way I know is transforming each number into the binary value and
0
1544
by: Seok Bee | last post by:
Dear Experts, I am having a wizard control in my web app. I have some textbox controls within the wizard control. At the same time, I have a hyperlink to run a pop-up window for calendar. The pop-up window is executed by calling a javascript function. However, when I click on the calendar link for the pop-up, I received an error message stating : Microsoft JScript runtime error: Object required When I use the same script in another...
5
37153
by: sunny | last post by:
Hi All Is there any way to determine stack and heap size, during runtime. i.e can we predict stack overflow. etc
0
2226
by: BigAl.NZ | last post by:
Hi Guys, I am trying to write/copy some code that uses events with a GPS. Everytime the GPS position updates the event fires. The GPS code is from a SDK Library that I got called GPS Tools from www.franson.com For some reason my code below doesnt work - the GpsFixEvent never seems to "fire" as it were.
3
4521
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a runtime control to anchor properly? Second -- the program I'm writting is supposed to look like a dos application (long story). When the application is "Normal" aka a small window then everything looks great. But when I resize the window to...
1
1331
by: Joseph Gruber | last post by:
Hi all. I'm looking for some help here. My app creates a runtime label which is used as a clock -- it also then creates the timer for this clock at runtime. When the timer tick's clockUpdate is called (through AddHandler) and I use Controls.Find to find the runtime label. This works somewhat except that it seem for every 3 out of 4 ticks the following error is thrown: A first chance exception of type 'System.IndexOutOfRangeException'...
0
8889
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9179
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.