I'm making a text editor and trying to add the tabbed window capability to the textbox. I've been searching all over heck for info. Perhaps I'm not asking the question the right way as I keep getting the "accepts tab" posts etc. Does anyone know code or a post I could use? If you'd like to see my text editor it's at johnverber.com/dir it's a .exe file just so you're informed. But I've included a screen shot of my new version:
Related
The other day I was trying to find the way to display a small "PopUp" with error message for my small WinUI3 programm. However I could not find a good way to do it.
At first I tried Conent Dialog, but the problem is that it is not displayed as another window, but rather just fills the current one. In my case, I already have a very small window and because of that Content Dialog cannot be fully seen and looks terrible
After that I found this post, which uses MessageBox API, which does not need a window. And it works, but the design of that Message box does not fit into the whole Win 11 interface.
So I was wondering is there any better way to create a Message Box?
I have a small WPF application for installing files. When a button is clicked a window opens prompting the user to input the install path to a textbox and click a button when finished. How do I put this input into the settings file so it can be used app wide? I can provide any code if requested.
PS: I am very new to StackOverflow, so please give me a heads up if I should be doing something differently when asking questions. :)
As you said, a hint will suffice. I think it would be a good idea to take a look at that following classes in order to learn how to save some settings to a file so that you can use it application wide.
StreamWriter
XmlSerializer
I think this link would also be useful.
C# - approach for saving user settings in a WPF application?
I'm experimenting with help files and help-providers.
My issue is I cannot display the help file without conflicting with other help-provider code.
helpProvider1.SetShowHelp(btnFont, true);
helpProvider1.SetHelpString(btnFont, "Change the font.");
helpProvider1.HelpNamespace = "helpfile.chm";
The HelpNamespace property takes precedence over the SetHelpString method, but I still want to display these help strings.
Is the only option to use another hotkey?
Windows Forms supports "What's this .." help on individual controls (Pop-up Help). The HELP button makes sense on dialog boxes, because modal dialog boxes need to be closed before focus can go to another window. I think it's not a problem for you to translate the following samples from VB to C# (some old stuff but HTH). All this has a learn curve of course.
See Creating Pop-up Help for Visual Basic .NET controls
Please note: The Windows Forms HelpProvider component is used to associate HTML Help files (HTMLHelp 1.x, Help 2.x or single HTML file) with your Windows application. The HelpString property can be used to show Pop-Up Help but you must set the HelpNamespace property of hlpProvider1 (see HTML Help). If there is no filename and the user hits F1 the application runs to an error.
For further information see also Compiled HTML Help file shows "This program cannot display...", when pressing F1 on the debugged application.
my question is very simple. I am building an app(WPF CSharp) and I need user to give me paths that my app is going to use. Previously I added textboxes to show pathways, however, later I decided that it would be cool to use a Win 7 style Explorer navigation bar, which is a Breadcrumb bar. I found a great open source component for it here (http://www.codeproject.com/KB/tree/WPFBreadcrumbBar.aspx) however, I could not use it in my app. I added references both to Toolbox section and Project>References section. I can also add the control to my WPF window from Toolbox, yet I could not figure out how to fill it, how to change and show items in it etc. With respect to component author, I think article on Codeproject is not very 'understandable'(XAML? I want C# code please) and also PopulateItems event, for instance, did not work for me. So, if someone give me a basic example on how to add items to this bar easily, change items, or shortly, shows me how to make it work, I will appreciate for that,
Thanks.
I Guess it depends on how you want to present it. If you want to use a tab control to simulate the functionality you could go this route:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx
I would like to setup Feedback link on every windows form, so that user can send suggestion about design, functionality etc.. using C# (.NET 3.5) but I could not find solution.
Any help or suggestion will be appreciated.
On every form? You could create a "FeedbackLink" UserControl, and place that whereever you like. I wouldn't recommend trying to do it as a clever blanket-thing, because you can never assume the place you want the feedback hyperlink won't be used by something else.
My suggestion would actually be to add it to the "Help" menu on your main form, and possibly in some kind of (very intrusive) pop-up dialog. Maybe do it the way Visual Studio tackles it - by putting an icon in the systray with a bubble that pops up for the user to click on?
Example image (might take a second or two to appear):
Example http://www.freeimagehosting.net/uploads/b7939d58ae.png