LizR 171 Posting Virtuoso

Not all keys appear in a keypress, but they do in the keydown/up

LizR 171 Posting Virtuoso

Make sure you have turned off the controlbox, the min + max buttons and that the caption is nothing.

LizR 171 Posting Virtuoso

You could also set a blank image for those who do not need an image.

LizR 171 Posting Virtuoso

Thats a standard bar at the top of any form. While you can remove it (havent tried removing specifically in c#), by ensuring your MDI child has no titlebar, its the best way for a user to tell which child they are addressing (as the text will help) it helps them move the children around if they arent maximized.

LizR 171 Posting Virtuoso

Ddanbe has given the correct answer. When the key is pressed if you dont want it, you can do something about it then.

LizR 171 Posting Virtuoso

Its not supposed to be funny or clever. Its the simple truth. You dont access a USB device in terms like COM1, LPT1, as a result unless you can find code to help you use the drive for the GPS device. You wont get anywhere fast.

LizR 171 Posting Virtuoso

Which is what I said about 2 months ago.

LizR 171 Posting Virtuoso

USB ports arent seen like com or lpt ports, it needs a specific drive, and understanding on how to work with it - unless you can find some form of instruction on making calls to your specific device. It could be very difficult.

LizR 171 Posting Virtuoso

You have a lot of options. However, what have you tried?

LizR 171 Posting Virtuoso

Sigh..

So the fact Ive been telling you it couldnt find the file you reckon had nothing to do with it.. I did tell you to check as it was telling you exactly where it was looking... grr

LizR 171 Posting Virtuoso

As RamyMahrous says, thats why they invented debug, so you could find out where and why it gets stuck.

LizR 171 Posting Virtuoso

But that wasnt the error you had. The error you had was 100% it couldnt find the file, not that it couldnt read what was in it

LizR 171 Posting Virtuoso

There isnt really a "preferred" its whats required. an Access DB is rarely ideal but, if thats all you have..

LizR 171 Posting Virtuoso

Thats why people invented google.

LizR 171 Posting Virtuoso

Well
Rather than the code, you need to take the zoom and work out the new size of the scrollbar.. as what is now subject to the scrollbar is no longer the same size.

LizR 171 Posting Virtuoso

C# can make http/https requests - have a bit of a read and searching on google, with such a generic question no one can give you specifics.

LizR 171 Posting Virtuoso

But its not finding it. So, either its not looking where you think (use something like the FileMon from what used to be sysinternals, or, such) to check where its looking coz its not looking where your file is.

Of course it does tell you exactly where its looking but its worth checking anyway

LizR 171 Posting Virtuoso

As I said, 'fileCount' had to be a string, not a variable name. But the function (which you didnt show) was returning a string.. So yes, you would then have had to convert it to an integer.

LizR 171 Posting Virtuoso

it cant find your file to read in, thats the problem. Copy the car3.car into the debug directory of your new project

LizR 171 Posting Virtuoso

use the paint event.
Draw what you wanted.

LizR 171 Posting Virtuoso

1. Please use whole words.
2. Please post the proper error text
3. What line is the err on
4. A console app is a console app, the only difference will be that it has linq already in the references and uses clause you should be able to just run it from a command line

LizR 171 Posting Virtuoso

Not directly, you could paint over the top, but, its rather crude.

LizR 171 Posting Virtuoso

No code, no help. Use search and google

LizR 171 Posting Virtuoso

fileCount should be in single quotes. Its a string.

LizR 171 Posting Virtuoso

Depends I guess in what way you want it to "update"?
The filsystemwatcher events can be used to do a lot of things.. changes to your stream (assuming you're for example you're making a windows version of tail) you can tell to read to the new end of stream because you know its changed.

LizR 171 Posting Virtuoso

So, Im invisible.
Thats fine. no help from me then.

LizR 171 Posting Virtuoso

Odd
I dont get the errors you do, in fact nothing like
The only error I get is with the line

b.Parse += MyParse();  //get error

where it tells me there is no "MyParse" with no parameters. If I just remove the () it actually compiles - as I would expect.

However, I believe the line should read:

b.Parse += new ConvertEventHandler(MyParse);

because your code is not exactly as you've listed it - eg you've pulled the Binding b code out of somewhere else, Im going to suggest that something else is wrong.

LizR 171 Posting Virtuoso

Off the top of my head Im fairly sure it keeps it open - check the source.

LizR 171 Posting Virtuoso

Sounds like a simple coding error

LizR 171 Posting Virtuoso

Or you're expecting a *lot* of connections in which case you have no choice either but at a cost :P

LizR 171 Posting Virtuoso

What have you tried so far?

LizR 171 Posting Virtuoso

The only real decision you have is wether its TCP or UDP

LizR 171 Posting Virtuoso

How about you type whole words.

LizR 171 Posting Virtuoso

perhaps we could help if you shared more of the error.. like what it said.

LizR 171 Posting Virtuoso

You arent supposed to. Its a single person license. While its free, it is a per person license.

LizR 171 Posting Virtuoso

You need to "use" the reference, and then the classes within it can be instantiated.

LizR 171 Posting Virtuoso

LINQ is a built in feature for .net 3.5 and comes with vs2008, to make it work in .net 2/vs 2005, you would have to add the file as a reference to your project, as well as in the usings..

Then you maybe able to.

LizR 171 Posting Virtuoso

delete is a bad bad idea if you can avoid it. Which you can. Have a go at doing it without the delete, its a good fun thing to work on as it helps you think about speed issues for other matters another day.

I set it as a challenge for a bunch before, to take windows.pas and count the number of words eg no numbers, punctuation etc. it was a good challenge, we had some great answers and everyone learnt.. its good.

LizR 171 Posting Virtuoso

cookies are not a c# thing, but a web thing.

LizR 171 Posting Virtuoso

I changed mine, as I said.. so that it used a parameter to get the nth record, I then also added back in the locks round the timer, and all was well.

You havent provided all your code, the only other thing I can think of is that your position calculations maybe wrong.

I dont have the code to hand right now, as Im at home, but, I put in a number of catch statements and the only one that was failing was the lock.

LizR 171 Posting Virtuoso

I spent around 2 hours this afternoon playing with it.

I have told you how I changed your code and it workde.

LizR 171 Posting Virtuoso

Then make the padding less :) or put your text on the left, and pad the arrow out

