What is the easiest way to do this? I'm creating a layout designer type application
Thanks
John 11 5453
Hi Jcrouse,
You can set allmost all properties at run time so the size of a label as
well.
And when you want to know how to do it, just open the designer generated
code, that shows it mostly direct. After a while you learn than what is
unneccessary in that because that is made to fit always.
However ask never for the "best" method in this newsgroup, the advantage
from VB.net is that there is not one "best" method so nobody can give you
that.
However there are a lot of good methods as well as bad methods
:-)
I hope this helps?
Cor
Good points Cor. Let me add a little more. I want to be able to control ther location and sizing with the mouse. THe same way you would do it in the designer only at runtime. I know how to change it directly in the code. I also know how to write out the top, left, height and width to an XML for saving the design. I just can't figure out the first part
Thanks
John
* "=?Utf-8?B?amNyb3VzZQ==?=" <an*******@discussions.microsoft.com> scripsit: What is the easiest way to do this? I'm creating a layout designer type application.
<URL:http://www.divil.co.uk/net/articles/designers/hosting.asp>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Well Cor, thanks to your example I am able to drag my label controls at run time. Thanks you. Now I need to be able to resize then also. Any tips or code examples for that
Thanks
John
Hi John,
I am glad that this helps you, for the rest it is in my opinion just
calculating, setting the right procedure and setting the right the
mousecursor in the right time.
I hope this helps you as well?
Cor
Anymore Ideas here. I found some code that allowed you to drak the right edge to make the label wider but I would really like the resizing to ack like it does in the from layout window, drag any of the sides or the corners.
John
"jcrouse" wrote: What is the easiest way to do this? I'm creating a layout designer type application.
Thanks, John
I must be missing something, you can alter the height, width and location at
runtime using those properties.
OHM
"jcrouse" <jc*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com... Anymore Ideas here. I found some code that allowed you to drak the right
edge to make the label wider but I would really like the resizing to ack
like it does in the from layout window, drag any of the sides or the
corners. John
"jcrouse" wrote:
What is the easiest way to do this? I'm creating a layout designer type
application. Thanks, John
Hi John,
Describe it more, because you told you are a newbie and now you maybe are
coming in an area, that is not that easy to describe.
Probably it is bassicly setting a switch with a mouse down and keeping track
of the mouse move in the mouse move event after that. And set the switch
back with the mouse up.
Cor
OHM,
I believe jcrouse wants the user to be allowed to drag & drop the borders on
the label & resize it dynamically.
One place to start on enabling apps to behave as designers is: http://www.windowsforms.net/default....mID=13&mid=142
Hope this helps
Jay
"One Handed Man ( OHM#)" <news.microsoft.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl... I must be missing something, you can alter the height, width and location
at runtime using those properties.
OHM
"jcrouse" <jc*****@discussions.microsoft.com> wrote in message news:60**********************************@microsof t.com... Anymore Ideas here. I found some code that allowed you to drak the right edge to make the label wider but I would really like the resizing to ack like it does in the from layout window, drag any of the sides or the corners. John
"jcrouse" wrote:
What is the easiest way to do this? I'm creating a layout designer
type application. Thanks, John
I see that now,
Thanks.
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl... OHM, I believe jcrouse wants the user to be allowed to drag & drop the borders
on the label & resize it dynamically.
One place to start on enabling apps to behave as designers is:
http://www.windowsforms.net/default....mID=13&mid=142 Hope this helps Jay
"One Handed Man ( OHM#)" <news.microsoft.com> wrote in message news:%2******************@tk2msftngp13.phx.gbl... I must be missing something, you can alter the height, width and
location at runtime using those properties.
OHM
"jcrouse" <jc*****@discussions.microsoft.com> wrote in message news:60**********************************@microsof t.com... Anymore Ideas here. I found some code that allowed you to drak the
right edge to make the label wider but I would really like the resizing to ack like it does in the from layout window, drag any of the sides or the corners. John
"jcrouse" wrote:
> What is the easiest way to do this? I'm creating a layout designer
type application. > > Thanks, > John
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MB |
last post by:
Hi!
I am trying to make a dynamic GroupBox that will contain a variable
number of child controls of a single type, e.g. RadioButtons or
CheckBoxes. I want to read the neccesarry information...
|
by: fragget |
last post by:
Does anyone have experience drawing a selection box
around runtime controls. I foundthe
ControlPaint.DrawSelectionRectangle (or whatever it is,
however it doesn't have the nubs for resizing the...
|
by: jbmeeh |
last post by:
I have an application in which I need to expose runtime moving and resizing of controls. Most of the functionality that I need is exposed by the CRectTracker class in the C++ library. Are there any...
|
by: jcrouse |
last post by:
Is there a quick and easy way to change the color of a label controls border
from the default black to white?
Thank you,
John
|
by: jcrouse |
last post by:
I am rotating some text is some label controls. In the one place I use it it
works fine. In the other place I use it I can't figure out the syntax. I
don't really understand the event. Where it...
|
by: Joe |
last post by:
I have a label control that will be filled with text at runtime. The
length of the text will vary, but the label must stay the same size. Is
there a way to set the font size of the text such that...
|
by: Arpan |
last post by:
Consider the following code snippet (my main intention is to display
the current time in a Label control as & when this ASPX page is
accessed/refreshed):
<script runat="server">
Class Clock...
|
by: illegal.prime |
last post by:
I'm surprised that I'm only know discovering this problem, but I
suppose I've never needed to change the dimension that is opposite to
the docking of the control. That is, when I've docked a...
|
by: chandan |
last post by:
Hi,
Is any way to palce a control(button/label) at a location on webPage
in runtime??
In page_load envet I am adding a button on the page in the contol
collection of a panel but not able to...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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,...
| |