LizR 171 Posting Virtuoso

Read about the currently existing monitoring tools, and work out what featureset you want to provide. Document clearly each requirement, and build them as modules.

Fortunately for you, if I were your professor I wouldnt accept a network monitoring system its a very easy project. But then, I guess you can be glad Im not :)

LizR 171 Posting Virtuoso

Ok, while I know why its not working, explain what you expected that to do, and what you got instead.

LizR 171 Posting Virtuoso

c# is amazing at doing this, and its all built in - what do you have so far?

LizR 171 Posting Virtuoso

Ah you mean to minimize not close.. now it makes sense.

LizR 171 Posting Virtuoso

If you do a search there are a number of methods, but there is an SQL class you can use, or at worse ODBC.

Without firing up express Im not sure how much it has in it in this sense but the non express allows for creation of datasets in a project which you can then use.. which help.

LizR 171 Posting Virtuoso

For your sanity, and for those who posted that they couldnt bother to work out how to do a factorial, Please remove the factorial procedure from your example - the rest of us know how factorials work, its your output thats wrong after all, not the numbers.

OK, the problem seems to be the output, not the work, your binomials

Currently you output

1
1 1
1 2 1
1 3 3 1
(x + y)^0=x^0 + y^01
(x + y)^0=x^0 + y^01
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^0=x^0 + y^00
(x + y)^1=x^1 + y^01
(x + y)^1=x^1 + y^01
(x + y)^1=x^1 + y^00
(x + y)^1=x^1 + y^00
(x + y)^1=x^1 + y^00
(x + y)^1=x^1 + y^00
(x + y)^1=x^1 + y^00
(x + y)^2=x^2 + y^01
(x + y)^2=x^2 + y^02
(x + y)^2=x^2 + y^01
(x + y)^2=x^2 + y^00
(x + y)^2=x^2 + y^00
(x + y)^3=x^3 + y^01
(x + y)^3=x^3 + y^03
(x + y)^3=x^3 + y^03

For this the first thing thats obvious is that you have 1 line per item on your pyramid, not 1 per line, it also doesnt then use the …

LizR 171 Posting Virtuoso

or use the readkey function and while its not Y or N.. keep reading.

LizR 171 Posting Virtuoso

if you want a simple graph such as an x/y graph where you put a point, draw a line between it and the next points etc. That shouldnt be so hard, in fact coding it should be a peice of cake.

If you've been trying a month you most likely have some code even if it doesnt work. Perhaps we can help you fix that.

If you want barcharts, thats fairly easy too

Only ones that are more complicated are those where you have to do an approximate line through it, with best fit or curves..

LizR 171 Posting Virtuoso

Would not the row index be higher than the record count?

LizR 171 Posting Virtuoso

No, I didnt get you wrong. I know exactly what you meant..

Have you had a look in the actual form generation code? it shows you how its done in there.

PS there is also an alternative way which if you google slaps you in the face like a wet kipper, hence, Im asking you what happens when you try.

LizR 171 Posting Virtuoso

(its way early am for me, and Im tired but..)

Does not (String[] argv) not achieve the same?

LizR 171 Posting Virtuoso

And what happens when you try changing it?

LizR 171 Posting Virtuoso

I showed you that code.

LizR 171 Posting Virtuoso

Not in the way the OP implied eg the equivelent of void myfunc(int param1=0, string param2="default") like a lot of languages support.

LizR 171 Posting Virtuoso

how do you mean "get"? do you mean how do you detect that error and handle it?

Look at try and catch which you had before.

LizR 171 Posting Virtuoso

Without testing it, it may have less limitations.

LizR 171 Posting Virtuoso

I guess my questions were a waste of my band width?

Salem commented: Welcome to the world of "suggest a project" dim-wits :) +21
LizR 171 Posting Virtuoso

if multiple rows are selected you could on release on your destination just copy the items that are selected

LizR 171 Posting Virtuoso

Thanks Rapture :P

LizR 171 Posting Virtuoso

Thats a rather large area of suggestion - what areas of engineering are you interested in, what areas can you see anything you might feel would be worth writing an app for..

LizR 171 Posting Virtuoso

If you are truely at an end, write down the process on paper, of how you would do it by hand by yourself, write down why you did each thing at each stage and what exactly you did..

heres an example - deliberately not the problem you have:

Such as for a times table..

take a number "n"
1 x n = n
2 x n = n * 2
3 x n = n * 3 ..
12 x n - n * 12
done

Hmm I see a pattern when I do that.
I take a number, I increment it by 1, and multiple n by it.
what does that look like its a loop
so if I have a number from 1 to 12, I multiple it by the number I had..

for counter = 1 to 12
output counter x n = n*counter

Hmm, thats codable..

off you go.

now do the same with your problem

LizR 171 Posting Virtuoso

Your post is not going to get you answers, the reminder of what a factorial is should be more than plenty assistance in working out the code to do it. Ranting at people will not endear anyone to help you.

And yes, I do know the code you need, and its very very simple.

LizR 171 Posting Virtuoso

What error do you get when you add the query string - are you sure the web page isnt blocking it due to its manner of coding?

LizR 171 Posting Virtuoso

A factorial is a factorial, and Im not a "dude"

(i-j)! could be (10-5)! which is 5! which has a specific value and never changes and I explained to those who didnt know what a factorial was, how to do it.

At the same time its not uncommon to need to do something like i!-j! which would be 10! - 5! and then that also is a fixed value.

if you dont know what recursion means, please check this link

