LizR 171 Posting Virtuoso

or an incremental number

LizR 171 Posting Virtuoso

Yes - if you search this forum we've already covered how to colour boxes, and how to do gradient colouring

LizR 171 Posting Virtuoso

WJSwan, if you look in your helpfile you will find examples too, it shows how to use other properties of the openfile dialog too.

LizR 171 Posting Virtuoso

who knows, either way, diagnosing the problem works out to be the same.

LizR 171 Posting Virtuoso

Um, they said C# at the top, and this would be the C# forum, so, would seem C#

LizR 171 Posting Virtuoso

Text files cant hold versions directly so theres really only 1 option left.

What do you think that could be

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

Chances are then its the TShellListView, as you proved the standard one works fine

LizR 171 Posting Virtuoso

There are quite a few, I like one called nexusDB

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

Well. The fact the one you told me to paste in works perfectly well means theres something else wrong in your code.

LizR 171 Posting Virtuoso

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...

LizR 171 Posting Virtuoso

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?

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

No, I wouldnt expect that to, SubItems[1] is not a string. Its a ListItem.

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

You want to take the first subitem, and change its caption.

LizR 171 Posting Virtuoso

what part dont you understand ?

LizR 171 Posting Virtuoso

its not overwriting

add another column, its still there...

LizR 171 Posting Virtuoso

OK but

li.SubItems.Insert(1,'Super Folder: ');

You would need to trace whats going on, because that inserts, not replaces current data..

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

Shudda saved your code last time then ... As you've not mentioned any errors etc, Im sure you'll work it out ..

LizR 171 Posting Virtuoso

I guess you didnt download their studio product to test your regex code on..

LizR 171 Posting Virtuoso

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..

LizR 171 Posting Virtuoso

Did you add the file in as a resource? And call it the same name etc?

LizR 171 Posting Virtuoso

Simple answer is unless your PC has an externally visible IP, you will need to use port forwarding.

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

Display names can be the same, I believe

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

Errors are always useful...

LizR 171 Posting Virtuoso

Sure, thats possible.

LizR 171 Posting Virtuoso

But the window *IS* the form, unless you meant desktop.

LizR 171 Posting Virtuoso

only at creation, after that it shouldnt move.. unless theres something else going on?

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

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.

LizR 171 Posting Virtuoso

If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)

LizR 171 Posting Virtuoso

Include it as a dependancy in your packaging product?

LizR 171 Posting Virtuoso

err yes, you cant do that :P
MouseClick is an event thats triggered not a property returning a boolean.

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

Best to work it all out on paper first :)

LizR 171 Posting Virtuoso

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 ..

LizR 171 Posting Virtuoso

Yep, or, you implement like many things do a "find next" :)

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

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..

LizR 171 Posting Virtuoso

Sounds reasonable to me, and finding the length of your search string is the easiest bit.

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

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