'Blocking = True' doesn't block user interface? - WeOnlyDo Discussion board

'Blocking = True' doesn't block user interface? (wodHttpDLX)

by Paco, Sunday, January 29, 2006, 22:59 (6671 days ago)

I do not want that the user can continue working with the interface while the control works, but in my tests the user can move the window, click on buttons, etc. How I can prevent it?

Thanks

Re: 'Blocking = True' doesn't block user

by wodDrazen, Monday, January 30, 2006, 00:50 (6671 days ago) @ Paco

Hi Paco,

Here is example how you can disable all form until server returns some result:

Set wodHttp1 = New wodHttpDLXCom
wodHttp1.Blocking = True
wodHttp1.HostName = www.weonlydo.com
Form1.Enabled = False
wodHttp1.Get /
Debug.Print wodHttp1.Response.Body
Form1.Enabled = True

I used debug mode for this example.In example form is disabled until Debug.Print command is executed.
You can try in your code something like this.

Hope i helped.

Regards,
Drazen


Re: 'Blocking = True' doesn't

by Paco, Monday, January 30, 2006, 10:12 (6670 days ago) @ wodDrazen

Thanks Drazen