|
Covean wrote: This can be done in .NET / C# by using PInvoke.
It can be done WITHOUT P/Invoke
Covean wrote: But on the other hand I think that accessing the file system directly from C# should be avoided.
Why? For what reason is the namespace "System.IO"?
|
|
|
|
|
And what class from System.IO allows direct access to the hard disk/file system (and how)?
And as I mentioned before, I don't know if there is a way without PInvoke, this doesn't mean there
is no way!
Greetings
Covean
|
|
|
|
|
The original question was NOT about raw disc access, but raw FILE access, therefore the solution without api calls.
And of course, direct disc access is only possible through CreateFile or CreateFileTransacted - api calls.
And I fully agree, that this should only be done if you know exactly what you are doing. BUT if you do it, use the language you know best ...
|
|
|
|
|
Hi , have a good day ,
I have to do a project like :
A book pages as Images files , and audio file reading the book !
My Question is :
how I can replace the color of the Text in the image file , When the Audio file reading that sentence !
I don't need a code , but if you do I would be happy !
I need hints , links , TAG words to google it , Ideas ! , similar projects
P.S:
There is no WAY I can accept to make the book pages as normal TEXT , they MUST be images !
Thank you in advance
I know nothing , I know nothing ...
|
|
|
|
|
There is no way to do as you are asking. You would need to recreate the image file for each word as it is highlighted. You would need to create an algorithm to find the pixels that present the word and replace that section of the image with a highlighted or un-highlighted version, save the image and redisplay it, but it would be so processor and memory intensive as to be unusable.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Replacing the color of the text is complicated, but would a different kind of highlighting do? E.g. place a half-transparent colored window on top of the respective line of text.
|
|
|
|
|
Hi!!
I wanted to know how to read emails from my gmail account.. and may be even save the emails read to my disk...
i googled for it.. but m unable to understand all that... its all bouncing off...
plz guide me...
|
|
|
|
|
I believe it can all be done with IMAP. There are some free and commercial IMAP libraries available for .NET.
The last time I needed it I developed my own by studying the RFC document[^], it's not particularly difficult.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
|
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
|
|
|
|
|
Post some code here and someone might be able to help you.
|
|
|
|
|
Why not use the textchanged event to filter the dataview.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Doesn't the OnTextChanged event fire after the textbox looses focus? That would be too late for this purpose, I believe the OP wants type-ahead lookup functionality
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Doesn't the OnTextChanged event fire after the textbox looses focus
I'll need to go check this, I was under the impression it would fire at each change of content.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Had to check also. Winforms it raises the event while typing, in Web its raised after loosing focus
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Being a winforms developer I did not even consider the webform activity. Talk about a narrow view on life.
I would not have considered this a viable solution on a webform, you would have to resort to (spit) javascript or ajax to get any sort of reasonable response.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Have you considered using autocomplete or whatever it is?
|
|
|
|
|
Where are the customers list stored ?
I know nothing , I know nothing ...
|
|
|
|
|
Why does it matter?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If they're stored on a piece of paper its going to be real difficult to write the ODBC driver
|
|
|
|
|
Hello all,
I am a bit perplexed and maybe one of you can point me in the right direction.
I have a windows form containing a DataGridView that has data imported into it from Excel and a combobox representing a job number. A user will make changes to the data in the DataGridView and then I want to post this entire DataGridView plus the job number to a MySQL table.
I havne't found any information about how to post the unbound DataGridView to the MySQL table with one extra column of data (job number).
What I would like to know is the proper steps to accomplish this task.
I am using VS2008 and the MySQL Connector/NET v6.2.3
Thanks
Jeff
|
|
|
|
|
Assuming I have the data in a DataTable, I cobble up a (parameterized) INSERT statement based on the table name and column names then iterate through the Rows setting the parameter Values and calling ExecuteNonQuery.
I have a routine that does it in one of my data access classes.
|
|
|
|
|
Thanks for the response.
That sounds simple enough, except that I don't know how to access each of the data rows when none are selected. All of the literature that I am looking at assumes that data in the datagridview was taken out of a database table and then updating is a snap. but... it seems strange to me that using a datagridview for data entry should be so hard. (I think I am overlooking something, but I don't know what it could be.)
Unfortunately, I am very confused and don't really know where to proceed from here.
Jeff
|
|
|
|
|
As Piebald said:
foreach(DataGridViewRow row in myDGV) {
.. stuff column values in an INSERT statement
.. execute it
}
|
|
|
|
|
Thank You!
After some trial and error with syntax and the imported column names from excel it worked as advertised.
You saved me a ton of time.
Jeff
|
|
|
|