Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jupiter9

@Jupiter9
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Question about ContextMenu on ListView? [modified]
    J Jupiter9

    On the mousedown event for the listview place the following code: if (ListView1.GetItemAt(new Point(e.X, e.Y)) != null) ListView1.ContextMenu = yourContextMenu; else ListView1.ContextMenu = null;

    C# question help

  • Conversion of LastModified method
    J Jupiter9

    If the return value is a long, then it's probably the date value in ticks. You can convert it to a DateTime object via: DateTime dt = new DateTime(LastModified(directory));

    C# csharp help question

  • Detect system shutdown
    J Jupiter9

    One trick is to make the services dependent on the monitoring service. Then on the service OnStart, set the shutdown priority for the monitoring service to a high priority to guarantee everything happens in the correct sequence. This can be done via: NOTE: the SHUTDOWN_LEVEL is set at the minimum user-level available priority to set the service at the top most spot of the list. using System.Runtime.InteropServices; [DllImport("Kernel32.DLL")] private static extern bool SetProcessShutdownParameters(Int32 dwLevel, Int32 dwFlags); private const Int32 SHUTDOWN_NORETRY = 0x00000001; private const Int32 SHUTDOWN_LEVEL = 0x281; protected override void OnStart(string[] args) { if (!SetProcessShutdownParameters(SHUTDOWN_LEVEL, SHUTDOWN_NORETRY)) System.Diagnostics.Debug("Failed to set shutdown priority."); } However, if the service monitor is simply acting as a recovery app, then using the service recovery options may be more optimal to allow windows service manager to automatically restart the service for you.

    C# windows-admin csharp dotnet sysadmin help

  • How to covnert ByteArray into a JPEG image?
    J Jupiter9

    byte[] buffer; System.IO.MemoryStream ms = new System.IO.MemoryStream(buffer); System.Drawing.Bitmap bm = new Bitmap(ms); bm.Save("FilePath", System.Drawing.Imaging.ImageFormat.Jpeg);

    XML / XSL tutorial question

  • Great Plains
    J Jupiter9

    It depends on how the apps need to talk. You can communicate directly with the database which will pass the data back and forth. Otherwise, script whatever is needed. The VBScript will allow you to do anything with windows.

    IT & Infrastructure com business help

  • l Robot?
    J Jupiter9

    Mouser electronics or digikey will have the servos. As for microcontroller, depends on how much you want to spend. The PIC's and Motorola HCxx will have the cheapest test/eval boards for development and open source or inexpensive compilers. If your looking for more brute force, you can always get student discounts. I.e. ARM risc processor compilers are around $500 for student discount. -good luck

    Hardware & Devices hardware tools question c++ com

  • GoDaddy.com ASP .Net hosting?
    J Jupiter9

    I second that. Been using them for several years now, and have never had a problem. Plus, they have all necessary services for hosting sites.

    The Lounge csharp com hosting tools question

  • Backspace key on RichtextEditor
    J Jupiter9

    You can trap in the wndproc of the control. But you need to get the wndproc of the control, not the parent form. Try the following code to grab the event: class RichTextBoxEx : System.Windows.Forms.RichTextBox { private const int WM_VSCROLL = 0x0115; protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg == WM_VSCROLL) System.Diagnostics.Debug.WriteLine("vertical scroll"); base.WndProc(ref m); } }

    C# help

  • How to show file size in kb in dataGrid
    J Jupiter9

    There are 1024 bytes in a KB. int kb = (int)(size/1024);

    ASP.NET tutorial question

  • Division and decimals in C#/ASP.net
    J Jupiter9

    your doing integer arithmetic. Cast to float to retain the decimal and then cast back to int (size type): image.heig;)ht = (int)(100 * (float)2 / (float)3);

    ASP.NET csharp asp-net help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups