|
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
|
|
|
|
|
DownBySpj wrote: And in the database table, i use just " select * " statement to know exactly how many records are inserted.
Yes, but what are you using to run the query? If you for example run it from the code right after inserting the records, but are using a different connection than the one used to insert while the first connection is still open, some records might not show up yet although they exist.
What does the insert query look like? Are you sure that it always results in inserting a record? If you for example select data from another table in the insert, are you sure that you always get a record from that table?
---
b { font-weight: normal; }
|
|
|
|
|
I have an application with produce document/file with a lot of textual information into it (in a TAR-GZ format).
This application is for the general public (as opposed to corporate, so I cannot assume too much on what's on my user's computer, except we require XP or later).
Now the Windows user could search file, in the FileExplore, by right clicking on a folder => search.
I wonder if there is a way to extend this search so that it search in my files as well?
I have found the IFilter interface, but apparently it is only if you have the indexing service running. I don't know which one it is, but I will bet I don't have it running, nor my user.
Any tip?
|
|
|
|
|
I use the File system Watcher in my application
Public watchfolder As FileSystemWatcher
watchfolder = New System.IO.FileSystemWatcher()
'this is the path we want to monitor
watchfolder.Path = "c:\"
these is work properly
i want monitor full system
watchfolder.Path =i want monitor "MyComputer"
how do these
any one help me
|
|
|
|