LizR 171 Posting Virtuoso

As linked above, as long as you set the variable type to be of your enum type, you can pass the values around.

LizR 171 Posting Virtuoso

If you continue to use the rich edit control you need to make a note of where the colour change should start, select the length of string you need to colour, and then set the current selection colours/font etc.

LizR 171 Posting Virtuoso

OK, but as you may have read, it works for me. So as long as your seekposition is correct and doesnt end up with overlaps, I had no issues in multiple reads of even the same locked area.

LizR 171 Posting Virtuoso

I think I know why

in your code you have

DtFile .Seek(seekPosition, System.IO.SeekOrigin.Begin);
	DtFile .Read(toArray, startingAt, length);

But your startingAt should be 0...... you dont want to offset from where you are... You also may just wanna change the System.IO.SeekOrigin.begin to 0.. just to make it clear.

Like that I could even reuse the same area.. and read it.

LizR 171 Posting Virtuoso

Ok, now, oddly, if I ensure that its not locking /reading the same part of the file, all works well.

eg I added a parameter, which told it where in the stream to move to, so, its only locking for me the area I tell it to.

LizR 171 Posting Virtuoso

Then something else is fundementally wrong.

As:

byte[] data=new byte[1025];
            FileStream fs = new FileStream("c:\\nokia.txt", FileMode.Open,  FileAccess.ReadWrite, FileShare.ReadWrite, 8192);
            fs.Seek(0, System.IO.SeekOrigin.Begin);
            fs.Read(data, 0, 10);
            Thread.Sleep(10000);
            fs.Close();

when ran 5 times in succession, all copies succeeded.

So, it is the locking thats causing the issue, because if you lock part of it the errror about "The process cannot access the file because another process has locked a portion of the file." is generated and its right.

So the read itself is not the issue, its the lock, the lock is being detected and preventing all reads, but thats how i originally expected it to be designed. The example on MSDN clearly shows only the locking while writing, which is what id expect.

Apparently MS respond with:
http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic15633.aspx

Would suggest if you need record locking, use a database.

LizR 171 Posting Virtuoso

if you're loading a bitmap image, why not just ask the picturebox to load the image?

LizR 171 Posting Virtuoso

Depends how you show them in the picture box at a guess..