Murtan commented: Not just this post for which you provided the only answer, but I keep seeing you make constructive posts elsewhere as well. +2
LizR 171 Posting Virtuoso
or an incremental number
Yes - if you search this forum we've already covered how to colour boxes, and how to do gradient colouring
WJSwan, if you look in your helpfile you will find examples too, it shows how to use other properties of the openfile dialog too.
who knows, either way, diagnosing the problem works out to be the same.
Um, they said C# at the top, and this would be the C# forum, so, would seem C#
Text files cant hold versions directly so theres really only 1 option left.
What do you think that could be
Sounds like you have either:
some threads still running
the close code isnt effecting the form you thought, or the form you think is the main form isnt.
your forms close is actually preventing it from stopping.
To prove you havent gone nuts, make a new blank app, place a button on a form, in the button put
Close();
and then run it, click on the button.
Close does need a capitial though
Chances are then its the TShellListView, as you proved the standard one works fine
There are quite a few, I like one called nexusDB
Usually it would do that if an error occurs such as FrmTranslate is not valid, but you would see an error to go with.
Other reasons would be that somewhere between the begin and end you've masked out you have an imbalance in begins and ends.
Well. The fact the one you told me to paste in works perfectly well means theres something else wrong in your code.
ok, but one thing important is you're changing *ALL* the values to super folder in that loop, and once again you're changing item 1, not item 0...
But your first post doesnt *DO* what you wanted it to do, firstly it inserts into the 3rd column of your tree, not the second, and also it doesnt overwrite it adds ...
So, given you now have code (that works as your last post would work) why not just "use" the correct code?
If you had read my post you will know I had run your code.. hence I proved its not overwriting it.
However, you seem determind to not follow any debugging or truth.
No, I wouldnt expect that to, SubItems[1] is not a string. Its a ListItem.
Well. As you havent even shown any signs of trying - read the regex help, show some code, you tell us what you have and how its not doing what you want, then we'll try and steer you in the right direction.
Um, ok. Although thank you for the advice, I'd knida like to know the answers to my questions from someone specifically type-talking to me...
Still thanks though,
PM260
If you feel that incapable of using the pre-existing material (for which there is an almighty load) perhaps you should consider going to a paid course, where people will have the time, and so on to give you a more one to one based training and question/answer sessions.
I would suggest you re go through the tutorial. If your question is that basic. Failing that, also have a look at the MS based tutorials for XNA. Once you have a generic understanding for c# code, XNA and so on will seem a lot easier.
You want to take the first subitem, and change its caption.
what part dont you understand ?
its not overwriting
add another column, its still there...
OK but
li.SubItems.Insert(1,'Super Folder: ');
You would need to trace whats going on, because that inserts, not replaces current data..
Which is what I said, unless your PC has a direct IP on the internet, you would need to use port forwarding on the router.
Regex is a simple but powerful tool. Once you grasp the meaning of bits, it will be very useful and in delphi its one of the fastest methods of searching for non specific text
Shudda saved your code last time then ... As you've not mentioned any errors etc, Im sure you'll work it out ..
I guess you didnt download their studio product to test your regex code on..
I dont understand your onchange code for the list view, it goes through and shows a dialog with the sub item yes?
So whatever you select I guess would get an item under the item with index 1, of super folder? Nothing else would change... it would just add a new item under the item with index 1 entry..
Did you add the file in as a resource? And call it the same name etc?
Simple answer is unless your PC has an externally visible IP, you will need to use port forwarding.
Display names can be the same, I believe
Well assuming you do some form of error checking it sounds like theres a simple enough process to put it all together, and it doesnt sound like you need reg expressions to do it. However, your question isnt overly clear.
Errors are always useful...
Sure, thats possible.
But the window *IS* the form, unless you meant desktop.
only at creation, after that it shouldnt move.. unless theres something else going on?
You have a huge number of ways to do it.
You could either tackle it as a human would, or, you look though the helpfile and see if theres a prebuilt way to do it.
Either way, get some ideas on paper, try and code it, and then when you have something... We'll help.
If its not centred, thats why I suggested you worked it out on paper first.. What you need to do before you do any code is work out how the logic helps you decide where you would start it if you were human.. Once you have it worked out, you can then explain it to a computer.
I knew the location would likely be relative, but that didnt sound like the behavior you got. Let alone swapping the show and hide round.
If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)
Include it as a dependancy in your packaging product?
err yes, you cant do that :P
MouseClick is an event thats triggered not a property returning a boolean.
Well you seem to have the idea of how to read something in and how to write something out - what you dont give is any idea of the bit you dont understand.
Take a read through Nick Hodges 30 days of delphi or, tutorials such as http://www.xcalibur.co.uk/training/Delphi2005/ or http://delphi.about.com
Best to work it all out on paper first :)
Normally you copy a single class, for use elsewhere, however, if you have a number of methods, you can make a DLL with public functions in that you can then call ..
Yep, or, you implement like many things do a "find next" :)
Logic looks ok to me, my only question is is "_master" always what you think it should be? Im wondering if perhaps instead of overriding the creation it somehow isnt using it so _master ends up null or something and that perhaps this is causing the effect you see
First issue, you can only have 1 selection in a text box
Second issue, you need to think about how you would do it as a person..
Sounds reasonable to me, and finding the length of your search string is the easiest bit.
So, your code should be allowing for the server to disapear, as its not the same app and you cant guarentee its existance or connectivity, so you should have code in your app already that works with the fact the server can and potentially will disapear, and on doing so it should try reconnecting
OK so you found the event to say the selections changed, what exact issue are you having? other than you have put what looks like your date picked code into the form loading event