Click here to Skip to main content
15,886,689 members
Everything / GUI

GUI

GUI

Great Reads

by Colin Vella
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.
by Sergey Alexandrovich Kryukov
Popular question on Forms collaboration, also answered for WPF
by The Zakies
we would create Hand_tool to pan through the drawing form, and we would use a custom cursor of open and closed hands
by Mark Pelf
Comparison of Git functionality of Visual Studio 2022 to some other Git Gui clients

Latest Articles

by Chris Boss
BASIC: A powerful language often underestimated and undervalued
by Steffen Ploetz
My way to have a first sample program running with "Texus' Graphical User Interface" (TGUI) - a cross-platform modern C++ immediate GUI, on which I use "Simple and Fast Multimedia Library" (SFML) as backend.
by Mark Pelf
Comparison of Git functionality of Visual Studio 2022 to some other Git Gui clients
by Jovibor
PE (x86) and PE+ (x64) files viewer, based on libpe.

All Articles

Sort by Score

GUI 

7 Sep 2010 by Colin Vella
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.
9 Feb 2011 by Nish Nishant
You could look at something like QT if you want to try something that works on Linux and Windows, but for Windows a more popular C++ UI framework would be MFC. Google for MFC and QT tutorials and you should find tons of content.
26 Mar 2015 by Sergey Alexandrovich Kryukov
Popular question on Forms collaboration, also answered for WPF
29 Jun 2016 by The Zakies
we would create Hand_tool to pan through the drawing form, and we would use a custom cursor of open and closed hands
5 Aug 2022 by Mark Pelf
Comparison of Git functionality of Visual Studio 2022 to some other Git Gui clients
28 Feb 2024 by Chris Boss
BASIC: A powerful language often underestimated and undervalued
23 Mar 2016 by Rubén Hinojosa Chapel
Prototype for a plugin architecture based on the Prism Library and the Modern UI for WPF (MUI) toolkit
18 Jun 2012 by Mark Kruger
API which shows a Selection Overlay and notifies the caller when it's resizing and notifies the final rectangle.
27 Jun 2012 by Wonde Tadesse
See this CodeProject article.Updating the UI from a thread - The simplest way[^]
26 Mar 2019 by Steffen Ploetz
Check OpenGL as a basis for appealing applications, that are not necessarily games.
5 Apr 2016 by Matt Scarpino
Developing Low-Level Linux Applications with XCB (X protocol C-language Binding)
5 May 2014 by Gerald Gomes
This article will make an attempt to describe a basic way to start implementing animation in WPF.
29 Jun 2012 by Richard MacCutchan
This seems a perfectly reasonable question. If you are already using Visual Studio then you have the IDE already. If not then you can get a copy of Visual C++ Express from this Microsoft site[^]. There are sample templates within VS to get you started, and there are articles here[^] on...
7 Jul 2012 by pasztorpisti
If you need a short answer: There is no fine solution. I used a lot of gui libraries extensively (in many languages), and the best would be a not too heavyweight widget based library without hacky solutions. There is no really good, clean solution for C++ unfortunatlely.First, what is a widget...
29 Jul 2012 by Mehdi Gholam
A "good" programmer is someone who does his job, to do your job well you need :- A good grasp of technology- A good grasp of the domain you are working on- Communication skills - Experience coding projects- Experience in failures
25 Oct 2010 by Mohd Wasif
Label1.Text =Convert.ToString( ListBox1.Items.Count);use it
25 Oct 2010 by Rajesh Anuhya
how many times you will ask this question,, don't spam the board. stick on one.,
20 Nov 2011 by Valery Possoz
Hello,Assu...
29 Mar 2012 by Resmi Anna
I hope I understand your issue. Suppose the name of your console application is TestConsole.exeand it gives the output "ABCDEFGHIJKLM" on executing via command prompt.Now You need to execute this TestConsole.exe from an application that has a GUI and get the result in your GUI application....
21 Jan 2014 by Steffen Ploetz
How to call native X11 API from Mono Develop C# ending up in a very little application.
13 Aug 2013 by Volynsky Alex
Let's try to read the Framework-Based Software Development in C++[^] book.This book provides a detailed methodology for implementing frameworks -- today's most important advance in object technology to solve real business problems. This book introduces a new methodology for building frameworks...
25 Jan 2016 by Samuel Teixeira
Why simple if we can be complex?
26 Jul 2016 by Zehaie M. Hailu
Python lends itself to the development of multi-threaded GUI and network applications.
12 Jul 2020 by honey the codewitch
PianoBox is a customizable musical keyboard control for Windows Forms. This is the first part of MidiUI.
6 Oct 2010 by guidebee
Code example on how to draw enhanced graphics 2D pictures on Windows Mobile
25 Oct 2010 by Rajesh Anuhya
is this you are searching for....listBox1.Items.Count
21 Mar 2012 by Seyyed Hossein Hasan Pour
first of all you need to set the KeyPreview property of your form to true . then in the keyDown event of your form , you can write sth like this :if ( e.Alt && e.KeyCode == Keys.H ){ MessagbeBox("Alt-H was pressed");}you can also use e.Modifiers to check for key combinations with...
29 Jul 2012 by nv3
To become a good programmer, here is what you should do:Step 1: Become a programmer.After you have reached that after a couple years, attempt next step:Step 2: Become good.Optionally you might want to proceed after some 10 or 20 years byStep 3: Become very good.Broad...
29 Jul 2012 by Richard MacCutchan
How can you become good at anything? Practice, practice, practice.
24 Jul 2013 by Prasad Khandekar
Hello,Following code snippet which is based on one of sample database project provided with QT should get you started.QSqlQuery query;query.prepare("INSERT INTO t(user_name) VALUES(?)");query.addBindValue(strUserName);query.exec();You can find some really good examples in Qt...
17 Aug 2010 by Samuel Cherinet
you can set the Style property of the progressbar to "Marquee" and it would just show a continuous progress ...
25 Nov 2010 by Richard MacCutchan
What do you mean by "I don't know how to Install and Compile any programs"?Do you have a compiler environment on your system so that you can at least build a basic C++ program? If not get a copy of Microsoft's Visual C++ Express Edition[^] and go on from there.
9 Feb 2011 by Espen Harlinn
You could also take a look at WxWidgets:http://www.wxwidgets.org/[^]A tutorial on building a good gui, and a tutorial on a particular toolkit/library usually doesn't have much in common. If you want to build a good gui, you need to investigate the usage scenario. A good gui for a...
27 Jun 2011 by jayantbramhankar
Read this tutorial Folder protection for windows using C# & Concepts on Windows Shell menu for Folders[^]
15 Jul 2011 by OriginalGriff
Talk to your tutors: they will have a better idea of how complex a project you are expected to produce. They may not give you any concrete suggestions, but they may be able to help you focus your mind on your strengths, and what is acceptable as a final year project.
2 Sep 2011 by enhzflep
Okay then, I'm bored and it's dark outside so I can't go flying for another 3 or 4 hours when the sun comes up. I'll see what I can do about giving you a walk-through of sorts.I've just looked into the Console Functions (windows) as suggested in my last post. I have found that it appears...
2 Sep 2011 by LaxmikantYadav
Better way to create new Window Application. And port your old console base code to Window Base Application :)
7 Nov 2011 by Espen Harlinn
I guess you are looking for something like the DataGridView Control[^]Best regardsEspen Harlinn
20 Nov 2011 by Sergey Alexandrovich Kryukov
Why going into such tricky game with two monitors? (Please see my question and tell us if I understood you correctly; is it about two different monitors.) You would be limited by the length of a cable, also, the risk of exposing a "secret" part of UI to the used of another monitor is too high,...
13 Feb 2012 by Sergey Alexandrovich Kryukov
There is no member HIDE(), and such member would be a method, not a property.There is a method Hide(), it always work. I don't know what exactly you screw up; there are many ways to do so. :-)—SA
29 Mar 2012 by michaelmel
1) The first part is to call your console application from the UI application - this is easy. For example, in C++ you could call ShellExecute, or CreateProcess with correct command line arguments. I don't know what language/platform you will be using for your UI so I do not elaborate much.2)...
3 Jul 2012 by OriginalGriff
Remove it from the Controls array and reinsert it at the end:Controls.Remove(myPictureBox)Controls.Add(myPictureBox)The last added object will be on top of the others.Alternatively, sort them into the order you do want, and add them all at once in that order.Remember that you can use the...
30 Jul 2012 by Volynsky Alex
Try to write any product on C/C++, and then try to write something on the C #, VB, etc. Read articles, books .... I am sure that only after testing different technologies, testing different languages , ​​do you can make the Right Choice ...Good luck!
5 Nov 2012 by Sergey Alexandrovich Kryukov
Maybe my past answers could help you:http://www.codeproject.com/Answers/151247/GUI-Apperance-C-Net#answer1[^].See also some...
5 Nov 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
21 May 2013 by OriginalGriff
Have a look here: A fast and performing gauge[^] - it's pretty much what you want already, so most of the work is done for you but the code is ther in case you need a change.
4 Jun 2013 by Ron Beyer
http://msdn.microsoft.com/en-u...
4 Jun 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question. Even though anyone is free to create such a list, I don't think it could even be "official". The controls are not deprecated or claimed obsolete formally, even if some control is fully or completely superseded by a newer one. (I refer to ObsoleteAttribute,...
4 Jul 2013 by bhuvamehul
To do this you have to take third window form which size is same as Parent form and that form's FormBorderStyle set to none,set background color as you want and set opacity to 30%. Show this form when child form activated, keep child form always on top. Hide this new form when child form closed.
6 May 2014 by Daniel Lieberwirth (BrainInBlack)
This describes a simple way to create interactive, bitmap based, buttons for WinForm applications.
13 Jul 2014 by OriginalGriff
"Language" depends on you: what do you know? There is not point in suggesting WPF if you have never used it as the learning curve is too steep to make it viable for the project in a reasonable time frame, despite the fact that it's probably the "Best" in terms of "prettiness".So really, we...
14 Dec 2014 by Richard MacCutchan
I suggest you look at https://github.com/CosmosOS/Cosmos[^].
28 Mar 2015 by Sergey Alexandrovich Kryukov
Hey Sergey! Thiago wrote:I actualy didn't know this. Thanks for telling me! Someone formatted it for me. Ok, I've been told that SetPixel is too slow, but I am afraid I don't know what else to do. Do you have tips? Could you recommend a real-time plot library?Thanks,ThiagoYou are...
24 Jan 2016 by Steffen Ploetz
Check OpenGL as a basis for appealing applications, that are not necessarily games.
14 Apr 2016 by Richard MacCutchan
Your application is extending Frame rather than JFrame. Also you do not need all the WindowListener actions as they will be handled automatically. Just extend JFrame, and add the following line in your constructor:setDefaultCloseOperation(DISPOSE_ON_CLOSE);
31 Dec 2016 by Dave Kreskowiak
There is no "best". It's a matter of preference. Try them both out and make your own decision.
16 Feb 2017 by RedDk
The solution to annoying garish webpages; say good-bye to all that irritating light while browsing the internet. Keep it dark ... learn how here.
3 Feb 2019 by OriginalGriff
It's all written in C++ https://www.quora.com/How-much-of-Microsoft-Office-is-still-written-in-C++[^] - look at the top answer, and contact him if you want more details - he's a dev manager at MS[^] so he should know.
11 Feb 2019 by OriginalGriff
The "startup form" is created by a line in program.cs: static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); ...
11 Feb 2019 by RickZeeland
In addition to OriginalGriff's excellent answer, I would also like to mention skinning. Although Winforms are notoriously difficult to skin, you can use the free Krypton Toolkit: GitHub - ComponentFactory/Krypton: Krypton WinForms components for .NET[^] For a simple Winforms Skinning example...
20 Jun 2019 by OriginalGriff
I'd start with a .NET language: .NET (in one form or another) is now available for Windows, Web, Linux, Android, iOS, ... I'd suggest start with C# / WinForms where it's easy to create a scrollbar in code (though it's even easier to create one in the designer): VScrollBar sb = new...
21 Jul 2019 by TheRealSteveJudge
The methods Interrupt andAbort should be used with caution as the documentation says: Thread.Abort Method (System.Threading) | Microsoft Docs[^] A better approach is to let the thread end gracefully by setting a flag. Please make sure the flag is marked by the volatile keyword. This must be...
18 Jul 2019 by Richard MacCutchan
_clitThread.Join(10); _clitThread = null; You are ignoring the return value from Thread.Join, so you have no idea whether the thread has terminated or not. Please use return values to ensure you know what your code is actually doing: Thread.Join Method (System.Threading) | Microsoft Docs[^]
22 Apr 2020 by steveb
You forgot the message pump in your WinMain while ( GetMessage(&msg, NULL, 0, 0) ) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; and in your WindowProcedure you forgot the return value return...
26 Sep 2020 by Richard MacCutchan
Go to The Java™ Tutorials[^] and see the section headed "Creating Graphical User Interfaces".
26 Sep 2020 by Maciej Los
Yes, there is few: WindowBuilder | The Eclipse Foundation[^] JFormDesigner - Java/Swing GUI Designer | FormDev[^] Designing a Swing GUI in NetBeans IDE - Tutorial[^] Good luck!
5 Nov 2022 by Steffen Ploetz
My way to have a first sample program running with "Texus' Graphical User Interface" (TGUI) - a cross-platform modern C++ immediate GUI, on which I use "Simple and Fast Multimedia Library" (SFML) as backend.
28 Feb 2024 by Richard MacCutchan
If you have no experience of creating such a program then it would probably take many months to create your own version. And since the Exelock program already offers this feature, I suggest you use that.
27 May 2010 by Radhakrishnan G.
Dear AllI figure out the issue,This is because the EndDialog() was called from a worker thread.ThanksRadhakrishnan G.
8 Jul 2010 by William Winner
First, pick a language that you want to program in.Then, find a program for that language that you can write your application in.Then, design your application.Then, code it.Then, test it.Now you're finished! That's all there is to it!
25 Aug 2010 by Christian Graus
Process.Start in your splash screen will start the other program, if it knows the path.
8 Sep 2010 by pavelkorr
In this case, how to make the input of these two vectors? In my code vectors are set by default.
24 Sep 2010 by goodwillwins
protected void MDIChildNew_Click(object sender, System.EventArgs e){ Form2 newMDIChild = new Form2(); // Set the Parent Form of the Child window. newMDIChild.MdiParent = this; // Display the new form. ...
4 Oct 2010 by Steven J Jowett
This is such a simple control. Have you tried playing with it. Have you tried Googling[^] for examples. No, I didn't think so.
4 Oct 2010 by Yogesha Puttaswamy
If you really want to create your own shortcuts then u can catch the event when any of the key pressed and you can add corresponding functions with respect to the key pressed.protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData ==...
6 Oct 2010 by Abhinav S
See here[^].
20 Oct 2010 by Emilio Garavaglia
If you are creating an application over Windows or whatever Linux that already have its own window manager, you should not deal with the "front problem": thay are part of the native API of the window manager.(and should not your application to install fonts: that's an OS distribution...
25 Nov 2010 by silent7
Hi there, I'm trying to learn gtk+ using this site[^], But I don't know how to Install and Compile any programs written using this. So far I've downloaded the GTK all in one bundle and extracted it to C:\gtk. I also have mingw installed in C:\mingw and a path variable has also been...
2 Feb 2011 by C. Groß
Hi everybody!First of all, please excuse me if my English is not perfect, I'm not a native speaker.Let me first describe what I'm up to:I want to create a GUI for a command line tool which I have not written by myself.I got so far to be able to launch the tool with desired...
9 Feb 2011 by The_Real_Chubaka
Hello, I spent about 2 hours on Google trying to find a good one. I think I already have a headache. Does anyone have a good tutorial both for windows and Linux?Thanks in advanceRegards,Herve
2 Jul 2011 by Emilio Garavaglia
Learning Java from C++ is easy.Your problem will not be Java itself, but the library you will use for GUIs.And it is the same problem as learning the QT library.
21 Jul 2011 by Suresh Suthar
Dear Friend,First thing,Before postin/asking anything on CP please read FAQ.Code Project Questions and Answers FAQ[^]Secong, if you are not comfortable in english you can use this forum.http://www.codeproject.com/Forums/1580229/Hindi.aspx[^]Third, answer to your question: You can...
4 Aug 2011 by YvesDaoust
A way is to permanently store and keep updated the date of the last change. When you launch the application, check if that date has changed and set a new background image. (If the application stays running for long periods, you should check the date, say, every hour also.)Need more details ?
25 Aug 2011 by Simon Bang Terkildsen
Yeah Java and .NET has dependencies that need to be installed on your target machine.A language such as C++ doesn't have those kind of dependencies, but a lot of the functionality you are using is Platform specific especially UI functionality. There are however libraries that nullifies that...
2 Sep 2011 by Philippe Mori
I think that in this case, you should create a Windows application. That application would then create another application (the existing application) and exit.CreateProcess might be used.http://msdn.microsoft.com/en-us/library/ms682425(v=vs.85).aspx[^]
7 Sep 2011 by Tushar Parmar
I want to stop rendering of a client side control dynamically and visa verse,Such like:first I haveAnd I need following after button click:
12 Sep 2011 by fjdiewornncalwe
Do you mean stuff like this[^]?A simple google search resulted in 6.68 million results, including paid advertisements for exactly what you want at the top. Take a look.
18 Sep 2011 by mbue
Here is your...
21 Sep 2011 by Sergey Alexandrovich Kryukov
Ever head if separation of concerns? Don't mix two different kinds of issues together. I hope you're talking about CLIPS.NET, http://clips.codeplex.com/[^].If this is what you want to use in your .NET projects, your main problem "how to use CLIPS in .NET" is already solved.The...
7 Nov 2011 by thatraja
Agree with Espen. Also TableLayoutPanel[^] & FlowLayoutPanel[^] are right choices(Like DataGridView) but you need to write lot of code for your requirement.
24 Nov 2011 by DaveAuld
User solved his own question with.SelectedItem
6 Dec 2011 by RaviRanjanKr
From Reference Link :- About List-View Controls [^]To use overlay images in a list-view control: A) Call the ImageList_SetOverlayImage function to assign an overlay image index to an image in the full-sized and small icon image lists. An overlay image is identified by a one-based index....
11 May 2012 by Sergey Alexandrovich Kryukov
It looks like this is not a .NET assembly but a native (unmanaged) DLL. There are no "steps" to help you.You need to have profiles of all functions and learn P/Invoke. Start from here:http://en.wikipedia.org/wiki/P/Invoke[^],http://msdn.microsoft.com/en-us/library/Aa712982[^].Read...
17 Dec 2011 by Wendelius
Could you simply use Form.ShowDialog Method [^]. The back button on form 2 would close the form2 so the control would automatically get back to form1.If needed, the form 1 could be hidden before the ShowDialogCall using for example:...
17 Dec 2011 by Uday P.Singh
you can go with the Mika's answer or you can do this:on back button of form2 write:private void button1_Click(object sender, EventArgs e) { this.Close(); Form1 frm = new Form1(); frm.Show();//or//frm.ShowDialog(); }hope it...
11 Jan 2012 by thatraja
Check thisCrystal Reports Runtime Packages[^]
2 Feb 2012 by Rajesh Anuhya
Go through the below link.., http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson02.aspx[^]Beginners guide to accessing SQL Server through C#[^] ** Try to read a ADO.Net book.Thanks--RA
2 Feb 2012 by RDBurmon
Read this Beginners guide to accessing SQL Server through C#[^]Or this is great tuto to learn database app in C#http://www.techotopia.com/index.php/Creating_a_Simple_C_Sharp_GUI_Application_with_Visual_Studio[^]Try to build some code using above URL's and revery back with...
21 Feb 2012 by druscelli
no :-( with NULL doesn't work well.... it crash.
29 Mar 2012 by వేంకటనారాయణ(venkatmakam)
I think you are looking for this,C++/VB - MFC: concurrent display of console output on GUI edit box.