Jump to content
Xtreme .Net Talk

phillip

Avatar/Signature
  • Posts

    38
  • Joined

  • Last visited

Everything posted by phillip

  1. I am monitoring the progress of an ole application and filling a data table with the results. I am doing this with a simple loop. My problem is the Datatable is not refreshing until the code finishes. How can i get the datatable to refresh while the loop is still running?
  2. I am linking to a program that genrates a apllication.quit event when its closing How do i monitor these events so i can act accordingly? :confused: VB
  3. I looked through some of my old vb6 code and found thid Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Function GetPressedKey() As String For cnt = 32 To 180 'Get the keystate of a specified key If GetAsyncKeyState(cnt) <> 0 Then GetPressedKey = Chr$(cnt) Exit For End If Next cnt End Function Sub Main() KeyPressed = GetPressedKey If KeyPressed <> "" Then Select Case KeyPressed Case "Q", "q" GoTo Quit end select I cant get it to work in vb.net though
  4. That didnt Seem to work for me. Thanks very much for trying though. I've given up for the day :D
  5. Maybe im better of explaining what im doing again. I have a button that when clicked goes to my SUB RUNMYCODE Using RUNMYCODE() I then have an Array of names I use For each myname in names 'Write a macro file and execute it in a Software package Next myname I want to be able to exit the Code by using the escape key in the for each loop because the operation can take up to an hour.
  6. I think this will work but i need to have it work from a button. This is what i was using to goto the old routine but it no longer functions? Private Sub Update1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Update1.Click MyLovelyClass_KeyUp() End Sub
  7. so how do i feed this into code that is continually looping? Sorry guys :confused:
  8. I Tried your code but could not get it to work, Can you explain a bit further as im a bit of a noob. Thanks in advance
  9. Hi I want to be able to terminate my running code using the Escape Key. How would i Go about doing this. Phill
  10. Hi How can i create a shortcut on a desktop automatically and assin an icon to it? Thanks Phill
  11. Thats it, thank you. Now why cant the help files be that simple;)
  12. Hi how do i look in a directory for a file to see if it exists or not? :confused: Phill
×
×
  • Create New...