LizR 171 Posting Virtuoso

That code is an abomination. You should be asshamed.

LizR 171 Posting Virtuoso

Hmm, it didnt do that for me, and the file I picked (like a moron) was huge.

Only thing I could think of which may help would be

reader.Seek(resp.ContentLength, 0);
LizR 171 Posting Virtuoso

Im not sure you can. I believe its imposed on you when the size of your child form is greater than the container. Only way to do it would be to resize the child to smaller.

LizR 171 Posting Virtuoso

No, I asked in general. If you wish to take it personally, I cant stop you.

LizR 171 Posting Virtuoso

because the thread reads like a random sentance competition. Pretty pointless, uninformative, and directionless.

LizR 171 Posting Virtuoso

Please use search - we answered this very recently

LizR 171 Posting Virtuoso

Many - have a search on using excel from c# and reading values.. and controlling excel - theres a few ways you could go about it.

LizR 171 Posting Virtuoso

Or, in a more OO term you would either set the property of the second form - which has an associated event to triger the change in form 2.

LizR 171 Posting Virtuoso

Thats a whole new question :P make a new thread of it, and mark this one as solved.

LizR 171 Posting Virtuoso

Finally :p

now mark it as solved :)

LizR 171 Posting Virtuoso

Glad you found it then - and please mark it as solved!

LizR 171 Posting Virtuoso

As per the announcements at the top of the forum we dont tend to like giving flat code answers because in 90% of cases people just return the next time with an almost identical problem and cant see it because they dont take the time to learn what was given to them, they just copy and paste and move on.

Where as, if we teach you places to look for answers, you can move on yourself quicker, and will learn more, and dont have to wait for someone to answer your question .. and can be independant..

Sure, there are questions you cant ask google, and look up on MSDN, which are usually more of "code blindness" type issues, but, the internet has a vast array of information on it and there is a lot of it on c#, and examples, why reinvent the wheel, you can google just as much as we could.

LizR 171 Posting Virtuoso

the mails are not local.
i guess i tried many options and i dont know which one one is right.
i tried to configure the iis smtp server to my isp and i entered my password, when i tried to send it showed an error that access was denied.
i tried to reset all settings and defined the relay on 127.0.0.1 (local host). nothing seems to work.
is there any way to send emails with the iis default smtp server ?

Then it sounds quite simply as the servers not prepared to hand it on because neither the sender or receiver are domains it controls and its not an open realy.

Which is normal. Most servers these days are configured that way to reduce spam.

LizR 171 Posting Virtuoso

Is this some kinda random thread?

LizR 171 Posting Virtuoso

Change to multiline text boxes?

LizR 171 Posting Virtuoso

Ah, glad you guys got it to work, they are a big laugh those guys and the videos are kinda addictive.

If you want to learn XNA beyond C# Id more than certainly recommand all 3 volumnes of their XNA class

LizR 171 Posting Virtuoso

Are the from/to addresses local to the mail server, eg, you arent trying to relay?

LizR 171 Posting Virtuoso

You need the latest flash player, they certainly should work, do you see just black? or do you get no player type part at all?

LizR 171 Posting Virtuoso

Check the version of the DLL on your dev box versus the machine it fails on

LizR 171 Posting Virtuoso

All your 3 options would have to descend from the same class. Much as you descend from your parents, classes descend from things, currently if you say nothing else TObject. So while you could then cast your tobject and assign an instance of your item, it would be hard to work with.

LizR 171 Posting Virtuoso

So

Debug, you tell us what you missed, and whats happenign when it hits a file rather than a directory - or a directory it cant go into...

:)

LizR 171 Posting Virtuoso

The classes would need to share a parent to do that and all be descended from the parent

LizR 171 Posting Virtuoso

Then try the appropriate forum. This is c#

LizR 171 Posting Virtuoso

because you have only told it how to handle directories if you can enter them, you havent handled directories that arent accessible, or are files - because you add them only if the child directory contains "."

LizR 171 Posting Virtuoso

The class is not static, ergo, you cant. You would have to make an object, and then you can let it expire.

LizR 171 Posting Virtuoso

That sounds like a fundemental basic, if you look at any examples of c# they demonstrate how to instantiate classes

LizR 171 Posting Virtuoso

Well..

What have you tried? what have you read?

LizR 171 Posting Virtuoso

Are you sure the device operates at the speed you listed?

LizR 171 Posting Virtuoso

kinda both, it doesnt have to be a new virtual directory, but for example, depending on your code file positions maybe different, settings can be different..

