Most voted ".net" questions
The Microsoft . NET is a set of libraries and functions that are part of the Basic Class Library (BCL), such as user interface functions, data access, connectivity, cryptography, web development, mathematical algorithms, and network communication.
Learn more…2,689 questions
Sort by count of
-
1
votes3
answers2501
viewsBuild problem in C#release mode
While trying to build release mode displays the following error message: Mixed mode Assembly has been compiled relative to 'v2.0.50727' version of runtime and cannot be loaded at runtime 4.0 without…
-
1
votes1
answer33
viewsStatic or Resource class?
I want to abstract the phrases/words often used in my project, however, arose the doubts where to put them Static Class or create a Resource? What is the recommendation for best practice and…
-
1
votes1
answer98
viewsPlay Query Dice For Datagridview in C#
Hello guys I’m facing problems with a listing. I have a Datagridview loading a list of products automatically and a combobox with the names of the categories, the idea is that when selecting a…
-
1
votes1
answer76
viewsType conversion going wrong
I have a data conversion problem when going through For Each, accuses the item "vl_maodeobra" cannot be converted from String to type Integer. The problem is that no matter what conversion I try to…
-
1
votes1
answer190
viewsHow to block mouse scroll in Datagridview?
To disable Scrollbar on a Vb.net grid, there is a problem and I want to block to fix it.
-
1
votes1
answer743
viewsAPI for viewing places on the map
I am in need of an API that works like HERE Maps, which enables an easy query through a REST service. With it, for example, I can identify stores within a certain range. But I came across the…
-
1
votes1
answer53
viewsWhere to get an Assembly from the Roslyn compiler?
Where can I get a Assembly (.dll) containing the CodeDom with the ombudsman of .NET Compiler "Roslyn"? I tried to download a version here and it is with many bugs, including poor performance and…
-
1
votes0
answers218
viewsConsume Webservice asmx with Android
I am trying to get SOAP provided from an asmx local webservice on my android emulator. On my PC the result is as follows: In the emulator however, I tried to open in your browser in two ways: Using…
-
1
votes1
answer175
viewsHow to create two classes with the same methods, even though one of them is not`Partial`?
I can create a class to implement the class System.Console, without creating extensions? Example: 'A original, da mscorlib: Public NotInheritable Class Console (...) End Class She’s marked as a…
-
1
votes1
answer142
viewsHow to use Scope_identify to return id . NET
I am developing an application and need that when sql does the Insert return the value of the id that was inserted, I am using the following command SqlCommand cmd = new SqlCommand("insert into…
-
1
votes1
answer241
viewsConvert Datatable to List Entity
I’m trying to use the code below to convert but it gives error everywhere that has the T and where. What could be? // function that set the given object from the given data row public static void…
-
1
votes2
answers88
viewsEnsure that a set of functions function correctly
Hey there, guys! I’ve got a problem eating at me and I don’t think I can handle it on my own... Here’s the thing: I have a form with a button; that button is responsible for selling a product. The…
-
1
votes1
answer1454
viewsbootstrap CSS does not load when the application is published in IIS
When I’m running the application in visual studio 2010 I have no problem with boostrap CSS and javascript, but when I publish it on IIS, all Java and css are not recognized. I created a simple html…
-
1
votes1
answer77
viewsSoftware with cost. Help?
Hello, everybody! Well, my situation is this: I have a program and I want to charge for the use, but I realized that if I left free there would be more customers. So I thought I’d limit the system…
-
1
votes1
answer59
viewsGet Type from a class without instantiating it
I need to get the Type of a class without instantiating it, I tried to do that way: variavelQualquer.Type = new ClasseA().Type; // Type é uma variável pública que guarda o valor do método GetType()…
-
1
votes2
answers811
viewsRecord and recover information in files
How do I write data to a file and then recover it? I have a enrollment system. I start a folder in Windows and within it I generate the enrollments sequentially. I finish and go home and the next…
-
1
votes1
answer215
viewsIIS Express or Owin self host (as a service)
What are the advantages/disadvantages of these two approaches. Some characteristics: Will be a server REST. The project at first will have few requests Local server (not cloud)…
-
1
votes2
answers548
viewsHandling of returns other than JSON
I’m working on an API integration with JSON. I have not implemented anything yet in my code C#, I am for now studying the API but I have already come up with a question. I have a Login method that…
-
1
votes1
answer164
viewsDependent executable files available to the user
I got a problem with my setup of Visual Studio 2010, I made an application that the form main has several Forms dependent and when the setup from it and perform the installation of it, in the…
-
1
votes1
answer422
viewsHow to handle code in a DLL?
The barcode is being generated through a class of a DLL downloaded from the internet. I need to change this bar code, but this class is blocked. How can I do a trick?
-
1
votes1
answer32
viewsProblem with a field in Regex
I have the following expression: (?!.*"); it captures anything that is separated by the character ; except when ta inside a string. Here’s an example: ABC; #captura o último ; 123; #captura o último…
-
1
votes2
answers608
viewsWeb Service Mail Test - SSL Error
Has anyone ever had this problem referencing web service for testing and implementations of the post office. I need to perform some validations but I can’t execute any method without SSL errors.…
-
1
votes1
answer893
viewsSelect span, and grab the text inside
I have the following HTML code: <div class="dados"> <span><strong>Nome:</strong> Yuri Santos</span> <span><strong>E-mail:</strong>…
-
1
votes3
answers6938
views -
1
votes1
answer68
viewsConfiguration table
How could I use a configuration table in nhibernate? That is, a table of only one record and that it only controlled this record, I know you have how to do this via application, but I wanted to know…
-
1
votes1
answer238
viewsIs it possible to change CSS in Webbrowser VB.NET?
Hello, all good folks? my next question... I want to disable all background-image so... wanted to take the html of the whole page and put nothing in the tag "background-image" always leave empty. in…
-
1
votes1
answer569
viewsHttpwebrequest with SSL
When I have to play a few steps (GETS and POSTS) of an access all https using .net I need the use of ServicePointManager.ServerCertificateValidationCallback. Then there came my doubt, it is…
-
1
votes1
answer1484
viewsApply filter to Datagrid populated with List without changing the Datasource
It is possible to apply filter to a DataGridView which is "filled" with a List, without altering the DataSource grid? Example: When I have a grid that uses a BindingSource I can apply a filter, like…
-
1
votes2
answers151
views -
1
votes1
answer731
viewsHow do you turn off a key in a full form?
How can I disable key TAB or ALT program? Example: clicking TAB does not make any changes. It is possible in the KeyDown?
-
1
votes1
answer306
viewsUrl.Action with routevalues and objects
I have the following Url.Action: @Url.Action("ActionName", "ControllerName", new { area = "AreaName" }) I also need to send some objects to this action through this Url.Action, how could I do that?…
-
1
votes1
answer75
views -
1
votes1
answer46
viewsWhat are the most common ways to enter data remotely?
I have several applications where I perform constant data insertions in the local database, however, the number of simultaneous applications has become very large and the data is delayed. Now, I…
.netasked 9 years, 1 month ago Jean Gustavo Prates 3,067 -
1
votes1
answer301
viewsIncreasing the size of a string
It is possible to increase the size of a string in the code? string sIdentComanda = ""; if (objComandaParametro.ComandaParametros[0].IsControlaNrComanda) { sIdentComanda += " Comanda: " + nrComanda;…
-
1
votes1
answer2060
viewsGrab the application folder
I have an application with all interfaces and features. In the same project I put a simple code running on console to check if there is already a database created on the machine. If not, he must…
-
1
votes3
answers2971
views -
1
votes0
answers32
viewsDbdatareader to read after a while
When the database is at the beginning, it works perfectly, after some time of use, the object does not return anything and the query does not work. This is the source: using (DbCommand cmd =…
-
1
votes4
answers630
viewsHow do I use the F2 key to open another form?
I have the following code, but this enabled the key ENTER (13) to open the form, I would like to enable the F2, I have already searched ASCII tables everywhere and can’t find the desired code.…
-
1
votes2
answers10665
viewsHow to get time difference between two Datetime variables in C#
I have two variables DateTime, which are Datacadastro and DataAtual(DateTime.Now). I need to know if the time difference between these two dates is greater than or equal to 4 hours. Is there any…
-
1
votes1
answer217
viewsAES128/256 C#. net AND SQL 2008/2012 encryption
Greetings, Does anyone know of any AES compliant encryption implementation between c# and SQL? I want to encrypt in C# and decrypt in SQL.
-
1
votes3
answers1300
viewsError 400 when calling a. net service in the iOS app - How to resolve?
I need to access a webservice of my app. I took an example in stackoverflow to access the service http://www.cgsapi.com/CGSWebService.asmx. Below is the source code to access the service. The…
-
1
votes1
answer175
viewsUsing variables from other sources (C#)
I’m learning programming with C#,using visual studio 2013. In this program I have two windows. In the first window I have a text box and a button that saves the text in a string and opens the second…
-
1
votes1
answer221
viewsEnable WPF C# Button through a function
I have a form to fill in some data through Textbox. I have a class that has some validation functions of fields name, password, user for example. And in my Code Behind just call the function that…
-
1
votes1
answer50
viewsIsolatedstoragesetting in Windows Forms?
I’m used to using for Windows Phone, so: using System.IO.IsolatedStorage; public void putString(string key, string variable) { IsolatedStorageSettings iso =…
-
1
votes1
answer213
viewsHow to improve string comparison and concatenation C#
I have the following code: private static string MontarDescricaoOrgaoUoUe(RequisicaoFisica requisicao) { return !string.IsNullOrEmpty(MontarNomeOrgao(requisicao)) ? MontarNomeOrgao(requisicao) :…
-
1
votes1
answer90
viewsRead/Write information to file . cds
I took a project to develop in C#, the project is based on reading information from a file .txt and save the information to a file .cds which is used in a system developed in Delphi. I looked for an…
-
1
votes1
answer72
viewsReportviewer - Data merges columns when exported to excel
I am generating a report and exporting to excel, using Reportviewer and Dataset. Reportviewer consists of a table and two textbox, that refer to the title and company, and an image. After doing some…
-
1
votes1
answer244
views -
1
votes1
answer308
viewsWinsock (VB6) vs Socket in C#
I have a code on VB6 that uses MSWINSCK.OCX to send commands to a device, the code is below. But I have to switch to C# and I’m trying to use the Sockets class, the problem I’m facing is that the…
-
1
votes1
answer174
viewsUncaught Error: [$injector:modulerr] - Asp.Net MVC
I’m having trouble uploading data from controller in Angular. I’m not understanding, I followed step by step the explanation and mine gave this error. var app = angular.module('app', []);…