LizR 171 Posting Virtuoso

Dont ask me :)
Please make sure you mark it as closed

LizR 171 Posting Virtuoso

Works for me

DataGridViewLinkColumn dl = new DataGridViewLinkColumn();
                dl.DataPropertyName="Status";
                dl.Name = "LIZ";
                dataGridView1.Columns.Add(dl);

So, something else is causing yours to overwrite the column.

LizR 171 Posting Virtuoso

You'll need to show how you are reading in your XML for starters.

LizR 171 Posting Virtuoso

You show no code. its hard to help you without.
FileZilla may use multiple connections to achieve a higher speed, it could be poor coding leading to delays in the processing..

Make a basic command line app that downloads your file. Post the code once you've done some tests on it and tried to see if its your code causing the speed issue. (without server/username/password) and we'll try and help from there.

Such as, using your own intellegence work out and display the final download speed you got for the file you downloaded.

Then using the built in windows command line ftp, download the same file. And include the speeds you got from both.

LizR 171 Posting Virtuoso

Without seeing the code for that the fact it says "@\"C:\\Test\"" for example, implies its encoding the whole @"C:\Test" as the filename, which is correct. " marks etc arent a valid file name, while c:\test can be.

If you're entering the path in a text box, dont enter the @ or " marks

LizR 171 Posting Virtuoso

OK, and in what way did you not achieve your aim, and what did you try to do to fix it.

Please also use code tags to make reading your code more readable.

LizR 171 Posting Virtuoso

OK, but that wasnt the question. That tells you how many pages there are, not how you tell which ones to give in a mathematical equation. Sigh.

If you were counting on your fingers, 6 would be the first finger your hand (wether you used the same hand or both). So, if you had "15" fingers per hand, how would you work out mathematically which finger any given number is, if I said you had counted your hand 12 times, which numbers would you be on..

displaying the images is the same.

LizR 171 Posting Virtuoso

Well, as I said before in your other thread theres 2 ways, 1 involves a bit of maths the other involves messier code. However, the second way is bad.

So. Given you have some concept of the maths:

If you had 200 cards, and needed to display them 15 at a time.
How would you in maths terms work out given page = p, what numbers to show for page p?

LizR 171 Posting Virtuoso

is that the debug value, or the displayed if you print it out value?

LizR 171 Posting Virtuoso

Well if I gave you 40 peies of paper, and told you to show me the first 15, then the second 15, and then said "next" how do you as a person work it out? now tell your computer exactly the same.

LizR 171 Posting Virtuoso

You need to look at the draw event most likely

LizR 171 Posting Virtuoso

Then its probably true.
Whats in your path?

LizR 171 Posting Virtuoso

Try setting the DataPropertyName first, not last.

LizR 171 Posting Virtuoso

Assuming that fs1 and fs2 are streams... go take a look at the helpfile.

LizR 171 Posting Virtuoso

As I said before, work it out on paper, you have a few ways to do it. One is messier to code but easier on the eyes, the other a bit more maths but easier to code.

Either way, its a logic issue not a coding issue, so have a go at working out how you might do it.

If nothing else, start a new console based app, and get it to print numbers 1-15 for page 1, and then move to page 2, and back, and so on. so you can concentrate purely on that aspect.

PS now you started a new thread, and the last question was solved, please mark it as such

LizR 171 Posting Virtuoso

As I said before, work it out on paper, you have a few ways to do it. One is messier to code but easier on the eyes, the other a bit more maths but easier to code.

Either way, its a logic issue not a coding issue, so have a go at working out how you might do it.

If nothing else, start a new console based app, and get it to print numbers 1-15 for page 1, and then move to page 2, and back, and so on. so you can concentrate purely on that aspect.

LizR 171 Posting Virtuoso

If its been told to you that you have to do this specific application for your final year, what reading material were you told to look at?

LizR 171 Posting Virtuoso

Replacing MSGina is not as simple as I tihnk you're looking at there. I would guess a number of those elements fail as you're not logged in at that point. I dont believe its just a case of "impersonating" a specific user, you need windows to go through the real login process - Id imagine your window goes black as you're not calling any method for it to know it needs to launch the shell, and so on.

I wise man said:

You are looking at replacing MS Gina OS level code

