473,378 Members | 1,138 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,378 software developers and data experts.

How to realize moving a contol in a panel

Hi,

I want to realize moving contols in a panel, just like
Form Desinger in VS.NET. How shall I realize it? Thank you.

Jerry
Nov 16 '05 #1
2 1171
0K4sI=HK wrote:
Hi,

I want to realize moving contols in a panel, just like
Form Desinger in VS.NET. How shall I realize it? Thank you.


Alter the 'Location' property of the control. It's the X, Y coordinate of
the control inside its host/container, in your case the panel.

Frans.

--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
Nov 16 '05 #2
Thank you for your answering. But I want to implement the UI like Form
Designer -- Drag a control, a Frame moved with
mouse. Can I realize it by DragDrop?

Jerry

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> wrote in message
news:xn***************@msnews.microsoft.com...
0K4sI=HK wrote:
Hi,

I want to realize moving contols in a panel, just like
Form Desinger in VS.NET. How shall I realize it? Thank you.


Alter the 'Location' property of the control. It's the X, Y coordinate of
the control inside its host/container, in your case the panel.

Frans.

--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP

Nov 16 '05 #3

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

Similar topics

3
by: Barrett | last post by:
Hello, basically I want to be able to determine the height of a panel at runtime on a webform. The only value I can squeeze out of the control properties is the height that is set at design time....
0
by: Mark Nijhof | last post by:
Hello, I made a small app that has those nice moving panels like Visual Studio has. Now all goes fine until I open one of them that has a lot of child controls in it. Actually it has one...
4
by: Jeff Gaines | last post by:
I am making the jump into Webforms/asp from Windows forms. To ease the transition I am setting up an address book so I can use code from the previous Windows forms app. I have a really simple...
7
by: Webbee | last post by:
What I need is to be able to get the location of a panel on the status bar. When I was looking to add a progressbar to the statusbar I learned that the best and maybe only way to do this is by...
1
by: Chris Dunaway | last post by:
If I have a form in my project for which I have set the border style to None, I can use the code below to enable moving the form by clicking and dragging anywhere on the form: protected override...
2
by: Diogo Alves - Software Developer | last post by:
Greetings I would like to knowhow can I put a sliding panel... I've done this: if (panel1.Width < 300) { while (panel1.Width < 300) { panel1.Width = panel1.Width + 40;
0
by: MrNobody | last post by:
I have a custom Panel which will have smaller custom Panels added and drawn within it. I want to be able to re-order the arrangement of the inner Panels using drag n drop, and I want to do this...
5
by: adarshyam | last post by:
Hi friends, I have an interesting problem in vb.net. And I am struggling to get a solution for this..m trying for the past 3days.. It’s to calculate moving average for the inputs given by the...
4
by: fran7 | last post by:
Hi, I wonder if anyone can advise. I am moving my website from one access database to another. The new database has passwords, PasswordKey and PasswordEncrypted which the old one didnt have. I have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.