Click here to Skip to main content
15,897,090 members
Home / Discussions / C#
   

C#

 
QuestionGenerate hyperlink to file Pin
piet kouwer26-Dec-13 21:06
piet kouwer26-Dec-13 21:06 
AnswerRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 22:33
mveRichard MacCutchan26-Dec-13 22:33 
GeneralRe: Generate hyperlink to file Pin
piet kouwer26-Dec-13 22:41
piet kouwer26-Dec-13 22:41 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 23:17
mveRichard MacCutchan26-Dec-13 23:17 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:07
piet kouwer27-Dec-13 0:07 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:10
mveRichard MacCutchan27-Dec-13 0:10 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:27
piet kouwer27-Dec-13 0:27 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:33
mveRichard MacCutchan27-Dec-13 0:33 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:22
mveRichard MacCutchan27-Dec-13 0:22 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:32
piet kouwer27-Dec-13 0:32 
AnswerRe: Generate hyperlink to file Pin
Ron Nicholson27-Dec-13 3:46
professionalRon Nicholson27-Dec-13 3:46 
QuestionConvert BitmapImage into byte arrays in wpf Pin
Member 1001614026-Dec-13 11:42
Member 1001614026-Dec-13 11:42 
AnswerRe: Convert BitmapImage into byte arrays in wpf Pin
OriginalGriff26-Dec-13 21:04
mveOriginalGriff26-Dec-13 21:04 
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 
C#
class Program
{
    static void Main(string[] args)
    {
        using (var f = new Form())
        {
            var lbl = new Label();
            lbl.Text = "Hello world";
            lbl.Image = f.Icon.ToBitmap();
            lbl.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            f.Controls.Add(lbl);
            f.ShowDialog();
        }
    }
}
Ron.bharath wrote:
i cannot go ahead with the image align property as it will align the image attached to the image property.
That's what you asked; put the image in the label, on the right side of the text. If you want something else, you'd have to specify 'what' you want a bit more clearly.

You could add a PictureBox on the right next to the label (concatenating controls, not data), but that would be less efficient.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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 
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 

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.