How to run a winform project for more than one? [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I wonder that can we run a c# project for two times which contains several solutions inside it. For example We have runned our project firstly then we have have button which is start new one. I writed this code for 'start new button': System.Windows.Forms.Application.Run(new FormName_Main());
But this does not work as I want. Also I used the same code with Program.cs class.
Can someone tell me that how to run this project without closing the first one?

I think you need this:
Process.Start(Assembly.GetExecutingAssembly().CodeBase);

Related

How to navigate in Windows Explorer using alternative ways in Windows Forms in C#? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm looking for alternatives to "FolderBrowserDialog" and "SaveFileDialog" or how I can edit these screens.
I need to create exactly the same interface of the image attached and the big challenge for me is how navigate/access the Windows Explorer like that in C#, as I didn't found how to edit the default save or select folder screens provided by C#.
Create log screen
You can create your own file dialog using TreeView
Check Daniel's answer on this post

Save Screenshot to specified directory when a button is clicked [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am looking to make a small windows utility that will let the user browse to a file directory. Is there a good C# method (Windows) to execute this?
If you are using WinForms, you want FolderBrowserDialog.
See here: https://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog(v=vs.110).aspx

cronjob in asp c# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a question:
I have to do a project, which has something to do with reading data from txt into MSSQL. This function I solved it with a click-event. Right now, the reading process has to read the whole data automatically every day on the server, even without open the website. Can I do it with a cronjob or there are also other better solutions?
Have a look at Quartz.Net - it's a decent job-scheduling system.
It's probably overkill if you only have a single job.
Quickstart documentation is here: http://www.quartz-scheduler.net/documentation/quartz-2.x/quick-start.html
In addition to Quartz.NET you can also look at http://hangfire.io/.

Can you add a Console program to a WindowsFormApplication program? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to make a C# WindowsFormApplication project to collect and store answers.
I then want to use these answers to generate input for selenium web driver which is a console application.
Is it possible to join the two projects together so I first collect my answers on the form, and when I click run on the windows application form, for the console application to start running? If so, how would this be done?
In case you don't want to use database as suggested by kat0r you can use sockets to make them communicate together.
The obvious answer would be to store the questions in a file/database, and simply access it from both applications. You can start other programs with something like Process

How to resolve sap and sapv namespace in xaml files [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
New to WPF and XAML. What does sap and sapv name spaces in xaml files mean and how do I resolve them? Thanks.
This should probably be a comment, but won't fit.
It sounds like you may well be referencing Workflow dlls without having added the relevant references (it's a slight stretch based on your Workflow tag).
sap and sapv often reference the System.Activities.Presentation.dll, which you may not have added to your project.
e.g:
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
Examples and advice here (depending on what it is you're doing): http://msdn.microsoft.com/en-us/library/dd489419.aspx

Categories

Resources