Click here to Skip to main content
15,884,298 members
Everything / UI

UI

UI

Great Reads

by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).
by J.Starkl
A windows-service which can handle different operations in separate threads and which can be controlled by a small GUI program
by Cristian Moldovan
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips
by gggustafson
This article introduces the reader to the steps taken to create a user control that displays a circular indeterminate progress control.

Latest Articles

by Mark Pelf
Tutorial on “Events Bubbling” in JavaScript language
by Nick Polyak
This article introduces Avalonia as a new multiplatform XAML/C# solution for Web and Mobile development platform on top of its Desktop capabilities that had been available for a while.
by honey the codewitch
Combine some great technologies for rich, responsive IoT user interfaces on the ESP32
by honey the codewitch
How to make very responsive, flicker free interactive screens without using a lot of memory

All Articles

Sort by Score

UI 

31 Oct 2014 by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).
25 Feb 2016 by J.Starkl
A windows-service which can handle different operations in separate threads and which can be controlled by a small GUI program
21 Jul 2014 by Cristian Moldovan
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips
10 Apr 2013 by gggustafson
This article introduces the reader to the steps taken to create a user control that displays a circular indeterminate progress control.
13 Jan 2012 by MarkLTX
A subclass of the WPF TextBox control that displays an ellipsis when the text doesn't fit.
20 Mar 2023 by honey the codewitch
Combine some great technologies for rich, responsive IoT user interfaces on the ESP32
12 Jun 2019 by Michael Haephrati
A simple and easy to use InputBox() function for any type of C++ program for Windows
13 Nov 2010 by Kunal Chowdhury «IN»
Customized Scrolling in Silverlight using Expression Blend
6 Jul 2017 by Alexander Sharykin
No more Template copies
13 Nov 2023 by Mark Pelf
Tutorial on “Events Bubbling” in JavaScript language
12 Apr 2013 by NightWizzard
...for example a WYSIWYG HTML editor to edit or display emails...
29 Jul 2013 by Ordiales
When no XP support is necessary. Better Icon structure arrises and easy conversion is allowed.
26 Feb 2023 by honey the codewitch
How to make very responsive, flicker free interactive screens without using a lot of memory
8 Jun 2012 by Pranay Rana
Calling Server Side function from Client Side Script
22 Jun 2012 by Jobless Creature
This is a article on SOAP UI. This is used for web service load testing
3 Sep 2012 by John Atten
Examination of a quick way to create more useful expandable groups in the .NET ListView control.
5 May 2014 by Gerald Gomes
This article will make an attempt to describe a basic way to start implementing animation in WPF.
25 Oct 2017 by Gerd Wagner
The HTML specification defines an event-based drag-and-drop (D&D) mechanism, which is supported by all current major browsers (including IE11 and iOS/Safari), except on Android. We show the minimum setup for a working D&D operation.
22 Aug 2012 by wborgsm
How to draw muliline formatted text on a System.Drawing.Graphics object.
22 Oct 2012 by User 9125307
I think this would be the perfect solution for you:private void ButtonName_MouseHover(object sender, EventArgs e) { System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.button1, this.button1.Text); ...
27 Jun 2012 by Technoses
The above code will slow down the browser and the browser can hang when Rows in Grid will be 10000 or above.Please view the below suggestion:CS Codeprotected void grvGroups_RowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { ...
11 Nov 2015 by Odd Marthon
A versatile visualization web browser application using standard web technologies.
29 Dec 2017 by wim4you
Show UniformGrid and scroll through a few thousand images, UI virtualization
25 Jun 2020 by Adrian Pirvu
Basic principles in designing User Interface (UI / UX)
9 Jun 2010 by CPallini
Sweety Khan wrote:Can we give a background or just a color to our dialogus in MFC?Yes, you may handle the WM_CTLCOLORDLG [^] message, see, for instance "Dialog FAQ".Sweety Khan wrote:Can we change the text color of buttons?In a similar way, handle the WM_CTLCOLORBTN message...
16 Jun 2011 by Sergey Alexandrovich Kryukov
I have developed some approach related to it.First of all, Windows Service cannot have UI. It should keep working when a user logs off and when nobody has logged in. It does not mean that the same assembly cannot be used it two modes: interactive and Windows Service.I've created WPF...
12 Sep 2013 by Nitij
This article demonstrates how to create JavaScript tooltips.
11 Oct 2013 by ASP.NET Community
Recently I have come across a situation where I need to customize the UI of jQuery UI autocomplete plugin. For reference I am adding the plugin
21 Mar 2014 by Volynsky Alex
Hi eXterminatorrr!Generally speaking, you should be able to perform these activities :* Create client for the service (or add service refference, then client will be created automatically)* Consume your WCF service through client from GUI eg. example by this link : Create a WPF...
7 Nov 2015 by mnguyen88
This is an alternative for "Using the jQuery unobtrusive validator with Twitter Bootstrap tooltips"
25 Jan 2016 by Samuel Teixeira
Why simple if we can be complex?
24 Jan 2016 by lakhdarr
Control and directives for address form auto completion using Google map V3 and JQuery/AngularJS
3 Mar 2017 by wim4you
Launch additionally a limited number of hand picked Programs, Documents or Folders from the taskbar
30 Nov 2019 by Johannes Bildstein
Write cross platform desktop applications with .Net Core by using the OS native webview.
28 Apr 2010 by Richard MacCutchan
Why not use a user drawn button with the icon design on the button? That should give you access to all normal button interaction.
29 May 2010 by Nuri Ismail
Here is an example for you that will enable/disable the close button in runtime:BOOL bEnable = FALSE; // TRUE to enable and FALSE to disable//.....UINT nMenuf = bEnable ? (MF_BYCOMMAND) : (MF_BYCOMMAND | MF_GRAYED | MF_DISABLED);CMenu* pSysMenu =...
23 Mar 2011 by Eduard Keilholz
Have you tried the Validating event rather then the Validated event?
9 May 2013 by Abhay@Accenture
14 Jun 2013 by ShubhamSaxena
Learn how to implement Kendo Grid.
13 Apr 2014 by Edson_Ferreira
This tip will demonstrate how to create a SPA using an MVC Application, AJAX and History.js
27 Apr 2014 by Dennis E White
Development of a jQuery plugin to be used to create and draw on a canvas element
14 Jul 2020 by honey the codewitch
Continuing our series with a knob control and a MIDI visualizer
29 Apr 2010 by #realJSOP
My experience is that users don't like it when controls (or menu items) appear and disappear while they're using the program. At the very most, they are just barely comfortable with items being disabled, but when things start disappearing/reappearing, they freak out. I'd rethink my interface if...
11 May 2010 by «_Superman_»
There are some example articles here on CP -http://www.codeproject.com/KB/buttons/roundbuttons.aspx[^]http://www.codeproject.com/KB/buttons/CRoundButton2.aspx[^]
15 May 2010 by Richard MacCutchan
23_444 wrote:I'm not convinced ... that WM_PAINT is firing for each call.You are correct, these calls tend to get collected together and then the app gets a single WM_PAINT message for an accumulation of more than one of the invalidated regions. As to the advantages of doing it this way,...
14 Jun 2010 by Henry Minute
If your login form verifies the user and password then simply set myUserIDTextBox.Text = ""; etc after verification but before closing/hiding the login form.If the login form simply passes the UserID and Password to the main form for verification then store the information in private...
5 Jul 2010 by Sauro Viti
On the color filter button click handler, add code to show the color filter dialog as modal; then on the OK button click handler of your color filter dialog call EndDialog(IDOK), and back on the filter button click handler show the modiied bitmap:// On your color filter dialogclass...
20 Sep 2010 by Uros Calakovic
I encountered a problem while trying to use WPF UI Automation with PowerShell - PowerShell reported incorrect type for automation elements
28 Sep 2010 by Oddleif Halvorsen
Ever been in a situation where you need to modify a SharePoint master page, but really would like not having to create a custom master page? It can be done. Sure, this depends on the amount of customizations, but in a lot of situations you can do what you need from code.
1 Oct 2010 by Abhinav S
Cross thread communication is indeed possible.Have a look here[^] and here[^].
13 Nov 2010 by jarvisa
public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl wc = c as WebControl; if (wc != null) ...
2 Feb 2011 by Eugen Podsypalnikov
Just add the following line:CMFCAutoHideButton::m_bOverlappingTabs = FALSE;at the end of your CMainFrame::OnCreate(..) :)
16 Jun 2011 by #realJSOP
A service can't have a UI. You have to do like SA said - create a separate app (that lives in the system tray) that can communicate with and control the service.
16 Jan 2012 by Sergey Alexandrovich Kryukov
Thank you for compliance and clarification of the question (I up-voted it). It's the best to modify the question itself and leave the notification in a comment. You should also tag the UI library, for your own good. Please see my last comment to the question. There are some commercial...
30 Jan 2012 by Sergey Alexandrovich Kryukov
You cannot attach any data to EventWaitHandle. I think you have no idea about the purpose of even wait handles. You code is a strange mixture of events thread synchronization primitives and and does not seem reasonable at all. Using "-=" operators on the invocation list of an event instance is...
28 Feb 2012 by E.F. Nijboer
If you update the ProgressBar on every byte handled then it will indeed be very slow. Calls to UI elements are very expensive to a certain degree which will become very noticeable when called very often (also because the call needs to be invoked into the user thread). A simple way is to check if...
2 Jul 2012 by #realJSOP
I'm developing something akin to an ad-hoc query interface, and in this UI, the user is allowed to select AND or OR to add more conditions to the query.What would you call this column? I'm using "Continuation", but I'm interested in finding a better 9and possibly shorter) word to use in its...
8 Oct 2012 by nv3
I am not sure that I understood your question correctly. You might want to let Windows do the synchronization for you and use SendMessage from your worker thread to send display messages to your UI thread. The sending thread will be synchronized with the receiving thread by Windows. But be aware...
14 Oct 2012 by Curtdawg123
You can use thispublic void main(){ pictureBox.Click += new EventHandler(pictureBox_Click);}public void pictureBox_Click(object obj, EventArgs ea){ // This get executed if the pictureBox gets clicked}
7 Nov 2012 by jim lahey
See the following discussion on StackOverflow:http://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content[^]
7 Nov 2012 by Aydin Khatamneajd
Using ModelMetadataProvider to Set Display Name Metadata for the Model Fields at Runtime
19 Nov 2012 by Raghav Nayak
19 Dec 2012 by Adam R Harris
You are going to have to create a delegate to add the controls for you, something like this:** assuming your flow control is called 'flow' private delegate sub delAddControl(ctrl as Control) private sub AddControl(ctrl as Control) if (flow.InvokeRequired) then ...
14 Jan 2013 by Mihail Mateev
In this article you will learn about how to use PhoneGap with the new cutting edge Microsoft platform – Windows 8
2 Apr 2013 by Bernhard Häussermann
Shows how to programmatically enable full-keyboard-access tabbing behaviour in your Mac OS X application.
13 Apr 2013 by Santhosh G_
Please add the following compiler directive to specify manifest file attributes.#if defined _M_IX86#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df'...
31 May 2013 by Stas Wolski
This tutorial describes how to create a basic Google-like event calendar app for Windows 8.
9 Aug 2013 by Sergey Alexandrovich Kryukov
Please see my comments to the question.One approach alternative to the BackgroundWorker is using preliminary created thread, created through the constructor, which you can keep sleeping (wasting no CPU time for that, of course) and activate when the task is fed to it. This is a really good...
9 Nov 2013 by Nelek
Step 1) Do a little research. Google is a good start pointStep 2) Start codingStep 3) Compile and use the debug to solve little issuesStep 4) When you get a problem you don't know how to solve but at least you tried it, then come back and ask for something concrete with a snippet of the...
6 May 2014 by Daniel Lieberwirth (BrainInBlack)
This describes a simple way to create interactive, bitmap based, buttons for WinForm applications.
3 Feb 2015 by Vangos Pterneas
Natural User Interfaces make some serious buzz these days – not without a reason. Natural User Interfaces (NUIs) literally change the way people interact with computers. They create new patterns, new means of communication, and new business opportunities. We can now play football without a con
6 Sep 2015 by TheHumbleGuy
Hi,first of all -> Qt is C++Qt supports different variants of UI implementation. QWidget-based and QtQuick-based. If you create a basic desktop application i would recommend the QWidget based way.Its probably the best to start with a small example to understand the basic concept of...
11 Nov 2015 by Jochen Arndt
Such styles are usually applied on application level and not on widgets.At first you should decide which kind of styling you want use (style sheets or setting styles by code). They can be mixed but it is not recommended. This link may help you with the decision:...
18 Apr 2016 by F-ES Sitecore
It doesn't really matter, but MVC is the more modern technology however it'll require you to understand web concepts better, whereas webforms hides a lot of the implementation details from you making it easier to use in some instances. Seeing as you don't seem to know either technology it'll...
18 May 2016 by Richard Deeming
The ProgressBar control[^] has built-in support for showing indeterminate progress - just set the Style property[^] to ProgressBarStyle.Marquee:oi1ProgressStatus.Style = ProgressBarStyle.Marquee;await Task.Run(() =>{ BaseParameters.ErrorBag.Clear(); if...
13 Oct 2018 by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
15 Jan 2020 by Steffen Ploetz
A solution for: If the toolbar is created button by button with single TB_ADDBUTTONS calls, the width of the separators is not calculated correctly.
3 Mar 2021 by Chris Copeland
i've tried reading over it a few times but i cant see the issue. I don't think you have read over it a few times as the error is quite clear. Your code is trying to find a field called ThirstSlider but the field is clearly named incorrectly:...
3 May 2010 by Iain Clarke, Warrior Programmer
There's not many articles under the progress bar section of codeproject, but this article has a progress bar with text on it:How long is this process going to take?[^]You can adapt that to your heart's content.DavidCrow is a very reliable programmer, so it should be good code!Iain.
3 May 2010 by Ankur\m/
Check this[^].The link will teach you something very interesting as well. :)
5 May 2010 by CPallini
You may find this DavidCrow's article [^] helpful. :)
13 May 2010 by Sauro Viti
Just replace:m_txtImageCtrl.SetWindowText( _T("0/0" ));with:if (::IsWindow(m_txtImageCtrl.m_hWnd)) m_txtImageCtrl.SetWindowText( _T( "0/0" ));
13 May 2010 by s373785346
I have installed BCGControlBar and run its wizards normally, my IDE is VC6.0. The problem is that when use any class of BCGControlBar, it's not intelligent. For example, where declare one variable like this:CBCGPButton m_bcgButton; when input one dot after m_bcgButton it shows nothing, why?...
14 May 2010 by 23_444
I need to invalidate different areas on a screen at the same time (occurring in the same function).I could invoke the InvalidateRect(&rc) for each area:InvalidateRect(&rc);InvalidateRect(&rc2);or I could create a region and add the rectangles to the region and then use...
14 May 2010 by Maximilien
Your question is not clear; What do you mean by:Druks wrote:so that the pie chart will be drawn from a file or even a dialogAre you meaning you want to get the data from a file or some user input from a dialog ?Do the different article and sample of Pie Charts posted on CodeProject...
18 May 2010 by Jeson.DJ
My project is a MFC project based on dialogs. The class name of my parent dialog is CdialogchangDlg and my child dialogs are CPicture2 and CPicture3. I can access my child dialogs. Now I want to go to another child dialog from one child dialog, I use buttons to do this.The code is:void...
18 May 2010 by xspitfirexx
I am working on a mouse gesture recogniser and I am pressing right click and drawing with pencil tool all over my desktop. When I release it the drawing is still there and I need to use InvalidateRect() function to remove it. But it flickers like when you press Refresh. Is there a way to...
18 May 2010 by Chris Meech
You are just filling the stack up with CPicture2 and CPicture3 dialogs. Eventually you will run out of resources. I would recommend that instead of switching from child to child, have the parent create modeless dialogs instead. :)
7 Dec 2018 by vivek.chauhan2009
Hi,how to disabled close button in a simple dialog?ThanksVivek chauhan
2 Jun 2010 by mikhil10
Hi friends, I am using CListCtrl with check boxes in my code. I want to change the color of row if its check box is checked. I have tried using function SetTextBkColor on 'OnClickLstdata' event but it changes color of all inserted rows. Please provide the solution. Thanks... :)
2 Jun 2010 by #realJSOP
First, you need a handle to the target application's main window. This is much easier to achieve if your application launches the target application interally (using the Process object). After you get the window handle, you can send the window any Windows message that you wish.BTW, if...
6 Jun 2010 by Niklas L
If you mean a light gray text saying what a field is used for when nothing is entered, you need to subclass the edit control and respond to WM_PAINT. Check if your control is empty and if so write a message in the client area using a light color.
8 Jun 2010 by enowy
Hi everyone.I have plan to make new desktop application based on ATL/WTL. From now on I want to use DHTML UI in this project (for example like CDHtmlDialog of MFC).How to use DHTML UI in this project (I can not use MFC in this project).Thank you.
14 Jun 2010 by isantosh85
I have created a web phone project. When I log in then I get a new window with logout button. My login window has two textboxes. When I log out then I get the login window but the previous information is present in that text box. How can I get the clear text boxes after logout click in my...
14 Jun 2010 by Sauro Viti
On is answer, Henry wrote myUserIDTextBox.Text = "";That's is right if you are using C++/clr (i.e. managed C++). If you are writing your application as native you can write myUserIDTextBox.SetWindowText(_T(""));
15 Jun 2010 by Sauro Viti
Remove the WS_VISIBLE style constant from the styles passes to the call to Create.
15 Jun 2010 by koropatva
I have a program written in C++ with WinApi functions (I am not using MFC). In this program I have a treeview (elements can be added or deleted) and I want to solve a problem: I want to know exactly which item was selected. Please help. Example:+Color -Red -Blue+Ground -sldfs...
4 Oct 2010 by Heinzzy
this code create and add a button either in UI or background threadpublic partial class Form1 : Form { public Form1() { InitializeComponent(); } public void CreatingControl() { if (this.InvokeRequired) ...
13 Nov 2010 by PSU Steve
You can just use "not IsDisable" versus the IF...ELSE block. Additionally, the recursive call to ControlStatus should be done all the time so that the parent control is enabled/disabled along with the children. // to enable\disable the control & its child controls public...
2 Jan 2011 by Abhinav S
You can always create new tabs if you want to avoid MDI forms.Just as an example, Internet Explorer or other browsers support multiple tabs and many tabs can be opened together.Note: Having tabs and MDI's together might be a little confusing to the user anyway.