127 Answered Questions for the topic C#
01/12/21
Type in textbox C#
Hi!I need help with a programming question. I am not sure how to put it into words but Ill try my best:I want to have a textbox with a text written in it in advance. Let's imagine this is how it...
more
C#
12/01/20
C# console application, interfaces
C# console application that simulates athletes using a strategy pattern.
C#
11/26/20
C# - How to test a Truth Table to verify if the row equates to "true" or "false" when ANDed together?
C# - How to test a Truth Table to verify if the row equates to "true" or "false" when ANDed together? //F F F F | F //F F F T | F //F F T F | F //F F T T | F ...
more
C# Programming
11/24/20
Rewrite code C#
Hi!I am trying to program my own Pac Man game. I have this code: foreach (Control x in this.Controls) { if (x is PictureBox) { if...
more
11/14/20
Using Method in If-statement
Hi!I would like to use an if-statement that will execute a code if a button is clicked, but I can't do the following: if (buttonplus_Click = true) { //code }Is...
more
10/30/20
Method code won't work for capitalization
Hi! I am doing a code for method that will capitalize every other word in an input, however my code below does not work and I can not find the reason. Can someone pls help? static string...
more
10/30/20
Why wont this code work?
static bool Palindrome (string input) { bool pal; string check = ""; for (int i = input.Length; i >= 0; i--) { check = check +...
more
10/30/20
C# method returning a bool
Hi!I am checking whether an input is a palindrome or not with the help of a method. However, I get error in the part of code bolded and underlined below:public static bool Check (string input){bool...
more
09/22/20
C# Display a pyramid
Hi!I have found this code in the internet: for (int i = 1; i< 10; i++) { for(int j= 1; j<= i; j++) { Console.Write(i); ...
more
09/08/20
Programming with C#
Hi, why does it become red in the following code?/* Console.Write("Write a number: ");int number = Convert.ToInt32(Console.ReadLine());if (number % 2 == 0 && (11 < number < 21 || 34...
more
08/02/20
URGENT: Problems with API in C# ASP.NET Core
I am doing an ASP.NET Core Website and have to show the list of all countries with their travel advisory scores in a table. I can't display the data using a Travel Advisory API. Each country is a...
more
08/02/20
URGENT! Can't show data using API with C# ASP.NET Core
I am using a Travel Advisory API but am unable to show all the data. Each country is a separate key and form different classes when I paste the JSON as classes.How can I call each country class...
more
03/20/20
Conditional Statements In C Programmin
Question 11.Given the following code:
switch(x - y) {
case 0:
return x;
case 4:
break;
case 7:
x = x - 1;
case 9:
return x*y;
case 3:
default:
return y - x;
...
more
03/20/20
Logical Operators in C programming
1.Question Is the following expression true or false?
-1 * -2 == 14 % 4
TrueFalse2.Question 2Is the following conditional statement true or false?
int x = 6;
-3 < 5 || !(x % 3 == 0)
TrueFalse
03/19/20
Printing Problem in C programming
1.Question For the following code:
int a = -1;
int b = a * 5;
printf("a is %d, and b is %d. ", a, b);
What is the output?2.Question
int x = -1;
int y = 3;
x= x + Y;
printf("x - y is %d. ", x -...
more
03/18/20
What does g(-2, 5) evaluate to?
What does g(-2, 5) evaluate to?
int g (int x, int y) {
x= x + y;
int z = 2 * x + y;
return z;
}
01/27/20
Microsoft Visual Studio - Unable to start program Win32 application - Error Message???
Hello,I cannot seem to check my html/css code in my web browser anymore. I keep getting the same error message even after I rebuild it in a new page. Do you have a tip on how to fix this?Error...
more
10/18/19
TypeScript saving a file to a server
I am altering an existing API that uses TypeScript. I need to have the API save a file to an external server. Is there a way to do this without having a Save File window show up in TypeScript? ...
more
09/28/19
C# Interactive GUI Form Help
Write a GUI program named EggsInteractiveGUI that allows a user to input the number of eggs produced in a month by each of five chickens. Sum the eggs, then display the total in dozens and eggs....
more
C#
08/04/19
Direction between 2 Latitude/Longitude points in C#?
I have 2 coordinates in Lat Long format.
How do I determine from Point A (eg New York 37.149472,-95.509544 ) the direction in degrees to point B (eg Toronto 40.714269,-74.005973)
I'm looking...
more
C#
08/04/19
Report Viewer limitation?
I have a ReportViewer(C#, asp.net 4.5).
My query returns over 700'000 rows of data but it takes forever for the report viewer to show(it does not show, I think report viewer rendering is...
more
C#
08/03/19
Finding the coordinates on the edge of a circle?
Using C#:
How do I get the (x, y) coordinates on the edge of a circle for any given degree, if I have the center coordinates and the radius?
There is probably SIN, TAN, COSIN and other grade ten...
more
C#
08/02/19
Best practice converting RDL to RDLC?
I'm looking to move from RDL to RDLC files, for my reports.
The reasons are:
- Perfomance (Reports are RDLC files perform better)
- Firewall issues (i need port 80 to be open to connect to the...
more
C#
08/01/19
Checked List Boxes in Microsoft Excel (C#)?
I am creating an add in for Microsoft Excel. In this program, I allow the user to make a deposit into a user-created budget. Accounts are divided by individual worksheets (one worksheet is an...
more
C#
07/31/19
How to sum two timespan fields in RDLC?
If I have two fields of type `System.TimeSpan` like this :
Fields!OverTimeBefore6.Value
Fields!OverTimeAfter6.Value
----------
How to sum these fields together in **RDLC** and the result in...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.