Search results for query: *

  1. G

    Question Choosing a structure to manipulate xml data

    Here is what I have so far. I would appreciate some help in finishing this off - i think it's just the two bits in square brackets... Const XMLDOCFILEPATH As String = "C:\Documents and Settings\All Users\Documents\programming\Nillionaire\AskTheAudience\TPSession.xml" Dim xDoc...
  2. G

    Question Choosing a structure to manipulate xml data

    ok - great, thanks, will do. well spotted on the absence of the correct answer. the xml file doesn't know anything about that so that calculation will have to take place in vb.net once the numbers are in.
  3. G

    Question Choosing a structure to manipulate xml data

    Hi Could I have vbdotnet's collective thoughts please? I am about to write a sub in my gameshow program (multiple choice questions A-D, eight contestants). I currently find myself paralysed by the number of ways of doing a simple task. The sub will take some well-formed xml contestant...
  4. G

    Question Using FindWindowEx to get Powerpoint Slide Show window handle

    The following code inserts " ABef" into Notepad but nothing into Powerpoint. Not sure why not. Perhaps I have the wrong window Public Class Form1 Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr...
  5. G

    Question Using FindWindowEx to get Powerpoint Slide Show window handle

    I am some of the way there - have grabbed a handle of and sent a character to a sub window in Notepad with this Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal _ lpClassName As String, ByVal lpWindowName As String) As IntPtr Declare Auto Function FindWindowEx Lib...
  6. G

    Question Using FindWindowEx to get Powerpoint Slide Show window handle

    Hi there. Apologies if this is posted to the wrong forum - I couldn't find an API forum. I've spent 18 hours trying to solve this one. I am trying to send a keystroke to a running powerpoint presentation with SendMessage or Postmessage. But I can't get as far as the handle for the...
  7. G

    Newbie problem with setting property of class

    Ahaaaaa! you're right - i had opened form2 with Dim frm2 As New Form2() frm2.show and forgot i had done it. that was a schoolboy error and I guess I fixated on what I thought was the problem code in a new area to me without considering all the objects. Thanks again
  8. G

    how to get transparent forms

    It's the form's TransparencyKey setting you want. Its value is a color. If you set that color to, say, white, any white areas will become transparent.
  9. G

    Newbie problem with setting property of class

    Thanks for looking. I'm new to classes and can't work out where i've gone wrong. In my Who Wants to be a Millionaire application, I have a Lifeline class and I create three instances of it - FF, PAF and ATA (50/50, Phone a Friend and Ask the Audience). something i do with a lifeline is put a...
  10. G

    Question Audio file plays only when execution paused - threading issue?

    JMC's answer solved the actual problem as well as answering my throwaway question. Here is the now-working code: Private Sub Something() Dim FormLoadSnippet As New Music FormLoadSnippet.Play(filename/path.mp3") End Sub and the class module: Public Class Music Sub...
  11. G

    Question Audio file plays only when execution paused - threading issue?

    of course! thanks for that. i'm a little rusty on classes and instances.
  12. G

    Question Audio file plays only when execution paused - threading issue?

    I have a form and a class module. the application plays a sound file from using a windows media player control on the form. it seems silly to me that you need to have a hidden visual control on a form rather than just using code, but that's another gripe. previously, the code (in the form...
Back
Top