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...
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.
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...
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...
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...
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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.