Most voted "c#" questions
This tag should be used when the question refers to some resource, information or problem related to the C#language. C# ("C Sharp") is a multi-paradigm programming language that has strongly typed variables, is imperative, declarative, functional, generic, object-oriented and component-oriented, which are designed to be executed in . NET Framework.
Learn more…13,899 questions
Sort by count of
-
0
votes2
answers179
viewsUse Progressbar to copy folders and their contents
I have an application in C# Winforms that when you click on a button, you should start copying several folders and their respective contents. As this process is time consuming, I would like the user…
-
0
votes2
answers73
viewsWith editing Tabcontrol in c#?
I intend to hide only the part of TabControl that comes the name of the tabpage in C#, as image below. It is possible?…
c#asked 7 years, 8 months ago António Mateta 159 -
0
votes1
answer271
viewsHow to change the application version at runtime on C#
I need to change the application version from 1.0.0.0 to 1.1.0.0 at runtime, as I can do since the Productversion property is just get;
-
0
votes1
answer81
viewsRun something after an animation - WPF
I have the following animation when I start my project: public ConfigInicial_Empresa() { InitializeComponent(); brush = (Brush)bc.ConvertFrom("#444"); window.Background = brush; DoubleAnimation…
-
0
votes1
answer190
viewsDoubt about . NET Framework 3.5 and ASP.NET MVC
I need to create an ASP.NET MVC application using . NET Framework 3.5 following steps: File -> New -> Project, then I choose, Visual Template C# -> Web afterward .NET Framework 3.5 and…
-
0
votes0
answers11
viewsOauth in Azure does not open
I’m working with Google Drive API and localhost the Consent screen - the one you authorize the application to make changes and view your data - normally opens in a new browser tab. But when I move…
-
0
votes1
answer56
viewsProblem in View (details)
I am repeating the Letterpress in the View, how can I use the ". first" in the query in the controller? Error in the View: http://i.imgur.com/7t8AOJI.png? 1 View(details): @model…
-
0
votes0
answers175
viewsVS2015 - Accessing Mobile Application
Good morning! I am creating an API for testing on VS2015. When running the project, it uses the "localhost:32150" address provided by IIS Express. If I provide a method from my browser, it works…
-
0
votes1
answer202
viewsSocket receiving more than one message together
I have a socket client receiving xml messages that is working normally but in some moments it is necessary that the server sends me more than one message related to a request, and these messages are…
-
0
votes1
answer309
viewsjquery ui dialog does not expect confirmation
I’m wearing a ListView to generate buttons according to the IdPassoWorkflow, and show on the screen the buttons as per image below. When clicked, I open one dialog for the user confirms the action,…
-
0
votes1
answer77
viewsjQuery.ajax calls webmethod(c#) with Speechsynthesizer
I have a javascript method that checks if there is an unread message. If there displays the image of an envelope. The method executes a jQuery.ajax calling a Webmethod that returns the amount of…
-
0
votes1
answer90
viewsGoogle Consent screen does not open
I made an application that has the function of backing up to Google Drive, but it does not work when I put in some server, works only in localhost. What happens is that it doesn’t open the consent…
-
0
votes1
answer35
viewsSession Usage vs SQL Query Function
I am developing a system and today I have some 10 modules, currently I do the permission storage of each module in a separate boolean Session. The Value of each Session receives the module name…
c#asked 7 years, 7 months ago Figueiredo 36 -
0
votes1
answer115
viewsI am unable to access a Webservice written in C#, from Java
I have a Webservice written C# and need to connect to it from Java to invoke some methods. It is possible? import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level;…
-
0
votes1
answer225
viewsApply force by clicking and dragging Unity
Good morning, I’m a beginner in Unity so sorry if I talk nonsense haha I am developing a game where I need to put a ball in a basket, what I am not able to do is to click and drag the ball to apply…
-
0
votes1
answer478
viewsSession issues in MVC application using Actionfilters
I have a problem in my application ASP.Net MVC, on authentication. Let’s go through steps: 1) I have my login screen /Login/Index simply log in, if found in the database MySQL, and starts the…
-
0
votes2
answers49
viewsDatapicker Mysql
How to take the value that is in datepicker and do a search in the database? I tried this way but it is not correct var cmd = new MySqlCommand("SELECT distinct id, Pedagio, Carro, Placa, Fabricante,…
-
0
votes1
answer662
viewsSystem.IO.Filenotfoundexception error
i am having a problem in my project, this giving Filenotfoundexception System.IO.error. I imported 2 Dll’s to my project, but it appears as if it is not. Does anyone know what it could be?…
-
0
votes1
answer86
viewsApplication template for . net standard library
In Visual Studio, I know I can create a UWP - Universal Windows Platform application template, where the wizard defaults to the . net core in the project, among them . net standard. net framework…
-
0
votes2
answers102
viewsDoubt with Try Catch
I have the following code: try { modelOn.pacienteOns.Add(Conversao.pacienteToOn(oObjeto)); oObjeto.online = 1; modelOn.SaveChanges(); modelOff.SaveChanges(); } catch (Exception i) {…
c#asked 7 years, 7 months ago Italo Rodrigo 4,344 -
0
votes1
answer128
viewsCompare and replace text in large volumes of data
I have a data dictionary with some abbreviations and I need to go through a list containing dozens and even hundreds of paragraphs in order to compare words and replace words with those…
-
0
votes2
answers408
viewsArduino serialporta with C#
I get the information passed through the serial port of my Arduino with this code: cnx.Open(); string carro = cnx.ReadLine(); textBox1.Text = carro; cnx.Close(); I was wondering if it would be…
-
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
votes1
answer375
viewsFormat Gridview Time
Good morning, I have a field on the grid, which is filled from SQL a Time field(7). It appears this way in the grid: 15:10:51.1000000 But I would like it to appear like this: 15:10:51, and in every…
-
0
votes4
answers7923
viewsHow do I give Enter and Run my SEARCH button
I created a program that has the Client Search field that loads the Clients in listview.. I want to search by filling in the Textbox and Pressing the Enter Key
-
0
votes1
answer1178
views"Input string was not in an incorrect format" when filtering array
After sending a String that is a command keyword to my Arduino through the serial port, I’m trying to take values in a C#application, and a certain string and put them in two different arrays using…
-
0
votes0
answers43
viewsAccessing object created by another thread
I am creating an application in C#. The graphical interface elements are created by main-thread, and put a second thread to perform a process that is too long. The problem is that I am trying to…
-
0
votes1
answer66
viewsMultiple spinners
I’m creating an app where I have a TableLayout, in which I add TableRow dynamically with Spinners and TextEdit. It is possible to create a EventHandler common to all Spinners?…
-
0
votes1
answer84
viewsProblem picking up file key . resx
I have a NullReferenceException in this line: string from = HttpContext.GetGlobalResourceObject("globalization", "mail_from").ToString(); because it is not finding the file . resx, so it does not…
c#asked 7 years, 7 months ago Artur Trapp 5,175 -
0
votes1
answer404
viewsWhy can’t I see Form1.Cs
I created a tableLayoutPanel and later wanted to put a Panel in each cell of tableLayoutPanel. I made the following code and when I compile, it works. Panel[,] panels = new…
c#asked 8 years, 10 months ago João Lopes 33 -
0
votes0
answers291
viewsError Object Reference not set to an instance of an Object. Microsoft.Office.Interop.Word.Application
I am developing a code to convert a word document into pdf. When I run the application through Visual Studio, the conversion is performed and no errors are shown. When I run the application on the…
-
0
votes1
answer44
viewsProblem in a dropdown
I have a very strange problem with my dropdown. When I load Submit this error appears: There is no Viewdata item of type 'Ienumerable' that has the key 'Diocese'. but I believe that the mistake is…
-
0
votes1
answer918
views -
0
votes1
answer7455
viewsHow to use group by in LAMBDA
I have a product table: int id string descricao int quant Here’s what I wanna do: select descricao, sum(quant) from produtos group by descricao How to make the above query in lambda?…
-
0
votes1
answer157
viewsInheritance of abstract form
I have a standard form, with a textbox, a search button and a grid; as I intend to use it for several searches, I left an abstract Search() method and at the same time the form as abstract... When…
-
0
votes0
answers322
viewsWindows authentication with Selenium
I am trying to perform a windows autentation with Selenium, however is presented the error below.. There is another way to perform this type of authentication?…
-
0
votes2
answers158
viewsActionlink + data-loading-text
People need to put this data-loading-text in this link action only I’m not getting Action Link @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new {…
-
0
votes1
answer162
viewsWCF + Web API - How to integrate?
I am developing a web api and need to integrate with a third party service that is a WCF. I have the definition of WSDL, integrated in my Solution as a service Ference, but is pointing to a physical…
-
0
votes1
answer368
viewsFramework for Windows Forms or WPF
Guys, I wonder if there is any framework for Windows Forms or WPF, to facilitate development. framework that facilitated UI creation, and data access .
-
0
votes1
answer264
viewsHow to run a c# program on the client machine?
Good afternoon guys, I just finished a sales system in c#,I am testing the same on another machine this generate error, I have installed . Net Framework 4.5 but still continues. What will be the…
-
0
votes1
answer43
viewsGridiview in Asp.net mounting
Good afternoon, you guys. I have a doubt when it comes time to mount a gridview I do not possess much knowledge in c# I did so string sql = "SELECT…
-
0
votes1
answer41
viewsKendo Grid Remote XML Data
I have a WCF that returns the data from a remote Mysql database, the return is a simple XML, I believe because it is a simple XML is not populating my Kendo grid. I would like an example to assemble…
-
0
votes0
answers428
viewsImage printing on Datamax printer with C#
Good morning! I have a label printing system on the Datamax printer that is made in C#. I need to generate the impression of an image (logo) on the label and was following the steps described in…
-
0
votes1
answer277
viewsLINQ to Entities x Lambda Expression
What is the difference between LINQ to Entities x Lambda Expression? Still using LINQ to Entities in the Entity Framework or is there something new?
-
0
votes0
answers688
viewsError in Discriminator Column EF code first
I am doing a project in Asp.net, I am using classes in C# to make the connection with the bank, however, every time I try to insert a user in the bank, generates the following error: invalid…
-
0
votes1
answer388
viewsCheckbox in C#
How to insert Checkbox into the Form from a database. Where the table field will be the Checkbox Text? Example: Tabela -- 0|Versao 1|2.9.15 2|2.9.16 put 2 Checkbox for the user to choose the…
c#asked 7 years, 6 months ago Ana Carvalho 389 -
0
votes0
answers282
viewsDesktop remote application with RDP protocol
I’m making an application based on the example Remote Desktop application with RDP Protocol. But, how to change the color of the transmission? That is, the property colordepth. I’m using the…
-
0
votes1
answer181
viewsHow to get the current process that the user is using?
I made a program to pick up the user’s current process, but only what it takes is " Consoleapplication1.vshost" ( Consoleapplication1 is the name of the program), even in windows like Google Chrome,…
-
0
votes1
answer95
viewsSolve color problem in richtextbox in C#
How do I click on button1 the text of richTextBox2 become a certain color, and I click on button2 text from the vertical input bar | become the color of the button2, my code below makes the color…