6 Posted Topics
Re: Can you post some of your code? that way I could try and help you | |
Re: Like previously said it depends what is in your arrayList. if it is multiple arrays in your list then you would want to do [code=c#] ArrayList ary = new ArrayList(); foreach (Array item in ary) { //do something here } [/code] In short, you want to do foreach WHATEVER instance … | |
Re: The two things I can see are that you have [code=c#] int chanan = Console.Read(); [/code] and I think it should be [code=c#] int chanan = Console.ReadLine(); [/code] you are also directly trying to convert the entered amount to an int and I would use int.parse(string) or better still use … | |
Re: This depends on the type but you would need something like [code] Decimal decTmp = 3.5m; Decimal decNewTmp = Decimal.Parse(decTmp, 0); [/code] with the 0 being the number of decimal places you would like to round to [QUOTE=sidd.;1051675]hi, how to round up a number. e.g. 3.4 to 3 and 3.5 … | |
Re: I think this is what you are looking to do? [code=c#] tabControl1.TabPages[0].Text = "the test of my tab"; [/code] It appears you are changing your tabcontrol property and not the tabPage of your tabcontrol. If you are accessing by c# code then use the above. You can also enter the … | |
Re: You have not said what inputName and inputPass are? if they are the textboxes directly then you must use .text [code] if (inputName.Text == whateverYourMatchingAgainst [/code] if it is not the textbox directly then you must qualify the string by saying [code] string inputName = TheTextbox.Text; [/code] [QUOTE=badx;1135404]hi can anyone … |
The End.