Click here to Skip to main content
15,894,896 members
Everything / Edit Controls

Edit Controls

edit-control

All Articles

Sort by Score

Edit Controls 

23 Aug 2023 by Rick York
It is not entirely clear what you are trying to do. You state you want to have an edit control update itself but then you list it as CServicesDlg::EdtCompanyName(). That is clearly a method of a dialog class and it is unclear what relationship...
1 Sep 2023 by merano99
Presumably the question again concerns an edit control in a dialog. There were already answers for this. MFC app edit control updating itself[^]
6 Sep 2023 by OriginalGriff
We can't tell, we have no access to your code while it is running, so we have no idea what is in m_RadIsntExist or what it should contain. So, it's going to be up to you. Fortunately, you have a tool available to you which will help you find out...
30 Aug 2023 by Richard MacCutchan
Using AI is largely a waste of time to solve programming issues, or research "how to" questions. Microsoft provides a comprehensive set of documentation that you should make use of. Using ShellExecute runs the search in a separate Window. So...
26 Aug 2023 by merano99
Rick has already written the basic solution in Solution1, here again in more detail: To display a summary of three other text fields in the text field EdtDescription, a simple solution would be to react on EN_CHANGE of the three fields and call...
30 Aug 2023 by Dave Kreskowiak
Why would you want to launch an entirely separate process (rundll32) that will not communicate with your app at all? Using the query window will do nothing in your application. You app will never know the user did anything in that window because...
1 Sep 2023 by OriginalGriff
That's a little complicated, because generally speaking two instances of a control shouldn't even know that the other exists - it breaks OOPs principles if they do, unless one is the child of another (and parent-child is trivial, so I'm pretty...
1 Sep 2023 by Richard MacCutchan
You cannot expect there to be YouTube tutorials on every question you come up with. As already suggested, you should use the documentation to check what features are available in each control that you are using: CEdit Class | Microsoft Learn[^].
27 Oct 2022 by Member 7750028
In an edit box of my dlg application, user may enter lower or upper case letters. I want the edit box to convert/display the text in Upper case. What I have tried: EN_CHANGE tried. But how exactly I do not know. How to code it.
27 Oct 2022 by Member 7750028
I am withdrawing the Question posed to this Forum. I am getting Aged (but only 74 now)! or is it my poor Eyesight (poor readability without Spects & due to Long Sight defect) I did not even see the 'Edit->Properties->Styles where the Upper case...
13 Sep 2023 by Inczu
I want to create an edit control that when I write something in first edit control void CSecondDlg::EdtUserName() makes second edit control void CSecondDlg::EdtWichUser() write down the same thing automatically. What I have tried: I searched...
4 Sep 2023 by Richard MacCutchan
You keep repeating what is essentially the same question, and expecting ChatGPT to write the code for you, which is unlikely. And as I keep telling you, you can find out all you need to know about edit controls at CEdit Class | Microsoft Learn[^].
4 Sep 2023 by merano99
If I interpret the question correctly there are two dialogs ServicesDlg and CThirdDlg. On the ServicesDlg dialog there is an Edit control EdtCompanyName and a button BtnNextSecondDlg. If you press the button, the text from EdtCompanyName should...
7 Sep 2023 by Rick York
Your problem seems obvious because the message told you what it is : Quote: "Debug Assertion Failed!" "Services.exe has triggered a breakpoint." on line 628 { ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd, BM_GETCHECK, 0, 0); } in...
7 Sep 2023 by KarstenK
You need to use the debugger. The most common case for your error, is that the control isnt correctly connected with some resource in the rc and wiward. ASSERT(::IsWindow(m_hWnd)): means that this object hasnt a window handle. So debug to find...
12 Sep 2023 by Inczu
When I am writing in first dialog IDD_SERVICES_DIALOG ServicesDlg.cpp edit control void CServicesDlg::EdtCompanyName() and click at a button void CServicesDlg::BtnNextSecondDlg(), I want to put this data to third dialog IDD_DIALOG2 ThirdDlg.cpp...
29 Aug 2023 by Inczu
How can I make an edit control updating itself in MFC App? I want to write down data in three edit controls (void CServicesDlg::EdtCompanyName(), void CServicesDlg::EdtServiceName() and void CServicesDlg::EdtPortTCP()) and make one edit control...
13 Sep 2023 by Inczu
In my MFC app, when I click button void CSecondDlg::BtnSearchUsers(), it will do this: ShellExecute(nullptr,_T("open"),_T("rundll32.exe"),_T("dsquery.dll,OpenQueryWindow"), nullptr, SW_SHOWNORMAL); (it will go to this system dialog). When I...
31 Aug 2023 by steveb
You need to use API NetUserEnum and NetQueryDisplayInformation NetUserEnum NetQueryDisplayInformation and link with Netapi32.lib include Lm.h And with all that information you can populate you dialog's combo box.
13 Sep 2023 by Inczu
I want to create a code that will find if the password "xsw2!QAZ" in edit control void CSecondDlg::EdtFirstPassword() is correct when you select radio button void CSecondDlg::RadIsntExist() and then select user "Test" from combobox void...