40 lines
		
	
	
		
			824 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			824 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.ComponentModel;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Diagnostics;
 | 
						|
using System.Text;
 | 
						|
using System.Windows.Forms;
 | 
						|
using System.Runtime.InteropServices;
 | 
						|
 | 
						|
namespace DataLoader
 | 
						|
{
 | 
						|
	public partial class RichTextBox41 : RichTextBox
 | 
						|
	{
 | 
						|
		[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
 | 
						|
		static extern IntPtr LoadLibrary(string lpFileName);
 | 
						|
		protected override CreateParams CreateParams
 | 
						|
		{
 | 
						|
			get
 | 
						|
			{
 | 
						|
				CreateParams prams = base.CreateParams;
 | 
						|
				if (LoadLibrary("msftedit.dll") != IntPtr.Zero)
 | 
						|
				{
 | 
						|
					//prams.ExStyle |= 0x020; // transparent
 | 
						|
					prams.ClassName = "RICHEDIT50W";
 | 
						|
				}
 | 
						|
				return prams;
 | 
						|
			}
 | 
						|
		}
 | 
						|
		public RichTextBox41()
 | 
						|
		{
 | 
						|
			InitializeComponent();
 | 
						|
		}
 | 
						|
		public RichTextBox41(IContainer container)
 | 
						|
		{
 | 
						|
			container.Add(this);
 | 
						|
 | 
						|
			InitializeComponent();
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |