Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
AnswerMessage Closed Pin
12-Jul-16 7:50
Member 1228884012-Jul-16 7:50 
GeneralRe: What can be wrong with my code I can't Log In VS2015 Pin
Eddy Vluggen12-Jul-16 10:31
professionalEddy Vluggen12-Jul-16 10:31 
Questionlist subdirectories with specific names Pin
MrKBA10-Jul-16 22:49
MrKBA10-Jul-16 22:49 
AnswerRe: list subdirectories with specific names Pin
OriginalGriff10-Jul-16 23:14
mveOriginalGriff10-Jul-16 23:14 
PraiseRe: list subdirectories with specific names Pin
MrKBA10-Jul-16 23:19
MrKBA10-Jul-16 23:19 
GeneralRe: list subdirectories with specific names Pin
OriginalGriff10-Jul-16 23:24
mveOriginalGriff10-Jul-16 23:24 
AnswerRe: list subdirectories with specific names Pin
OriginalGriff10-Jul-16 23:24
mveOriginalGriff10-Jul-16 23:24 
QuestionThe name 'Beeper' does not exist in the current context Pin
Member 1224497210-Jul-16 20:03
Member 1224497210-Jul-16 20:03 
Hi, I am coding two .cs files into one dll but Visual Studio 2012 sends the following error message:

C#
The name 'Beeper' does not exist in the current context.


The first file codes like this:

C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace Hum
{
    public class Singer
    {
        public void Beeper(long frequency, int msDuration, long volume)
        {
            //Stream a tone of specified frequency...
        } 
    }
}


When I do the function call in the second .cs file:

C#
Singer cacophony = new Singer();
      int Duration = 300000;
      //Generate frequency for nw
            ThreadStart Wfrequency = new ThreadStart(Beeper(nw, Duration, 16383));
            Thread childThreadW = new Thread(Wfrequency);
            childThreadW.Start();
      //Generate frequency for nw


It gives the error.
I know I am missing something very basic.
Thanks for the help.
AnswerRe: The name 'Beeper' does not exist in the current context Pin
Kornfeld Eliyahu Peter10-Jul-16 20:31
professionalKornfeld Eliyahu Peter10-Jul-16 20:31 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Member 1224497210-Jul-16 20:53
Member 1224497210-Jul-16 20:53 
AnswerRe: The name 'Beeper' does not exist in the current context Pin
Kornfeld Eliyahu Peter10-Jul-16 20:58
professionalKornfeld Eliyahu Peter10-Jul-16 20:58 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Member 1224497210-Jul-16 22:05
Member 1224497210-Jul-16 22:05 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
F-ES Sitecore10-Jul-16 22:38
professionalF-ES Sitecore10-Jul-16 22:38 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Richard MacCutchan10-Jul-16 22:49
mveRichard MacCutchan10-Jul-16 22:49 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Member 1224497211-Jul-16 1:21
Member 1224497211-Jul-16 1:21 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Richard MacCutchan11-Jul-16 1:59
mveRichard MacCutchan11-Jul-16 1:59 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Member 1224497211-Jul-16 2:43
Member 1224497211-Jul-16 2:43 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Richard MacCutchan11-Jul-16 3:07
mveRichard MacCutchan11-Jul-16 3:07 
GeneralRe: The name 'Beeper' does not exist in the current context Pin
Member 1224497211-Jul-16 4:09
Member 1224497211-Jul-16 4:09 
QuestionHow to read .sol files using C# ? Pin
Member 1132696310-Jul-16 12:55
Member 1132696310-Jul-16 12:55 
AnswerRe: How to read .sol files using C# ? Pin
Dave Kreskowiak10-Jul-16 13:31
mveDave Kreskowiak10-Jul-16 13:31 
QuestionWinForm TreeView allows Nodes with identical Text and Name values: true of WPF and ASP.NET TreeViews ? Pin
BillWoodruff10-Jul-16 0:32
professionalBillWoodruff10-Jul-16 0:32 
AnswerRe: WinForm TreeView allows Nodes with identical Text and Name values: true of WPF and ASP.NET TreeViews ? Pin
Eddy Vluggen10-Jul-16 0:59
professionalEddy Vluggen10-Jul-16 0:59 
AnswerRe: WinForm TreeView allows Nodes with identical Text and Name values: true of WPF and ASP.NET TreeViews ? Pin
Mycroft Holmes10-Jul-16 2:48
professionalMycroft Holmes10-Jul-16 2:48 
QuestionSendMessage Pin
sunsher7-Jul-16 19:16
sunsher7-Jul-16 19: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.