Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 7  →  ?path2? @ 8
/trunk/Winify/Utilities/Components/ReadOnlyRichTextBox.Designer.cs
@@ -0,0 +1,37 @@

namespace Winify.Utilities.Components
{
partial class ReadOnlyRichTextBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
 
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
 
#region Component Designer generated code
 
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
 
#endregion
}
}
/trunk/Winify/Utilities/Components/ReadOnlyRichTextBox.cs
@@ -0,0 +1,35 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
 
namespace Winify.Utilities.Components
{
public partial class ReadOnlyRichTextBox : RichTextBox
{
#region Constructors, Destructors and Finalizers
 
public ReadOnlyRichTextBox()
{
ReadOnly = true;
}
 
#endregion
 
#region Private Overrides
 
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
HideCaret(Handle);
}
 
#endregion
 
#region Private Methods
 
[DllImport("user32.dll")]
private static extern bool HideCaret(IntPtr hWnd);
 
#endregion
}
}