Solved

c# fill value into label1

Posted on 2011-02-15
2
341 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now