Search results for query: *

  1. W

    Run console app in Windows Application

    I imagine that the console application is one that he hasn't written himself and doesn't have access to the source code for - he's just calling it.
  2. W

    Question Timer Program Shutdown

    I was actually thinking more along the lines of If (((Not(Now.AddYears(-personAge)<=Now.AddYears(-18)))) And (Not False)) = True Then ... I suppose we could also start using reflection to complicate this further, but I suspect this will do!
  3. W

    Question Timer Program Shutdown

    or perhaps If ((personAge > 18) = True) = True Then ... ?
  4. W

    Audio.Play relative path?

    Try this... Dim sounddir As String = IO.Path.Combine(Application.StartupPath,"sounds") Dim soundpath as String = IO.Path.Combine(sounddir,"open_creaky_door.wav") Then pass soundpath in. If you want to do it all in one, you can do...
  5. W

    Audio.Play relative path?

    The path relative to what? You probably want to do a little preprocessing on the path using some functions in IO.Path
  6. W

    Problem in showing the Show dialog window on front when clicking with Mouse

    In my experience, "show desktop"/Windows+D tends to muck up the window order with dialogs in all programs - I think it is more of an O/S bug than something to worry about when coding.
  7. W

    Problem in showing the Show dialog window on front when clicking with Mouse

    I'm not sure exactly what you are asking, but have you tried setting ShowInTaskBar to false?
  8. W

    How to open a window form ?

    You could create a hyperlink that fires some javascript to call window.open with a url containing GET parameters.
  9. W

    Question Unable to FTP Files using Windows Service

    Sorry - I just re-read what you wrote. Services don't have standard output and input as far as I know - you only really get that with Console apps. You could use Remoting or something to control the service to get it to pass in the parameters you need.
  10. W

    Question Unable to FTP Files using Windows Service

    Not sure off the top of my head, but maybe it has something to do with user rights - what user is the service running under and do they have permission to access what they need?
  11. W

    How do I fetch login info from JavaScript cookie

    If you want to maintain session variables, take a look at my blog (link below) - I've done a whole series of posts about sessions - you can basically just use them and they work, but you might want to read some of the other stuff.
  12. W

    Question Using a vb script

    The Chilkat components are available for .NET as well - there isn't much point in using the COM version in .NET I think you can add a reference to the old COM Microsoft Script Control and do it via that, but I haven't used it for years and I don't recall the precise name.
  13. W

    Question Set Session variable in JS-ASP.net

    I think you meant Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Request.QueryString("sessionvalue") Is Not Nothing then Session("mysession") = Request.QueryString("sessionvalue").ToString() End If End Sub
  14. W

    Question Get record with MIN value for one field

    Actually, if you know there is only going to be one, you could do Dim s = (From p in points Order by p.pn Asc).First and if you particularly need it to be as an IEnumerable... Dim s = New WhateverTheClassIs(){(From p in points Order by p.pn Asc).First} messy again, but all ideas that might...
  15. W

    Question Connect class for SQL compact db

    I think you just use the usual class with a different connection string - see if SQL Server Compact Edition Connection String Samples - ConnectionStrings.com helps
  16. W

    http.PostXml not working

    It is usually something fairly simple - no need to feel stupid about it!
  17. W

    Socket in Smart Device Application...

    You probably want to use the TcpClient class
  18. W

    Question Get record with MIN value for one field

    It is a bit messy, but .... Dim s = From p In points Where p.pn = (From p In points Select p.pn).Min()
  19. W

    http.PostXml not working

    What component are you using?
  20. W

    Best place for global data?

    You can put them into a page variable or make a function in a class in App_Code that will read the data and return the appropriate result
Back
Top