Search results

  1. S

    secure UDP?

    What I ended up using in case anyone is curious. Replace CODEHERE!! with whatever you want....I didn't bother encrypting and decrypting because I only enable the receiving once I verify I'm on a "allowed" subnet and also that my domain is available. So my only weakness is if someone plugged...
  2. S

    Reading serial port in background and responding when needed

    Ok...rewrote it with the SerialPort component and wanted to post it here so people can review to tell me if this makes sense and also to share. It seems to work how I want....just not sure if it's the right way of going about it: (with a SerialPort added to my MainForm called...
  3. S

    Reading serial port in background and responding when needed

    Great...thanks for your help. I'll add the component to my form, open it for just the users that should have access to it, and add a "If MainRibbonForm.SerialPort.IsOpen then MainRibbonForm.SerialPort.Close" to my shutdown and unhandled exception routines. I'll most likely do something in the...
  4. S

    Reading serial port in background and responding when needed

    The serial port will only be accessed form the main form so creating it there isn't really a big deal. I guess here's a question....if I use the component for simplicity and just "open" the port for the selected users then it shouldn't affect the other users nor mess with there comm port correct?
  5. S

    Reading serial port in background and responding when needed

    I have a app that needs to listen to a serial port and react when something happens. I have NOT yet figured out the hardware side of the serial port but it will be as simple as possible as all it needs to do is detect either a button pressed twice within one second or a constantly held button...
  6. S

    secure UDP?

    I supposed on top of making sure I only listen when on my subnet I could also put some code as the first say 10 characters and only do something if that code equals my ten characters. The only issue then is if someone is sitting packet sniffing they would be able to read the ten characters...
  7. S

    secure UDP?

    Re: http://www.vbdotnetforums.com/net-sockets/22844-how-listen-tcp-port-broadcast.html. Now....how would you make this more secure? I have a small app we use for computer maintenance, inventory, user backups, etc. I wanted to add the ability to send some commands through the network and...
  8. S

    Problem reusing Processes and Disposed not firing

    Ok, that makes sense....I'm declaring each as a new process at application startup and then they gets disposed. So they were disposed when it runs the second time the WithEvents never fires. I tried a bunch of stuff but got it working with this: Private Sub TaskOne() TaskOneProcess= New...
  9. S

    Problem reusing Processes and Disposed not firing

    Got a little issue with a small program I'm writing. I'm attempting to run different tasks in there own processes, waiting until each is done while keeping the UI responsive. So far it works exactly how I want it until I try to reuse some of those processes....here is a sample of the code...
  10. S

    Converting a "standard" SQL statment application to parameters

    I've tried using VB to do the code and I find it's easier to do it myself, especially now that I'm converting it all to parameters. It just seemed too cumbersome to change once it was added and if I pulls lots of information at once it seemed slower then hand written code. It's only taking a...
  11. S

    Converting a "standard" SQL statment application to parameters

    I added the myCommand.Parameters.Clear() before adding the new parameters to both functions. And yes I think I'm ok with not defining the types as I will throw a error if something doesn't match and it's still a vast improvement on what I have. That and I cant think of a easy way to do it...
  12. S

    Converting a "standard" SQL statment application to parameters

    Ok...I'm still not fully understanding the examples so I hacked at it and came up with my own. It uses the parameters but not sure if it's as clean as it could be. Does work though: Imports System.Data.SqlClient Module DatabaseAccess Friend Function ExecuteSQLCommand(ByVal strSQL As...
  13. S

    Converting a "standard" SQL statment application to parameters

    ok, I'll try some of these out today and see how it goes. Probably build a test app just for this and once I got it down I'll start converting the big program over. Thanks for the suggestions and examples. -Allan
  14. S

    Converting a "standard" SQL statment application to parameters

    Thanks for the examples. I'm still a bit confused and it looks like a lot more code then what I have but I'll try to replace a couple of mine and see how it goes. -Allan
  15. S

    Converting a "standard" SQL statment application to parameters

    I read through http://www.vbdotnetforums.com/database-general-discussion/18562-ins-outs-parameterized-queries.html and http://www.vbdotnetforums.com/database-general-discussion/30922-further-discussions-about-parameterized-queries-pq.html already and maybe I'm dense but I can't figure it out...
  16. S

    TAPI issues with event notifications

    I am but not quite yet. I make my call, I get the call in progress. The called party answers but I get nothing to notify me that they answered which I thought should be CS_CONNECTED (CALL_STATE Enumeration (Windows)) but it never fires. The remote party then hangs up as they have dead air and...
  17. S

    TAPI issues with event notifications

    I have a small app that I want to dial out a number, play a wav file, then listen for a reply (either speech recognition or just a sequence of keys bring pressed). So far using TAPI I can place the call but it seems the event for call connected is not firing and I cant figure out why. Is...
  18. S

    ClickOnce App Won't Update if Passed Command Line Arguments

    I posted this on the Microsoft forums also and no reply there either. I'll have to rewrite my app so it's default behavior is to be minimized and you have to add a argument to make it normal size. This isn't the correct answer but all I can think of doing to make this update when started at...
  19. S

    ClickOnce App Won't Update if Passed Command Line Arguments

    I have a ClickOnce application deployed to many workstations in my office. On it's first run it adds a registry key to the HKCU run group that adds itself with a "-minimize" argument. On each login the program starts and seeing the command line argument minimizes itself . However when a...
  20. S

    Save settings before form shuts down?

    Nevermind, use the registry...probably easier. :)
Top Bottom