LizR 171 Posting Virtuoso

Does it give any reason why it failed?

LizR 171 Posting Virtuoso

The principal of recursion is actually simple. There are a plethora of examples of it all over.

LizR 171 Posting Virtuoso

But

Start Childnode :public_html/es
Child Root : ftp://theserver.com/public_html/public_html/es/

--->This one must continue<---

A first chance exception of type 'System.Net.WebException' occurred in System.dll
Failure in Recurse Child : The remote server returned an error: (550) File unavailable (e.g., file not found, no access).

ISNT valid - your code is makingthe path wrong, public_html/public_html/es isnt the path.. The FTP response is correct.

The other thing is not that the directory has necessarily no children, but more that you''re trying to directory inside a file.

PS if you havent slept you will get more thick headed and more frustrated - sleep.

LizR 171 Posting Virtuoso

No, not necessarily - what is the actual value of the path rather than a fake one of dir1/dir2/dir3

are you sure the value of dir3 is a directory for example

LizR 171 Posting Virtuoso

No
Thats not the path

a path is like /dir1/dir2/

Debug it and finds out

LizR 171 Posting Virtuoso

Well
First step would be.. What is the path it is unable to find?

LizR 171 Posting Virtuoso

Would not something like

List<String> dups = new List<String>();
while (readerQ1.Read())
{
dups.Add(readerQ1["text2"].ToString());
}

Give you all the answers the way you want?

LizR 171 Posting Virtuoso

Yep.. Just because you've declared a container, doesnt automagically mean its made, thefore the new keyword gives you the default contents for that type

LizR 171 Posting Virtuoso

If its fixed, then mark it as solved

LizR 171 Posting Virtuoso

Loads of them

The ones I liked best Ive seen were on http://www.3dbuzz.com while its marketed towards XNA they cover a lot of the c# fundementals while making it fun

MS have one too, but I found it rather dry

LizR 171 Posting Virtuoso

Pressing F1 on a component will take you to the MSDN help which has examples, its really not overly hard

LizR 171 Posting Virtuoso

Id suggest you ask in the asp.net forum

LizR 171 Posting Virtuoso

The difference is the

= +1
is the same as =1
where as

+= 1

will add one and store it.

Typos FTW

LizR 171 Posting Virtuoso

Easiest way is to have a hidden share, and for the file to be copied as part of a login script

LizR 171 Posting Virtuoso

OK, but thats nothing like what your code does.
Why not just use a datagrid and attach your sql results to it? Thats the kind of thing its good for.

The resulting data is already there, in a table like manner, but just in a dataset, its a good way to store it depending on what you need it for later

LizR 171 Posting Virtuoso

In part you dont get 3 lines because your txtResult.Txt is never told to separate the lines!

LizR 171 Posting Virtuoso

We were - but the method chosen kinda works, except its a little more confused :)

LizR 171 Posting Virtuoso

Dont forget then to mark this as solved

LizR 171 Posting Virtuoso

The problem is you're assuming your authority is passed on, programattically it wont, you need to do that for it. Try your code out to start with locally.. before worrying about other machines.

LizR 171 Posting Virtuoso

Ok, one thing that does puzzle me is

private void ShowSld(int sldCnt)
        {

            int xPos = 10;// 140;
            int yPos = 23;// 140;
            this.groupBox2.Controls.Clear();
            while (n < sldCnt)
            {
                    sldArray[n].Tag = n;
                    sldArray[n].Width = 125;
                    sldArray[n].Height = 115;
                    if (xPos > 570)
                    {
                        xPos = 10;
                        yPos = yPos + sldArray[n].Height + 35;
                    }
                    sldArray[n].Left = xPos;
                    sldArray[n].Top = yPos;
                    xPos = xPos + sldArray[n].Width + 15;

                    groupBox2.Controls.Add(sldArray[n]);
                    sldArray[n].FileName = filCol[n].FullName;

                    n++;
            }
         }

At face value, it would seem the start variable should work out but then you dont seem to use it in your actual display.. and you rely on "n" which could get changed in a number of places, but, the while loop would at least end at the right end..

You might want to tweak that so it maybe has a more reliable output - as for example, if you displayed page 3, and selected a slide, n goes back to 0.

use of local variables would overcome the concerns about last state, but it would be easier to pass a start+end variable pair to your function as a result.

LizR 171 Posting Virtuoso

Your english is good enough :)
If its now solved, please mark it as so.