Click here to Skip to main content
15,888,527 members
Everything / Dialog

Dialog

dialog

Great Reads

by Michael Chourdakis
C++, Direct2D, one function and you got a nice picker
by veen_rp
A small JavaScript module to create a modal dialog box or user input box in the familiar .NET style
by Howard 9448490
Windows Forms Print Dialog for rich text with accurate page preview and zooming
by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert

Latest Articles

by Member 16179004
Capture Enter key in edit control with no dialog box and no subclass.
by ToughDev
Retro68 GCC-based SDK for 68K Mac
by Roger65
How to type text into a static control, change the font used and then save it into a bitmap
by Evoluteur
A web color picker which looks like the one in Microsoft Office 2010

All Articles

Sort by Updated

Dialog 

19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
18 Jul 2010 by 4288
Hi all, I have written a MFC application in Visual C++ and I'd like to add something like a fancy effect (a rotating 3D logo or something like that, I already have a logo to insert into) in the about window.For once, I am not asking for help solving a big programming trouble.. but I am...
18 Jul 2010 by 4288
A shaped window with scrolling text sounds good and not too bad to implement (I suppose)Thank you for the idea, I think I'll proceed this way
19 Apr 2010 by @Intersect☺™
Let me understand ur prob:Dlg1 has 2 CommandButton as cmd1->which create Dlg2 with a pre populated Listboxcmd2->which will pass the Selected Value from Dlg2 to Dlg1 (this is where ur stucked, am I ri8?)Could you plz post ur cmd2 function, it will enable me to solve ur prob.I am...
11 Feb 2010 by Abelk
Hi to all, I have been developing a project lately using VB.NET ... and some processes take time to finish and I want to display a progress dialog box or something to display a process is going on ...... and unfortunately I have no idea how to do it .... any one with ideas, comments,...
30 Nov 2012 by Abhishek Pant
Hi,This will help you-Working with different dialog controls in VB.NET[^]The Open File Dialogue Box[^]The SaveFileDialog Control[^]Font Dialog in VB.NET[^]The FolderBrowserDialog Control[^] and FolderBrowserDialog[^]The ColorDialog Control[^]and more help on controls refer More...
11 Jun 2015 by Afzaal Ahmad Zeeshan
You need to first call the getView() function to get the view of the fragment and then you can call the findViewById(). Like this, private EditText city = (EditText) getView().findViewById(R.id.cityDialog);Now it should work. Or you can use the getActivity() for the fragment...
19 Aug 2014 by ajitmlv
I am using the following code:Shell parent = getParent();Shell dialogShell = new Shell(parent, SWT.DIALOG_TRIM |SWT.APPLICATION_MODAL);When I minimize the application the child dialogshell also gets minimized. That is ok(expected behaviour), but while using tab the child dialog shell...
18 Oct 2015 by akalyoncu
i have simple project(master page).This is my deafult.aspx
8 Jun 2011 by Alan Balkany
The first step is to distinguish the case where your handler isn't being called from the case where the dialog box is malfunctioning.You can put a breakpoint in the handler and see if it's hit, or put an AfxMessageBox () in there.
20 May 2013 by alannx
does the static control is created ????
8 Jun 2011 by Albert Holguin
That should work just fine given that rulesDlg is a properly defined CDialog. If you post you code for rulesDlg we can probably see if there's anything wrong there.
30 Jun 2011 by Albert Holguin
All you have to do is reload the dependent combobox every time the user selects something on the first.Topics to research:Load CComboBox Dynamically[^]Capture user selection in CComboBox[^]A couple of different approaches you can take on the dependent box:- Leave it blank until...
4 Aug 2011 by Albert Holguin
A MFC dialog based application has a main application (something derived from CWinApp) and a GUI (something derived from CDialog). With that said, you can add any number of GUIs (CDialogs or whatever) to the CWinApp, just look at the source in there to see where its most appropriate. Usually a...
17 Jan 2012 by Albert Holguin
This is trivial... If you only need to display information, use a AfxMessageBox() (it's easy to use), if you need a dialog, then make a dialog derived from the CDialog MFC class and use the CDialog::DoModal() method to bring up the dialog (this is if you want to make it modal, to make it...
15 Jan 2012 by Alberto Biasiutti
I'm trying to implement confirmation for an Html.ActionLink via jQuery UI Dialog.I'll start from a link example to better explain; the actionlink generated will call the controller function to delete the item specified by id:@Html.ActionLink("linkText", "actionName", "controller", new {...
10 Jun 2010 by alij_juma
Hello,Try setting your form border style to none and use a container that has a border you can manipulate e.g. panel. Dock the container to fill the window 'borderless' window.Add your controls including a close, min and max button and code them appropriately.You should have your...
2 Aug 2011 by Alimjan Yasin
I want to ask a question , maybe it is stupid , but I want to best solution , so here it is:I have a mode-less dialogue in wpf, its owner is a window. when I click a button on the model-less dialogue I want to do something on a part of windows. I tried a solution like that:define a...
31 May 2011 by All Time Programming
Hi, I have a form. In that I got to show a dialog (on some circumstances) with Text and a Cancel button. I want to catch the event of that button in my form Or know if that cancel button was clicked. How can this be done ? I believe this should be possible but can't make out how...
4 Apr 2014 by AlwaysLearningNewStuff
I have a dialog box with a bitmap as background.I am trying to create transparent treeview so I need to grab the underlying bitmap from treeview's WM_PAINT handler, but I do not know how to do this.I assume that I will need ScreenToClient and ClientToScreen APIs, but I do not know how to...
12 Nov 2014 by AlwaysLearningNewStuff
I am trying to insert dialog boxes, as separate pages, into tab control.I have created the dialog boxes successfully in resource editor, with all necessary styles.Since my application uses visual styles, I ran into problem with transparency of the dialog's child controls ( radio button,...
28 Aug 2014 by amitbora_27
Hi,Is there any way to show dialog as tooltip on button control..I have created one button and want to show modal dialog as tooltip when I hover on button. Dialog has some fields to input data.Can you tell me how can I achieve this in C++ , using windows API?
18 Jun 2010 by Andrew Rissing
Or even...if (frm.ShowDialog() == true){ // do something here}
18 Jul 2016 by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
12 Mar 2017 by Anoha
i created a dialog box while clicking on the button.but when i again clicked again dialog box is creating. i want to create it on the first click. when the button is clicked further clicks should be disabled.can u help me to do this?What I have tried:i created a dialog box while clicking...
6 Aug 2012 by anthony 008
Hello,I'm currently working on a small project that makes use of JQuery and JQuery UI. I want to make a dialog that edits certain data in a table. The user double click on a row and the dialog popsup. This all works perfectly but when i click on a tagged link and go back to the page the...
6 Aug 2012 by anthony 008
This issue may be marked as fixed.Currently i found out that the dialogs gets added continuesly at the end of the document between the and . By executing the command $("#dialog").remove() the issue is fixed.This is mainly happening in combination with ajax it seems.A ticket about...
1 Jun 2010 by Anthony Mushrow
I suppose you could use this:SetParent[^]It should do exactly what you want.
3 Jun 2010 by Anu Koshy
You can useclosebutton.EnableWindow(0);where closebutton is the variable name of the control.
17 Jun 2012 by Apemania
C# Forms RichTextEditor with custom hyperlink with Outlook address like text entities, custom popup listbox, and a screen tip.
19 Nov 2012 by Aravind Badrinath Krishnan
Hi,I have an issue with setting window position of a Popup window behind a WS_CHILD property sheet. My application has controls bars, a WS_CHILD Style property sheet & a few modeless dialog boxes in a view. users works with multiple dialog boxes.I have a requirement that when a user does...
5 Nov 2010 by ARopo
Have you tried, for testing purposes, doing the initialisation after on Init Dialog, e.g. on a button press or a timer tick. I suspect the problem is to do with it being in onInitDialog.If it works in thuis scienario , you could consider disabling the dialog in OnInitDialog, then doing your...
8 Dec 2010 by ARopo
I found this thread, it suggests using the windows API GetOpenFileName, which you can change the size of unlike the .NET version.http://www.dotnet247.com/247reference/msgs/17/86277.aspx[^]
3 Jul 2011 by asmanu
Can someone help me understand this why VB dialog control is doing this.I have 2 Forms and 1 ModuleForm1 Form2 Module1 Module1 code is Public Declare Function stCheckSign Lib "NEWSTSIGN.dll" (ByVal szpath As String) As IntegerForm1 code is Private Sub...
21 Mar 2010 by Avi Berger
If you have one thread for reading from an input file and a second thread for writing to an output file, it seems to me that having the thread that handles the file be the one that is responsible for opening and closing it makes sense. Since you are splitting the handling of the output file...
7 May 2013 by Aydin Homay
This tip/trick discusses about hosting a Windows Form user control in an MFC dialog box and View windows.
8 Jun 2011 by badoedipus
I'm looking for an easily deployed solution to a problem I am having. I need to present the user with a dialog box that will allow them to browse their computer freely and select a folder or a file. Upon submit, I need the path of selected object passed back to a VBA macro. Any one have a...
15 Jun 2011 by barneyman
wrap the text in _T(), you're working with wide strings, and giving Format a narrowm_dbFeeAmt.Format(_T("%.2f"), FeeAmt); // Errorm_dbPkUpAmt.Format(_T("%.2f"), PickupAmt); // Error(nods to SA)The _T() macro is extremely useful, it substitutes as appropriate, for the string...
12 Nov 2014 by barneyman
from some distant memory of this, try doing the adjustRect and child movewindow AFTER the insertion ... the tab control changes size ISTRBTW, you'll have to do an adjustRect, movewindow for all children after each insert (or once after a block insert), because the tabControl header resizes...
25 Jul 2012 by bbirajdar
Use can use the AJAX Modal Popup extender instead.http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]
11 Dec 2013 by bbirajdar
I have a Gridview and I am using the Base Admin Bootstrap HTML 5 theme from here Base Admin Bootstrap theme[^]My Gridview code is as follows:
25 Apr 2013 by be_5demtak
Hello, I am using the free windows forms ribbon control Version 3.5.6.1 page here in a vb.net application.The form which i placed the ribbon control in is inherited from System.Windows.Forms.RibbonForm* Form Properties are set as follows:Me.FormBorderStyle =...
11 Jun 2015 by bhawin parkeria
#include #include "resource.h"const char g_szClassName[] = "myWindowClass";// defining dialog box IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "My About Box" FONT 8, "MS Sans Serif" ...
2 Aug 2011 by BobJanova
In WPF you should have the data grid (including its selected index property) bound to a view model. Give the second form a reference to that view model instance and then it can simply set the property (which will cause the UI controls on the first form, and anything else that is watching it, to...
21 Aug 2014 by Bryan Se To
HiI do know how to Open, Read, Write and Close a serial port using MFC/C++.The problem is I do not know what to send to the serial port.I have seen my colleagues sending something like 21 04 07 00 08 00 0F 22.I converted it to control and it says ! EOT BEL NUL BS NUL SI...
28 Aug 2014 by Bryan Se To
21 04 07 00 08 00 0F 220x21 is the start byte, the device uses it to synchronise itself in order to detect the start of the frame.0x22 is the end byte, a confirmation that no more bytes are expected to follow. The device uses this to know that the frame was received in full so it can...
19 Mar 2014 by C3D1
Hey out there,i'm using a CCommonDlg based FileOpen Dlg.I wan't to do some stuff with the CListCtrl (for example selecting an item) after the Dialog has been created.So i add my additional functionality into my OnInitDone() function which i called this way from the OnNotify:BOOL...
26 Jul 2010 by catbirch
if(frm.DialogR...
11 Dec 2012 by chaau
I had a similar problem that was somehow related to the Windows Colour Management. Please check this discussion[^] on how to set the correct Colour Profile (applies to Windows Photo Viewer, but will affect other programs as well)
29 Jun 2011 by Chamiss
I create link button asp.net and I call fuction from JQUERY. The dialog is not open, and also refresh the page and close div tag , made visible when i click some button or check ... Clikand jquerywrite... function...
1 Mar 2012 by Chandrakantt
Yes you can make irregular dialog box with different skins.have a look at below linkhttp://www.codeguru.com/cpp/w-d/dislog/bitmapsimages/article.php/c4977[^]
1 Sep 2014 by ChauhanAjay
Kindly have a look at the answer provided in the below linkaccess textbox text value in jquery popup to code behind page[^]Hope this helps
23 Jan 2019 by Chopin2001
I don't know how to remove menubar from dialog that inherit CDockablePane, create by CreateEx function in mainframe of MDI(MFC). My Dialog's problem is have a menubar that have a 'X' icon for close. I want to remove that. Thanks. What I have tried: m_wndOptionBar.CreateEx(NULL, NULL, this,...
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. :)
27 Jan 2010 by Christian Graus
You can use a function pointer to call a method back in your positioner, to tell it to update the values exposed by this child dialog, or you can use a timer. I assume the second dialog is modeless, otherwise there would be no problem, you'd just access properties you exposed.
18 Mar 2010 by Christian Graus
sksksksksksksk...
18 Jul 2010 by Christian Graus
I'd do a non standard shaped window, lots of info online about that. Something rotating without DirectX, unless it's just an animated GIF or something, is likely to look chunky, I reckon.Just scrolling text can look cool, too.If you want motion, I suggest you render frames, then use a...
5 Jul 2011 by Christian Graus
I don't think this is the only or even necessarily the best way to encapsulate a date, but it's really straightforward from what I see.http://msdn.microsoft.com/en-US/library/by5d3kb1(v=VS.80).aspx[^]GetCurrentTime gets the current time. SetDateTime sets it. Operator +, -, +=, -=,...
23 Nov 2010 by ChristInBen
Hi guys,I'm creating a C# Windows Installer (using a C# Setup Project) for an application that I'm deploying and I have a problem with the limited UI controls.Throughout the install process, I am logging all the installer activity to an XML file, so in the final screens of the install...
24 Nov 2010 by ChristInBen
Hi,I'm trying to convert an XML file into an RTF text block using C# and then apply that RTF text block into an RTF Text Box on a Windows Form.Do you guys have a quick way to do this? Preferrably using Linq to XML as that is how I built the XML file.Thanks very much.
29 Jul 2011 by Claudio Ludovico Panetta
Hello everyone.I started developing an application to manage D/41Epci Dialogic cards.I'm writing it Visual C + + (and I use Visual Studio 2010 as IDE).For now it does absolutely nothing ... because I do not know how to use the libraries provided by Dialogic ..My code, for now, is the...
14 Apr 2011 by Costica U
Check this Customizing OpenFileDialog in .NET[^]
30 Dec 2009 by CPallini
Override the OnCtlColor method of your dialog box, see, for instance, an example here [^].
5 May 2010 by CPallini
You may find this DavidCrow's article [^] helpful. :)
17 Jan 2012 by CPallini
In a glance, you need a modal dialog. I think there's a plethora of tutorials[^] on the web.
9 Mar 2017 by CPallini
Just disable the button after first click, see CWnd::EnableWindow[^].
12 Jun 2018 by CPallini
Get the integer, say n, from the edit box. Check is n is even, namely: bool is_even = (n % 2 == 0); Call the button code (I would put it in a separate method say DoMyWonderfulAction and then call it appropriately both from code and the button). Please note, there are several ways to...
3 Oct 2018 by CPallini
Assuming the dialogs share same parent window, any public method of such parent window is accessible to both. E.g. suppose the parent window (say MainWindow) implements a public method (say getMass()), then, in any of dialogs you may write: MainWindow *pmw = reinterpret_cast...
18 Jan 2011 by creizlein
Is there any way to programmatically call and host the default property dialog for a file and/or for a service ? So far I haven't found anything related but I'm pretty sure that there has to be a way; at least using some Win32 API calls.As answers start to appear i found that display the...
25 Feb 2018 by dandy72
Hey all, I'm using the standard File Open dialog box in my WinForms app, to prompt the user for a license file (extension ".lic") at startup if I don't find one in a predefined folder. My search filter is set to: string strFilter = "License files (*.lic)|*.lic"; I've noticed a slight...
25 Feb 2018 by dandy72
Good question. I've seen this on clean Windows 8 and 8.1 VMs. In both instances, Windows Explorer is set to show everything (don't hide anything at all--ever).
22 Apr 2011 by DannyStaten
My code hasn't changed in any significant way, but for some reason my save file dialog now flickers open, then closes and the show dialog result returned is false. It was working flawlessly for some time, but now it is doing this. Has anyone else seen something like this?internal string...
22 Apr 2011 by DannyStaten
Ok I figured out what is happening. The button that executes the show modal actions is inside a wpf popup control. I modified the popup to StaysOpen="false". So the popup hides the moment it loses focus (when the modal shows up) and thus the context that called the modal is killed so it just...
28 Mar 2014 by Dave Kreskowiak
There is no different code as far as I've ever heard of.I have run into a problem in Citrix environments where the client had to have a goofy printer setup in order for them to show up in the Citrix environment. That was about 8 years ago and I can't remember what it was I had to do to get...
13 Jun 2013 by Deepali Dhingra
This tip explains how to create a to do or Shopping List app with listview, sqlite, dialog and customadapter
11 Feb 2010 by deostroll
Hi,For simple things BackgroundWorker component will do. But you've to be aware windows forms will not function well in a multi-threaded environment. Hence a direct update to UI (for e.g. updating a label, or textbox, etc) will result in an exception. You have to invoke functions which do...
17 Mar 2010 by dharshinicpriya
hello everyone.. I have just started learning vc++ and mfc. Im creating a simple project with Dialogbar. my question is how to set background color for the dialogbar. Plz help me out of this. thanks in advance.
11 Apr 2012 by Diego2la
How can I create current CDailog in class MainWnd: public CFrameWnd ?Can't you give an code exaple.Thanks.
12 Apr 2012 by Diego2la
Hi!I create Cdialog which contain different handlers. On this Cdialog I create CSizingControlBar: resizable control bar(who can dragged outside Dailog) So, can I use Cdialog only as event handler and not to call .doModal() for him? In other words, I whant not to show Cdialog but his...
10 Aug 2012 by Dirk Bahle
This article samples a MVVM conform implementation of startup and shutdown sequences for an application and its dialogs.
4 May 2010 by dj4400
Hi all,I would appriciate if someone can tell me how to change a dialog layout dynamically so that tabs in a tab control would be ordered from right to leftthanksdj4400
4 May 2010 by dj4400
SetWindowLong(hTabCtrl,GWL_EXSTYLE,WS_EX_LAYOUTRTL);
13 Jun 2015 by DrABELL
Pure HTML5 modal pop-up box ("darkbox") implemented via CSS 3
15 Jun 2011 by DrBones69
I can not figure out why converting back to a string isn't working m_wndLoanAmt.GetWindowTextW(m_dbLoanAmt); LoanAmt = _wtof(m_dbLoanAmt); FeeAmt = LoanAmt*Percent; PickupAmt = LoanAmt+FeeAmt; m_dbFeeAmt.Format("%.2f", FeeAmt); // Error ...
22 Jun 2011 by DrBones69
Hi All! I created an array to store the edit control box values, they are all of type CString, I have also serialized this. Everything was working fine until I changed two of my edit control boxes from CEdit to CMFCMaskedEdit controls. Now, when stepping through my array, the two masked values...
30 Jun 2011 by DrBones69
Can someone point me in the right direction? I can't locate documentation on this subject. I want to be able to have the data in a combo box change depending on the data selected in another combo box.For example, if I select GOLF CLUBS in one combo box the next combo box will contain the...
4 Jul 2011 by DrBones69
OK, so I finally made the combo boxes perform the way I wanted. I used ON_CBN_CLOSEUP and ON_CBN_SELCHANGE to get the job done. But, can someone tell me why the event handlers act differently when I change between types? (DropDown or DropList)If I choose an element of the DropDown combo box,...
5 Jul 2011 by DrBones69
I have read until my head started spinning. I can not figure out how COleDateTime works with dialogs. I can add the current date and time to my dialog, but I want to know how to manipulate the date/time (get the current date/time and set it to another date/time and then display it). How do I...
6 Jul 2011 by DrBones69
I created a variable m_oleMyDate of type COleDateTime in my ...View.h file and then initialized it to (COleDateTime::GetCurrentTime()) in my View .cpp file.Next, I created three variables of type int (nYear, nMonth, nDay) and then set the variables with the current month day and year as...
6 Jul 2011 by DrBones69
If I choose an element of the DropDown type combo box, the ON_CBN_CLOSEUP() event handler is NOT called unless I select the element again. But when I change to DropDownList type, the ON_CBN_CLOSEUP() event handler is called the first time I select an element. Does anyone know why?
12 Jul 2011 by DrBones69
I have been playing with different controls trying to learn how they operate. Any comments and/or suggestions will be greatly appreciated. ThanksIf I create a combobox like:CComboBox *CaliberBox = new CComboBox; CaliberBox->Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL |...
24 May 2015 by Duncan Edwards Jones
To add this message to all print jobs is going to require writing some print spooler dll[^] (probably a port monitor but not sure).This will have to be in a standard dll, which (most likely) means C++.
14 Sep 2010 by E.F. Nijboer
One way would be to simply use the desktop window as your window and make desktop window the parent of your controls.Simply create a form and put all the control on a panel. Then use the handle from GetDesktopWindow to set the parent of that panel. Maybe some adjustments to place it...
14 Sep 2010 by Eli Huang
How to make a tool always on the Desktop but the windows isn't TopMost like Windows7's Desktop tools. When we press the key of "Win+D" or press the Desktop button of "Show Desktop",the tool also on the Desktop.my project created by VC.anybody help me!thank you !
18 Jan 2011 by Espen Harlinn
Here is an example opening, among other things, the properties dialog:C# does Shell, Part 2[^] using ShellExecute. Actually part of a very nice series by Arik PoznanskiDoing this for a service though ... that's the interesting part of this question :) RegardsEspen Harlinn
17 Mar 2010 by Eugen Podsypalnikov
You could implement a reaction on WM_ERASEBKGND for your bar :) :...BEGIN_MESSAGE_MAP(CYourBar, CYouBarBase) ON_WM_ERASEBKGND()...END_MESSAGE_MAP() BOOL CYourBar::OnEraseBkgnd(CDC* pDC){ CRect cClientRect; GetClientRect(cClientRect); pDC->FillSolidRect(cClientRect,...
5 May 2010 by Eugen Podsypalnikov
Please see CMFCShellTreeCtrl and CMFCShellListCtrl in the VS2008 MFC set :)(Since VS2010 is it also possibleto "mount" them directly in the resource view)
8 Feb 2012 by Eugen Podsypalnikov
Please try to set the same (or another special) fontat the WM_INITDIALOG part of ActivateWlsMsgDialog :)
2 Oct 2020 by Evoluteur
A web color picker which looks like the one in Microsoft Office 2010