is that assigned to your forms keypress?
is that assigned to your forms keypress?
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
Theres SelectedItems which would do the items, or selectedIndicies, either depending on what you want would be a far more efficient method.
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..
Um with the menu :P
File -> open
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.
Have you asked google?
Then please mark this as solved if you have an answer.
You shouldnt need to walk through the contents, far from it. However, if it is solved, please mark it as such
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?
Please use the search button as this has already been answered many times.
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.
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.
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
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.
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.
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.
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
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.
I do too :P
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.
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!!
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.
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?
google will find you some example code too
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.
Youve shown us no effort, why should we do it for you?
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.
Normally thats what it does by default.
No, but it is good that it appears to be at least in some part environmental for tovishal2001
can you do exactly that command (eg "cd /apolo/") from a command line ftp program?
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, 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.
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.
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..
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.
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)
OK, under ASP you'd most likely have used vb, did you ever make subs then?
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
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.
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?
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.
tovishal2001, what OS are you running it on?
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.
Im sure google has lots.
What exactly are you trying to solve, and what problems are you having?
I used your exact code, replacing query with the URL string.
Im using 2008 as well.
That will be why then, your textFile1_paras is null. You havent initialised it.
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
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