Hello,
What is the difference between GTK# and windows forms? Are they totally different?
Thanks
Hello,
What is the difference between GTK# and windows forms? Are they totally different?
Thanks
In short: Yes
Both are GUI-Tookits, but WinForms (as the Name says) was mainly developed for windows. GTK has been developed for Gimp and is an approach for a multi os gui toolkit .
If your application only runs on windows, in most cases you should use WinForms.
If your application will run under different OS' (like linux, bsd, windows, macos,... ) you'll prefer GTK.
For a better explanation look here.
They are different graphical toolkits for creting windowed applications, with different origins.
GTK# is a binding for the GTK library, primarily intended for linux/unix. It also works on windows, but it's not the native environment for which it was designed.
Winforms is another toolkit, this one coming from microsoft.
They are totally different APIs for achieving the same results, but each better suited for a platform.
If you are looking for multiplatform windowing in .net, Qt may be an option now that it got LGPLed.
They are both GUI toolkits, each having their strength and weaknesses. From my experience:
In short, I would not recommend using Winforms (except when there is a strong reason not to have more dependencies than .NET FW), but using Gtk# or WPF.
Gtk#:
GTK# is a .NET binding for the Gtk+ toolkit. The toolkit is written in C for speed and compatibility, while the GTK# binding provides an easy to use, object oriented API for managed use. It is in active development by the Mono project, and there are various real-world applications available that use it (Banshee , F-Spot, Beagle, MonoDevelop).
In general, GTK# applications are written using MonoDevelop, which provides a visual designer for creating GTK# GUIs.
Platforms: Unix, Windows, OSX
Pros:
Cons:
Windows.Forms is a binding developed by Microsoft to the Win32 toolkit. As a popular toolkit used by millions of Windows developers (especially for internal enterprise applications), the Mono project decided to produce a compatible implementation (Winforms) to allow these developers to easily port their applications to run on Linux and other Mono platforms.
Whereas the .Net implementation is a binding to the Win32 toolkit, the Mono implementation is written in C# to allow it to work on multiple platforms. Most of the Windows.Forms API will work on Mono, however some applications (and especially third party controls) occasionally bypass the API and P/Invoke straight to the Win32 API. These calls will likely have to changed to work on Mono.
In general, Winforms applications are written using Microsoft's Visual Studio or SharpDevelop, which both provide a visual designer for creating Winforms GUIs.
Platforms: Windows, Unix, OSX
Pros:
Cons:
Source: Picking the Right Toolkit