Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Remoting question Pin
James T. Johnson13-Nov-02 4:03
James T. Johnson13-Nov-02 4:03 
GeneralRe: Remoting question Pin
Sijin13-Nov-02 7:44
Sijin13-Nov-02 7:44 
GeneralRe: Remoting question Pin
James T. Johnson13-Nov-02 8:08
James T. Johnson13-Nov-02 8:08 
GeneralForm.ShowDialog Pin
Le centriste11-Nov-02 15:16
Le centriste11-Nov-02 15:16 
GeneralRe: Form.ShowDialog Pin
Le centriste11-Nov-02 17:46
Le centriste11-Nov-02 17:46 
GeneralRe: Form.ShowDialog Pin
Derek Lakin11-Nov-02 20:03
Derek Lakin11-Nov-02 20:03 
GeneralMinimal App size Pin
Kashif khan11-Nov-02 13:24
Kashif khan11-Nov-02 13:24 
GeneralRe: Minimal App size Pin
Brian Olej11-Nov-02 13:58
Brian Olej11-Nov-02 13:58 
GeneralFuture C# Language Features announced Pin
Eric Gunnerson (msft)11-Nov-02 7:51
Eric Gunnerson (msft)11-Nov-02 7:51 
GeneralRe: Future C# Language Features announced Pin
Nick Parker11-Nov-02 8:01
protectorNick Parker11-Nov-02 8:01 
GeneralRe: Future C# Language Features announced Pin
Kevin McFarlane13-Nov-02 8:59
Kevin McFarlane13-Nov-02 8:59 
GeneralRe: Future C# Language Features announced Pin
leppie11-Nov-02 8:33
leppie11-Nov-02 8:33 
GeneralRe: Future C# Language Features announced Pin
David Stone11-Nov-02 9:21
sitebuilderDavid Stone11-Nov-02 9:21 
GeneralRe: Future C# Language Features announced Pin
Christian Graus11-Nov-02 11:13
protectorChristian Graus11-Nov-02 11:13 

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.