Click here to Skip to main content
15,898,955 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Covean5-Jan-10 3:51
Covean5-Jan-10 3:51 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Wheels0125-Jan-10 4:09
Wheels0125-Jan-10 4:09 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Covean5-Jan-10 4:16
Covean5-Jan-10 4:16 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Wheels0125-Jan-10 4:58
Wheels0125-Jan-10 4:58 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Saksida Bojan5-Jan-10 6:09
Saksida Bojan5-Jan-10 6:09 
QuestionOutlookAddin Pin
Md. Marufuzzaman5-Jan-10 1:31
professionalMd. Marufuzzaman5-Jan-10 1:31 
QuestionHow validate c# DataGridView Cell to accept only Alphabet characters upper, lower and Numeric Pin
Member 11161155-Jan-10 0:33
Member 11161155-Jan-10 0:33 
QuestionFaster Pin
sanforjackass5-Jan-10 0:28
sanforjackass5-Jan-10 0:28 
i have program that search for white point in screen, the code is:

namespace CameraLab
{
public class CamManeger
{

Point pp;

public Point PP
{
get
{
return pp;
}

set
{
pp = value;
}
}

[DllImport("user32.dll")]
public static extern void mouse_event(MouseEventType dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);

[DllImport("user32")]
public static extern int SetCursorPos(int x, int y);

public enum MouseEventType : int
{
LeftDown = 0x02,
LeftUp = 0x04,
RightDown = 0x08,
RightUp = 0x10
}

public void test(Bitmap bm, int X, int Y, int x, int y ,Point pp,bool L)
{
bool z = false;

for (int i = X; i < x; i++)
{
for (int j = Y; j < y; j++)
{
if (bm.GetPixel(i, j).R == 255 && bm.GetPixel(i, j).G == 255 && bm.GetPixel(i, j).B == 255 && bm.GetPixel(i, j).R == 255)
{
Point p = new Point(Screen.PrimaryScreen.WorkingArea.Width - i, Screen.PrimaryScreen.WorkingArea.Height - j);
Cursor.Position = p;
this.PP = p;

z = true;
break;
}
}
if (z == true)
{
break;
}
}
}
}
}

can i make this code more faster.
AnswerRe: Faster [modified] Pin
Saksida Bojan5-Jan-10 2:01
Saksida Bojan5-Jan-10 2:01 
AnswerRe: Faster Pin
Rob Philpott5-Jan-10 2:12
Rob Philpott5-Jan-10 2:12 
GeneralRe: Faster Pin
harold aptroot5-Jan-10 3:32
harold aptroot5-Jan-10 3:32 
QuestionProper way to determine the colors of controls? Pin
arnold_w5-Jan-10 0:20
arnold_w5-Jan-10 0:20 
AnswerRe: Proper way to determine the colors of controls? Pin
petercrab5-Jan-10 0:32
petercrab5-Jan-10 0:32 
GeneralRe: Proper way to determine the colors of controls? Pin
arnold_w5-Jan-10 0:36
arnold_w5-Jan-10 0:36 
GeneralRe: Proper way to determine the colors of controls? Pin
Saksida Bojan5-Jan-10 1:54
Saksida Bojan5-Jan-10 1:54 
GeneralRe: Proper way to determine the colors of controls? Pin
arnold_w5-Jan-10 2:56
arnold_w5-Jan-10 2:56 
GeneralRe: Proper way to determine the colors of controls? [modified] Pin
Saksida Bojan5-Jan-10 4:51
Saksida Bojan5-Jan-10 4:51 
AnswerRe: Proper way to determine the colors of controls? Pin
Saksida Bojan5-Jan-10 1:56
Saksida Bojan5-Jan-10 1:56 
GeneralRe: Proper way to determine the colors of controls? Pin
arnold_w5-Jan-10 2:04
arnold_w5-Jan-10 2:04 
GeneralRe: Proper way to determine the colors of controls? Pin
Saksida Bojan5-Jan-10 4:41
Saksida Bojan5-Jan-10 4:41 
GeneralRe: Proper way to determine the colors of controls? Pin
arnold_w5-Jan-10 21:30
arnold_w5-Jan-10 21:30 
QuestionAdd-in is not executing. Pin
SRKSHOME4-Jan-10 23:24
SRKSHOME4-Jan-10 23:24 
Questionc# windows application Pin
naghoumeh144-Jan-10 22:52
naghoumeh144-Jan-10 22:52 
AnswerRe: c# windows application Pin
OriginalGriff4-Jan-10 23:08
mveOriginalGriff4-Jan-10 23:08 
GeneralRe: c# windows application Pin
naghoumeh144-Jan-10 23:21
naghoumeh144-Jan-10 23:21 

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.