Click here to Skip to main content
12,820,108 members (23,263 online)
   

C#

 
QuestionError 19 'LogManager' is an ambiguous reference between Pin
classy_dog13-Nov-12 17:09
memberclassy_dog13-Nov-12 17:09 
AnswerRe: Error 19 'LogManager' is an ambiguous reference between Pin
Dave Kreskowiak13-Nov-12 19:38
mvpDave Kreskowiak13-Nov-12 19:38 
QuestionC# use connection string in app.config Pin
rachel_m13-Nov-12 12:46
memberrachel_m13-Nov-12 12:46 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson13-Nov-12 12:55
memberClifford Nelson13-Nov-12 12:55 
GeneralRe: C# use connection string in app.config Pin
rachel_m13-Nov-12 18:45
memberrachel_m13-Nov-12 18:45 
GeneralRe: C# use connection string in app.config Pin
Pete O'Hanlon13-Nov-12 20:39
protectorPete O'Hanlon13-Nov-12 20:39 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson14-Nov-12 6:08
memberClifford Nelson14-Nov-12 6:08 
AnswerRe: C# use connection string in app.config Pin
n.podbielski13-Nov-12 21:24
membern.podbielski13-Nov-12 21:24 
QuestionC# GoF Design pattern usage Pin
Gohan_Coder13-Nov-12 9:15
memberGohan_Coder13-Nov-12 9:15 
AnswerCross posted from the lounge and Q and A. Pin
Pete O'Hanlon13-Nov-12 10:13
protectorPete O'Hanlon13-Nov-12 10:13 
AnswerRe: C# GoF Design pattern usage Pin
Eddy Vluggen13-Nov-12 12:32
memberEddy Vluggen13-Nov-12 12:32 
AnswerRe: C# GoF Design pattern usage Pin
Abhinav S13-Nov-12 22:15
mvpAbhinav S13-Nov-12 22:15 
AnswerRe: C# GoF Design pattern usage Pin
Pete O'Hanlon13-Nov-12 23:28
protectorPete O'Hanlon13-Nov-12 23:28 
QuestionMethod, Class, Object Reference Pin
C-P-User-312-Nov-12 11:31
memberC-P-User-312-Nov-12 11:31 
Why does my attempt to use a method called "Start_Data_Command_04" in this file produce the stated error ? (I'll list the error immediately after the code)

File Name: Form1.cs
namespace George_Washington
{
    public partial class Form1 : Form
    {
    ///Lots of other stuff
    ///
     ///


        /* *************************************************************************** *
         *  This button Will Start The Data Flood                                      *
         * *************************************************************************** */

        void Button4_Start_Data_Click(object sender, EventArgs e)
        {
            The_User_Clicked_A_Button_Called.Start_Data_Command_04(); ////Error Is here

        }
    }
}

Quote:
Error 2 An object reference is required for the non-static field, method, or property 'SerialPortPractice_03.The_User_Clicked_A_Button_Called.Start_Data_Command_04()'

The method named "Start_Data_Command_04" is located in this file, and produces an error (no clue if they are related) of its own...

File name: The_User_Clicked_A_Button_Called.cs
namespace George_Washington
{
    public class The_User_Clicked_A_Button_Called
    {
        internal void Start_Data_Command_04()
        {
            UART.send_command 
                (////The Error Is Flagged right here
                Protocol_Packets_01.BARN_Command_04_Start_Data_Flood,
                0,
                Protocol_Packets_01.BARN_Command_04_Start_Data_Flood.Length
                )
                ;
        }
    }
}


Quote:
Error 1 An object reference is required for the non-static field, method, or property 'SerialPortPractice_03.UART.send_command(byte[], int, int)'


No matter what word I put in front of the method; e.g., internal, private, public, static, whatever; I still get an error.


The actual method in question is here
File Name: UART.cs
namespace George_Washington
{
    class UART
    {
    
        public void send_command(byte[] The_Byte_Array, int Starting_Place, int Length)
        {
            The_Serial_Port_We_Are_Testing.Write(
                                                 The_Byte_Array, 
                                                 Starting_Place, 
                                                 Length
                                                 )
                                                 ;
        }

    
    }

}

AnswerRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 11:49
protectorPete O'Hanlon12-Nov-12 11:49 
GeneralRe: Method, Class, Object Reference Pin
C-P-User-312-Nov-12 14:19
memberC-P-User-312-Nov-12 14:19 
GeneralRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 21:15
protectorPete O'Hanlon12-Nov-12 21:15 
GeneralRe: Method, Class, Object Reference Pin
J4amieC12-Nov-12 22:36
memberJ4amieC12-Nov-12 22:36 
GeneralRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 23:11
protectorPete O'Hanlon12-Nov-12 23:11 
GeneralRe: Method, Class, Object Reference Pin
Simon_Whale12-Nov-12 23:06
memberSimon_Whale12-Nov-12 23:06 
GeneralRe: Method, Class, Object Reference Pin
Marcus Kramer13-Nov-12 4:49
memberMarcus Kramer13-Nov-12 4:49 
GeneralRe: Method, Class, Object Reference Pin
C-P-User-313-Nov-12 9:06
memberC-P-User-313-Nov-12 9:06 
QuestionAdd a Menu Item to the operating system contextmenu Pin
benzarabel12-Nov-12 10:48
memberbenzarabel12-Nov-12 10:48 
AnswerRe: Add a Menu Item to the operating system contextmenu Pin
Eddy Vluggen12-Nov-12 11:44
memberEddy Vluggen12-Nov-12 11:44 
GeneralRe: Add a Menu Item to the operating system contextmenu Pin
benzarabel12-Nov-12 11:51
memberbenzarabel12-Nov-12 11:51 
GeneralRe: Add a Menu Item to the operating system contextmenu Pin
Eddy Vluggen12-Nov-12 12:18
memberEddy Vluggen12-Nov-12 12:18 
QuestionTips for a new C# designer... Pin
Maurice Lantier12-Nov-12 10:28
memberMaurice Lantier12-Nov-12 10:28 
AnswerRe: Tips for a new C# designer... Pin
Eddy Vluggen12-Nov-12 11:40
memberEddy Vluggen12-Nov-12 11:40 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier12-Nov-12 11:54
memberMaurice Lantier12-Nov-12 11:54 
GeneralRe: Tips for a new C# designer... Pin
Eddy Vluggen12-Nov-12 12:18
memberEddy Vluggen12-Nov-12 12:18 
AnswerRe: Tips for a new C# designer... Pin
BobJanova12-Nov-12 23:23
memberBobJanova12-Nov-12 23:23 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier14-Nov-12 11:19
memberMaurice Lantier14-Nov-12 11:19 
AnswerRe: Tips for a new C# designer... Pin
S Godrich13-Nov-12 0:48
memberS Godrich13-Nov-12 0:48 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier14-Nov-12 11:15
memberMaurice Lantier14-Nov-12 11:15 
Questionwindows form design Pin
Rajeevhyd12-Nov-12 8:09
memberRajeevhyd12-Nov-12 8:09 
AnswerRe: windows form design Pin
Eddy Vluggen12-Nov-12 11:34
memberEddy Vluggen12-Nov-12 11:34 
GeneralNamed Pipes app lifetime pipe. Pin
Nemo196612-Nov-12 7:51
memberNemo196612-Nov-12 7:51 
GeneralRe: Named Pipes app lifetime pipe. Pin
Dave Kreskowiak12-Nov-12 8:23
mvpDave Kreskowiak12-Nov-12 8:23 
GeneralRe: Named Pipes app lifetime pipe. Pin
Nemo196612-Nov-12 10:10
memberNemo196612-Nov-12 10:10 
GeneralRe: Named Pipes app lifetime pipe. Pin
Dave Kreskowiak12-Nov-12 11:00
mvpDave Kreskowiak12-Nov-12 11:00 
GeneralRe: Named Pipes app lifetime pipe. Pin
Nemo196613-Nov-12 11:07
memberNemo196613-Nov-12 11:07 
GeneralRe: Named Pipes app lifetime pipe. Pin
Dave Kreskowiak13-Nov-12 12:30
mvpDave Kreskowiak13-Nov-12 12:30 
QuestionSiemens USB PPI Cable - Visual C# connection? Pin
Mir_As12-Nov-12 3:31
memberMir_As12-Nov-12 3:31 
AnswerRe: Siemens USB PPI Cable - Visual C# connection? Pin
Dave Kreskowiak12-Nov-12 5:34
mvpDave Kreskowiak12-Nov-12 5:34 
GeneralRe: Siemens USB PPI Cable - Visual C# connection? Pin
Mir_As12-Nov-12 5:52
memberMir_As12-Nov-12 5:52 
QuestionWindows Forms Pin
Member 955055812-Nov-12 1:32
memberMember 955055812-Nov-12 1:32 
AnswerRe: Windows Forms Pin
Simon_Whale12-Nov-12 1:42
memberSimon_Whale12-Nov-12 1:42 
AnswerRe: Windows Forms Pin
Simon_Whale12-Nov-12 3:52
memberSimon_Whale12-Nov-12 3:52 
GeneralRe: Windows Forms Pin
Pete O'Hanlon12-Nov-12 4:03
protectorPete O'Hanlon12-Nov-12 4:03 
GeneralRe: Windows Forms Pin
Member 955055812-Nov-12 8:00
memberMember 955055812-Nov-12 8:00 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 25 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid