Search:

Type: Posts; User: iamcpc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. VS 2008 Re: [RESOLVED] Sleep() not sleeping for some reason

    It wasn't just the boolean it was any module public variable having a value set to it by one of the forms.

    Is there any other object other than excel that I could test this with to see if it's...
  2. VS 2008 Re: [RESOLVED] Sleep() not sleeping for some reason

    Public Sub noexcel(ByVal column As Integer)

    Debug.Print("before visible " & column.ToString)

    If teststring = "0" Then
    Debug.Print("thread changed site1:" & column)...
  3. VS 2008 Re: [RESOLVED] Sleep() not sleeping for some reason

    I feel like it can't be just excel. If it was just excel the removing the changes to the global variable on form1 wouldn't change how the threads operate. It would have to be excel + global variable...
  4. VS 2008 Re: Question about what happens when I navigate form1.webrowser1 from non UI thread

    I will look into this now! Thanks for the ideas!
  5. VS 2008 Re: Question about what happens when I navigate form1.webrowser1 from non UI thread

    The webpage HTML included an object and the object created in the website's HTML runs a macro which logs into the server created by the object. The macro happens after the document completed event....
  6. VS 2008 Re: [RESOLVED] Sleep() not sleeping for some reason

    I will read that book!

    I tried it with a string variable in addition to a boolean and had the same problem. It looks like altering a public variable declared on a module from a form affects how...
  7. VS 2008 Re: [RESOLVED] Sleep() not sleeping for some reason

    It's not the efent handler. It's the global variable

    DOES NOT WORK:


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  8. Thread: PacMan Help!

    by iamcpc
    Replies
    4
    Views
    221

    VS 2008 Re: PacMan Help!

    well what i see happening is that if i'm moving up and i collide my position moves down.

    The problem is that i'm still moving up so i collide again. so i'm colliding over and over and over again....
  9. Thread: PacMan Help!

    by iamcpc
    Replies
    4
    Views
    221

    VS 2008 Re: PacMan Help!

    I would start by labeling your pictureboxes on your form so you can possibly identify which picturebox collisions are messing you up when you move pac man around.
  10. VS 2008 Re: Question about what happens when I navigate form1.webrowser1 from non UI thread

    So how would I handle this:

    I navigate to a website, the document is completed, but the macros are not completed? The document completed event says DOCUMENT COMPLETED! But there is no macro...
  11. VS 2008 Question about what happens when I navigate form1.webrowser1 from non UI thread

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim navthread1 As New System.Threading.Thread(AddressOf Module1.navigate)
    ...
  12. VS 2008 Re: Sleep() not sleeping for some reason

    I'm marking this thread resolved because I stuck with it and figured out that a public variable was the ultimate find. I'm so glad it was not that one application was "lucky" and one was not! Thank...
  13. VS 2008 Re: Sleep() not sleeping for some reason

    Even with a lock each thread was stopping at each if statement when i had set my global variable

    Each thread hit this and stopped untill every thread had hit this, so each thread is saying excel...
  14. VS 2008 Re: Sleep() not sleeping for some reason

    Can the passing of variables between forms1 and modules lock?

    LIke when I

    Public loaded As Boolean in module 1 and then make loaded = false in form1?
  15. VS 2008 Re: Sleep() not sleeping for some reason

    The point was to better understand multithreading problems. To understand why threads were not running and completing when I testthread.start()

    I even tested this with navingating the...
  16. VS 2008 Re: Sleep() not sleeping for some reason

    The problem is with a global variable loaded and the form1.webbrowser1 document completed event setting that variable to true if the page is loaded and to false if the webbrowser is navigating read...
  17. VS 2008 Re: Sleep() not sleeping for some reason

    I FIGURED IT OUT!!! OMG BEST ADVICE EVER.


    OK the non sleep() sub there is a form1.webbrowser1 document completed event handler setting a global boolean variable in module 1 loaded to true if the...
  18. VS 2008 Re: Sleep() not sleeping for some reason

    This actually made me laugh. I've come here to find out why the exact code behaves differently in program A than it does in program B and the answer i've been given is because program A is lucky? Why...
  19. VS 2008 Re: Sleep() not sleeping for some reason

    I made some changes to this just to see how it would effect it.



    Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
    Dim...
  20. VS 2008 Re: Sleep() not sleeping for some reason

    We are talking about two apps running on the same computer with the same OS, same everything.




    I agree that there must be something in one app that's not in the other. I've uploaded the...
  21. Re: I've got new problem can someone please shed some light on this for me

    you could have the source code be a string and then split the string as needed or use left() or mid() functions to shave characters off of the string
  22. VS 2008 Re: Sleep() not sleeping for some reason

    Public Sub testthis(ByVal thread As String)

    MsgBox(thread.ToString)


    End Sub

    Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  23. VS 2008 Re: Sleep() not sleeping for some reason

    I've stumped everyone! lol
  24. VS 2008 Re: Sleep() not sleeping for some reason

    This forum post is not about controlling the order of execution of my threads. It's about understanding why sleep() works fine with the same code, same computer, different application then on this...
  25. VS 2008 Re: Sleep() not sleeping for some reason

    I have posted the code in which spreadsheet columns are filled simultaneously without crashing the spreadsheet program on this thread.



    If that is true then why is it, using the code posted on...
  26. VS 2008 Re: Sleep() not sleeping for some reason

    how can I do multiple things at the simeltaneously (like filling in columns on a spreadsheet) if i'm not using multiple threads? If the order of execution of threads can't be determined then how come...
  27. VS 2008 Re: Sleep() not sleeping for some reason

    When I move the breakpoint after making xl.visible I can see that the excel workbook is being made visible before the button click event ends.

    I added a debug.print of the column variable which...
  28. VS 2008 Re: Sleep() not sleeping for some reason

    The If xl.visible <> True breakpoint is hitting first.

    I'm not locking objects on either application. On the application where sleep() is not working on form1 I have Inherits...
  29. VS 2008 Re: Sleep() not sleeping for some reason

    This is what I'm seeing





    If I try this
    Numbers come from thread 1.
    Wait 20 seconds.
    Numbers come from thread 2.
  30. VS 2008 Re: Sleep() not sleeping for some reason

    I tried dim frm2 as new form2 and I also tried to make dim f2 as new form2 outside of the sub as a class level variable and they both still had the same problem
  31. VS 2008 Re: Sleep() not sleeping for some reason

    [QUOTE=dbasnett;4332341]So I did a test. In form1 I have this


    Dim f As New Form2
    f.Show()


    how would it affect my code if I just had form2.show() instead of dimming f as...
  32. VS 2008 Re: Sleep() not sleeping for some reason

    I know when the thread starts because I can see the numbers being put on the column of an excel spreadsheet. Thread 1 is column 1, thread 2 is column 2, thread 3 is columng 3 etc.

    I run this on...
  33. VS 2008 Re: Sleep() not sleeping for some reason

    My questions is this:

    When I run this code on this application that i've attached:

    All 6 threads start at the exact same time.

    When I run this code on another application:

    Thread one...
  34. VS 2008 Re: Sleep() not sleeping for some reason

    i'm not wanting to sleep testthread2. I'm wanting to start a thread, sleep for 2 seconds, start a thread, sleep for 2 seconds, start a thread. I attached the project to my post so you can see the...
  35. VS 2008 [RESOLVED] Sleep() not sleeping for some reason

    I have created a test application to test my multithreading by creating threads which put the numbers 1 to 100 in columns of an excel spreadsheet. I use a form1 button click to start the threads. One...
  36. VS 2008 Re: Question about webbrowser control from another thread

    Is there any way to start a thread, wait a second, and then start another thread? or is there some setting which affects how sleep works?


    I have this multithread loop in one of my applications....
  37. VS 2008 Re: problems with navigating webbrowser on form1 from form2

    Is there any way that I can mark this thread as unsolved because application.doevents() wound up causing a lot of headache.
  38. VS 2008 Re: Question about webbrowser control from another thread

    How do I connect them? Also how come, when I step through this, the thread starts when I tell it to, but when I run it without stepping through, the thread starts afterwards?
  39. VS 2008 Question about webbrowser control from another thread

    I'm trying to set up a situation where outside of a form I can have form1.webbrowser1 start at www.google.com and navigate to www.yahoo.com where the URL before the navigate is www.google.com and...
  40. VS 2008 Re: how can I prevent this from causing an error?

    That's funny because when I press F8 on the line of code which says form1.webbrowser1.navigate("www.yahoo.com") I don't see the webbrowser navigate....







    It's a long story.
Results 1 to 40 of 54
Page 1 of 2 1 2