This is a VERY NOT TRIVIAL thing, its basically something that custom vendors do. So, best advice? Don't even consider it.
(Taken from
http://www.eggheadcafe.com/community/aspnet/14/10015768/you-are-looking-at-replac.aspx)

Hes right.

LizR 171 Posting Virtuoso

Firstly, think of how you would want to do it, write it down.
Work out some code that looks like it should do what you wanted.
try it, what does it do?
if it doesnt work, post it, explain what you're getting you didnt expect, and ask for assistance.

Dont post just asking for us to do it for you

LizR 171 Posting Virtuoso

Much like ddanbe, people who know me, know as a whole I actually would probably be placed in the "anti microsoft" camp, so, Im not getting any benefits, payback either..

VS (express or otherwise) is a good product, its fast and snappy. The express ones doubley so, and of course free.

Sure, if you're working on linux or mac's you can have good reason express isnt for you, but anyone with windows, Id have to question why if you are new to c# you chose to make your life so much harder than you needed.

LizR 171 Posting Virtuoso

At the same time, MSDN gives examples to pretty much everything, so even if you dont understand it fully, it does explain it, if you dont understand something on MSDN, perhaps you would learn to teach yourself better by asking something like..

Im trying to do <this> I found <this> on MSDN but I dont understand <this> small section I dont see how it changes <x> to <y> or why that works but when I do <this> it doesnt.

LizR 171 Posting Virtuoso

Why doesnt it work - what exactly goes wrong? What code are you using?

LizR 171 Posting Virtuoso

The usual answer is you *dont* be able to decrypt them, you have a one way encryption and the only way to match them is you redo the encryption algorithum, and if it matches, then it must have.

LizR 171 Posting Virtuoso

then try the video training material at http://www.3dbuzz.com which is designed with people just like you in mind, and theres 3 sections all absolutely free for c#

LizR 171 Posting Virtuoso

You might want to head over to the ASP.NET forum for your questions about ASP.NET

LizR 171 Posting Virtuoso

It should be working for any filetype - if its not working, then you need to debug what exactly cant be accessed or readonly.

LizR 171 Posting Virtuoso

Thats very unusual. On every other OS in the world, "." is current folder, including windows and unix.

LizR 171 Posting Virtuoso

lets pray the ftp servers you use always return exactly the same format in each line then, and that they dont have longer filenames, or usernames or longer/shorter permissions.

However, builing a tree view of something is generally an easy enough concept, and your treeview only allows 1 level, its not recursive.. but, its good you got there in the end.

Btw, shouldnt

FTPLIB.ChangeDir(".");

be a little pointless as you are changing to a fully qualified path each time. and "." means dont change.

LizR 171 Posting Virtuoso

Yes you can remove the line you highlighted, and for the other 2 functions too.

LizR 171 Posting Virtuoso

this was covered in another thread - you need to store the picture in memory, and then copy and show only in the picture box what the user is expecting to see

LizR 171 Posting Virtuoso

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onpaint.aspx says there should be.

failing that, do a search for captureing from a paintbox/form and saving it as a bmp, so you update the bmp in memory.

LizR 171 Posting Virtuoso

Because you need to paint it there each time the picture is painted most likely

LizR 171 Posting Virtuoso

What do you have so far, what exactly have you struggled with?

LizR 171 Posting Virtuoso

OK, what else from the string family have you tried?

LizR 171 Posting Virtuoso

If you just want to update, calling application.DoEvents can have bad reactions and cause odd things, so, you can just run .Update() which causes a repaint but doesnt cause new bits of code to run :)

LizR 171 Posting Virtuoso

Well, its one of the following:

1. that the folder your FTP server connects to is different to the one you think it is

2. the FTP component you're using isnt good

3. the FTP server is sending back odd information and its not being parsed right

4. What you told it to do is fundementally wrong.

Try this.

make a new app
create a new ftp thing (wether its component or just a class)
connect to ftp.microsoft.com
login as ftp
password test@home
get a list of files.

What does it get?

LizR 171 Posting Virtuoso

So GetFileList isnt returning more than 1 thing.

LizR 171 Posting Virtuoso

no no, you're missing the point.
If the function you're calling only sends back the 1 file, then thats all it has to send. For loop and foreach wont make any difference.

if the array only has the 1 file, you cant change that

LizR 171 Posting Virtuoso

debug it, is the array just 1 entry? if it is then.. thats why

LizR 171 Posting Virtuoso

Well.. You have to work the logic out, much like the placing on the screen logic..

Write down on paper how you thikn it should work, and at least paste the logic and your attempt at the code here if it doesnt work....

LizR 171 Posting Virtuoso

try changing directory, and asking for a list of *

LizR 171 Posting Virtuoso

Probably because slide[numFile] is still null.

LizR 171 Posting Virtuoso

so
Out of the code that was relevant, eg

slides[numFile] = new SLIDELib.Slide();
                    slide[numFile].Width = 125;
                    slide[numFile].Height = 115;
                    slide[numFile].Left = 9 + slide[numFile].Width;
                    slide[numFile].Top = 23 + slide[numFile].Height;

                    slides[numFile].FileName = file.FullName;

The obvious thing is you never added the control to anything, so I bet none are showing up.

LizR 171 Posting Virtuoso

How about you post the code you have, not the ocx, its most likely the issue

LizR 171 Posting Virtuoso

I would expect it to. youve asked it to show you the details of the directory, not the contents within it.

LizR 171 Posting Virtuoso

Same as you would for any variable,

int[] i = new int[9];

LizR 171 Posting Virtuoso

then do just that :)

Have a guess.

LizR 171 Posting Virtuoso

by copying it?

LizR 171 Posting Virtuoso

It doesnt have to be a composite control in the way you're thinking, but just a class in your code you can call instead of new TabPage, because a little like your procedure it would have the components, but they would be public properties etc, of the new class, and you could then call them by name, easily.

LizR 171 Posting Virtuoso

Well as long as you have access to the variable your "about" form was instantiated in, you can do exactly that, you would do about.Show() etc.