Visual Studio doesn't re-compile [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I created a simple WinForms application with a Button on it on a certain location (just dragged and dropped it from the toolbox, so it landed somewhere in the middle of the form) and when pressed the F5, it worked okay.
But, then I closed the form and got back to the studio. I just dragged and dropped the Button somewhere else and now when I run it with F5, in the running program the Button remained at the same location like before.
I cleaned the solution, rebuild it manually and run again. The same happened.
I dragged and dropped the button again somewhere else and the situation was the same as for the first time.
After 2 or 3 complies finally it worked...
Have anyone of you met this problem before? What's the solution? Thank you.

It sounds like you checked the "don't compile automatically when build is out of date" checkbox.
Check Options -> Projects and Solutions -> Build and Run. My guess is it says "Never build" and "Launch old version".
EDIT:
Well, since we can't replicate this issue, it's really hard to help. The last thing that comes to my mind is - export all your VS settings, reset them to C# defaults. If that helps, you can compare the exported settings with the defaults and look for weird stuff.
If it doesn't, try disabling / removing all the plugins you have (or perhaps it would be enough to run VS in safe mode).
If that doesn't help either, try disabling your anti-virus. This is really starting to dig for worms in sand, but it might be possible the AV is blocking file operations.
If even that doesn't help, it's time for the reinstall-VS-and-.NET rutine.

Related

Update to VS ver 2012 - 11.0.50727.1 errors [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 months ago.
Improve this question
We recently upgraded to 2012 Visual Studio 11.0.50727.1 (update 5). We need to keep 2012 because in later versions, the C# statements do not work (like obj["Click"] ()).
So when I brought it up I got a message that SccProviderPackage did not load correctly (see image). IT said I could probably ignore this, as it is not used.
But then when I opened my projects there was a problem. I can still see the Solution Explorer on the right (see image). But on the left where there used to be the tests I can run there is nothing. Not even a menu. I looked through the View menu to see if there was a way to show it, but I could not find anything.
Could this be a problem from that error, or some other kind of error?
BTW this is on Windows 10.
error loading
I needed to do a Ctrl + E, T to get the menu to appear

Issues with Visual Studio 2017 exe file opening and closing immediately.. Now being able to view it properly? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
So I recently started using Visual Studio 2017 for my C# class.
I recently created a code that I saved and wanted to see if it work properly. So I build the solution and it went successfully. I looked up the application(exe) file and opened it but immediately the command prompt would close so i don't even get a chance to view that the code worked. Is there anything I can do so I can view the code in the command prompt and properly run it so i can see it work correctly.
Any Help would be greatly appreciated!
Quick Note: I tried doing ctrl + f5 key to run the program but for some reason it doesn't work on my laptop nor do anything
It sounds like the program actually finishes and therefore closes. Adding a
Console.ReadLine();
at the end of your program will require an enter key press before closing.

c# - Forcing a Window to open in full screen [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
Short version:
New to writing code.
Need to have every window that is restored or opened to go full screen.
What functions do this? Don't need it fully coded out just the functions and syntax.
Long version for those that want more information:
Ok this is my first post so small bit of background. I am new to coding. The last time I was in a coding class they were showing me Visual Basic 6, and it was new. When I was taking that class I never thought I would need to use it. Now I find myself in a place were I need to learn, so I am learning by doing. I have been using code pieces people post up; then modifying them to do what I want and then deconstructing them to make them work. Because of that I have found out how to make a simple register application for me to use at an art table I setup every few months, and even force the numlock to stay on even if someone turns it off.
I now have a new problem, and this is where I need the help. I need to create a program that runs in the background that will force all windows that are opened after it starts up and all windows that are restored from the task bar to open in full screen.
I have found a power shell script that was posted up to cause all windows to restore in a previous state and I got it to restore to full screen.
I need to know how can I see what application was just opened and then have it force it to open as full.
If you can point me to example of the various pieces I can slap them together and modify them to work for what I need.
I am working in Microsoft Visual Studio 2015.
Hope this is better for you than the first post.
As far as I know, this functionality isn't directly exposed in the .net libraries. You'll have to use these 3 (at least) pinvoke functions: EnumDesktopWindows, IsWindowVisible, and ShowWindow. You need the IsWindowVisible function because there are lots of Windows API hwnds that aren't what you normally think of as windows.

My computer lost power while working on a project, how can I recover my data? [closed]

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! ;)

soft stoppped working [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
this is might be really weird, but I have no idea what kinda wizardry of this. Basically, my Visual Studio stopped responding to my changes, it stopped building solution. I can comment code, which would completely ruin the logic of program, and Visual Studio will still run program that I guess it has in memory. It's really annoying, and I have no idea what it is. I keep restarting software, but it's still does the same. It's a licensed software. I was wondering If someone knew what was going on. Thanks!
I've seen this a few times, and usually one of or a combination of the following will work:
Clean the solution, then build it.
Change the from "Release" to Debug (or vice-cversa) then clean and build, then revert back.
Close visual studio and manually delete everything in the \bin directory
For an asp.net website, close visual studio and delete the files in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files (Path will vary depending on your machine setup This is where my ASP.NET versino 4 files are compiled to.)

Categories