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
-
0
votes0
answers27
viewsError on some computers when trying to capture processor voltage by WMI
On only a few computers while running my hardware specification program it accuses an error on the 155 line. public static String voltage() { String Ic = String.Empty; foreach (var item in new…
-
0
votes1
answer156
viewsTake a string snippet
I want to take the word "[email protected]" that’s inside that metromessagebox I tried that, but it didn’t work out: String[] palavra = ex.Message.Split(new String[] { "(", ")" },…
-
0
votes2
answers100
viewsDropdown field increment
Well, I have the following problem. I have to use a Javascript or Jquery function to add new fields to fill and save in the database. In these fields I have to use a Dropdown, but I don’t know how…
-
0
votes2
answers627
viewsHow to save an attribute to image
I need to save an image and say I have something like: namespace Projeto.Models { public class Usuario { public int UserId { get; set; } public String Nome { get; set; } public ? Foto { get; set; }…
-
0
votes1
answer98
viewsHow to add more than one Datarelation to a Dataset in C#?
Is it possible to add more than one Datarelation to a Dataset? Need three columns in separate tables to be related.
-
0
votes1
answer68
viewsLinq XML problems using namespace . net
I am using a namespace at the moment I create my xml, but xmlns is also appearing in the tag below the root, this is hurting me, how can I make 'xmlns' get apernas in the root tag (Tlote_gnre)?…
-
0
votes2
answers221
viewsDropdownlist in views Asp.net mvc of the validation error
In a view razor of asp.net mvc I have a dropdownlist with the following code: @Html.DropDownListFor(model => model.Banco, (SelectList) ViewBag.Banco, new {@class = "form-control"}) Even selecting…
-
0
votes1
answer362
viewsThe type or namespace name 'Ajaxcontroltoolkit' could not be found in the global namespace (are you Missing an Assembly Reference?
I have a problem when publishing or compiling the project, the following error appears: The type or namespace name 'Ajaxcontroltoolkit' could not be found in the global namespace (are you Missing an…
-
0
votes1
answer37
viewsNothing value in a query to an xml tag using Linq . net
I have the following xml: <ns1:TRetLote_GNRE xmlns="http://www.gnre.pe.gov.br" xmlns:ns1="http://www.gnre.pe.gov.br"> <ns1:ambiente>1</ns1:ambiente> <ns1:situacaoRecepcao>…
-
0
votes1
answer68
viewsHow to download a simple text file?
As I bass and catch the String contained in an online file on Windows Phone 8.1 SDK?
-
0
votes2
answers144
viewsHow a Checkbox can receive a Datagridview Checkboxcell
In my Datagridview brings from the Database the user information, among them if he is administrator or not, this cell has a Datagridviewcheckboxcell. I want to pass its value (True/False) to a…
-
0
votes2
answers282
viewsError entering in batch using Oraclecommand
I need to optimize a load application that runs through a database and writes to another database, but this has to be done through an application Windows Forms. I’m doing using the ArrayBindCount of…
-
0
votes3
answers124
viewsTake the name textview in repetition loop
How can I get the textbox inside a For: I have a For that traverses 20 times and I have 20 textbox on my screen, I wonder how I could get all the textbox that contains on name the word "Publishing"…
-
0
votes1
answer164
viewsError connecting with Webservice + Soap + Android
Good afternoon, I am having a problem connecting to the webservice. I am using ksoap2 library. public class CallSOAP { public final String SOAP_ACTION = "http://tempuri.org/yteste"; public final…
-
0
votes1
answer38
viewsHow to get these lines and blocks?
I’m creating a parser of a language I’m developing, I’m having trouble separating lines and blocks from code, follow the code I use to return lines: Friend Class Splitter Public Itens As New List(Of…
-
0
votes2
answers793
viewsSave XML from a List
I am developing a C# Console Application that loads a List and then writes an XML file with the contents of this List. Class public class Equipamento { public int Id { get; set; } public string…
-
0
votes2
answers1180
viewsLimit file size
I created a file import method. I would like to know how limit the size from the uploaded file to the server.
-
0
votes1
answer3261
viewsGrab the coordinates of the mouse position by clicking
I have to trace a line with starting point and ending point,I can do this line if I provide these coordinates by keyboard, but I want to do this by mouse click,the first would be the starting point…
-
0
votes1
answer35
viewsClickonce does not receive last update
I have an application in Winforms, posted on my app server. When I try to install the latest ex version. 1.1 by Clickonce, the customer machine does the installation of version 1.0, which in this…
-
0
votes1
answer70
viewsHow to put 0x0D 0x0A at the end of a txt file
I have the end of the code of my txt file below and according to the recipe manual, asks me to put the characters 0x0D 0x0A at the end of the record. How could I do that? ATT01 =…
-
0
votes1
answer45
viewsDoubts of systems architecture
Good afternoon, I have to change the company’s system here, and it’s gonna get more complex. We are a builder every work we work is previously budgeted, when the buyer will add an order, the system…
-
0
votes1
answer64
viewsHow to use SQL LIKE
I’m trying to assemble a string that makes a filter to compare only a piece of a numbering. I tried to make an appeal and looked for several ways to do it and so far I could not. using…
-
0
votes1
answer839
viewsError when reassembling a string. Size is out
I can’t fill out that list the way it is: foreach (var item in text) { string[] linha = item.Split('\n'); foreach (var i in linha) { string nova_string = i.Substring(0, i.LastIndexOf("\r"));…
-
0
votes1
answer135
viewsError inserting image loop in report pdf Reports.dll . net
I have a while that will repeat 3 times an insertion of a barcode but I am using lib Reports.dll to create the report in pdf. This lib only accepts images saved in some directory (as far as I know),…
-
0
votes1
answer77
viewsError while trying to update Visual Studio 2015 / Framework to version 4.6.1
I downloaded the visual Studio 2015 and everything was fine, but unfortunately I work with a shared machine and the other user ended up deleting the installations of . Netframework 4.6.1 , now I’m…
-
0
votes1
answer52
viewsPerform 'Check' of a Datatable (Ids) in batch in the database
I have a small desktop application (Windows Forms - .NET 2.0 - C#) in which I just use it to perform a check on a given time-to-time path and in case this check finds a file. txt in this path, an…
-
0
votes2
answers897
viewsWebservice in C# with 404 error
I’m doing maintenance on a C Project, which has Webservices. I created a new service and ran the program, it works as images below, but calling the method gives error 404. This is normal behavior?…
-
0
votes1
answer179
viewsCrystal Reports Displaying Strange Values
I’m starting in CR and I’m having a hard time generating a report in Crystal Reports from visual studio 2008. It is not displaying values from my database table. The datasource I am using in the…
-
0
votes2
answers229
viewsGet elapsed time from a string
I wanted to calculate the time now with what I get from a string like this: 2016-04-16T15:55:53Z But the time is three hours longer than our time zone, wanted some kind of exit: Já se decorreu 0…
-
0
votes1
answer40
viewsHow to list static properties (Shared Property) equal to System.Drawing.Color
I have a structure called Servicos and in it I have some static properties. Public Structure Servico Public Shared ReadOnly Property Instalacao As Servico Get Return New…
-
0
votes1
answer188
viewsWhat good is Runnable?
I was thinking of creating thread one in my software, but I saw through the forums that the Runnable help in a certain way in creating a thread, and wanted to understand how it works.…
-
0
votes1
answer367
viewsSave last value to variable and display
I’m having a problem in my program its function is to display on the screen how much ram memory the process is currently consuming and display the peak of memory usage, so my problem is when I close…
-
0
votes1
answer92
viewsGet all the console buffer
How can I get all the Console text (System.Console) for a String, without redirecting the console output to a process, for example, I want to get what’s in the Console through the Console itself. Is…
-
0
votes2
answers482
viewsInsert time and time into database
I want to enter the time and date separately in the database, which have the fields timestamp and data, respectively. I have the following code on the insert button: SqlCommand sqlInsertCabecalho =…
-
0
votes2
answers142
viewsSaving report on disk in PDF
I took a legacy code here and I have no experience with Windowsforms. The case is, a report is generated and saved within a Printdocument type object. Then it seems that it populates another object,…
-
0
votes2
answers1069
viewsVoice recognition does not work
I recently formatted my laptop and had to reinstall everything, only now my TCC project is error that in the case before had not had. In that code snippet: SpeechRecognitionEngine sre = new…
-
0
votes2
answers161
viewsPostgresql oid column attribute type with EF6
What type of attribute should I use to represent a type column oid of Postgresql with Entity Framework 6 Code-First? Remembering that the type oid Postgresql is for storing files.…
c# .net entity-framework postgresql entity-framework-6asked 8 years, 5 months ago Matheus Saraiva 2,157 -
0
votes0
answers33
viewsHow to use Updateprogress with Enablepartialrendering=false?
I have a page where you need to fill two dropdownlists, but do not load Updateprogress if Enablepartialrendering is false. If true, Updateprogress is loaded, but the second DDL is not.
-
0
votes1
answer163
viewsAre the MVC paradigms and Webforms (with code-Behind) mutually exclusive?
My doubt stems from an instructor’s explanation that the MVC standard would apply to the presentation layer, but upon encountering this other question and answers I started to believe that either…
-
0
votes1
answer758
viewsInsert date and currency data of a maskedTextBox into Mysql
When trying to enter the typed data of an object maskedTextBox, one of the date type and another of the currency type, in the Mysql database, where I have a table called test, created as command…
-
0
votes2
answers129
viewsReturn - Method called in Form1, and Return in form2
Folks good night, one question. I have a Form1 that calls a class and a method, sending this method two string parameters, this method processes, and returns me an int value. My question is, is it…
-
0
votes0
answers89
viewsCall the webservice with an XML
I have to develop a web service (Rest) in java that will be called by an excel add-in developed in .NET. This plugin has to send an xml, what I did was turn it into a string only the XML is huge. A…
-
0
votes3
answers1957
viewsCannot implicitly Convert type 'Object' to 'int'. An Explicit Conversion exists (are you Missing a cast?)
I’m trying to develop a code in my game but I’m making this mistake. ... case "cpsuser": Console.Write("Digite o apelido do usuário: "); string Nickname = Console.ReadLine(); Console.Write("Digite a…
-
0
votes0
answers270
viewsWCF Service Host - Service does not register port if it does not run VS as Administrator
Hello, while trying to run a Servicelibrary type Webservice. WCF Service Host gives me the following bad news : Please Try Changing the HTTP port to 8733 or running as Administrator.…
-
0
votes1
answer226
viewsDraw outside a form area
Using C# with Windows Forms Application project type is it possible to draw things out of the form? I would like to draw a square that can be stretched by the mouse and repositioned, where I should…
-
0
votes1
answer748
viewsObject reference not defined for an object instance. C# (on installation)
By the error message, it was understood that there is an object not instantiated, in which I would be making reference. Error: However, this same application works perfectly on the development…
-
0
votes1
answer115
viewsThe WFA1.exe file is not a valid (portable executable) PE
Hello, I’m trying to use the update function of visual studio using Click Once, but on some computers, when starting to install the file, it crashes and displays an error message. This problem only…
-
0
votes2
answers475
viewsIs it possible to run ASP.NET MVC without IIS?
It is possible to run an ASP.NET MVC application without IIS? I wanted the user to be able to run this ASP.NET MVC application without having to configure IIS, I found this link, but I didn’t…
-
0
votes1
answer115
viewsActionresult and async method Using Fastmapper, Typeadpter Error
I have the following problem with Fastmapper. When implementing an Actionresult async when using Typeadapt it cannot perform the asynchronous conversion, would anyone know how to do the conversion…
-
0
votes0
answers178
viewsHow to place two images in itext.Pdftemplate
I wonder if someone could help me need to create a pdf q report in the header would have two images one right the other left and the title in the center..