LizR 171 Posting Virtuoso

I see what you mean in someways, however, either way you end up with some kind of loop.

if you wanted to change your code so you dont do something like

if (textbox_from_1.Text == textbox_to_1)
if (textbox_from_2.Text == textbox_to_2)
if (textbox_from_3.Text == textbox_to_3)

etc, you would still end up with a loop
i guess you have tried the obvious of such as :

for (int i = 1; i<3; i++)
            {
                if (TextBox)Controls["textbox_from_"+if.ToString()].Text == (TextBox)Controls["textbox_to_"+if.ToString()].Text)
            }
LizR 171 Posting Virtuoso

Well, it depends a little on how you made those boxes, if they are premade on your form, then you'd know the names before you started.

if they are generated, you could make an array of textboxes, and just walk the array of text boxes..

LizR 171 Posting Virtuoso

I dont let anyone talk to me by MSN, its the work of the devil.

Anyway, while Im still not going to write your code for you, think how a factorial works. In fact, the answer is more simple than you think.

your teachers is getting you to use a specific type of coding, deliberately, and I guess I'll have to tell you the name of it, but, it kinda defeats the purpose of your home work..

You need to use a recursive function, eg, one that calls itself.

Im hoping you know what factorials are.
for those who come across this and dont (shame on you), a factorial is the result of taking a number "n" and multiplying it by all of the numbers below it.. eg 4! would be 4*3*2*1 (although theres no point of *1)

so, what you guys need to do is write a function that does that.

The most common way is a recursive function, although you dont *need* to, but, Id still argue you should.

Now you see if you can code it.. Theres 2 really obvious ways.

LizR 171 Posting Virtuoso

in a way all c# stuff is pointers as everything (including integers etc) are objects, but at the same time, you basically ignore that. So yes, it can be confusing from a c++ point of view.

LizR 171 Posting Virtuoso

In fact if you have a quick look through some of the other threads you'll find how others have approached it.

You'll need 2 forms usually, a connection to the db.

What code do you have so far?

LizR 171 Posting Virtuoso

Then you arent compiling in debug mode. Check the project properties (in case you hid the toolbar at the top)

LizR 171 Posting Virtuoso

Firstly if you did a correct selection from the db, it would return 1 line that matched or 0, it shouldnt do it for all users in the db.

Secondly, if you created a flag to equate to "found" or "not found" you could then deal with it at the end. So even if you did have multiple entries loops through for some odd reason, you would only display one message.

LizR 171 Posting Virtuoso

OK so when the location changes, clear and populate the floor combo with items that match.

LizR 171 Posting Virtuoso

Sure walk through all the components of a form checking to see if their of type textbox.

LizR 171 Posting Virtuoso

Possibly because the components arent initialized by that point, try it in the form load event.

LizR 171 Posting Virtuoso

Having person recognition by camera, is not likely to be overly simple. working in conjunction with the door swipes so that on failure/success it takes a picture, sure.. so then a human can compare the entrys and decide if the cards been cloned, or stolen etc.

LizR 171 Posting Virtuoso

its not clear whats not working, it most likely is working as the code you showed looked to be compilable, and the redraw would tell the component to redraw if it were resized..

LizR 171 Posting Virtuoso

Create a boolean variable, thats a "flag" as its yes or no.

LizR 171 Posting Virtuoso

OK, well. Research how to do the pascals triangle first. Thats fundemental that you need for your app.

LizR 171 Posting Virtuoso

Check you have debug mode compiled, and that your logic means those points are actually hittable.

LizR 171 Posting Virtuoso

ResizeRedraw does not resize anything, it just tells the control to redraw if its size is changed.

LizR 171 Posting Virtuoso

We'll help once you demonstrate you'ev done *something* other than just post for help, please give us your pseudo code and the start of what you have.

LizR 171 Posting Virtuoso

Dont do it that way, hide the parent form, and show the login form, if the log in fails, then close the parent, if not, show it.

LizR 171 Posting Virtuoso

If you dont enter any it doesnt find a record in the db so no it wont show a message (debugging would show you this as the records returned would be none)

set a flag at the top of the routine to false
if you get a valid login, set it true, if its still false when you get to the bottom then they didnt have a valid id

LizR 171 Posting Virtuoso

OK, so you give us what code you have and what the problem is we'll help you fix it - please read the stickies, we dont do your code for you

LizR 171 Posting Virtuoso

The second query though (unless theres other code elsewhere) just makes for every row in the first grid an identically named object (thus overwriting the previous) and so in the end, you just end up with the last item..

If you did it on changing of the record pointer it would already be linked..

LizR 171 Posting Virtuoso

The second query though (unless theres other code elsewhere) just makes for every row in the first grid an identically named object (thus overwriting the previous) and so in the end, you just end up with the last item..

LizR 171 Posting Virtuoso

Your code is kinda ilogical, as the result of that procedure is the a single ds containing the last shop codes data, but in doing so you could have transferred a lot of data which is already "lost" to the user.

What I think you are trying to do is when changing records in the first dataset repopulate the second, this isnt always the best way, at the same time you could arguably get most of the results in 1 hit using a join on the tables..

LizR 171 Posting Virtuoso

Does the DB exist in ms sql already, with tables etc? or, are you trying to make it on the fly?

LizR 171 Posting Virtuoso

As per : http://msdn.microsoft.com/en-gb/library/294000kk.aspx

You cant, you just make overloads.

LizR 171 Posting Virtuoso

You dont need to send I at all.