Click here to Skip to main content
15,880,543 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to reject the invalid row adding to datatable? Pin
wangier11-Jan-04 18:24
wangier11-Jan-04 18:24 
Questionhow to prevent changing columns' width in datagrid? Pin
wangier8-Jan-04 16:38
wangier8-Jan-04 16:38 
AnswerRe: how to prevent changing columns' width in datagrid? Pin
Heath Stewart8-Jan-04 17:12
protectorHeath Stewart8-Jan-04 17:12 
GeneralRe: how to prevent changing columns' width in datagrid? Pin
wangier8-Jan-04 20:51
wangier8-Jan-04 20:51 
AnswerRe: how to prevent changing columns' width in datagrid? Pin
Guillermo Rivero8-Jan-04 19:04
Guillermo Rivero8-Jan-04 19:04 
GeneralQuestion about GUI techniques... Interesting, I promise. Pin
madjeux8-Jan-04 15:01
madjeux8-Jan-04 15:01 
GeneralRe: Question about GUI techniques... Interesting, I promise. Pin
Christian Graus8-Jan-04 15:29
protectorChristian Graus8-Jan-04 15:29 
GeneralRe: Question about GUI techniques... Interesting, I promise. Pin
madjeux9-Jan-04 14:34
madjeux9-Jan-04 14:34 
Ok, I gotcha. What I'm still fuzzy on is how to actually implement this in a wise way. For example, here's my code (which doesn't completely work yet).
using System;
using System.Windows.Forms;

namespace Test
{
	public class Pipe : Control
	{
		public Pipe(){	
			   
		}

		protected override void OnMouseDown(MouseEventArgs e)
		{
			MessageBox.Show("a mouse was clicked and my object knows it");
			base.OnMouseDown(e);
		}
	}
}

How do I add this to a form so that when a mouse is pressed, it distributes the event to my control? I was using "this.Controls.Add(new Pipe())" in initializeComponent, but it doesn't seem to work. Can someone please explain if what I am doing is retarded? Keep in mind, I am going to be adding to this class, but I just want to understand how I can have my components know when they are being clicked on. Thanks!
Questionhow to create Componet of my favourite Pict in the ToolBox Pin
meetweb8-Jan-04 14:11
meetweb8-Jan-04 14:11 
AnswerRe: how to create Componet of my favourite Pict in the ToolBox Pin
Heath Stewart8-Jan-04 16:50
protectorHeath Stewart8-Jan-04 16:50 
GeneralFIX Gateway Server Pin
Kingvest8-Jan-04 12:53
Kingvest8-Jan-04 12:53 
GeneralCrystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 12:34
obelisk298-Jan-04 12:34 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
Heath Stewart8-Jan-04 12:46
protectorHeath Stewart8-Jan-04 12:46 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 13:01
obelisk298-Jan-04 13:01 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
Heath Stewart8-Jan-04 13:11
protectorHeath Stewart8-Jan-04 13:11 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 13:20
obelisk298-Jan-04 13:20 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 14:10
obelisk298-Jan-04 14:10 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 14:30
obelisk298-Jan-04 14:30 
GeneralDynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr8-Jan-04 11:12
Scott Barr8-Jan-04 11:12 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Heath Stewart8-Jan-04 11:50
protectorHeath Stewart8-Jan-04 11:50 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr9-Jan-04 4:42
Scott Barr9-Jan-04 4:42 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Heath Stewart9-Jan-04 5:15
protectorHeath Stewart9-Jan-04 5:15 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr9-Jan-04 5:30
Scott Barr9-Jan-04 5:30 
GeneralType convertion and Unmanaged code Pin
Shahin778-Jan-04 10:48
Shahin778-Jan-04 10:48 
GeneralRe: Type convertion and Unmanaged code Pin
Heath Stewart8-Jan-04 11:39
protectorHeath Stewart8-Jan-04 11:39 

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.