Click here to Skip to main content
14,327,955 members
   

C#

 
QuestionValidating textbox value against an excel worksheet and append to datagridview Pin
Member 1457117728-Aug-19 4:51
memberMember 1457117728-Aug-19 4:51 
AnswerRe: Validating textbox value against an excel worksheet and append to datagridview Pin
ZurdoDev28-Aug-19 5:20
professionalZurdoDev28-Aug-19 5:20 
AnswerRe: Validating textbox value against an excel worksheet and append to datagridview Pin
OriginalGriff28-Aug-19 5:23
protectorOriginalGriff28-Aug-19 5:23 
GeneralRe: Validating textbox value against an excel worksheet and append to datagridview Pin
BillWoodruff28-Aug-19 18:49
mveBillWoodruff28-Aug-19 18:49 
AnswerRe: Validating textbox value against an excel worksheet and append to datagridview Pin
BillWoodruff28-Aug-19 18:46
mveBillWoodruff28-Aug-19 18:46 
GeneralRe: Validating textbox value against an excel worksheet and append to datagridview Pin
Member 1457117728-Aug-19 21:21
memberMember 1457117728-Aug-19 21:21 
GeneralRe: Validating textbox value against an excel worksheet and append to datagridview Pin
BillWoodruff28-Aug-19 22:57
mveBillWoodruff28-Aug-19 22:57 
QuestionRead Portion of text from Text File Pin
Member 1398003226-Aug-19 19:39
memberMember 1398003226-Aug-19 19:39 
I'm currently doing console application. How do I display S.1.1.004 into the console?

CREATE from S.1.1.001 to S.1.1.002 on Monday, 7th of May, 2019 07:20:44
CREATE from S.1.1.002 to S.1.1.003 on Tuessday, 23rd of March, 2018 10:01:22
CREATE from S.1.1.003 to S.1.1.004 on Wednesday, 4th of February, 2019 5:42:45


using System.Text;
using System.Text.RegularExpressions;
using System.IO;


namespace ReadFromFile
{
    class Program
    {
        static void Main(string[] args)
        {

            TextReader st = new StreamReader("C://test.txt");          
            int NumOfLines = 3;           
            string[] ListLines = new string[NumOfLines];            
            for (int i = 0; i < NumOfLines; i++)
            {
                ListLines[i] = st.ReadLine();
            }      
            Console.WriteLine(ListLines[2]);
            Console.ReadLine();           
            st.Close();
        }

    }
}

AnswerRe: Read Portion of text from Text File Pin
OriginalGriff26-Aug-19 20:27
protectorOriginalGriff26-Aug-19 20:27 
GeneralRe: Read Portion of text from Text File Pin
Member 1398003226-Aug-19 20:41
memberMember 1398003226-Aug-19 20:41 
GeneralRe: Read Portion of text from Text File Pin
phil.o26-Aug-19 21:07
mvephil.o26-Aug-19 21:07 
GeneralRe: Read Portion of text from Text File Pin
Member 1398003226-Aug-19 21:31
memberMember 1398003226-Aug-19 21:31 
GeneralRe: Read Portion of text from Text File Pin
phil.o26-Aug-19 21:39
mvephil.o26-Aug-19 21:39 
GeneralRe: Read Portion of text from Text File Pin
Member 1398003226-Aug-19 21:41
memberMember 1398003226-Aug-19 21:41 
GeneralRe: Read Portion of text from Text File Pin
OriginalGriff26-Aug-19 21:21
protectorOriginalGriff26-Aug-19 21:21 
GeneralRe: Read Portion of text from Text File Pin
Member 1398003226-Aug-19 21:37
memberMember 1398003226-Aug-19 21:37 
GeneralRe: Read Portion of text from Text File Pin
OriginalGriff26-Aug-19 21:48
protectorOriginalGriff26-Aug-19 21:48 
AnswerRe: Read Portion of text from Text File Pin
Gerry Schmitz27-Aug-19 5:24
mveGerry Schmitz27-Aug-19 5:24 
SuggestionRe: Read Portion of text from Text File Pin
Richard Deeming27-Aug-19 5:42
mveRichard Deeming27-Aug-19 5:42 
QuestionC# WPF Snip code for Login on AD Azure Problem to find the right code Pin
jan Meeling25-Aug-19 21:56
memberjan Meeling25-Aug-19 21:56 
AnswerRe: C# WPF Seeds code for Login on AD Azure Pin
phil.o25-Aug-19 22:12
mvephil.o25-Aug-19 22:12 
GeneralRe: C# WPF Seeds code for Login on AD Azure Pin
#realJSOP26-Aug-19 0:48
mve#realJSOP26-Aug-19 0:48 
GeneralRe: C# WPF Seeds code for Login on AD Azure Pin
phil.o26-Aug-19 0:55
mvephil.o26-Aug-19 0:55 
GeneralRe: C# WPF Seeds code for Login on AD Azure Pin
jan Meeling26-Aug-19 20:47
memberjan Meeling26-Aug-19 20:47 
AnswerRe: C# WPF Seeds code for Login on AD Azure Pin
OriginalGriff25-Aug-19 22:16
protectorOriginalGriff25-Aug-19 22:16 

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.