LizR 171 Posting Virtuoso

is that assigned to your forms keypress?

LizR 171 Posting Virtuoso

c# is great but, it truly depends what you're going to code as to what you would probably best learning whats right for us isnt necessarily right for you

LizR 171 Posting Virtuoso

Theres SelectedItems which would do the items, or selectedIndicies, either depending on what you want would be a far more efficient method.

LizR 171 Posting Virtuoso

Thats upto the guy who marks it as answered, wether he goes for the first answer, or the better answer, or in fact the wrong answer.. its entirely his choice. In a way Lord Soth beat you too it too, but, its upto the guy who grants the point..

LizR 171 Posting Virtuoso

Um with the menu :P

File -> open

LizR 171 Posting Virtuoso

No but thats what the selecteditems list is for, or the selected indicies..

so you can do

foreach (int i in listView1.SelectedIndices)
            {
                MessageBox.Show(listView1.Items[i].Text);
            }

much better than checking each one if its selected.

LizR 171 Posting Virtuoso

Have you asked google?

LizR 171 Posting Virtuoso

Then please mark this as solved if you have an answer.

LizR 171 Posting Virtuoso

You shouldnt need to walk through the contents, far from it. However, if it is solved, please mark it as such

LizR 171 Posting Virtuoso

If you open the exe/DLL it should be able to show you the classes and so on within.. It always seemed very straight forward. What exactly are you struggling with?

LizR 171 Posting Virtuoso

Please use the search button as this has already been answered many times.

LizR 171 Posting Virtuoso

Only if you learn to ask a question that has real words in it. And you explain your interests and what the project is for - otherwise its just an unreadable set of characters and any answer would be just as random.

Salem commented: Well said. +27
LizR 171 Posting Virtuoso

The wrox books are much better written in my humble opinion

depending on how confident you are with your c++ skills, the transition should be pretty painless, so
Beginning visual c# maybe a little too basic, but professional c# is a great read.

I often mention these, as I think these are awsome, while they are aimed at gameplay, the c# video training material on 3dbuzz is very well done, I have the XNA series vols 1-3, and would strongly recommend them as they cover the whole OO and basics exceptionally well to the point Id almost challenge someone whos never programmed not to be comfortable with them at the end.. You can view some of the earlier vtms in the volumes by registering and looking at the free Hyperion section - which takes you through a text based game, but it takes you through design and so on through to final coding.

LizR 171 Posting Virtuoso

if all you do is show some pages and allow a language change, I would sincerely expect you to fail. That would be an exceedingly minimal half effort

Salem commented: Seems about right to me. +27
LizR 171 Posting Virtuoso

The ? notation is a great way of tidying things up when you're setting variables dependant on a question. Even for simple things such as

if (balance <0) { color = red; } else {  color = black; }

looks much simpler as

color = (balance<0)?red:black;

Especially if you have a lot of them.

LizR 171 Posting Virtuoso

You should only get the some other process is using that file if you're trying to open it, so as other have said open it, dont close it until you're done with it. Then there is no major delay to writing the file.

LizR 171 Posting Virtuoso

Well. When you say you're doing IT and physical. Do you mean as in sports/atheletics/fitness? or do you mean something else? If you mean sports, the possibilities are endless.

LizR 171 Posting Virtuoso

Well. depends on the calculation - if for example you had item, cost, quantity, and wanted "totalcost" you could do so in your query.

So i guess you need to work at least what you want to look up and do with any answer, as well as what calculation you want.. and what you want to do with that, before you stand a chance of coding it - and perhaps this will help you refine your searches

LizR 171 Posting Virtuoso

Either way, if you want an asp.net app, go ask in the asp.net forum

LizR 171 Posting Virtuoso

Actually there are enormous amounts of excel interactions listed, you have many options wether you read the data to c# and put it back, or just ask Excel to do the work for you. What you havent done is actually plan what you want. There are examples of all of this which is why I tell you to search.

Oh and there you go, you found an answer.. so, I guess you managed to work it out by readint anyway.

It surprises me that anyone feels they can program, when they cant do research. Searching on google should be fairly intuative by now, if you didnt think to search for c# excel data sort.. such as the keywords listed, it just doesnt look like people try.. when you can pretty much copy and paste the question into google and get the answer.

LizR 171 Posting Virtuoso

I do too :P

LizR 171 Posting Virtuoso

OK, but you would know if you had run it from the built in command line ftp you get with Windows (bar vista I think) and most other OSs.

LizR 171 Posting Virtuoso

Look at oscommerce , I guess it is open source and you can download the code as well.

Hes supposed to be making something not copying or adapting something else. I wouldnt give anyone marks for doing that.

Back to the OP.. Im worried that your view is that they will concentrate on functionality rather than asthetics.. I should hope they would!!

LizR 171 Posting Virtuoso

While its the default option usually from within VS, it seems you couldnt be bothered to google as the first hit for me answered the question.

LizR 171 Posting Virtuoso

