Solved

c# fill value into label1

Posted on 2011-02-15
2
376 Views
Last Modified: 2012-05-11
I want to fill label1 with  EmailsList how can i do that

 if(!string.IsNullOrEmpty(result))
                {
                    Coderbuddy.ExtractEmails helper = new Coderbuddy.ExtractEmails(result);
                    EmailsList = helper.Extract_Emails();
                    label1.TextAlign = EmailsList;
                   
                }
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 250 total points
ID: 34894864
What type is EmailsList  ? Is this a string or string[] ?

If string: your code is correct ...

if string[]: which do you want to show ? The first of the list or all ?
Show the first: label1.TextAlign = EmailsList[0];
All: label1.TextAlign = String.Join(";",EmailsList);
0
 
LVL 3

Assisted Solution

by:chandra_darbha
chandra_darbha earned 250 total points
ID: 34896912
If it is a string it should be label1.Text and not label1.TextAlign.

Thanks,
Chandra
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linq, c# 8 52
Convert Silverlight ERP To Angularjs,HTML5 3 109
C# Service FileSystemwatcher isse 9 65
Fastest way to get file count in MS Server 2012 3 36
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question