Click here to Skip to main content
15,904,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 10:41
Derek Smigelski13-Nov-02 10:41 
Generaltcpclient through proxy Pin
Kannan Kalyanaraman13-Nov-02 2:55
Kannan Kalyanaraman13-Nov-02 2:55 
GeneralOCX memory leak in C# Pin
gharrison12-Nov-02 21:29
gharrison12-Nov-02 21:29 
QuestionC# and Visual C#, Difference? Pin
Aisha Ikram12-Nov-02 21:16
Aisha Ikram12-Nov-02 21:16 
AnswerRe: C# and Visual C#, Difference? Pin
Sijin13-Nov-02 0:30
Sijin13-Nov-02 0:30 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram14-Nov-02 18:08
Aisha Ikram14-Nov-02 18:08 
AnswerRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 4:01
James T. Johnson13-Nov-02 4:01 
GeneralRe: C# and Visual C#, Difference? Pin
Stephane Rodriguez.13-Nov-02 5:41
Stephane Rodriguez.13-Nov-02 5:41 
GeneralRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 6:48
James T. Johnson13-Nov-02 6:48 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:01
sitebuilderDavid Stone13-Nov-02 9:01 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 9:47
leppie13-Nov-02 9:47 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:53
sitebuilderDavid Stone13-Nov-02 9:53 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 10:02
leppie13-Nov-02 10:02 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram17-Nov-02 20:35
Aisha Ikram17-Nov-02 20:35 
GeneralUsers control validating Pin
shab212-Nov-02 18:57
shab212-Nov-02 18:57 
QuestionListView Header Color? Pin
Anonymous12-Nov-02 11:59
Anonymous12-Nov-02 11:59 
QuestionRecieve ÅÄÖ with HttpWebRequest? Pin
Andreas Philipson12-Nov-02 11:37
Andreas Philipson12-Nov-02 11:37 
AnswerRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Daniel Turini12-Nov-02 12:56
Daniel Turini12-Nov-02 12:56 
GeneralRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Andreas Philipson12-Nov-02 20:49
Andreas Philipson12-Nov-02 20:49 
AnswerRe: Recieve ÅÄÖ with HttpWebRequest? Pin
Anonymous13-Nov-02 3:13
Anonymous13-Nov-02 3:13 
GeneralListview checkboxes double-click problem Pin
Ingram Leedy12-Nov-02 7:55
Ingram Leedy12-Nov-02 7:55 
GeneralRe: Listview checkboxes double-click problem Pin
Ingram Leedy12-Nov-02 18:59
Ingram Leedy12-Nov-02 18:59 
I learned from my own question and had to to override the WinProc method to handle the double click message that is sent to the list control.

This prevents the checkbox from being checked from double-clicks, which is more natural in my opinion, just as it is in TreeView.


This might be a good beginner article, since I had no idea what WinProc was until today.

using System;
using System.Windows.Forms;
using System.Diagnostics;
using System.ComponentModel;


namespace MyTestListView
{

	[ToolboxItem(false)]
	public class MyListView : System.Windows.Forms.ListView
	{

		private const int WM_LBUTTONDBLCLK = 0x0203;

		#region Constructors
		public MyListView()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		#endregion

		#region Overrides
		protected override  void WndProc(ref Message message)
		{

			switch (message.Msg)
			{
				case (int)Msg.WM_LBUTTONDBLCLK:
				{
					Debug.WriteLine("Double-Clicked");

				} break;

				default:
				{
					base.WndProc(ref message);
				} break;
			
			}
		#endregion

		}

	}
}


-- Ingram
GeneralQuestion about DocumentNavigator Pin
chq1212-Nov-02 5:04
chq1212-Nov-02 5:04 
GeneralRe: Question about DocumentNavigator Pin
John Fisher12-Nov-02 12:36
John Fisher12-Nov-02 12:36 
GeneralRemoting question Pin
Sijin12-Nov-02 3:41
Sijin12-Nov-02 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.