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

C#

 
GeneralRe: Connect to sql server 2000 remotely Pin
Wendelius6-Oct-08 9:42
mentorWendelius6-Oct-08 9:42 
GeneralRe: Connect to sql server 2000 remotely Pin
Hossein Afyuoni6-Oct-08 9:57
Hossein Afyuoni6-Oct-08 9:57 
GeneralRe: Connect to sql server 2000 remotely Pin
Wendelius6-Oct-08 10:13
mentorWendelius6-Oct-08 10:13 
Questionneed to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi5-Oct-08 23:55
x0lubi5-Oct-08 23:55 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Jaffer Mumtaz6-Oct-08 3:03
Jaffer Mumtaz6-Oct-08 3:03 
GeneralRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi6-Oct-08 7:12
x0lubi6-Oct-08 7:12 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Wendelius6-Oct-08 9:11
mentorWendelius6-Oct-08 9:11 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi6-Oct-08 22:53
x0lubi6-Oct-08 22:53 
Thanks Mika, but i got it working already. the problem i had was marshalling the background thread to the main one. this was the modification i made to get it to work.

public void EndFetchInt(IAsyncResult result)
{
    SomeMethod method = (SomeMethod)result.AsyncState;
    int i = method.EndInvoke(result);

    //MethodInvoker mi = new MethodInvoker(this.AddToList);
    //this.BeginInvoke(mi, i);

    AddToList(i);
}

delegate void _addToList(int data);

public void AddToList(int data)
{
    if (this.listView1.InvokeRequired)
    {
        this.Invoke(new _addToList(AddToList), data);
    }
    else
    {
        ListViewItem lvi = new ListViewItem();
        lvi.Text = data.ToString();
        lvi.SubItems.Add(DateTime.Now.ToString());
        listView1.Items.Add(lvi);
    }
}


i would have had to do the same if even if i had used the BackgroundWorker class.
GeneralRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Wendelius7-Oct-08 6:50
mentorWendelius7-Oct-08 6:50 
Question[Message Deleted] Pin
DJ2455-Oct-08 23:27
DJ2455-Oct-08 23:27 
AnswerRe: Read HTML file and replace relative path of images with absolute Pin
Eslam Afifi6-Oct-08 0:45
Eslam Afifi6-Oct-08 0:45 
GeneralRe: Read HTML file and replace relative path of images with absolute Pin
DJ2456-Oct-08 20:37
DJ2456-Oct-08 20:37 
GeneralRe: Read HTML file and replace relative path of images with absolute Pin
Eslam Afifi7-Oct-08 3:09
Eslam Afifi7-Oct-08 3:09 
Questionconvert access forms to C# Pin
sachinss19865-Oct-08 23:26
sachinss19865-Oct-08 23:26 
AnswerRe: convert access forms to C# Pin
x0lubi6-Oct-08 0:35
x0lubi6-Oct-08 0:35 
AnswerRe: convert access forms to C# Pin
Dave Kreskowiak6-Oct-08 2:10
mveDave Kreskowiak6-Oct-08 2:10 
AnswerRe: convert access forms to C# Pin
Dave Doknjas6-Oct-08 14:56
Dave Doknjas6-Oct-08 14:56 
QuestionReflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar5-Oct-08 22:52
Puneet Bhatnagar5-Oct-08 22:52 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
N a v a n e e t h5-Oct-08 23:09
N a v a n e e t h5-Oct-08 23:09 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
leppie5-Oct-08 23:59
leppie5-Oct-08 23:59 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill6-Oct-08 1:09
Mark Churchill6-Oct-08 1:09 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar6-Oct-08 23:36
Puneet Bhatnagar6-Oct-08 23:36 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill7-Oct-08 5:37
Mark Churchill7-Oct-08 5:37 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar10-Oct-08 0:02
Puneet Bhatnagar10-Oct-08 0:02 
QuestionUsing FFMPEG Wmv to Swf: Not Working in C#: Need Help... Pin
elango.sham5-Oct-08 22:12
elango.sham5-Oct-08 22: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.