|
hi
i want write program same as Babylon Dictionary to get text when click middle mouse ?
i want to know that i should use OCR or i can use user32.dll and .net function...
please help me
tnx
Mory0Tiki
|
|
|
|
|
on double click any text get selected automatically(it's windows default behaviour).and you can get that selected text.hope it'll solve your problem
sameer
|
|
|
|
|
txn for your post but i want use whitout click and use that text in my program like Babylon your solution when i want get button ,menu ... don't work because when i get button's text ,button will be clicked ...
Mory
0
Tiki
|
|
|
|
|
Hi,
I would like to assign F10 some code, but I notice that F10 activates the Main Menu. Is there a way to stop F10 from doing this?
if(e.KeyValue == 121)//F10
{
//Do something
}
Thanks,
Ron
|
|
|
|
|
It's generally bad practice to remap the standard function keys and shortcuts. This can end up confusing your users. Imagine if pressing F1 invoked copy instead, and Ctrl+C invoked help - people would soon complain.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
write your code in KeyPress event and after writting your code write e.Handle=true;
sameer
|
|
|
|
|
|
how to create nested structure which has an array of structure inside it.
thanks.
|
|
|
|
|
Something like this should help:
public struct MyClass<br />
{<br />
public int MyInt;<br />
private struct MyStruct2<br />
{<br />
public MyClass[] MyClasses;<br />
}<br />
}
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how to create array of elements of structure for the outside array and how can i set the inner structure array to consist 10 elements for which i got the errors.
pls help,
thanks.
|
|
|
|
|
Hi,
I have no experiance with SNMP but i am asked whether snmp is set to readonly or it permits writing.
May anybody help me?
thanks,
- ferudun
|
|
|
|
|
How to open an existing pdf file with some data pre-populated and then aloow editing it too?
vijeta
|
|
|
|
|
|
|
code you explain more..........
Tamimi - Code
|
|
|
|
|
i placed datagrid control.
i already created a texfile so i have to read textfile and place into datagrid.
|
|
|
|
|
the datagrid control can not be bind to a text file.
please explain more, give more details, maybe you choose the wrong
control to dispaly your data
Tamimi - Code
|
|
|
|
|
I'm guessing you have a textfile that is in some way formatted.
I won't go into specifics, but here's a general overview of a way you could solve the issue.
Greate a DataSet or DataTable (where appropriate), and generate columns within the code.
Parse the lines of the text file and then add those as rows in the datatable.
Bind a datagrid (or better, a datagridview in 2.0) using databinding to the datatable.
If you don't know any of these forms, or are confused, check the MSDN documentation, they do specifics a lot better than me.
|
|
|
|
|
pls send money.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Tamimi - Code
|
|
|
|
|
reading a data from textfile into datagrid in c#
|
|
|
|
|
Hi,
one way is to create a class with members that represents the columns
The member MUST have a Property to SET and GET ( the Datagrid uses this to display the data )
then you read line by line your textfile and cut the data
for example Name;Lastname;city;age ( if your text is semicolon-separated )
each object that you create you store into an Arraylist and the ArrayList you set as DataSource of the DataGrid
Thats the way i would make it ... It possible not the fastest way, but it works
Good luck
|
|
|
|
|
Hi,
My job is to read a text file and insert all the records from that text file to a database table. I have partly done that. There is an identity field in the table named record_id . I am buliding the sql insert insertment taking values from text file and inserting records. Everything is fine as long as the number of records are less, say, 50 or 100 or 150. If the number of records goes above that all the records are not inserted. As against 766 records only 606 records are inserted. Also the autoincrement field should increment uniformly. But it is not happening so. What is the problem ? Is there a sql server problem or some logic problem.
Any suggestion is welcome
|
|
|
|
|
How are you checking what records has been added?
DownBySpj wrote: As against 766 records only 606 records are inserted.
Are you catching exceptions and ignoring them, or something? I have yet to see an insert statement that fails without sending an error message.
DownBySpj wrote: Also the autoincrement field should increment uniformly. But it is not happening so.
What happens, then?
---
b { font-weight: normal; }
|
|
|
|
|
hi,
In the inserting module i am incrementing a counter if there is a sucessfull insert. This lets me know about the number of records that are processed by the code. And in the database table, i use just " select * " statement to know exactly how many records are inserted. Before the insertion table is empty. So the number of records returned is the number of records inserted by the code.
But there is a problem somewhere, that's why it is showing me wrong no. I am first reading the whole file in a string array. This way it becomes cler about, how many records are there, and then i inserts the records one by one. But it is happening so. If an exception regarding primary key, or foreign key or any other, i am incrementing a counter for errors. But the probelm is it is not showing any error.
Any help
|
|
|
|