Create Tabs and Drag/Drop Them In Application? - c#

I currently have a program in .NET 3.5, written in Visual Studio C# using Windows Forms. I plan on rewriting this program from the ground up, its a very small and simple program, so its not that big of a feat.
With the new version of the program, I would like to give users the ability to add/remove tabs from a tabControl, as well as drag and drop them to re-arrange them in the order they like. I know they can not do this with Windows Form. Would I be able to do this if I create the program using WPF instead?
I also want to be able to load an webpage in the program, which would be AJAX based:
http://www.twitch.tv/chat/embed?channel=8wayrun&popout_chat=true
Would I be able to do all this with WPF, even though I cant do it in WF?

This project can help you: http://fabtab.codeplex.com

Related

Is it feasible to dock a exe inside c# winform? What kind of challenges will be there?

I have an application which is developed in c# WinForms. Now i am developing an another application using ReactJS and Electron. I am able to do that and i have generated EXE successfully.
Now i dont want to run both the applications as separate applications. So i docked ReactJS and Electron generated EXE inside a form container of existing WinForm application. I used this article to achieve that- Docking Window inside another Window
Now EXE is running inside WinForm but i am facing some issues in UI rednering. See that attached screenshot. Application is not properly.
Is it right way to do it? Does anybody has experience in this? What kind of other problems i am going to face in future?

Saving and loading different windows forms at run time in Visual Studio C#

I built my windows form app in visual studio and on desktop it looks fine. Although when I put it up on a projector we found the fonts etc were a bit small.
So what I want to do is using the designer design two versions of the app one the normal version I have now (Desktop Version) and another one with larger buttons and fonts (presentation version).
Then on runtime I want the user to be able to choose between the desktop and presentation versions of the app.
I'm a little unsure how to do this though, is it possible to save and load various different designs in VS?
Design your other form as a new one. Then simply call Hide() and Show() to switch between forms.
Another option is to export your design to some sort of data (xml, json, even plain text could work) and once form is resized and if size if greater than something, then swap styles of your controls.
Points of interest:
https://www.w3schools.com/xml/
encoding xml for deserialization in c#

creating external Panel files in C# Winforms

So I'm currently working on a C# Windows Form App in Visual Studio 2017
What I'd like to do is create several different external Panel files, then switch them out on the main form as the user navigates around.
I used this same technique for a Java GUI before and it worked great.
However I can't seem to figure out how to create the external Panel file, is it possible or am I just wasting my time and energy on the impossible?
(edit) So if anyone is interested I've found a work around for my problem.
By using a winforms user control class I was able to create a working substitute.

Using Controls and Components of Visual Studio in my application

I'm currently trying to find out, if (also legally) I can use the components of Visual Studio in my applications. I don't mean the controls that are delivered to create my application, like a Button.
I mean the PropertyGrid, the Text Editor, etc, that VS also uses internally in the VS application itself.
The PropertyGrid would be especially interesting because the old winforms PropertyGrid can only be used with WindowsFormsHost, but using the old technolgy is also causing troubles when using windows with transparency, etc.
My questions are:
Am I allowed to do it?
Can you please provide me with an example of how to do that?

Windows Forms Application C# Style

I am developing a Windows Form Application in Visual Studio 2008 (C#)
And I want to add Style to the items.
I have been investigating a few ideas about it but I have not found an example about how to do it. Is it really possible?
My app looks like:
But I really want to add more style in buttons, textboxs and other items I have:
My boss insists on using Visual Studio 2008.
To do this without purchasing anything else, you could create your own custom button and text box controls, either from scratch or as controls derived from the existing windows forms controls and then overriding OnPaint etc. Take a look at what's been done here:
http://dotnetrix.co.uk/button.htm
You could also investigate third party options.
Or, use WPF if that's a possibility as others have said. I'd push for WPF! If there's an existing WinForms Code base you can always host WPF Elements in WinForms. See:
Walkthrough: Hosting a Windows Presentation Foundation Control in Windows Forms
IF you wana to use Winforms than you have to buy this one for example:
http://devcomponents.com/
You have to bind the new assemblies in your application that is not a lot of work!
But better way do that with WPF
http://wpftutorial.net/DataGrid.html

Categories