Click here to Skip to main content
14,607,026 members

.NET (Core and Framework)

 
GeneralRe: (VS2008 - VB.Net - Compact Framework) DataSet.ReadXml metod fails Pin
Eddy Vluggen7-Nov-19 21:30
professionalEddy Vluggen7-Nov-19 21:30 
AnswerRe: (VS2008 - VB.Net - Compact Framework) DataSet.ReadXml metod fails Pin
Member 146492478-Nov-19 4:41
MemberMember 146492478-Nov-19 4:41 
QuestionERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
S3TH_201920-Oct-19 0:22
MemberS3TH_201920-Oct-19 0:22 
AnswerRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Eddy Vluggen20-Oct-19 2:29
professionalEddy Vluggen20-Oct-19 2:29 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
S3TH_201920-Oct-19 10:21
MemberS3TH_201920-Oct-19 10:21 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Eddy Vluggen20-Oct-19 10:28
professionalEddy Vluggen20-Oct-19 10:28 
GeneralRe: ERROR IN .NET FRAMEWORK - in Windows 10 - how to solve this? Pin
Dave Kreskowiak20-Oct-19 13:30
mveDave Kreskowiak20-Oct-19 13:30 
Question2D Arrays Pin
LilJokez_Gaming10-Oct-19 11:29
MemberLilJokez_Gaming10-Oct-19 11: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 13:42
mveDave Kreskowiak10-Oct-19 13:42 
QuestiondotNET performance surprises Pin
Member 798912220-Sep-19 1:57
MemberMember 798912220-Sep-19 1:57 
AnswerRe: dotNET performance surprises Pin
Gerry Schmitz20-Sep-19 5:45
mveGerry Schmitz20-Sep-19 5:45 
QuestionPowerShell - FileSystemWatcher with GUI issue Pin
Damian Bz10-Sep-19 22:48
MemberDamian Bz10-Sep-19 22:48 
AnswerRe: PowerShell - FileSystemWatcher with GUI issue Pin
Gerry Schmitz11-Sep-19 16:26
mveGerry Schmitz11-Sep-19 16:26 
GeneralRe: PowerShell - FileSystemWatcher with GUI issue Pin
Damian Bz11-Sep-19 22:23
MemberDamian Bz11-Sep-19 22:23 
AnswerRe: PowerShell - FileSystemWatcher with GUI issue Pin
shreya313-Oct-19 2:17
Membershreya313-Oct-19 2:17 
QuestionForm appears hidden behind google maps in expanded mode. Pin
BibiStars6-Sep-19 4:11
MemberBibiStars6-Sep-19 4:11 
AnswerRe: Form appears hidden behind google maps in expanded mode. Pin
lw@zi 6-Sep-19 4:44
professional lw@zi 6-Sep-19 4:44 
GeneralRe: Form appears hidden behind google maps in expanded mode. Pin
BibiStars7-Sep-19 3:28
MemberBibiStars7-Sep-19 3:28 
GeneralRe: Form appears hidden behind google maps in expanded mode. Pin
Ryan Elias22-Oct-19 2:35
MemberRyan Elias22-Oct-19 2:35 
Questionsqlconnection Pin
Nithya MCA25-Aug-19 5:10
MemberNithya MCA25-Aug-19 5:10 
AnswerRe: sqlconnection Pin
Gerry Schmitz25-Aug-19 11:37
mveGerry Schmitz25-Aug-19 11:37 
QuestionOptimize Directory Parsing and TreeView Population Pin
Harley Burton13-Aug-19 3:16
MemberHarley Burton13-Aug-19 3:16 
AnswerRe: Optimize Directory Parsing and TreeView Population Pin
Richard Deeming13-Aug-19 3:51
mveRichard Deeming13-Aug-19 3:51 
GeneralRe: Optimize Directory Parsing and TreeView Population Pin
Harley Burton13-Aug-19 10:41
MemberHarley Burton13-Aug-19 10:41 
GeneralRe: Optimize Directory Parsing and TreeView Population Pin
Richard Deeming13-Aug-19 22:35
mveRichard Deeming13-Aug-19 22: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.