Click here to Skip to main content
15,888,968 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Browser to C# application Pin
TKCA7-Mar-12 2:24
TKCA7-Mar-12 2:24 
GeneralRe: Web Browser to C# application Pin
Dave Kreskowiak7-Mar-12 3:57
mveDave Kreskowiak7-Mar-12 3:57 
Questionrandom selection from a list Pin
james bradbery5-Mar-12 14:57
james bradbery5-Mar-12 14:57 
AnswerRe: random selection from a list Pin
PIEBALDconsult5-Mar-12 15:06
mvePIEBALDconsult5-Mar-12 15:06 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 15:12
james bradbery5-Mar-12 15:12 
AnswerRe: random selection from a list Pin
RobCroll5-Mar-12 15:16
RobCroll5-Mar-12 15:16 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 16:30
james bradbery5-Mar-12 16:30 
GeneralRe: random selection from a list Pin
RobCroll5-Mar-12 17:08
RobCroll5-Mar-12 17:08 
Sure, you'll want to take the same approach for the webagents.

The GetWebsiteUrls method is a method that returns a collection of strings representing the the websites. I don't know how you are storing these values. Also the form shouldn't know anyway. In case you change the type of data source.

You could use a database if people are going to add delete entries. You could use a config file if the values rarely change or you could hard code it if they virtually never change
C#
public List<string> GetWebsiteUrls()
{
    List<string> urls = new List<string>();
    url.Add("http://a.b.c");
    url.Add("http://a.c.c");
    ....
    return urls;
}

"You get that on the big jobs."

GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 17:47
james bradbery5-Mar-12 17:47 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 17:56
james bradbery5-Mar-12 17:56 
GeneralRe: random selection from a list Pin
RobCroll6-Mar-12 20:07
RobCroll6-Mar-12 20:07 
AnswerRe: random selection from a list Pin
BobJanova5-Mar-12 22:17
BobJanova5-Mar-12 22:17 
GeneralRe: random selection from a list Pin
james bradbery10-Mar-12 18:22
james bradbery10-Mar-12 18:22 
QuestionSlope method optimisation Pin
A*****5-Mar-12 14:51
A*****5-Mar-12 14:51 
AnswerRe: Slope method optimisation Pin
RobCroll5-Mar-12 18:24
RobCroll5-Mar-12 18:24 
AnswerRe: Slope method optimisation Pin
A*****5-Mar-12 23:12
A*****5-Mar-12 23:12 
AnswerRe: Slope method optimisation Pin
Luc Pattyn5-Mar-12 19:30
sitebuilderLuc Pattyn5-Mar-12 19:30 
GeneralRe: Slope method optimisation Pin
A*****5-Mar-12 23:17
A*****5-Mar-12 23:17 
AnswerRe: Slope method optimisation Pin
BobJanova5-Mar-12 22:04
BobJanova5-Mar-12 22:04 
QuestionSemantic music engine Pin
Abdul Salam Shaikh5-Mar-12 8:49
Abdul Salam Shaikh5-Mar-12 8:49 
AnswerRe: Semantic music engine Pin
PIEBALDconsult5-Mar-12 8:52
mvePIEBALDconsult5-Mar-12 8:52 
AnswerRe: Semantic music engine Pin
Pete O'Hanlon5-Mar-12 8:54
mvePete O'Hanlon5-Mar-12 8:54 
QuestionReturn Value From Async Call Pin
Kevin Marois5-Mar-12 6:15
professionalKevin Marois5-Mar-12 6:15 
AnswerRe: Return Value From Async Call Pin
Pete O'Hanlon5-Mar-12 6:45
mvePete O'Hanlon5-Mar-12 6:45 
AnswerRe: Return Value From Async Call Pin
Luc Pattyn5-Mar-12 8:12
sitebuilderLuc Pattyn5-Mar-12 8:12 

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.