Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Streams and Cryptography (Padding is invalid and cannot be removed) Pin
Skippums5-Jan-10 9:40
Skippums5-Jan-10 9:40 
GeneralRe: Streams and Cryptography (Padding is invalid and cannot be removed) Pin
Paulo Zemek5-Jan-10 10:09
Paulo Zemek5-Jan-10 10:09 
AnswerRe: Streams and Cryptography (Padding is invalid and cannot be removed) Pin
Skippums5-Jan-10 10:30
Skippums5-Jan-10 10:30 
QuestionNeed help! How to draw waveform of the sound when playing video! Pin
die_for_rock_vn5-Jan-10 7:23
die_for_rock_vn5-Jan-10 7:23 
AnswerRe: Need help! How to draw waveform of the sound when playing video! Pin
Roger Wright5-Jan-10 20:02
professionalRoger Wright5-Jan-10 20:02 
Questionenumerate used com Pin
abalbo5-Jan-10 3:21
abalbo5-Jan-10 3:21 
AnswerRe: enumerate used com Pin
Keith Barrow5-Jan-10 7:15
professionalKeith Barrow5-Jan-10 7:15 
GeneralRe: enumerate used com Pin
abalbo5-Jan-10 16:11
abalbo5-Jan-10 16:11 
QuestionDetecting music keys from keyboard in winform app Pin
Wheels0125-Jan-10 2:22
Wheels0125-Jan-10 2:22 
AnswerRe: Detecting music keys from keyboard in winform app Pin
Covean5-Jan-10 3:11
Covean5-Jan-10 3:11 
GeneralRe: Detecting music keys from keyboard in winform app Pin
Wheels0125-Jan-10 3:18
Wheels0125-Jan-10 3:18 
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 

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.