Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Error 1 The type or namespace name 'Form1' Pin
Richard MacCutchan13-May-13 5:02
mveRichard MacCutchan13-May-13 5:02 
GeneralRe: Error 1 The type or namespace name 'Form1' Pin
Topias Jäppilä13-May-13 5:08
Topias Jäppilä13-May-13 5:08 
GeneralRe: Error 1 The type or namespace name 'Form1' Pin
Richard MacCutchan13-May-13 5:18
mveRichard MacCutchan13-May-13 5:18 
AnswerRe: Error 1 The type or namespace name 'Form1' Pin
Simon_Whale13-May-13 4:51
Simon_Whale13-May-13 4:51 
AnswerRe: Error 1 The type or namespace name 'Form1' Pin
Anna King14-May-13 3:14
professionalAnna King14-May-13 3:14 
QuestionRegarding Display data. Pin
nagesh2112-May-13 23:49
nagesh2112-May-13 23:49 
AnswerRe: Regarding Display data. Pin
Richard MacCutchan13-May-13 0:05
mveRichard MacCutchan13-May-13 0:05 
GeneralRe: Regarding Display data. Pin
nagesh2113-May-13 0:37
nagesh2113-May-13 0:37 
GeneralRe: Regarding Display data. Pin
Richard MacCutchan13-May-13 0:40
mveRichard MacCutchan13-May-13 0:40 
GeneralRe: Regarding Display data. Pin
nagesh2113-May-13 0:44
nagesh2113-May-13 0:44 
GeneralRe: Regarding Display data. Pin
Pete O'Hanlon13-May-13 1:33
mvePete O'Hanlon13-May-13 1:33 
AnswerRe: Regarding Display data. Pin
Abhinav S13-May-13 19:53
Abhinav S13-May-13 19:53 
SuggestionReview: CLR via C# Book Pin
Mohammed Hameed12-May-13 23:19
professionalMohammed Hameed12-May-13 23:19 
GeneralRe: Review: CLR via C# Book Pin
Richard MacCutchan13-May-13 0:03
mveRichard MacCutchan13-May-13 0:03 
GeneralRe: Review: CLR via C# Book Pin
Mohammed Hameed13-May-13 20:03
professionalMohammed Hameed13-May-13 20:03 

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.