Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Topias Jappila

@Topias Jappila
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error 1 The type or namespace name 'Form1'
    T Topias Jappila

    Well only .cs I have on my project is Form1.cs and that makes me wondering why it says something about Program.cs

    C# csharp help database visual-studio com

  • Error 1 The type or namespace name 'Form1'
    T Topias Jappila

    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

    C# csharp help database visual-studio com

  • Error 1 The type or namespace name 'Form1'
    T Topias Jappila

    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#:

    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:

    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

    C# csharp help database visual-studio com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups