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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

rich_wenger

@rich_wenger
About
Posts
51
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Starting Robocopy From A Service
    R rich_wenger

    I dropped the Robocopy.exe in the system32 folder just to have it in the path and eliminate those issues and on your advice I included the full path to the executable but it still doesn't appear to be executing?

    C. Richard Wenger System Administrator

    C# help

  • Starting Robocopy From A Service
    R rich_wenger

    Hi, and thanks for your interest. I am trying to run MS Robocopy from a service with the following code:

    Process robo = new Process();

    robo.StartInfo.FileName = "robocopy.exe";
    robo.StartInfo.Arguments = "g:\\data *.pdf d:\\data\\pdf\\ /S /NP /Log+:c:\\logs\\robo\\robo.log";
    robo.Start();

    The service starts but the Robocopy process fails to start. Any help greatly appreciated.

    C. Richard Wenger System Administrator

    C# help

  • Filtering FileSystemWatcher Events By File Size
    R rich_wenger

    I looking over what you've said and I'm trying to see if there is a way I can leverage this to a useable outcome. As I read it the NotifyFilters.Size reports a CHANGE in file size and I'm not certain how I could use this in my application. The goal is to send email alerts only when files are copied into a directory over a predertimed size limit (if that helps).

    C. Richard Wenger System Administrator

    C# help question

  • Filtering FileSystemWatcher Events By File Size
    R rich_wenger

    Sorry, I've got EnableRaisingEvents = true in the OnStart method for the service. I'm not certain how I would code a NotifyFilter since none of them seem to relate to file size?

    C. Richard Wenger System Administrator

    C# help question

  • Filtering FileSystemWatcher Events By File Size
    R rich_wenger

    I think I understand what you are saying, I am just not certain why I am getting the first email alert?

    C. Richard Wenger System Administrator

    C# help question

  • Filtering FileSystemWatcher Events By File Size
    R rich_wenger

    This is what I have setup: this.fileSystemWatcher1.Path = directoryPath1; this.fileSystemWatcher1.IncludeSubdirectories = true; this.fileSystemWatcher1.Filter = "*.*"; this.fileSystemWatcher1.Created += new FileSystemEventHandler(fileSystemWatcher1_Created);

    C. Richard Wenger System Administrator

    C# help question

  • Filtering FileSystemWatcher Events By File Size
    R rich_wenger

    Hi, I am attempting to create a service to watch particular directories for excessively large files being created. I've created a Created event handler with the following code: void fileSystemWatcher1_Created(object sender, FileSystemEventArgs e) { FileInfo fi = new FileInfo(e.FullPath); if (fi.Length > 524288000)// 500MB = 524288000 { smtpMessage.Body = "A file exceeding 500 MB has been created at " + e.FullPath.ToUpper(); Client.Send(smtpMessage); } } I drop files one at a time into the watched directory and I'll get an email alert for the first file but nothing for subsequent files? Any help greatly appreciated.

    C. Richard Wenger System Administrator

    C# help question

  • Accessing .AVI As Embedded Resource
    R rich_wenger

    I've got a project in VS2003 where I've added a number of images and a video clip as an embedded resource on 'Build Action'. I can access the images easy enough by using the following code: System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(GetType(), "sampleImage.jpg"); this.pictureBox1.Image = bitmap; The problem is accessing the embedded .AVI; both the ActiveX Windows Media Player and the DirectX AudioVideoPlayback require a string pointing to a file? Accessing Video File Thru ActiveX Windows Media Player Control: private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1; this.axWindowsMediaPlayer1.URL = "sampleVideo.avi"; Accessing Video File Thru DirectX 9: using Microsoft.DirectX.AudioVideoPlayback; Video vid = new Video("sampleVideo.avi", false); Any help would be greatly appreciated. "She folds her legs...in doing so I glimpse Xanadu."--Gilby

    C# graphics help com game-dev hardware

  • Custom Controls And Events
    R rich_wenger

    I've go a Custom Control that inherits from the TextBox class and I've added a ListBox; I needed to create a custom event exposed to the parent form that would fire when the ListBox changed visiblity. The code below works but I know it's now quite right. Any help appreciated. Control Code Snippet============================================== using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; public delegate void ListBoxEvent(); namespace TextBoxLookupLib { /// /// Custom Textbox Control /// public class TextBoxLookup : System.Windows.Forms.TextBox { private System.Windows.Forms.ListBox listBox1; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public event ListBoxEvent ListBoxVisibleChanged; public TextBoxLookup() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitComponent call this.listBox1.Visible = false; this.listBox1.Width = this.Width; this.listBox1.TabStop = false; this.DoubleClick +=new EventHandler(TextBoxLookup_DoubleClick); this.listBox1.DoubleClick +=new EventHandler(listBox1_DoubleClick); this.listBox1.VisibleChanged +=new EventHandler(listBox1_VisibleChanged); ListBoxVisibleChanged += new ListBoxEvent(OnListBoxVisibleChanged); } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if( components != null ) components.Dispose(); } base.Dispose( disposing ); } #region Component Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.listBox1 = new System.Windows.Forms.ListBox(); // // listBox1 // this.listBox1.Location = new System.Drawing.Point(17, 17); this.listBox1.Name = "listBox1"; this.listBox1.TabIndex = 0; } #endregion private void OpenListBox() { Control ctlParent = this.Parent; ctlParent.Controls.Add(this.listBox1); this.listBox1.Width = this.Width; this.listBox1.BringToFront(); this.listBox1.Visible = true; } private void CloseListBox() { this.Focu

    C# graphics docker help

  • Filter DataSet
    R rich_wenger

    Hi, After filling a dataset I would like to further filter the results without repopulating the dataset. Any help would be appreciated. "She folds her legs...in doing so I glimpse Xanadu."--Gilby

    C# help

  • Cancel Click In Inherited User Control
    R rich_wenger

    Hi Josh, I think the Code Project site has reformatted your code or else it's identical previous suggestions.

    C# oop help

  • Cancel Click In Inherited User Control
    R rich_wenger

    This following builds but I see no effect in my test form: protected override void OnClick(System.EventArgs e) { base.OnClick(e); } -- modified at 16:01 Monday 14th November, 2005

    C# oop help

  • Cancel Click In Inherited User Control
    R rich_wenger

    using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; namespace RadioButtonRocLib { public class RadioButtonRoc : System.Windows.Forms.RadioButton { private System.ComponentModel.Container components = null; public RadioButtonRoc() { Code continues.........

    C# oop help

  • Cancel Click In Inherited User Control
    R rich_wenger

    Hi, I'm not certain how to use this in a user control? Someone suggested I use this: protected override void onclick(System.EventArgs e) { //base.onclick (e); } But it returned an error saying "no suitable method found to override". I'm trying to interrupt the event in the user control and not in the parent form.

    C# oop help

  • ReadOnly Radio Button?
    R rich_wenger

    Hi, and thanks for your interest. I tried your suggestion but when I tried to build the control I received an error 'RadioButtonRocLib.RadioButtonRoc.onclick(System.EventArgs)': no suitable method found to override".

    C# help tutorial question

  • Cancel Click In Inherited User Control
    R rich_wenger

    Thanks for your reply; I'm trying to work it out in context.

    C# oop help

  • Cancel Click In Inherited User Control
    R rich_wenger

    Hi, I've got a custom user control using inheritance that I'm working on that I would like to cancel the 'Click' event. Any help would be greatly appreciated.

    C# oop help

  • ReadOnly Radio Button?
    R rich_wenger

    I've taken a different approach by building my own custom control that inherits from System.Windows.Forms.RadioButton NameSpace. I'm using GDI+ to alter the presentation of the interface based off a boolean public property I've exposed called 'ReadOnly'. I'm still trying to workout how to cancel 'Click' the click event. Any help would be greatly appreciated.

    C# help tutorial question

  • ReadOnly Radio Button?
    R rich_wenger

    Hi, Thanks for your interest. I have a data application in which some boolean choices as represented by radio button pairs and at certain points in the application I am representing the data to the user in ReadOnly TextBoxes where applicable. I would like to emulate this functionality in a representation of the RadioButton and am looking for a path of least resistance to accomplish this task. Any help would be greatly appreciated.

    C# help tutorial question

  • ReadOnly Radio Button?
    R rich_wenger

    I'm doing that already. Looks like sh*t.

    C# help tutorial 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