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

C#

 
QuestionRe: amount to letter in crystal report Pin
tek 200923-Aug-10 0:19
tek 200923-Aug-10 0:19 
QuestionUnable to copy file XXX. The process cannot access the file XXX because it is being used by another process.... ? Pin
Yanshof22-Aug-10 4:50
Yanshof22-Aug-10 4:50 
AnswerRe: Unable to copy file XXX. The process cannot access the file XXX because it is being used by another process.... ? Pin
DaveyM6922-Aug-10 5:20
professionalDaveyM6922-Aug-10 5:20 
AnswerRe: Unable to copy file XXX. The process cannot access the file XXX because it is being used by another process.... ? Pin
Abhinav S22-Aug-10 6:54
Abhinav S22-Aug-10 6:54 
Questionconvert *.vcf and *.wab file to SQL Pin
jojoba201122-Aug-10 4:08
jojoba201122-Aug-10 4:08 
QuestionNested Procedure Pin
Fred 3422-Aug-10 2:40
Fred 3422-Aug-10 2:40 
AnswerRe: Nested Procedure Pin
OriginalGriff22-Aug-10 2:58
mveOriginalGriff22-Aug-10 2:58 
AnswerRe: Nested Procedure Pin
Pete O'Hanlon22-Aug-10 3:33
mvePete O'Hanlon22-Aug-10 3:33 
You can accomplish something that looks like this (sort of) using a delegate or lambda expression. In my article here[^], I demonstrate this with this section in the method SignInExecute:
private void SignInExecute(object parameter)
{
    try
    {
        string accountName = AccountName;
        string password = Password;
        bool rememberMe = RememberMe;
        Mouse.OverrideCursor = Cursors.Wait;
        LoginMessage = string.Empty;
        BackgroundTaskManager.RunBackgroundTask(() => { return Login(); },
        (result) =>
        {
            Mouse.OverrideCursor = null;
            if (result == null)
            {
                Mediator.Instance.NotifyColleagues(
                   ViewModelMessages.UserAuthenticated, false);
                LoginMessage = "Unfortunately, Twitter did not recognise" + 
                               " this username and " +
                               "password. Please try again";
            }
            else
            {
                LoginResult(result as XElement);
            }
        }
        );
    }
    catch
    {
        LoginMessage = "We are sorry, SongBird was unable" + 
                       " to connect to Twitter. " +
                       "Please check yournetwork connection and try again.";
    }
}
Take a look at the portion of code inside RunBackgroundTask to see this in operation.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionArrayList into ViewState Pin
treuveni22-Aug-10 0:39
treuveni22-Aug-10 0:39 
AnswerRe: ArrayList into ViewState Pin
treuveni22-Aug-10 1:59
treuveni22-Aug-10 1:59 
AnswerRe: ArrayList into ViewState Pin
Shani Natav22-Aug-10 2:23
Shani Natav22-Aug-10 2:23 
GeneralRe: ArrayList into ViewState Pin
Not Active22-Aug-10 3:05
mentorNot Active22-Aug-10 3:05 
AnswerRe: ArrayList into ViewState Pin
Not Active22-Aug-10 3:02
mentorNot Active22-Aug-10 3:02 
AnswerRe: ArrayList into ViewState [modified] Pin
Vivek H23-Aug-10 3:28
Vivek H23-Aug-10 3:28 
QuestionHow to find the maximize & minimum points from List<Point> ? Pin
Yanshof21-Aug-10 22:37
Yanshof21-Aug-10 22:37 
AnswerRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn21-Aug-10 23:17
sitebuilderLuc Pattyn21-Aug-10 23:17 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Yanshof21-Aug-10 23:21
Yanshof21-Aug-10 23:21 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn21-Aug-10 23:36
sitebuilderLuc Pattyn21-Aug-10 23:36 
GeneralRe: How to find the maximize & minimum points from List ? Pin
OriginalGriff21-Aug-10 23:37
mveOriginalGriff21-Aug-10 23:37 
AnswerRe: How to find the maximize & minimum points from List ? Pin
Eddy Vluggen22-Aug-10 0:48
professionalEddy Vluggen22-Aug-10 0:48 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn22-Aug-10 8:53
sitebuilderLuc Pattyn22-Aug-10 8:53 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Eddy Vluggen22-Aug-10 9:51
professionalEddy Vluggen22-Aug-10 9:51 
AnswerRe: How to find the maximize & minimum points from List ? [modified] Pin
cechode22-Aug-10 10:08
cechode22-Aug-10 10:08 
GeneralRe: How to find the maximize & minimum points from List ? Pin
harold aptroot22-Aug-10 10:33
harold aptroot22-Aug-10 10:33 
GeneralRe: How to find the maximize & minimum points from List ? Pin
cechode22-Aug-10 10:42
cechode22-Aug-10 10:42 

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.