Search results

  1. kbjradmin

    C# - Run a command on shutdown

    the service install and runs fine. it stores information to the log file fine. i still can't get the SessionEnding part to work.
  2. kbjradmin

    C# - Run a command on shutdown

    i still can't get it to work. this is what i've got. what am i doing wrong? using Microsoft.Win32; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.Data; using System.Diagnostics; using...
  3. kbjradmin

    C# - Run a command on shutdown

    i tried changing the HiddenForm class to set/remove event handlers with the constructor and destructor, but it still doesn't work. also, i changed it to format the DateTime as it writes to the log file instead of changing to a string, and then back to a DateTime. here is my code: using...
  4. kbjradmin

    Small errors with feedback section

    or you could do that, forgot about that one :]
  5. kbjradmin

    Small errors with feedback section

    you should probably look into htmlspecialchars.it turns certain characters into the html entities.
  6. kbjradmin

    email form

    you will have to use some sort of server side scripting to accomplish this; i prefer PHP. first, you have to build the actual HTML form. it should look something like this: <form id="contact" method="post" action="send.php"> <label>Name<br /> <input type="text" name="name" />...
  7. kbjradmin

    C# - Run a command on shutdown

    ok, i've gotten the string formatting with the dates and times to work and i figured out why the service was having trouble stopping ( it was because i needed to remove log = File.AppendText(...); ). but i can't quite figure out the syncronization thing. i'm going to keep working on it to see if...
  8. kbjradmin

    C# - Run a command on shutdown

    thanks again, misson. you always give great answers. :] edit: ok, i know this must be getting old, but i have some more problems now... first problem: my log file looked kind of wierd because the columns weren't even, so i wrote a method to add zeros where the values were only one digit. but...
  9. kbjradmin

    I know.. Python Help again, but its not working..

    works just fine for me... see, here's the proof: http://kbjrweb.com/cgi-bin/test.py
  10. kbjradmin

    C# - Run a command on shutdown

    ok, i've gone from one problem to three... first, there is the problem i first posted about (see previous post for details). second, i have a part of my program that is using the current username. when i handcode the username in, it works fine; but when i use Environment.UserName, it doesn't...
  11. kbjradmin

    C# - Run a command on shutdown

    thank you, misson, for a very thorough answer as usual. Edit: ok, i tried doing what you said, but i still can't get it to work. what am i doing wrong? here is what i have now: using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using...
  12. kbjradmin

    C# - Run a command on shutdown

    misson, i'm still somewhat new to C#. i have a basic understanding of event handling, but don't know how to handle system notifications. i tried to see if i could figure out how to handle the SessionEnding event, but couldn't get it to work. this is what i have: using System; using...
  13. kbjradmin

    C# - Run a command on shutdown

    i guess that idea would work, but what kind of resources would that require? would the computer be able to do that and run other programs without slowing or lagging? i guess i'll start working on that and see how it works. thanks.
  14. kbjradmin

    C# - Run a command on shutdown

    I am working on writing a program that will start automatically when the system boots, times how long the computer is running, and store that information in a file when the computer is shutdown. I know how to do all of this except the last part. Is there some way to make my program do something...
  15. kbjradmin

    Form Validation Using PHP.. Help

    use spry by adobe; its not php, its javascript; but i think it will do what you want.
  16. kbjradmin

    JavaScript (or maybe php) help

    i'm more familiar with php, so that's what i'll use. first, you need to get the url of the current page. this can be done using the $_SERVER variable. then, simply use that url to build the url of the google translate page. $url =...
  17. kbjradmin

    JavaScript - Loading contents from one div to another

    thank you everyone for the help and suggestions.
  18. kbjradmin

    JavaScript - Loading contents from one div to another

    the entire point is that i'm trying to accomplish the same concept as frames without having to actually use frames.
  19. kbjradmin

    JavaScript - Loading contents from one div to another

    the function is called with: function pageLoad() { changeContent("home"); } window.onload = pageLoad(); right now the page is on my computer, but i'll upload it and post back when it's up. edit: ok, it's up: http://www.kbjrweb.com/pseudoFrame/ just ignore the links, i've haven't gotten...
  20. kbjradmin

    JavaScript - Loading contents from one div to another

    i'm trying to make a page that uses javascript to change the content in the main area of the page. i wrote this function: function changeContent( value ) { var content = document.getElementById("content"); var source = document.getElementById(value); content.innerHTML = (...
Top