Before I even look at the code (its late and I'd probably talk rot if I started to understand anyone elses code right now - bad day, too much on mind.. bleh)

If you had a picture as class, which allowed moving (as zoomed in you see less of the picture etc) you would have

current rect viewport - area of pic to display
current scale

So, when the pic zooms in you use the scale to select a relevant size box centred over either the click on the picture or the centre of the box..

move will tell you how much to move in conjunction with the scale

zoom out does kinda the same only of course it means you see a bigger area of the original image..

The math still seems relatively simple to me.. should I be raiding the teapot (dont drink coffee) again?

LizR 171 Posting Virtuoso

google will find you some example code too

LizR 171 Posting Virtuoso

Open both projects, and drag and drop the form from one to the other, it should copy all the bits it needs - it did for me.

LizR 171 Posting Virtuoso

Youve shown us no effort, why should we do it for you?

LizR 171 Posting Virtuoso

well, as I said, the obvious answer is to combine your projects for both degrees, so you can dedicate in effect twice as much work and get more marks for the same effort.

LizR 171 Posting Virtuoso

Normally thats what it does by default.

LizR 171 Posting Virtuoso

No, but it is good that it appears to be at least in some part environmental for tovishal2001

LizR 171 Posting Virtuoso

can you do exactly that command (eg "cd /apolo/") from a command line ftp program?

LizR 171 Posting Virtuoso

Unfortunately Salem has a number of very valid points.

If theres not enough time to think of your own project, can you really be sure to give it sufficent time to design, code and test it?

the ftp transactions is far too simple a task, Id expect that of someone around 14 years, not someone doing a degree.

the obvious answer would be to combine it so your project counts for both degrees..

LizR 171 Posting Virtuoso

LizR, its windows xp SP2.

Just curious,.. how come this matters? Isn't .Net 2.0 library same for each windows OS?

.net is, but I was wondering if you had vista more to the point, as Im using XP SP2 too.. I was just wondering if something else was causing a difference.

LizR 171 Posting Virtuoso

Does your picture get moved around within the picture box? otherwise, Im not sure why else you wouldnt stuggle with working out where you clicked on your picture.

LizR 171 Posting Virtuoso

Unfortunately this is supposed to be a delphi/pascal forum, not a c/c++ forum.

If you have already made your solution (in pascal I assume) what areas do you feel your solution is weak..

LizR 171 Posting Virtuoso

Delphi 7 is not themes aware due to its age, so, you may need to recaclulate component locations on change.

Or upgrade to a version of delphi which has more theme awareness.

LizR 171 Posting Virtuoso

OK, but how would you have made a sub in vb, to send it say 2 parameters, and return the sum of them as a result?

(c# while different is not as hugely different in this respect)

LizR 171 Posting Virtuoso

OK, under ASP you'd most likely have used vb, did you ever make subs then?

LizR 171 Posting Virtuoso

Well if you were going to do that you would need to pass product to your read input, as well as then having properties you would read it into.

Which goes back to my earlier questions

LizR 171 Posting Virtuoso

Triggers serve a purpose, and if it was a lowish transaction base, then Id say go for it. Triggers if setup incorrectly can cause havoc in terms of recursion, stack, network bandwidth, disk bandwidth, cpu etc.. depending on what you do with them.

By writing a kinda batch system, that runs through and looks for updates, you can seriously throttle and control how much how often etc, and this is often key.. after all, if something goes wrong and your triggers gone recursive... only option is to down the db, and potentially waste time trying to repair it.. depending on size, this could be hours.. (one guy dumped a table where I work by mistake, took 47 hours to recover for example) where as, again, an outside batching/searching system if it starts playing up.. You kill it. Job done.

LizR 171 Posting Virtuoso

I will be more than happy if you help me with one or two of the variables so I can fill out the rest and post it back here. I have trying this for days and I am not not use to C# at all. Frustrating :-)

That sounds like someone whos coded in something else? Is this the case?

LizR 171 Posting Virtuoso

OK, so you havent worked out the placing of parameters into functions - thats a very fundemental thing. If you do look through most of the code on this site you'll find some examples of user made functions that have parameters, and how to return values (theres some hints in there you know!)

You've done pretty well, in fact you've already used some parameters and prebuilt functions, you just need to take the next step of making your own.

LizR 171 Posting Virtuoso

tovishal2001, what OS are you running it on?

LizR 171 Posting Virtuoso

If you need it done for each and every update, triggers are pretty much the only way to do it, but you dont have any method to throttle it.

If you can bear to batch it, then trigger the batch check every x minutes. You can do so.

LizR 171 Posting Virtuoso

Im sure google has lots.
What exactly are you trying to solve, and what problems are you having?

LizR 171 Posting Virtuoso

I used your exact code, replacing query with the URL string.
Im using 2008 as well.

LizR 171 Posting Virtuoso

That will be why then, your textFile1_paras is null. You havent initialised it.

LizR 171 Posting Virtuoso

Which version of .net are you working in? mine didnt complain, as well as mine didnt suffer the same as yours.

And no, the close was immediate for me even with your URL

LizR 171 Posting Virtuoso

probably because you dont check that paraNumber < than the number of available lines. (eg you havent shown where you set textFile1_paras, as an array, it may not be big enough