Click here to Skip to main content
14,359,781 members

.NET Framework

 
AnswerRe: (VS2008 - VB.Net - Compact Framework) DataSet.ReadXml metod fails Pin
Member 146492478-Nov-19 5:41
memberMember 146492478-Nov-19 5:41 
QuestionMessage Closed Pin
5-Nov-19 22:31
memberMember 146462345-Nov-19 22:31 
QuestionERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
S3TH_201920-Oct-19 1:22
memberS3TH_201920-Oct-19 1:22 
AnswerRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Eddy Vluggen20-Oct-19 3:29
mveEddy Vluggen20-Oct-19 3:29 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
S3TH_201920-Oct-19 11:21
memberS3TH_201920-Oct-19 11:21 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Eddy Vluggen20-Oct-19 11:28
mveEddy Vluggen20-Oct-19 11:28 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Dave Kreskowiak20-Oct-19 14:30
mveDave Kreskowiak20-Oct-19 14:30 
Question2D Arrays Pin
LilJokez_Gaming10-Oct-19 12:29
memberLilJokez_Gaming10-Oct-19 12:29 
Trying to display my code in times table format but keeps coming out in a straight line




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestLibary;

namespace ICA25
{
    class Program
    {
        static void Main(string[] args)
        {
            string sTitle;
            bool bExit = false;

            sTitle = ("ICA 25 - Times table");
            Console.WriteLine("{0,60}\n", sTitle);


            do
            {
                {
                    int[,] iFinal;
                    int iNum = GetValue("Please enter the size (4-20) of the times table: ", 4, 20);

                    Console.Write("Here is the times table for that size: \n");
                    iFinal = GenerateTT(iNum);
                    DisplayTT(iFinal);
                }
            }
            while ((YesNo("Would you like to do another? Y or N:") == "Y") && !bExit);
            bExit = true;
        }


        static public int GetValue(string s, int iMin, int iMax)
        {
            int iNum;
            Utilities.GetValue(out iNum, s, 4, 20);
            return iNum;
        }


        static public int[,] GenerateTT(int iValue)
        {
            int[,] iNum = new int[iValue, iValue];

            for (int iRow = 0; iRow < iNum.GetLength(0); iRow++)
            {
                for (int iCol = 0; iCol < iNum.GetLength(1); iCol++)
                {
                    iNum[iRow, iCol] = (iCol) * (iRow);
                }
            }
            return iNum;
        }

        static public void DisplayTT(int[,] iFinal)
            
        {
            for (int iRow = 0; iRow < iFinal.GetLength(0); iRow++)
            {
                {
                    for (int iCol = 0; iCol < iFinal.GetLength(1); iCol++)
                    {
                        Console.Write( iFinal[iRow, iCol]);
                        {
                            Console.WriteLine();
                        }
                    }
                }
            }
        }

        static public string YesNo(string sPrompt)
        {
            string stemp;

            do
            {
                Console.Write("{0}", sPrompt);
                stemp = Console.ReadLine().ToString().ToUpper();
                if (stemp == "N")
                {
                    Console.Write("Bye");
                    Console.ReadLine();

                }
                if (stemp != "Y" && stemp != "N")
                {
                    Console.Write("\nPlease answer Y or N.");
                }
            }
            while ((stemp != "Y") && (stemp != "N"));
            return stemp;
        }

    }
}

AnswerRe: 2D Arrays Pin
Dave Kreskowiak10-Oct-19 14:42
mveDave Kreskowiak10-Oct-19 14:42 
QuestiondotNET performance surprises Pin
Member 798912220-Sep-19 2:57
memberMember 798912220-Sep-19 2:57 
AnswerRe: dotNET performance surprises Pin
Gerry Schmitz20-Sep-19 6:45
mveGerry Schmitz20-Sep-19 6:45 
QuestionPowerShell - FileSystemWatcher with GUI issue Pin
Damian Bz10-Sep-19 23:48
memberDamian Bz10-Sep-19 23:48 
AnswerRe: PowerShell - FileSystemWatcher with GUI issue Pin
Gerry Schmitz11-Sep-19 17:26
mveGerry Schmitz11-Sep-19 17:26 
GeneralRe: PowerShell - FileSystemWatcher with GUI issue Pin
Damian Bz11-Sep-19 23:23
memberDamian Bz11-Sep-19 23:23 
AnswerRe: PowerShell - FileSystemWatcher with GUI issue Pin
shreya313-Oct-19 3:17
membershreya313-Oct-19 3:17 
QuestionForm appears hidden behind google maps in expanded mode. Pin
BibiStars6-Sep-19 5:11
memberBibiStars6-Sep-19 5:11 
AnswerRe: Form appears hidden behind google maps in expanded mode. Pin
lw@zi 6-Sep-19 5:44
professional lw@zi 6-Sep-19 5:44 
GeneralRe: Form appears hidden behind google maps in expanded mode. Pin
BibiStars7-Sep-19 4:28
memberBibiStars7-Sep-19 4:28 
GeneralRe: Form appears hidden behind google maps in expanded mode. Pin
Ryan Elias22-Oct-19 3:35
memberRyan Elias22-Oct-19 3:35 
Questionsqlconnection Pin
Nithya MCA25-Aug-19 6:10
memberNithya MCA25-Aug-19 6:10 
AnswerRe: sqlconnection Pin
Gerry Schmitz25-Aug-19 12:37
mveGerry Schmitz25-Aug-19 12:37 
QuestionOptimize Directory Parsing and TreeView Population Pin
Harley Burton13-Aug-19 4:16
memberHarley Burton13-Aug-19 4:16 
AnswerRe: Optimize Directory Parsing and TreeView Population Pin
Richard Deeming13-Aug-19 4:51
mveRichard Deeming13-Aug-19 4:51 
GeneralRe: Optimize Directory Parsing and TreeView Population Pin
Harley Burton13-Aug-19 11:41
memberHarley Burton13-Aug-19 11:41 
GeneralRe: Optimize Directory Parsing and TreeView Population Pin
Richard Deeming13-Aug-19 23:35
mveRichard Deeming13-Aug-19 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.