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
D

Darryl Borden

@Darryl Borden
About
Posts
66
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to serialize an image to a file
    D Darryl Borden

    I need to get an image from the system clipboard (Clipboard.GetImage()) and serialize it to a file. The end goal would be to, at a later time, deserialize this image and put it back in the clipboard. I can't figure out how to successfully serialize the image. I tried creating a serializeable class that contains an image object, but I get the exception "The type System.Drawing.Bitmap was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically." I tried using XmlInclude but am either doing it wrong or it does not resolve the problem. Has someone done this before?

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# graphics com help tutorial question

  • How to send a WNDPROC message to a listview control to simulate a click on a scrollbar arrow
    D Darryl Borden

    I am trying to figure out how to programmatically send a WINDPROC message to a control that will simulate a mouse click on an associated scrollbar arrow. Can anyone give me some advice?

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com tutorial question

  • how to mouse gesture without window?
    D Darryl Borden

    You guys are awesome - this helped me out perfectly. Thanks for taking the time to post.

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# tutorial question

  • Detecting the Mouse Wheel on a ListView Control
    D Darryl Borden

    Has anyone figured out how to detect the movement of the mouse wheel when the mouse is over a listview control?

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com tutorial question

  • Threading.Timer Problem
    D Darryl Borden

    I agree. Use the System.Windows.Forms.Timer. I've used a couple of options to keep the timer from firing while the previous timer has not completed. a) Turn off the timer at the beginning of the timer callback then turn it back on as you complete your callback processing (this will affect your interval time, though, so keep that in mind - if your timer is 60 seconds and it takes 2 seconds to process then your effective interval would be 62 seconds in this case) b) Use a "busy" variable. Set it to true at the start of the callback and false at the end. That way if a subsequent instance of the timer is fired before the previous one is completed then you can simply exit the callback without processing and wait until it fires again.

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# help question csharp

  • How to keep my app from being "killed"
    D Darryl Borden

    I have written an application that limits how much time my teenage children are on the internet each day. It prompts them for a password. When the password box is up, they can go to the task manager (applications tab) and just kill my process. How can I protect may app from being killed that way?

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# question com tutorial

  • How to find the username that a process is running under
    D Darryl Borden

    Thank you - this solution worked great for me. I sincerely appreciate your willingness to answer my question.

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com help tutorial question workspace

  • How to find the username that a process is running under
    D Darryl Borden

    I found a previous reference to that, but the StartInfo object that comes up in my IDE does not have a "Username" property.

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com help tutorial question workspace

  • How to find the username that a process is running under
    D Darryl Borden

    I need to be able to determine what user name a process is running under. I can get the process object by using... Process[] p = Process.GetProcessByName("theprocess"); But I need to know if the process is running under the same user name as the account that the current user is logged in under. I know I can get the user name with Environment.Username, but I need to get the process' user name like Task Manager does. Can anyone help?

    Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com help tutorial question workspace

  • ComboBox Enter Key Detection Issue
    D Darryl Borden

    I can successfully capture the ENTER key that a user presses in a combo box, but my desktop always plays a "ding" when the ENTER key is pressed - as if the key is not valid in the context of a combo box. Does anyone know how to prevent this annoying ding from being played? Darryl Borden Principal IT Analyst dborden@eprod.com

    C# com help tutorial question

  • parsing a string
    D Darryl Borden

    string s = "a,b,c"; string[] parsed = s.Split(','); Darryl Borden Principal IT Analyst dborden@eprod.com

    C# csharp php data-structures json tutorial

  • Place a form before show it
    D Darryl Borden

    Also, you have to make sure that the StartPosition property is set to Manual for the form. Darryl Borden Principal IT Analyst dborden@eprod.com

    C# question

  • preventing a form from closing
    D Darryl Borden

    I do not think there is a way to close a parent form and keep its child forms open. Darryl Borden Principal IT Analyst dborden@eprod.com

    C# help tutorial question

  • Windows Forms Tab Control
    D Darryl Borden

    You might try this approach... You can get the coordinates of each tab on the DrawItem event. If you could save those locations and sizes of each tab every time the tab control is drawn, then in the mousedown event you can identify which tab was clicked on by referring to your saved information. Good Luck! Darryl Borden Principal IT Analyst dborden@eprod.com

    C# winforms help question

  • Images
    D Darryl Borden

    Let me try that again - something did not come out right in the translation... int x; int y; Bitmap bmp; for (x=0;x

    C# winforms graphics help question

  • Images
    D Darryl Borden

    Bitmap bmp; //obtain this however you like int x; int y; for (x=0;x

    C# winforms graphics help question

  • treeView child restrictions
    D Darryl Borden

    If you want to determine if a specific treenode level, you can use this... int treeNodeLevel=1; TreeNode tn = treenodeToBeTested; while (tn.Parent != null) { tn = tn.Parent; treeNodeLevel++; } You can then say... if (treeNodeLevel == 3) { ...do whatever } Darryl Borden Principal IT Analyst dborden@eprod.com

    C# question

  • Splitter between two panels
    D Darryl Borden

    Are you resizing your panels as you move your splitter? I did not do it that way. I would allow the user to move my splitter (panel) then when they release I then resize the other panels. I'm not sure what you did with "I inherited splitter control from label...". I just dropped a panel on my form, made it very narrow (so it looks like a splitter) and allow the user to click on it and drag it to the desired location and release it. At that point, I just resize the panels affected by the new location of the splitter. Darryl Borden Principal IT Analyst dborden@eprod.com

    C# help tutorial

  • Context menu strips event sources?
    D Darryl Borden

    See if the eventargs parameter has an index property - I ran into the same kind of issue with a tab control (trying to determine which tab page generated the event) and found e.Index held the answer. dpb Darryl Borden Principal IT Analyst dborden@eprod.com

    C# csharp tutorial question

  • Splitter between two panels
    D Darryl Borden

    I have run into this same issue. I resolved it by creating my own "splitter" (a very narrow panel control) and keyed off its mouse events (mousedown, mousemove, mouseup), then moved the affected panels accordingly. Darryl Borden Principal IT Analyst dborden@eprod.com

    C# help tutorial
  • Login

  • Don't have an account? Register

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