 |
|
|
 |
|
 |
I'm new to VB.NET from a VB6 background. I was looking for a simple way to rotate text on a label and found several solutions to code but they were too advanced for me. I found your control, figured out how to drop it in my VB project and it does exactly what I wanted. As a bonus it forced me to learn how to drop somebody else's project/control into my solution which is going to be very practical going forward. Thanks again. 
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Would you please tell me , from where I can find control that orient text in a web page. thanks for your help.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
How to orient text in a web form. This control works for window form what about web form...
as the function like OnPaint is available only in window form but not in a web form. please guide . Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi,
I need to created a custom control, where the textbox (WinForms) will be extended. When the custom control is dragged on to the form a label should get automatically added to the left of the textbox.
Thanks for all help. Dheeraj.
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
 |
can you implement in the control that it can support color, in every word inside?
what i mean is if you have and full sentence. if you want to have a certain word to be highlite or change color it can do so 
thanks in advance
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Please, i need some samples with how to work with rtf code, because i need to insert one picture into RichTextBox (WindowForm Component) and in the documentation no include examples...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
the control is great! I've been looking for a vertical label for some time (the arc and circle are added bonuses).
but, I have a small problem. The label doesn't automatically wrap text. So, I decided to add my text at runtime using label.text="Some Short Text"+vbcrlf+"Some more short text".
Unfortunately, the label text does not align properly. the longer of the two text sequences is centered (what I want), but the shorter sequence is left aligned to the beginning of the longer sequence.
any ideas?
TIA Lee
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Could someone explain to me or reference some articles for the syntax of Entrypoints like the one below. It is from a C# wrapper that calls a function from a unmanaged C++ dll.
EntryPoint="?myFunc@myFile@@QAEH_N@Z"
I do not understand the "@@QAEH_N@Z".
Thank-you
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi,
I was looking for this functionnality and your control fits my needs, except that I've lost the TextAlign property. The text in your control is always centered.
I'm currently only working with the rotation functionnality. Can you tell me if there is a way to change your code so as the TextAlign property is taken into account ?
Thanks a lot David
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Here is the solution I came to in the Paint event:
... case Orientation.Rotate : { //For rotation, who about rotation? double angle = (rotationAngle/180)*Math.PI; StringFormat stringFormat = new StringFormat(); stringFormat.Trimming = StringTrimming.None; switch (this.TextAlign) { case ContentAlignment.BottomLeft: case ContentAlignment.MiddleLeft: case ContentAlignment.TopLeft: { stringFormat.Alignment = StringAlignment.Near; break; }
case ContentAlignment.BottomCenter: case ContentAlignment.MiddleCenter: case ContentAlignment.TopCenter: { stringFormat.Alignment = StringAlignment.Center; break; }
case ContentAlignment.BottomRight: case ContentAlignment.MiddleRight: case ContentAlignment.TopRight: { stringFormat.Alignment = StringAlignment.Far; break; } }
graphics.TranslateTransform( (ClientRectangle.Width+(float)(height*Math.Sin(angle))-(float)(width*Math.Cos(angle)))/2, (ClientRectangle.Height-(float)(height*Math.Cos(angle))-(float)(width*Math.Sin(angle)))/2); graphics.RotateTransform((float)rotationAngle); graphics.DrawString(text,this.Font,textBrush,graphics.ClipBounds, stringFormat); graphics.ResetTransform();
break; } ...
It seems to work so far.
David
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Control is very nice... How do i get the Background Color Transparent ? Setting this Color to Transparent does not work...
Alignment code does not work for me... it just draws out of bounds... simply weird...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Perfect! Im not too familiar with the GDI+ stuff in .NET. but i wanted to make a Button with Vertical Text! Your Article was the perfect starting point. Thanks again!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, thanks for the article.
Was wondering if you know of a textbox control that can be rotated. What I need to have is a control exactly like in Publisher or Visio, where you can rotate a textbox, and still be able to alter it. I've tried to find out if I can somehow use graphical components like this from Publisher in C# (or anything for that matter), but know success. Any ideas??
Thanks, Greg Schroder
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Dear Sir,
I have been trying to implement you control, but without any luck, can any one help.
I'm using Visio 2002,
Jack
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi Chester,
Ok, where to start 
I downloaded the code, unfortunatelly i got vs2002, so i created a new project and dragged the forms, and it always gave me the same error:
>>>>>>>>>>
that the CustomControl.OrientAbleTextControls.OrientedTextLabel was not found
this is where i got confused?
??? does that help
Jack
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This demo has two projects. One is a library and the otherone is the demo one, where I have the form. So, better you create two projects ann give a try.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |