Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Testing Classes without a Database? Pin
Eddy Vluggen29-Mar-09 2:22
professionalEddy Vluggen29-Mar-09 2:22 
QuestionConvert mdb to xml Pin
a.hamidy28-Mar-09 19:52
a.hamidy28-Mar-09 19:52 
AnswerRe: Convert mdb to xml Pin
Garth J Lancaster28-Mar-09 20:30
professionalGarth J Lancaster28-Mar-09 20:30 
GeneralRe: Convert mdb to xml Pin
a.hamidy28-Mar-09 20:45
a.hamidy28-Mar-09 20:45 
AnswerRe: Convert mdb to xml Pin
Reza Raad28-Mar-09 21:43
Reza Raad28-Mar-09 21:43 
GeneralRe: Convert mdb to xml Pin
riced29-Mar-09 14:18
riced29-Mar-09 14:18 
GeneralRe: Convert mdb to xml Pin
Ramkithepower29-Mar-09 0:48
Ramkithepower29-Mar-09 0:48 
Questionclicking on flash content within a webBrowser Pin
jeanbern28-Mar-09 16:53
jeanbern28-Mar-09 16:53 
currently I am using the following code and it works when the site I'm trying to click on is a regular site.
But it's not working for the site I want it to, which is a flash game, I don't think the game recognizes that a click is being sent to it because it doesn't respond

int x = 283; // X coordinate of the click
int y = 342; // Y coordinate of the click

IntPtr handle = two.Handle;
StringBuilder className = new StringBuilder(100);

while (className.ToString() != "Internet Explorer_Server") // The class control for the browser
{
    handle = GetWindow(handle, 5); // Get a handle to the child window
    GetClassName(handle, className, className.Capacity);
}

IntPtr lParam = (IntPtr)((y << 16) | x); // The coordinates

IntPtr wParam = IntPtr.Zero; // Additional parameters for the click (e.g. Ctrl)
const uint downCode = 0x201; // Left click down code
const uint upCode = 0x202; // Left click up code
SendMessage(handle, downCode, wParam, lParam); // Mouse button down
SendMessage(handle, upCode, wParam, lParam); // Mouse button up


oops I meant to preview but posted by accident, so here is the rest of what I wanted to say:
I'm using the win32 imports to click but I'm not sure how those work since I'm still only a student and the things I am trying to do are outside of anything I have learned.
Someone told me that the SendMessage I was using is clicking on the webbrowser object and not the flash object within the browser and that that may be my problem, what can I do about this?
Questiondatagrid with a link button Pin
Ramkithepower28-Mar-09 16:20
Ramkithepower28-Mar-09 16:20 
AnswerRe: datagrid with a link button Pin
Eddy Vluggen28-Mar-09 22:05
professionalEddy Vluggen28-Mar-09 22:05 
QuestionNeed Help: Identifying an object within a grey scale '.jpg' image Pin
DavidEccles28-Mar-09 16:17
DavidEccles28-Mar-09 16:17 
AnswerRe: Need Help: Identifying an object within a grey scale '.jpg' image Pin
Swati Khanna28-Mar-09 23:09
Swati Khanna28-Mar-09 23:09 
GeneralRe: Need Help: Identifying an object within a grey scale '.jpg' image Pin
DavidEccles1-Apr-09 12:18
DavidEccles1-Apr-09 12:18 
QuestionWindows form break line inbetween of textbox Help!!! Pin
ciqing28-Mar-09 15:47
ciqing28-Mar-09 15:47 
AnswerRe: Windows form break line inbetween of textbox Help!!! Pin
Henry Minute28-Mar-09 23:25
Henry Minute28-Mar-09 23:25 
GeneralRe: Windows form break line inbetween of textbox Help!!! Pin
ciqing29-Mar-09 1:42
ciqing29-Mar-09 1:42 
GeneralRe: Windows form break line inbetween of textbox Help!!! Pin
Henry Minute29-Mar-09 1:58
Henry Minute29-Mar-09 1:58 
Questionreduce line count in an edit window Pin
rpopple28-Mar-09 15:03
rpopple28-Mar-09 15:03 
AnswerRe: reduce line count in an edit window Pin
Henry Minute28-Mar-09 23:27
Henry Minute28-Mar-09 23:27 
GeneralRe: reduce line count in an edit window Pin
rpopple29-Mar-09 4:40
rpopple29-Mar-09 4:40 
QuestionFastest way to read 3000+ rows from SQL database? Pin
Jacob Dixon28-Mar-09 12:37
Jacob Dixon28-Mar-09 12:37 
AnswerRe: Fastest way to read 3000+ rows from SQL database? Pin
Jacob Dixon28-Mar-09 12:39
Jacob Dixon28-Mar-09 12:39 
AnswerRe: Fastest way to read 3000+ rows from SQL database? Pin
Christian Graus28-Mar-09 13:07
protectorChristian Graus28-Mar-09 13:07 
GeneralRe: Fastest way to read 3000+ rows from SQL database? Pin
Jacob Dixon28-Mar-09 13:12
Jacob Dixon28-Mar-09 13:12 
GeneralRe: Fastest way to read 3000+ rows from SQL database? Pin
Colin Angus Mackay28-Mar-09 13:41
Colin Angus Mackay28-Mar-09 13:41 

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.