Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Argument 'picture' must be a picture that can be used as an Icon

Tags:

I am having trouble importing an icon into my application. I have a main form and I am trying to import to it a new icon via the Icon field in Properties.

The image is already in .ico format: this is the link to the icon I'm trying to use.

Does anyone know why Microsoft Visual Studio would be displaying this error?

Argument 'picture' must be a picture that can be used as an Icon

Any help would be great.

like image 552
Daniel Flannery Avatar asked Apr 26 '12 12:04

Daniel Flannery


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C language?

C is an imperative procedural language supporting structured programming, lexical variable scope, and recursion, with a static type system. It was designed to be compiled to provide low-level access to memory and language constructs that map efficiently to machine instructions, all with minimal runtime support.

What is C full form?

Full form of C is “COMPILE”. One thing which was missing in C language was further added to C++ that is 'the concept of CLASSES'.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.


1 Answers

I had this error recently. Some recommendations:

  • make sure the icon is square (16x16, 32x32)
  • try saving it to a PNG and using this free service for conversion : http://www.convertico.com/
like image 100
Wingman4l7 Avatar answered Sep 16 '22 18:09

Wingman4l7