|
Is there any mechanism to take the screenshot of the desktop along with the mouse pointer?
Here what i need is an image of the desktop in which it contains the mouse pointer.
Thanks in Advance
Ramu Medida.
|
|
|
|
|
|
Thank you very much.
Thanks and regards
Ramu
|
|
|
|
|
Where can I find the GLUT and GLAUX Libraries in c# ?
Noha
|
|
|
|
|
Noharyiasa wrote: Where can I find the GLUT and GLAUX Libraries
You mean other than on the internet?
|
|
|
|
|
Hi,
I have problem in retrieving the value of a column of selected row in DataGridView control using c#.net 2005
VijayaRam
|
|
|
|
|
easy one
<br />
public String returnGridViewCellValue(GridViewRow row, String fieldName)<br />
{<br />
String result = String.Empty;<br />
<br />
try<br />
{<br />
result = DataBinder.Eval(row.DataItem, fieldName).ToString();<br />
}<br />
catch<br />
{<br />
result = String.Empty;
}<br />
<br />
return result;<br />
}<br />
|
|
|
|
|
Here is an example(getting the value of a cell of the first row selected ):
<br />
DatagridView oGrid;<br />
<br />
if( oGrid.SelectedRows.Count>0 )<br />
{<br />
object oValue = oGrid.SelectedRows[0].Cells[0].Value;<br />
}<br />
<br />
<br />
if( oGrid.SelectedRows.Count>0 )<br />
{<br />
object oValue = oGrid.SelectedRows[0].Cells["colName"].Value;<br />
}<br />
<br />
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Does anyone know a good tutorial on how to program a html form filler in C#?
I searched the web but found nothing.
Please help. thx
|
|
|
|
|
Do you try to programm a spambot which
automatically fills the sign up forms of webpages?
|
|
|
|
|
pdluke wrote: sign up forms of webpages
But most of the signup forms now have a little-to-big CAPTCHA to 'contain' the efforts of such spambots right?
|
|
|
|
|
Thats true,
but there are a lot of tools that can decode CAPTCHA,
more or less well.
|
|
|
|
|
No im not trying to create a spam bot. I want to research the connection between IE and a program in C#. Im going to university next year and i want to make a good portfolio.
|
|
|
|
|
Bone2003 wrote: the connection between IE and a program in C#
What?
|
|
|
|
|
I want to use my program to fill in a form on a webpage. So its a connection between my program and Internet explorer for example. And again its not for a spam bot.
|
|
|
|
|
pdluke wrote: but there are a lot of tools that can decode CAPTCHA
I challenge you to find one that can beet >75% of CAPTCHA's
|
|
|
|
|
O righttt....
Can somebody help me?
|
|
|
|
|
I am working on a program that generates a C# class (with constructors and properties) by giving its members and their types. My problem is how can I find out what using directive to write at the beginning of the file so that the class file will compile even if , for example, the user gives as an input an Arraylist member.
|
|
|
|
|
The simple answer is: you can not do that.
If I ask for a Timer, how could you possibly know whether I want
- a Windows.Forms.Timer
- a Threading.Timer
- a Timers.Timer
all of these are standard classes in .NET
Apart from that, you could either search all the system dll's using reflection
(that will take way too much time), or include a little Dictionary that you
populate by programmatically adding those entries that you consider important,
and interact with the user about everything else.
|
|
|
|
|
Thank you for your answer. I guess the dictionary solution is the only one I have to address this issue. In case a user wants to add a type of class that is not contained in my collection I will let him/her to add the appropiate namespace to the dictionary .Is there a faster way than reflection to find out if the namespace is correct?
|
|
|
|
|
Is there a faster way than reflection to find out if the namespace is correct?
Not as far as I know. And it would be expensive: you would have to create
a separate AppDomain I guess, then try to list all DLL candidates, load them
(either all at once, exhausting memory, or one at the time; removing it is
only possible by unloading the AppDomain).
Warning: even the Dictionary approach is just an approximation; if there
were only one Timer (say Timers.Timer) and you added it to the dictionary,
now the next .NET release adds a second Timer (say Threading.Timer), your dictionary
would not know it, and enforce one kind of Timer, whereas the user might want
another one.
So my guess is:
1) you should not even try to do the massive reflection at run-time (you might
do it once to generate a dictionary)
2) I would generate a very small dictionary manually; it suffices to recognize
a couple of the most popular classes for each DLL (e.g. File, FileStream,
FileInfo, Directory is all I would recognize to include System.IO), there is
no need to have an exhaustive list
3) whatever you do, it will only be an attempt, good enough to provide
an initial source file, not good enough for generating a ready-made and
error-free source file.
BTW: Actually, when I said Dictionary, that is not strictly correct, since
classnames are not unique (Timer example again).
|
|
|
|
|
That's what I was affraid off....
|
|
|
|
|
I have an idea. I don't know if it is a good one but here it goes...
What if I try to instantiate an object of that type inside a using directive (using the namespace provided), catch the exception if it appears and notify the user...or by using System.Type.GetType() in some way...
|
|
|
|
|
There are only two ways to instantiate a class:
- the normal way, with the new keyword; it implies you have compiled correct code
hence you already have the necessary using statement (and the reference in your
project);
- the reflective way, which means you load some assembly, locate the class,
and invoke its constructor; hence you must know which assembly to load; if you do,
you also know which using is required !
So the only thing that you can do is collect the source lines, add using statements
as much as you see fit, then try to compile and present (a summary of) the error
messages to the user.
|
|
|
|
|
Ehhh..I was worth the shot
|
|
|
|