Click here to Skip to main content
15,886,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert BitmapImage into byte arrays in wpf Pin
Member 1001614027-Dec-13 0:24
Member 1001614027-Dec-13 0:24 
Questionhow to get Current language in C# Application Pin
mohmmadg26-Dec-13 1:00
mohmmadg26-Dec-13 1:00 
AnswerRe: how to get Current language in C# Application Pin
Eddy Vluggen26-Dec-13 1:28
professionalEddy Vluggen26-Dec-13 1:28 
AnswerRe: how to get Current language in C# Application Pin
BillWoodruff26-Dec-13 1:30
professionalBillWoodruff26-Dec-13 1:30 
Questionshowing image on label. Pin
Ron.bharath26-Dec-13 0:57
Ron.bharath26-Dec-13 0:57 
AnswerRe: showing image on label. Pin
Eddy Vluggen26-Dec-13 1:34
professionalEddy Vluggen26-Dec-13 1:34 
GeneralRe: showing image on label. Pin
BillWoodruff26-Dec-13 10:01
professionalBillWoodruff26-Dec-13 10:01 
AnswerRe: showing image on label. Pin
BillWoodruff26-Dec-13 1:46
professionalBillWoodruff26-Dec-13 1:46 
At design-time you have several choices ... if your Label, and whatever graphic element object, is going to remain the same size at run-time no matter how its containing Control, or Form, is re-sized, and if your Label content, and the graphic content object, is not going to change:

1. you can position the Icon, or PictureBox, over the end of the Label Text.

2. you could create a custom UserControl combining a Label and a graphic element object, and design it to look "right."

If you are talking about creating text, and a graphic element, at run-time, or having text, or graphic, that changes at run-time, the problems of alignment become significant.

You can, in fact, insert a graphic object into the Controls Collection of a Label (or other Win Forms Control); you can't do that at design-time unless you modify the Designer.cs file yourself, which is not something recommended to do.

Once you have a graphic element "inside" a Label's DisplayRectangle, you may have the same problems of alignment/positioning you would have at design-time.

An alternative you could consider would be using a RichTextBox instead of a Label, where the insertion of graphic elements ... while not simple ... is more straightforward in that they can be placed in the "flow" of the text layout, and, in a RichTextBox calculation of the co-ordinates of the current end of the text content is much easier.

What have you tried so far ? And, is what you need to do to be done at run-time with changing content for both Label Text, and the related graphic element ?
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'

As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”

Vincent Van Gogh

GeneralRe: showing image on label. Pin
Ron.bharath26-Dec-13 18:50
Ron.bharath26-Dec-13 18:50 
Questionneed solution for the following Pin
Surabhi1725-Dec-13 13:21
Surabhi1725-Dec-13 13:21 
AnswerRe: need solution for the following Pin
BillWoodruff25-Dec-13 14:30
professionalBillWoodruff25-Dec-13 14:30 
QuestionFinger Print Scanner in C#.NET Pin
srdk_flora25-Dec-13 3:36
srdk_flora25-Dec-13 3:36 
AnswerRe: Finger Print Scanner in C#.NET Pin
Dave Kreskowiak25-Dec-13 6:08
mveDave Kreskowiak25-Dec-13 6:08 
AnswerRe: Finger Print Scanner in C#.NET Pin
jschell25-Dec-13 8:08
jschell25-Dec-13 8:08 
Questionc# Pin
Member 1048691225-Dec-13 2:22
Member 1048691225-Dec-13 2:22 
AnswerRe: c# Pin
Pete O'Hanlon25-Dec-13 4:40
mvePete O'Hanlon25-Dec-13 4:40 
QuestionMDI Application ........... Pin
balaji muthaiah24-Dec-13 3:13
balaji muthaiah24-Dec-13 3:13 
AnswerRe: MDI Application ........... Pin
DRAYKKO77724-Dec-13 4:06
DRAYKKO77724-Dec-13 4:06 
SuggestionRe: MDI Application ........... Pin
Richard MacCutchan24-Dec-13 4:27
mveRichard MacCutchan24-Dec-13 4:27 
AnswerRe: MDI Application ........... Pin
smithjdst25-Dec-13 0:00
smithjdst25-Dec-13 0:00 
Questionsearch in sql server(C#) Pin
Member 1048484824-Dec-13 1:45
professionalMember 1048484824-Dec-13 1:45 
GeneralRe: search in sql server(C#) Pin
Peter Leow24-Dec-13 2:02
professionalPeter Leow24-Dec-13 2:02 
AnswerRe: search in sql server(C#) Pin
Eddy Vluggen24-Dec-13 4:49
professionalEddy Vluggen24-Dec-13 4:49 
Questionsearch in C# with sql server Pin
Member 1048484824-Dec-13 1:44
professionalMember 1048484824-Dec-13 1:44 
AnswerRe: search in C# with sql server Pin
DRAYKKO77724-Dec-13 4:17
DRAYKKO77724-Dec-13 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.