46 lines
		
	
	
		
			928 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			928 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;
 | |
| using System.Drawing;
 | |
| using VEPROMS.CSLA.Library;
 | |
| using System.Text.RegularExpressions;
 | |
| 
 | |
| namespace Volian.Controls.Library
 | |
| {
 | |
| 	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();
 | |
| 		}
 | |
| 	}
 | |
| }
 | 
