Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
QuestionHow to get absolute value of the pixel cordinates using mouse position Pin
Anonymous23-Oct-04 6:48
Anonymous23-Oct-04 6:48 
AnswerRe: How to get absolute value of the pixel cordinates using mouse position Pin
Alex Korchemniy23-Oct-04 12:33
Alex Korchemniy23-Oct-04 12:33 
GeneralRefresh DataGrid question Pin
markdbd23-Oct-04 6:21
markdbd23-Oct-04 6:21 
GeneralRe: Refresh DataGrid question Pin
Alex Korchemniy23-Oct-04 12:40
Alex Korchemniy23-Oct-04 12:40 
GeneralRe: Refresh DataGrid question Pin
markdbd24-Oct-04 2:13
markdbd24-Oct-04 2:13 
GeneralRe: Refresh DataGrid question Pin
Alex Korchemniy24-Oct-04 9:08
Alex Korchemniy24-Oct-04 9:08 
GeneralCalling an event Pin
Anonymous23-Oct-04 5:46
Anonymous23-Oct-04 5:46 
GeneralRe: Calling an event Pin
Alex Korchemniy23-Oct-04 13:21
Alex Korchemniy23-Oct-04 13:21 
This is not exactly good programming but you can try this code bit:

public class Tasks
{
	public static void ForceControlValidation(Control c)
	{
		Type t = typeof(Control);

		// validate:
		MethodInfo m = t.GetMethod("NotifyValidating", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.NonPublic);
		object obj = m.Invoke(c, new object[0]);

		// finish validating
		if (obj is bool && (bool)obj == false)
		{
			MethodInfo m2 = t.GetMethod("NotifyValidated", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.NonPublic);
			m2.Invoke(c, new object[0]);
		}
	}
}


This posting is provided "AS IS" with no warranties, and confers no rights.

Alex Korchemniy
GeneralThread.Abort hangs the calling thread in VS .NET 2005 Pin
Ami Bar23-Oct-04 5:10
Ami Bar23-Oct-04 5:10 
GeneralRe: Thread.Abort hangs the calling thread in VS .NET 2005 Pin
Dennis C. Dietrich23-Oct-04 9:36
Dennis C. Dietrich23-Oct-04 9:36 
GeneralmySQl Problem in C#. Suspect it's my mySQL config... Pin
Admiral Ackbar23-Oct-04 3:59
Admiral Ackbar23-Oct-04 3:59 
Questionis there a way?? Pin
tom_dx23-Oct-04 3:46
tom_dx23-Oct-04 3:46 
AnswerRe: is there a way?? Pin
Colin Angus Mackay23-Oct-04 4:14
Colin Angus Mackay23-Oct-04 4:14 
GeneralRe: is there a way?? Pin
tom_dx23-Oct-04 4:39
tom_dx23-Oct-04 4:39 
GeneralRe: is there a way?? Pin
Colin Angus Mackay23-Oct-04 4:41
Colin Angus Mackay23-Oct-04 4:41 
AnswerRe: is there a way?? Pin
Uwe Keim23-Oct-04 4:52
sitebuilderUwe Keim23-Oct-04 4:52 
GeneralRe: is there a way?? Pin
tom_dx23-Oct-04 14:33
tom_dx23-Oct-04 14:33 
Generalpassing a variable value to another form Pin
steve_rm22-Oct-04 20:52
steve_rm22-Oct-04 20:52 
GeneralRe: passing a variable value to another form Pin
Heath Stewart22-Oct-04 21:15
protectorHeath Stewart22-Oct-04 21:15 
GeneralDraw Controls Pin
WDI22-Oct-04 20:32
WDI22-Oct-04 20:32 
GeneralRe: Draw Controls Pin
Heath Stewart22-Oct-04 21:21
protectorHeath Stewart22-Oct-04 21:21 
GeneralCentrally managed memory allocation/deallocation Pin
devvvy22-Oct-04 17:51
devvvy22-Oct-04 17:51 
GeneralRe: Centrally managed memory allocation/deallocation Pin
leppie22-Oct-04 20:34
leppie22-Oct-04 20:34 
GeneralRe: Centrally managed memory allocation/deallocation Pin
devvvy22-Oct-04 20:45
devvvy22-Oct-04 20:45 
GeneralRe: Centrally managed memory allocation/deallocation Pin
leppie23-Oct-04 1:45
leppie23-Oct-04 1:45 

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.