LizR 171 Posting Virtuoso

Ive not seen that, and with that screen shot its hard to tell as theres a red dot underneath.. the current line.

normally that only happens when its either finding a similar named dcu or cant overwrite the current one - make sure you turn optimizations off

AKJo commented: Spot on +1
LizR 171 Posting Virtuoso

Well done, you'll find further examples of random in the helpfile

LizR 171 Posting Virtuoso

As it wasnt set in coded blocks its harder to read, it also has a lot of commented code, so theres little to comment on.. other than your "console.write" lines dont actually "get" the value.. or display it.. they'll appear as random unwanted lines.

What did you want the comment on? Your english? Your code? are we to guess what you're doing with it?

LizR 171 Posting Virtuoso

Now you really are being stupid

the contents of "Filename" has to be what you wanted..

scru commented: rude -1
LizR 171 Posting Virtuoso

Validation is key

LizR 171 Posting Virtuoso

Change the filename.. or is there some hidden part to that question

LizR 171 Posting Virtuoso

f you need to putput it, and keep the names, put the names into an array you can output as a header line.

LizR 171 Posting Virtuoso

Your question makes little sense.

The date time functions have plenty of thigns to help you, you can use standard logic on a date time value..

Read first, ask second.

LizR 171 Posting Virtuoso

Your question isnt clear, but there are plenty of functions within the datetime range, have a look..

LizR 171 Posting Virtuoso

I guess your last post isnt enough .. you feel you need to ak the same question again?

LizR 171 Posting Virtuoso

Then have a look at the helpfile, it has a number of examples.

LizR 171 Posting Virtuoso

That functions for decimals, rather than to integers so.. theres 3 functions (which your helpfile would have mentioned linked to round)

round - rounds 2.454 to 2.54
floor - takes 2.45 to 2, and 2.8 to 2
ceiling - takes 2.45 to 3 and 2.8 to 3

round is the right one but you didnt look at all the options.. theres one which says what to do on a midpoint and beaware, 2.50 would be rounded to 2, where as 2.51 would be rounded to 3

LizR 171 Posting Virtuoso

Have an ask of google. Google knows the answers

LizR 171 Posting Virtuoso

If you have .net 3.5 you could read the values from excel into an array and use LINQ

LizR 171 Posting Virtuoso

If the methods you have dont allow you to send values to them, then you arguably cant.

In your code above, thats hopefully where your combo box data would go in, so you know how to retrieve it, try it, whats the worst that can happen.. it doesnt work :)

LizR 171 Posting Virtuoso

You can put it into a comma separated list (eg csv) which excel will read in, or you work with excel direct, the first is simple and there are numerous examples available.

LizR 171 Posting Virtuoso

First question: You can get the selected item from a combo box and use that to send to your procedure.. (which is I think what you asked)

Second..

hr Its just a return variable, it probably should be checked that the value is as expected.. but.. I havent read up on the SDK..

LizR 171 Posting Virtuoso

You dont show the code you're using so we're only guessing..

Your short cut looks like it should appear after your code above.. Whats the file bit for? something else?

LizR 171 Posting Virtuoso

I guess you havent understood what "" marks do and how to use any of the components..

If your textbox is called "BalanceTextBox" you get text out of it with BalanceTextBox.Text

You add that to the end of your string.. with a + mark.. and remove the rubbish you wrote in the value section

LizR 171 Posting Virtuoso

If thats all your code then what its told you is right, it looks like you tried to make a console app but maybe by mistake overwrote the Main procedure.

LizR 171 Posting Virtuoso

Then use a query to join the 2 tables you want.. and display the data

LizR 171 Posting Virtuoso

:)
its not so bad I promise - dont forget to mark things as solved

LizR 171 Posting Virtuoso

exactly what I suggested you'd done

the first time you click it, you then tell it on clicking it to do something else, so its not there the first time... but is the second..

LizR 171 Posting Virtuoso

Trace it all from the time you click the add, and watch the variables and components.. it will be there somewhere

LizR 171 Posting Virtuoso

Too much code is missing to comment

LizR 171 Posting Virtuoso

the state of a form wouldnt help with turning a text box to usable or not.

LizR 171 Posting Virtuoso

If you have 2 tables and want to link components to them, yes you would.

LizR 171 Posting Virtuoso

Change it to a text box, and then as part of the check, check that the contents of that box is in the valid usernames list.

LizR 171 Posting Virtuoso

And what have you found on google so far?

LizR 171 Posting Virtuoso

Then those values would normally default to false, eg unchecked if there was nothing else going on..

LizR 171 Posting Virtuoso

then check your character types before you let them submit.

LizR 171 Posting Virtuoso

Probably because you havent added the reference for System.Drawing

LizR 171 Posting Virtuoso

Do you know how to get the info out the text box?

LizR 171 Posting Virtuoso

Thats a key thing you really need to see for yourself, sure, I could do you some code, but the problem is someone cant be there to do that "oh" thought for you..

Draw it on paper.. see what you did, and write down in english what you did..

Its a simple thing (honest!) but you need to work out how you work it out, and its not something you can be taught to see.. You have to keep trying

Dont worry about the numbers to start with.. get some square paper (important to use it as it will represent character positions) and then do 2 lines, then a 3 lines.. and work out why you're doing what you're doing.. work out the pattern.. and then its that you need to turn into code.

LizR 171 Posting Virtuoso

Thats unusual, as to be checked it means it has a value other than 0, and by default the answer is 0 or false.

When you hit the plus button are you creating a class or just inserting a db record? Does it have any specical code?

Are the check boxes linked to the db directly?

LizR 171 Posting Virtuoso

What code do you have so far? What exact problem are you having?

LizR 171 Posting Virtuoso

So, change it so it adds the text box contents.

LizR 171 Posting Virtuoso

So, get yourself some squared graph paper, write the details in it.. see how you'd work out how to do it for yourself..

LizR 171 Posting Virtuoso

It seems theres no point, as you're blatently not looking or trying anything yourself.

LizR 171 Posting Virtuoso

Then add the code to append your data also. You have the code to append data already in the scripts you provided (bad idea including a valid email though) and so, whats your actual question, you look like you posted your own answer

LizR 171 Posting Virtuoso

Well, as you will have read in the stickies we certainly wont do it for you, and as you seemed to know what I told you (for which you could have saved time and effort for me and anyone else who might have replied otherwise) to say you knew that.. and asked a specific question..

Go look at some examples, come back with some code, and ask a specific question

LizR 171 Posting Virtuoso

Should be in the page properties.

LizR 171 Posting Virtuoso

You mean change it to landscape?

LizR 171 Posting Virtuoso

Take a look at http://msdn.microsoft.com/en-us/vcsharp/aa336766.aspx MS have provided a large number of tutorials on c# and xna

LizR 171 Posting Virtuoso

OK, so what problem are you having making it?

LizR 171 Posting Virtuoso

True, although icount doesnt get set to a value so that wouldnt work without either setting a value, or changing it as we've both said.. either way, hes gone awful quiet :)

LizR 171 Posting Virtuoso

String list has name and values....

LizR 171 Posting Virtuoso

Ok but where is that line of code? if its in the "onclick" that would explain it

LizR 171 Posting Virtuoso

c# is case sensitive

So, if you make a private variable called "myvar" at the top you then cant make a public "myvar" you could have a public "MyVar" though... and thats exactly what its told you

LizR 171 Posting Virtuoso

It would be easier not to to be honest, if you want the output, its simpler to be in control and not reliant on anything else..