Click here to Skip to main content
15,904,653 members
Home / Discussions / C#
   

C#

 
GeneralRe: Entity Frame work Pin
Dave Kreskowiak14-May-13 3:50
mveDave Kreskowiak14-May-13 3:50 
GeneralRe: Entity Frame work Pin
Pete O'Hanlon14-May-13 3:53
mvePete O'Hanlon14-May-13 3:53 
JokeRe: Entity Frame work Pin
Richard Deeming14-May-13 3:59
mveRichard Deeming14-May-13 3:59 
GeneralRe: Entity Frame work Pin
Pete O'Hanlon14-May-13 4:01
mvePete O'Hanlon14-May-13 4:01 
GeneralRe: Entity Frame work Pin
Dave Kreskowiak14-May-13 3:59
mveDave Kreskowiak14-May-13 3:59 
GeneralRe: Entity Frame work Pin
TnTinMn14-May-13 11:12
TnTinMn14-May-13 11:12 
GeneralRe: Entity Frame work Pin
AspDotNetDev14-May-13 11:16
protectorAspDotNetDev14-May-13 11:16 
AnswerRe: Entity Frame work Pin
Dave Kreskowiak14-May-13 3:46
mveDave Kreskowiak14-May-13 3:46 
QuestionHow would you clear a tcp buffer or detect if there is data there ? Pin
Member 986287213-May-13 21:40
Member 986287213-May-13 21:40 
AnswerRe: How would you clear a tcp buffer or detect if there is data there ? Pin
SoMad13-May-13 22:43
professionalSoMad13-May-13 22:43 
GeneralRe: How would you clear a tcp buffer or detect if there is data there ? Pin
Member 986287215-May-13 4:30
Member 986287215-May-13 4:30 
AnswerRe: How would you clear a tcp buffer or detect if there is data there ? Pin
Richard MacCutchan13-May-13 22:45
mveRichard MacCutchan13-May-13 22:45 
AnswerRe: How would you clear a tcp buffer or detect if there is data there ? Pin
jschell14-May-13 9:28
jschell14-May-13 9:28 
Questionruntime error Pin
n.nili13-May-13 19:04
n.nili13-May-13 19:04 
AnswerRe: runtime error Pin
Pete O'Hanlon13-May-13 21:22
mvePete O'Hanlon13-May-13 21:22 
AnswerRe: runtime error Pin
dusty_dex13-May-13 22:20
dusty_dex13-May-13 22:20 
Questionstring concatenation with all possibilities Pin
sethupathiram13-May-13 3:19
sethupathiram13-May-13 3:19 
AnswerRe: string concatenation with all possibilities Pin
Pete O'Hanlon13-May-13 3:30
mvePete O'Hanlon13-May-13 3:30 
AnswerRe: string concatenation with all possibilities Pin
Simon_Whale13-May-13 3:38
Simon_Whale13-May-13 3:38 
AnswerRe: string concatenation with all possibilities Pin
PIEBALDconsult13-May-13 4:33
mvePIEBALDconsult13-May-13 4:33 
AnswerRe: string concatenation with all possibilities Pin
Richard Deeming13-May-13 5:06
mveRichard Deeming13-May-13 5:06 
AnswerRe: string concatenation with all possibilities Pin
Anna King14-May-13 2:56
professionalAnna King14-May-13 2:56 
QuestionError 1 The type or namespace name 'Form1' Pin
Topias Jäppilä13-May-13 2:06
Topias Jäppilä13-May-13 2:06 
I am getting error
Error 1 The type or namespace name 'Form1' could not be found (are you missing a using directive or an assembly reference?)
on the subject while trying to build this with Visual C#:
C#
using System;
using System.Windows.Forms;
using SKYPE4COMLib; // Our COM library

namespace SkypeBing
{
    public partial class Form1 : Form
    {
        private Skype skype;
        private const string trigger = "!"; // Say !help
        private const string nick = "BOT";
 
        public Form1()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            skype = new Skype();
            // Use skype protocol version 7 
            skype.Attach(7, false);
            // Listen 
            skype.MessageStatus +=
              new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus);
        }
        private void skype_MessageStatus(ChatMessage msg,
                     TChatMessageStatus status)
        {
 
                // Remove trigger string and make lower case
                string command = msg.Body.Remove(0, trigger.Length).ToLower();
 
                // Send processed message back to skype chat window
                skype.SendMessage(msg.Sender.Handle, nick +
                      " Says: " + ProcessCommand(command));
            
        }
 
        private string ProcessCommand(string str)
        {
            string result;
            switch (str)
            {
                case "uli":
                    result = "http://www.youtube.com/watch?v=VfvBQMqCZw8";
                    break;
 
                default:
                    result = "Uliuli";
                    break;
            }
 
            return result;
        }
    }
}


Whole error:
VB
Error   1   The type or namespace name 'Form1' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Topsu\Documents\Visual Studio 2012\Projects\Skaip\Skaip\Program.cs 19  33  Skaip


That is the whole error.

Line 99 Column 33

modified 13-May-13 10:45am.

QuestionRe: Error 1 The type or namespace name 'Form1' Pin
Richard MacCutchan13-May-13 2:39
mveRichard MacCutchan13-May-13 2:39 
AnswerRe: Error 1 The type or namespace name 'Form1' Pin
Topias Jäppilä13-May-13 4:44
Topias Jäppilä13-May-13 4:44 

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.