5

I was trying to use a third-party component developed in C# in a VB.NET project. When I tried to add the component to the toolbox the components were always greyed out - disabled. After much searching on this problem (example, one of many: Visual Studio 2010 toolbox controls disabled or inactive) I found that the components were probably not enabled because they were created for a different sort of project. The usual example given is "web application" vs. "windows application".

I looked at the demo project that came with the components and the demo project output type is "Windows Application". The VB.NET project I'm trying to build using the component is a "Windows Forms Application". Since this is VS Express, these are the only Windows application types available in the two projects.

My question is, what is the difference between these two output types? Both output types are <OutputType>WinExe</OutputType> in the project file. Can I rebuild the components to work in a "Windows Forms Application" and if so, how?

Community
  • 1
  • 1
GeezerGeek
  • 241
  • 2
  • 3
  • 9
  • 1
    There's no project type called "Windows Application" under `File -> New Project`. Are you referring to WPF Application? And what are those components? – Federico Berasategui Oct 29 '13 at 20:47
  • 1
    I think "Windows Application" is just a category of project types, which could include WinForms, WPF, console, etc. – gunr2171 Oct 29 '13 at 20:48
  • Are you able to manually create the component (ie by adding a new component() somewhere in your code)? If this does not work you shoule first fix the project references. – PMF Oct 29 '13 at 21:05
  • The components are these: . The project is the example project here: . The two project output types are taken right from the project property pages - I'm looking right at them. – GeezerGeek Oct 29 '13 at 21:07
  • 1
    @geezergeek both links are broken S: – Federico Berasategui Oct 29 '13 at 21:07
  • 1
    @geezergeek Graphit home page clearly states it is a WPF component. You will NOT be able to use it in a winforms project, unless you host it in an `ElementHost`. – Federico Berasategui Oct 29 '13 at 21:08

4 Answers4

2

Look here

In the case of "Microsoft Windows", windows programs are software applications that are run on a computer that is also running Microsoft Windows as an operating system. A software application, or program, is a set of logical conditions grouped together to perform some function. Typically a Microsoft Windows application will be run within a "window" although that is not a requirement. A "window" in the context of software is an area of the screen set aside to run a single program and may or may not have options for controlling the position and size of the program area. Some examples of Microsoft Windows applications are:

  • Microsoft Excel
  • Microsoft Internet Explorer
  • Notepad
  • Mozilla Firefox

and here another post

Windows *Forms* (WinForms) is the name given to the graphical application programming interface (API) included as a part of Microsoft .NET Framework, providing access to native Microsoft Windows interface elements by wrapping the extant Windows API in managed code. While it is seen as a replacement for the earlier and more complex C++ based Microsoft Foundation Class Library, it does not offer a paradigm comparable to Model–View–Controller. Some after-market and third party libraries have been created to provide this functionality. The most widely used of these is the User Interface Process Application Block, which is released by the Microsoft patterns & practices group as a free download that includes the source code for quick start examples.

also Windows Application include and WPF application (WPF - Windows Presentation Foundation) and Windows Form Application

WPF - look here

Hope this information wiil be helpfull for you

hbk
  • 10,908
  • 11
  • 91
  • 124
1

Console application

Console applications are light weight programs run inside the command prompt (DOS) window. They are commonly used for test applications.

Console-based applications include Alpine (an e-mail client), cmus (an audio player), Irssi (an IRC client), Lynx (a web browser), Midnight Commander (a file manager), Music on Console (an audio player), Mutt (an e-mail client), nano (a text editor), ne (a text editor), newsbeuter (an RSS reader), and ranger (a file manager).

Windows Application Windows Applications are form based standard Windows desktop applications for common day to day tasks. Microsoft word is an example of a Windows application.

0

Console Applications don't have user interfaces and are run in the Command Prompt. Windows Forms applications do have user interfaces.

That's probably the biggest difference.

A Windows form application is an application that has a graphical user interface(GUI) like the Visual C# IDE. A console program on the other hand is a text application. There are not fancy controls like buttons or textboxes in a console application and they are run from the command prompt.

Monika
  • 2,172
  • 15
  • 24
0

From the clue given by @HighCore I am going to assume that the "Windows Application" is a WPF application, and that the "Windows Forms Application" is a WinForms application and the two are not compatible. If someone could supply a more complete answer than this it would be great.

GeezerGeek
  • 241
  • 2
  • 3
  • 9