Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I need to send my C# app in an email for a job interview exercise. It says to save the exercise as a zip file and email it. I would have thought they wanted to see the code, but just looking now, it looks like the only way to do this is to zip the .exe file and send it. The code will not be visible to them? Any way to show the code? Add my .cs file to the email?
Why don't you just zip the whole project directory? That will include your code files and your compiled .exe file. It will also include the solution or project from Visual Studio so they can open it on their end.
You may still need to change the extension of you executable file to something like .exe1 before zipping, otherwise the email service might not let it through.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I was working on a c# project on my computer when I accidentally removed the power cord.
When I started my computer back up I tried to load my project, but I got a error:
There is no editor available for 'c\user\documents\visualstudio 2013\projects\project_name\from1.cs
make sure the application for the file type(.cs) is installed
On the same project I have different forms and those still work, only from1 is not working. The data set only contains 0's.
What can I do to fix this?
Either something got corrupted in your Visual Studio installation, or (more likely) the file you were working on before your computer was shut down (which I assume was from1.cs).
Are you able to open from1.cs and from1.Designer.cs in something like Notepad? You may want to look for NULL terminators in your file as suggested by this answer on this (possibly duplicate) question.
If that doesn't work, either try copying the existing code from from1.cs and from1.Designer.cs into new files in your project, or repairing/reinstalling Visual Studio. Just make sure to make a backup of your project first, just in case! ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
i am writing a program in C# which generates a text file containing the information of a Graph, i like to find its K-Cores,
i have found a C++ library to do that, but i don't know how to use it.
the name of the library is Kcore.h and i put it in the same folder of my project.
but how to pass my text file to it and call it's KCore function?
KCore.h is one of the libraries of SNAP project which can be accessed at http://snap.stanford.edu/snap/
Thank you for your help
kcore.h is just a header file. You will need to build the library as a dll first then use the C# external dll import feature to use the routines. The link you have given, doesn't provide libraries: you will need to create a solution to build it: look at the makefile for help.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there a way to create and build an .exe from C#? (Editor's Note: Basically a .NET app that can create and compile other .NET apps - see accepted answer)
I am NOT talking about getting the .exe of my project (which is the only exe building I could find on google), I am talking about generating .exe files from within my program.
How would I create a runnable .exe file from C#? I have no idea how and on google I only find questions on where to find the .exe of the Project, while I want the project to build .exe's itself.
The simplest way to do it without using external compilers is called CodeDOM, the relevant class you would use is called CSharpCodeProvider. There there are many tutorials on the internet (including one in the first link I gave) that will show you how to use it, the topic is too broad to explain in depth here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
It is possible that such a program written with C #?
if yes how we can?
If you have links or information on this I say thank you.
I'd say you'd probably be looking at setting up a proxy on your local network, pointing the machines you want parental control on to that proxy, and filtering the "allowed" traffic by either:
Checking website address against a predefined blocklist,
and/or
Reading through the HTML looking for naughty words or phrases.
How to create a simple proxy in C#? has a fair bit of detail about setting up a proxy in C#.
Also found http://www.codeproject.com/Articles/92512/Writing-a-Parental-Control-Software-for-Windows. An old project but might be worth looking at if you're researching a project like this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am very new to .net, Is there way to keep logic files are separated and reuse in cs files?
Create a C# Class Library Project and add its reference to your project.
Aman Khan, Create new dir App_Code keep your logic file there and use to your project as shown in below image
and you call define
using System
using CMS
You can reuse the files.Place all the logic files in seperate folders like App_Code and just copy the code and use it.
Happy coding :)