Umm ye thanks, that fixed it for me. I moved ReadHeight and ReadWeight from the textbox to the Button click, makes sense I'm sorry if I've made myself sound stupid in this conversation but Ill take a look at the validation code you sent me as I understand how it would be more logical and...
Thank you jmcilhinney, this was all new to me ill go through the code and try to understand it so thanks for the comments and the explanations. It was very different from how I was thinking it could work. I have only done C++ coding in Arduino before. I'm sorry if my explanation was not...
I did some work on it and managed to get it to print correct values it was as you said I never did pull the values which I now have fixed but upon fixing that I now have another issue which I cant seam to fix, Since I'm using the TryParse method to only parse numbers and if not show a messagebox...
Edited: I'm sorry if anyone had enough time to read this before I edited it out working on a solution will update
If you did see this post before edit please disregard
Hi,
I have been trying for the past 6 days to get this BMI calculator working to my requirements but to no success. I am not even able to get a value out from it. I don't know where to start looking for the issue as I have been looking at this code for hours now and been looking at different...
Thank you Skydiver. I just have one question regarding line 5, I'm not quite sure I have 100% understood, I changed the code to be suited for my second part where I increase the weeks every 5 instead of the previous 3.
for (int i = 6; i <=52; i += 5)
{
var...
Thanks, it was never my intention to get anyone to do the work for me, I'm just having issues getting it in the format I want. I did try using Write instead of WriteLine but I'm not getting the results I want. I have been looking around and from what I can tell I need to add an integer for...
Thank you that did help me align the numbers corresponding to single-digit and double digits, I have however since your post been trying to get them sorted in an order of 4-week displays per line but I honestly can not get it to work. I find it very hard to find tutorials and or help regarding...
I edited my previous post but ill put it in again, its not much but ye this is it:
int weekNumber = 1;
while (weekNumber <= 52)
{
var weekString = String.Format("{0,10}{0,20}{0,30}{0,40}\n","Week "+ weekNumber)...
I think the code provided will suffice, the only issue I find now, is not really related to the same is but is more of a formatting issue. But I thought id ask since I have you on the post.
When I now Write my code to the console I get it displayed as following:
Week 1 Week 1 Week 1 Week 1 Week...
Hey guys, I have been looking around for a while now but I can't find anything to help me with my issue. I'm trying to create a list that has weeks of the year in it 1-52 weeks in 1 year and then display the weeks in a formated string. So that every 3 weeks are displayed (Week 1 Week 4 Week 7...
Hello! I'm new to programming in C# and I'm trying an exercise where I have to write a console application that loops until the enter key is pressed.
My issue is that I don't know how to do a "Do While" loop to keep looping until the Enter key has been pressed since I need to press enter key to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.