The online help for the Location property describes the behaviour and how to resolve your problem. Control.Location Property "Because the Point class is a value type (Structure in Visual Basic, struct in Visual C#), it is returned by value, meaning accessing the property returns a copy of the upper-left point of the control. So, adjusting the X or Y properties of the Point returned from this property will not affect the Left, Right, Top, or Bottom property values of the control. To adjust these properties set each property value individually, or set the Location property with a new Point."
You.Location.X = new Point(You.Location.X +1, You.Location.Y);
if you want to monitor all network traffic you could write a windows service that either hooks into a system component like winsock.dll, or see if there's something that can monitor network interfaces => would save you having to write an application for every browser you want to monitor I suppose.
A good while back I started a program to read csv files, classify the lines to separate the chaff from the wheat, then convert the text fields to proper types and save the records to a remote SQL Server database. As usual, I did it half in the bag, late at night after very long days at work, that being the only time I have available. I had to drop it for a couple of months, but I'm now back into it and trying to figure out what I was doing. Predictably, it's a mess - spaghetti code, for lack of a better term. It works, that part that I managed to finish back then, but the major hurdle lies ahead and I'm refactoring the monster before I begin again. But I digress...
I had no trouble using the StreamReader to read the data, and at your collective suggestion, implemented ugly, nasty little Regexes to classify the text lines into keepers and crap. I asked about creating a new database on the remote SQL Server instance, and after being told that it can't be done, did it anyway. All that works great, jumbled mishmash though it is. What's stumping me is this:
On first run, I want to create the database and save all the neccesary connection information in the AppConfig file so I won't have to enter it manually. I can't figure out how to do that, despite searching MSDN for articles on the subject. I believe that there exists a whole class devoted to manipulating the AppConfig file, but I'm stumped and have little time available to search through all the irrelevant links MSDN returns. Can someone give me a quick clue? I know this is trivial stuff, as every program that accesses a database uses it, but I'm not having much luck with it for some reason.
Thanks a bunch in advance. If I didn't have this crowd to assist with the sticky bits, I'd probably quit programming at all, even as a hobby - it so easily becomes incredibly frustrating. I'm unspeakably grateful...
Will Rogers never met me.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Sep-23 22:33