Most voted "visual-studio" questions
Visual Studio is an integrated development environment (IDE) by Microsoft that supports several different programming languages. Use this tag for questions about any version of Visual Studio and the specific tags of each version when the question is for something that only applies to that version. Do not use this tag for problems that are not directly related to the IDE or its tools/extensions.
Learn more…852 questions
Sort by count of
-
0
votes0
answers29
viewsValidation for Dropdownlist in ASP.NET MVC
I’m doing a project, I was doing a Dropdownlist that takes the database data and shows the user. To some extent everything went well, but it lacks a part of treatment, or a validation, because every…
-
0
votes0
answers20
viewsId value is not changing in ASP.NET MVC 5
I am creating a CRUD in ASP.NET in my project, however, started to give a problem. When I try to delete a Product, it passes the totally different Id to the other View, an Id that does not match the…
-
0
votes1
answer556
viewsVisual Studio Code does not suggest Unity methods and classes
If I type the code and pass it to Unity, Unity runs the code normally, but Visual Studio is not recognizing Unity (as you can see in the colors of the photo below), which makes it very difficult to…
-
0
votes0
answers63
viewsDecimal is not accepting decimals - ASP.NET MVC 5
I am doing a project in ASP.NET, but it started to give a problem, the field only accepts to receive integers, every time I put a decimal number, for example 20.10, it simply does not let me insert…
-
0
votes0
answers32
viewsError in custom code fields when exporting Reportviewer (RDLC) report to PDF
I have a custom code in a Reportviewer (RDLC) report that basically checks whether a specific date is within a date range contained in a set of ranges coming from a database and returns a value. The…
-
0
votes1
answer233
viewsQuery user in Sql server
As I do to return instead of a query through a fixed user, the code was in the database to query the users and return it. I use Sql Server with aspnet core 3.1 application Someone who can help me in…
-
0
votes1
answer34
viewsHow to print a dynamic list in c++?
Good evening! is my first post here so please in case I reported something wrong, feel free to fix it. I made a dynamic char list, but I’m having difficulty printing the entire list on the screen,…
-
0
votes0
answers251
viewsValue cannot be null. Name of parameter: entitySet
I am trying to make a project of an e-commerce of Petshop in ASP.NET MVC with Entityframework. Everything was going well, until suddenly, when I tried to register or even list Vendor, this error…
asp.net-mvc entity-framework asp.net-mvc-5 visual-studio entity-framework-6asked 3 years, 12 months ago Leo 29 -
0
votes0
answers67
viewsHow to implement in C++ and use in C# in VS?
EDIT: I want to implement in C++ (no limitations, using intrinsics, inlines, optimizing and everything else normally), choose what in what has been implemented is visible in . NET (C# at least) and…
-
0
votes1
answer81
viewsHow to read a file and save each line at a position of a vector in C#
I’m learning how to use C# in Visual Studio 2019. I want to read a text file and save each line in a position of a vector of the type string. However, when I click on "button1" to read the file and…
-
0
votes0
answers10
viewshow to close the current form while handling an external component?
I have a form that is not the main form of the program. I am using Libvlc for C# for media playback in this form, so I have a Mediaplayer component. I’m dealing with the Mediaplayer_stopped event as…
-
0
votes1
answer34
viewsHelp - Modify formula when changing radiobutton
Hello, developers! I need help with my MRU calculation program. When I input the data with the meter/seconds radio button active, and then select on the km/h radio button it converts the data…
-
0
votes0
answers23
viewsRename Dll output C# Projetoform VB-2019
What I want is to rename the dll without losing the reference . Example : System.Threading.Tasks.Extensions.dll for TRANSPCONSUMIR.System.Threading.Tasks.Extensions.dll But when I just rename, he…
-
0
votes1
answer70
viewsProblem with VS Code , package java
Guys I’m in trouble for 3 days on VS Code already took, put again, deleted the folder ". vscode" and still persist, if I create a new project in vs code it works normally if I close and open it…
java visual-studio visual-studio-code packages pathasked 3 years, 6 months ago wellington gertrudes 11 -
0
votes1
answer35
viewsHow to change the Listbox Index to 1?
Citation I would like to add names to a listbox, put a NumericUpDown to associate how many dependent names will be added at most, depending on the number the user enters, and a txtbox to add names…
-
0
votes1
answer36
viewsMega API Client: Cancellationtoken at Downloadfileasync
I started using a MEGA file cloud API where I can upload and download the files from the cloud. Nuget Package here, I’m doing fine: using CG.Web.MegaApiClient; using System; using…
-
0
votes1
answer49
viewsProblem with installation of offline prerequisites - Visual Studio C#
I’m trying to create an installer for my Windows Forms C# application that should download its prerequisites from the same location of the application, ie, install offline the prerequisites. In…
-
0
votes0
answers25
viewsHow to use a C# DLL in C++ using COM
In my project I am developing interoperability between C# and C++ in a single Library. In C++ my C++ functions and functions could bring to C# while C# methods could bring to C++, for example…
-
0
votes0
answers19
viewswrite data from a Datagridview to the database
Good morning, I am making an application similar to a sale, which contains sales and sales items. my problem is that I am not able to save the items of sale that is in datagridView, I am using…
-
0
votes0
answers28
viewsWrite data from two Datagridview to the Sql Server database
I’m not able to record the data that are in two dataGridView, the data that are in the two Datagridview are in a single Class, I have a code ready but would serve only for a Datagrid, in the same…
-
-1
votes1
answer254
viewsPossibility to drag a form with the mouse when its title bar has been hidden
I have a problem! When I try to move my program to some other place on the screen, I can’t, it seems to be fixed. Does anyone know how to solve? @PS: I tried this code provided by Roberto and it…
-
-1
votes1
answer791
viewsFile being used in another process
Suddenly my application started giving this error: This started this week, along with a problem I’m trying to solve in another post. I’m beginning to think they have correlation. This gives, give ok…
-
-1
votes1
answer71
viewsVisual Studio 1 Solution and 3 Projects, is it possible to separate them later?
I am using Visual Studio 2015. In it I realized that I can have 1 Solution and as many projects as I want (in this case I am creating 3). After ready, I can export the . EXE separately? How to do?…
-
-1
votes1
answer66
viewsDispatchertimer C# error (Universal app win 10)
I am new to programming and I was able to make this code with help, only there is an error. follow picture. public sealed partial class MainPage : Page { private MySqlConnection _connection;…
-
-1
votes1
answer109
viewsXamarin Visual Studio
Installed Visual Studio with Xamarin, Android SDK, etc. When I compile the project it opens the Android AVD, but the Android System does not load, it is only a black screen.
-
-1
votes1
answer48
viewsNormalize encoding of an entire solution
I was working with Gitlab and noticed that it serves all the files on its front end with UTF-8. I have a solution that has source files with various encodings. UTF-8 files are displayed correctly in…
-
-1
votes1
answer198
viewsHow to make a background responsive in c#?
How to relate background_image to window size? Example: Sets my background image, but by changing the window size (minimizing) the image becomes "incomplete", and does not follow the edges acting so…
-
-1
votes1
answer1648
viewsHow to refer to Assembly in Visual Studio?
I was trying to create an application that connects with a database. But the methods of SqlConnection.Open(), SqlConnection.State and SqlConnection.Close() are with errors all appear the message:…
-
-1
votes2
answers742
viewsI can’t get a variable from another namespace
A project is Webapplication and the other one is like Console: "Projectste" Nomedasolution Structure below: Business(Pasta) Businessdal(project) Arquivodal.Cs Console(project) Business.Cs //Project…
-
-1
votes1
answer138
viewsSharpdevelop X Visual Studio: are they equivalent at all?
Sharpdevelop is equivalent to VS or not, it’s a long way to go. I see great difficulties in installing certain packages, for example, the Microsoft.ServiceBus.Notifications. It is an alternative to…
-
-1
votes1
answer1032
viewsC# Windows Forms - Getting the ID of a Logged-in User
I need to take the ID of an already logged in user to create another product. How do I do this ? So, soon, and with the email and password logged in, I want to find the ID logged in for when I…
-
-1
votes1
answer68
viewsList of DB clients on the program page in C#
My problem is this, I do not know how to make appear on the user screen a list with limit X of clients of a DB, I will try to put in topics for a better understanding 1 - The customer list should…
-
-1
votes3
answers380
viewsPrint a string with only numeric values
I’m doing a show in console where the user enters some codes, and I want to print this code back to him just when he gives enter. But I wanted to print only the number values and ignore the…
-
-1
votes2
answers256
viewsConfiguration file for C# Winforms
Is there any way to create a file where I can set for example a color with the name 'Background' and add the value '#fff', then use it in all my Forms, similar to a style of CSS, so that if I need…
-
-1
votes1
answer2201
viewsHow to add additive fonts in addition to those offered by Visual Studio?
How can I add typographic fonts other than those offered by Visual Studio? I suspect they are not Windows fonts as Visual Studio does not list some specific fonts.…
-
-1
votes1
answer399
viewsImport SSIS file with columns at different positions each day
I have the following situation: I make a Flat File (Simple File) import from a *.CSV file to a table in the database. Using SSIS in Visual Studio. However, each day the file I receive has the order…
-
-1
votes1
answer25
viewsErrors: Division by zero and iterator not dereferencable
I’m having trouble compiling this code, it returns me two errors while running it: vector<bool> cp( size ); // determine crossover point (randomly) for( int i = _numberOfCrossoverPoints; i…
-
-1
votes1
answer1380
viewsError No service for type 'Microsoft.AspNetCore.Http.Ihttpcontextaccessor' has been Registered
To help those who are going through the same problem (ANSWER BELOW). Scenario: I am developing an ASP.NET CORE MVC application where I am working with Httpcontextaccessor and the error occurs below.…
-
-1
votes2
answers695
viewsCommand to perform the Down of a migration
With the command add-migration created a migration, so is created a class with two functions. protected override void Up(MigrationBuilder migrationBuilder){...} protected override void…
-
-1
votes1
answer64
viewsLeftover space in Datagridview c#
I have a Datagridview that has as source a Datatable. But there was a gray border left below the last line. I’d like the space I put on the Datagrid form to be filled in completely. I tried some…
-
-1
votes1
answer57
viewsConvert XSD file to c# class in visual studio 2010
I would like to know how I generate a c# class based on an XSD in visual studio 2010?
-
-1
votes2
answers148
viewsHow to create a "Line Counter" in a texbox
I wish I could count the lines Visual Code, Atom or any such publisher. Follow an example image Details: My project runs in c# form, one of the Forms would have a txtbox with the line counter. I’ll…
-
-1
votes1
answer38
viewsVisual Studio C++ Strings in Hexa
I am creating a program in Visual Studio C++ with UI to do RS-232 communication with some weather cameras, for that I have to send a String in Hexa. String is sent in this format: String^ a1 =…
-
-1
votes1
answer530
viewsYou must declare a body because it is not marked as Abstract, extern or partial
I’m new to programming and I’m trying to use the Class Sendkeys following this link, but when placing the: public static void Send(string keys); the compiler returns me the following error: *Error…
-
-1
votes1
answer78
viewsDevelopment environment for Reactjs
I use the Visual Studio with Asp.Net and C# a few years ago and now I’m finishing some courses Reactjs. But I’m having difficulties with the development environment. None of the courses used the…
-
-1
votes1
answer40
viewsList a date period by the day of the week?
I need to do a function in Javascript/jQuery that I take the value of two fields of date format and it returns me a sequence of dates as I choose: 1st or 2nd Tuesday of the selected period in the…
-
-1
votes1
answer77
viewsconvert nvarchar to bit C#
good night! its new in C language# would like to know how to convert nvarchar to bit System.Data.Sqlclient.Sqlexception: 'Failed to convert nvarchar value 'Punctual Payment' to bit data type.'…
-
-1
votes1
answer24
viewsError in netfx (MSBUILD) when building a project
When trying to build my project I’m making this mistake: > An attempt was made to load an assembly with an incorrect format: > C:\Program Files (x86)\Microsoft Visual >…
-
-1
votes1
answer36
viewsHow To Make My Save, Change My Database Data
Guys, I’m trying to make a Button that normally Salva, also become a Button that saves the changes made... It’s all the same form and the same Button, for example when I click two DataGrid he brings…
-
-1
votes1
answer143
viewsChanging Mysql data with C#
I am trying to change data saved in my BD, however by having a certain error, if someone can give a light code I’m using to save the changes: private void btnSalvar_Click(object sender, EventArgs e)…