16,004,602 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by John Whitmire (Top 20 by date)
John Whitmire
18-Dec-20 15:33pm
View
I have incurred the same need. I want the user to be able to minimize the window, but not maximize it. The window size is very small, and the full Control Box crowds the title bar such that the window title only shows a couple characters. (I thought I remembered from Win7 that the disabled button wouldn't show, but that isn't the case in Win10. The Control Box itself was a lot smaller in Win7, too.)
Do you have a little bit of starter code I can use to create my own, smaller control box?
John Whitmire
13-Aug-20 9:51am
View
@Richard Deeming - Oh, if it were only that simple. Adding the Dictionaries to App.xaml is step 1 of the Getting Started instructions. They are there; if they weren't, I would not have access to the resources I am already using (styles and brushes).
Rebuilding the libraries with the Demo app incurred a slew of warnings about things that aren't defined in the referenced namespace(s). Around half relate to Dragablz and MahApps which I don't have, so they don't concern me, but the rest hint that a large renaming effort occurred that did not get propagated to all the places it affected... like the Getting Started document. I think I know where to look now for the answer to #1, and #3 may just be a misunderstanding of what was presented in the videos.
John Whitmire
29-Jan-19 16:25pm
View
That helps, but I still don't get it. If I had a scenario where I might use PropagateFlags.InheritOnly, what would it look like? What is the difference between PropagateFlags.None and PropagateFlags.NoPropagateInherit? It seems that at least one of the two values in an AccessRule (Inheritance or Propagation) will always be None. Is that what I'm missing?
John Whitmire
27-Jun-18 12:14pm
View
Bingo! Top vs. Bottom was the silver bullet.
John Whitmire
26-Jun-18 16:32pm
View
Thanks for your input. I think I'll file this one in the "just because" category under Microsoft and move on.
@Ralf, I'll take your suggestion and move the anchor for those buttons to top-right since the form isn't allowed to grow vertically. It will be interesting to see if that works.
John Whitmire
26-Jun-18 12:27pm
View
See my response to Maciej Los.
John Whitmire
26-Jun-18 12:26pm
View
@Ralf Meier and @Maciej Los: I was able to do a check where the only difference is the O/S. It provided some answers and opened other questions.
When I opened the VS2010 project in VS2015 under Windows 7, the same difference appeared in the form Designer. (Simply opening either the project or the form designer--I don't know which--changed the buttons' locations in the *designer.cs file.) I did the same "correction," moving the buttons back to their correct location, and saved the form. The files that were saved (*.cs and *.resx) were unchanged from how they had been before opening the project! But now, the form looked correct in VS2015.
I built the app with VS2015 and ran it on both O/S versions. It looked fine on Win7 where it was built, but moved the buttons in Win10. I tried the reverse, building in Win10 and executing in Win7, and the same thing happens.
Note again that the difference mentioned in the OP is the only difference I can find among the now three copies of the project. The app has another form with several User Controls on it. I have seen nothing else affected by swapping between the O/S versions or VS versions. The control layout and properties are the same. Margins, padding, etc. are all defaulted. Anchor is bottom-right for these buttons and for most of the others on the other form and its User Controls. The csproj file specifies .NET 4 Client in both scenarios.
So, it seems that the O/S versions have a slight rendering difference that manifests in this scenario. The new question is why the difference shows in the VS2015 Designer under Win7 until I save the form's files in VS2015. At that point, something hidden changes and the form designer then renders as expected, yet without having made any changes to the generated source code.
John Whitmire
4-May-16 17:57pm
View
Ping applies way ahead of this. We know the remote machine is present and alive. We don't know if the service we connected to on it is still alive. But all that is rather independent of this odd message delay I'm seeing in WCF.
I have found that it is related to object locks being used in operations on a different WCF channel. These things shouldn't be coupled at all (the other channel connects to a completely different service), but maybe they are... somewhere.
John Whitmire
4-May-16 13:43pm
View
Never having needed pinning before, I had to refresh my understanding of what it is, but after doing so, I still don't see how that would apply.
John Whitmire
2-May-16 14:39pm
View
I neglected to say that the status update also functions as a heartbeat. (I keep forgetting that part.) In addition to the remote service's running status, the local service also needs to detect that it died.
John Whitmire
2-May-16 11:28am
View
The 2-second message is a status update. The 10 and 30 second messages are heartbeat messages between a server and HTTP client.
John Whitmire
27-Mar-14 10:15am
View
Too bad the documentation page I found (not in the vstudio path) didn't have that statement. It makes the answer very clear. Thanks for pointing it out.
John Whitmire
12-Dec-13 16:00pm
View
Alas, there is no easy way. However, the IApplicationDestinations::RemoveDestination module exists for this purpose, doesn't it? If only I could find the right wiring to use it....
John Whitmire
12-Dec-13 13:43pm
View
WordApp.RecentFiles is the Application MRU, not the JumpList managed by Windows that holds my unwanted entries. The WindowsApiCodePack provides mechanisms for managing a custom category in the JumpList, but not the Windows-managed Recent category. There is a method in shell32 for removing entries, but I don't know enough to figure out how to use it since it involves internal structures and interfaces that I can't yet comprehend.
John Whitmire
12-Dec-13 9:40am
View
Targeting Word 2010. The human-readable registry entries are the MRU lists that show on the application window. Our unwanted entries do not appear there, so nothing is required for that.
The registry entries that appear to be the JumpList are in binary and I haven't found any reference on reading/modifying those entries. There is also the (virtual?) folder ...\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations with files named [guidAppId].automaticDestinations-ms that contain binary JumpList data (credit goes to nirSoft for that info), but I haven't found any descriptions of their data nor any means of obtaining the app ID guid for Word that would be required to know which file to access.
As stated in the question, our temporary files are added to the JumpList when the add-in calls Range.InsertFile(). Also of interest is the addition of the document template file (dotx) in the JumpList when Documents.Add() is called with a custom template. We don't want that one either, but I figured the solution to one is the solution to the other. There are flags on some system Open calls to suppress the addition of the file to the JumpList. I would hope for something similar in these Word methods. Or the inverse of SHAddToRecentDocs(...).
John Whitmire
11-Dec-13 22:13pm
View
Been there already. Clearing the list is not acceptable. I need the programmatic equivalent to "right-click and select 'Remove from this list'."
John Whitmire
19-Aug-10 17:15pm
View
I must be missing something in what you said. This sounds like exactly what I was doing. The config file contains the channel definitions (2 of them, one TCP, one IPC). The two calls to Marshal(object, uri) aren't different from what you show, except that my URIs are not the same as the channel names. Is there something special about that?
John Whitmire
19-Aug-10 16:09pm
View
Reason for my vote of 3
Helpful, but not yet an answer.
John Whitmire
19-Aug-10 16:07pm
View
Following your lead, for which I am grateful, I have found several similar forum threads, most of which end up where I currently find myself: at a dead end. Someone asks the question about catching these things, a responder says that they use the UnhandledException event, and either the submittor or a third person responds that it won't work for them. And the trail ends there.
The link you provided does provide a few clues, but hasn't (yet) led me to any answers in two days of heavy searching. I can't get the UnhandledException event to fire for anything that happens after the OnStart method completes. In fact, I can't even get anything logged anywhere about the unhandled exception... except in the VS debugger.
The UnhandledException event is working for some people. I want to learn what obscure thing they are doing and I'm not that makes the difference.
John Whitmire
11-Aug-10 15:32pm
View
OK, a little more experimenting revealed that I don't need the two URIs after all; I can make it work with just one. This is now just a curiosity question.
Show More