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
votes0
answers106
viewsMy tetris game descends one piece and in the second piece it game over
My game tetris descends the first normal piece, but in the second piece there in the same high, he of the game over. As if the second piece had reached the top entering the condition of the GAME…
-
0
votes0
answers89
viewsFirebird ADO.NET
I updated the "Firebird ADO.NET Data Provider" to version 4.10.0 and am sometimes receiving the following exception in my application. Exception information: Exception type: NullReferenceException…
-
0
votes2
answers700
viewsC# - I/O on the network
I have a program that makes I/O files (create, edit, save), but I need to put it to do this I/O with files that are on the company network, both read and write. My question is: My program needs…
-
0
votes1
answer87
viewsHow to make a web app localhost modem configurator type?
Hello. I am a C# developer and I need to make a configuration application for a Windows Service. I thought of something similar to those internet modem configuration applications that run directly…
-
0
votes1
answer103
viewsFailed My C# Nils Video Script (No Board Manager)
Nils , or someone who knows how to answer me, there are several errors here in my tab of the console , I’m new in this area and this talking about errors with ) ] } and basic programming things!…
-
0
votes0
answers114
viewsCreate mask for rg C#
I wonder if there is any way I can make appear the mask made through the code in my form? And in which way it would be, is not appearing in my form the way I am doing. In case I do not know if I…
-
0
votes1
answer98
viewsCleaning mask of characters
I created my mask, only when I cancel it gets your characters in it. for example: if I put 0000000000, no time to save gets that number on the mask. Give a look at the image my clean code is this:…
-
0
votes2
answers505
viewsLeave XML in a single line
My c# application gets the idented xml. I need to leave this xml all in one line. How can I do this?
-
0
votes1
answer493
viewsWhat is the best way to generate pdf files via webservice?
I have a Soap webservice and came across the need to generate pdf documents. Has anyone ever worked with generation of many documents via webservice and what technologies have they used? Which…
-
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
votes1
answer267
viewsError creating Xamarin Visual Studio Community 2015 project
Error creating a new project in visual studio using Xamarin…
-
0
votes1
answer43
viewsData Reception and String Conversion
byte[] ret = new byte[29]; s.Receive(ret); Console.WriteLine("Retorno de Dados" + (System.Text.Encoding.ASCII.GetString(ret).Replace("211",""))); string tex =…
-
0
votes0
answers199
viewsParallel Return Problem.Foreach
Good evening, everyone! I am making a system in C# Windowsforms for validation of phone bills model FEBRABAN V2. The files usually have between 600Mb to 15Gb, for this reason I opted for the use of…
-
0
votes1
answer64
viewsRegular expression in C# - Regex accepting numbers with DDD and accepting numbers without DDD
Guys, how do I create a regular expression, where she should accept numbers with DDD, and also accept numbers without DDD?
c#asked 8 years, 6 months ago Felipe Moreira 1 -
0
votes1
answer309
viewsCustomization of datagridview in c#
I’m doing a project and I’m having customization problems in my datagrid, as the information of the two textboxes return in the same datagrid I can’t customize the header of the two, but of only…
-
0
votes0
answers33
viewsUWP Inkcanvas medium rubber
I’m doing a UWP application where I have Inkcanvas, and I implemented the eraser to erase the drawings I made, but the Erasing mode is like the Onenote trace eraser, however what I need is the…
-
0
votes1
answer694
viewsScrollbar in Windows Forms screen
It is possible to put scrollbar in a winforms to increase the amount of window content? Not just in one datagrid, but on the whole screen to include anything, like more buttons, text fields... The…
-
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
votes0
answers23
viewshow to resolve nullReferenceExetion error in Unity 3d
I was making a shooting game Nightmare from Unity traningday appeared that mistake the code is this using UnityEngine; using System.Collections; public class CameraFollow : MonoBehaviour { public…
c#asked 9 years, 3 months ago Daniel Correa Santos 1 -
0
votes1
answer107
viewsAngularjs with Guid in Asp.NET MVC
I am using Angularjs for the first time and I would like to know why this is not possible, I notice that during the debug, there are several errors of Parse inside the angular min.js, I believe it…
-
0
votes0
answers190
viewsI went to make a game in Unity and gave the error Nullreferenceexception
The code is this: using UnityEngine; using System.Collections; public class EnemyAttack : MonoBehaviour { public float timeBetweenAttacks = 0.5f; public int attackDamage = 10; Animator anim;…
-
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, 6 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
answer166
viewsError Identityconfig
I am trying to implement Identity in my project but my Identityconfig is giving several errors. I just started messing with Identity and I’m hitting myself a little. Packages.config <package…
-
0
votes1
answer81
viewsHow to keep scrolling always at the end of the WPF textbox
How can I always keep the scroll at the end of the textbox? I have a textbox, but it receives a lot of content, and when it arrives at the end it does not follow and text that exceeds, is always in…
-
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
votes0
answers655
viewsProblems with Security Level Trust (Locaweb Server)
Hello, I’m getting the following error message below: This Configuration Section cannot be used at this path. This Happens when the site Administrator has locked access to this Section using from an…
-
0
votes0
answers483
viewsCreate XML file
I am trying to create an XML but it is causing the following error: An Exception of type 'System.Invalidoperationexception' occurred in System.xml.dll but was not handled in user code Additional…
-
0
votes1
answer106
viewsHow to do a SELECT pull Qtde or sql weight to a single column on the grid depending on registration?
I have the following question, I created a stock table in sql for packaging and raw materials, with registration in the same form. I created a line for weight and another for Qtde in sql. And I…
-
0
votes0
answers207
viewsHow to write text and image together in mysql with Asp.net mvc
I am creating a forum in my application and would like to know how to save image and text together in Mysql, as in the message field there will be a WYSIWYG editor so I will have to record both text…
-
0
votes1
answer93
viewsMYSQL access by an application
I am creating an application in C# this, connects to a remote Mysql server, enabled for any IP to have access to my BD with a read-only user. My doubt is the following: There is a way in Webservice…
-
0
votes1
answer193
viewsTyping in the Textbox
I’m doing a project in the visual studio and I need help. I wonder if there is a way or how to make it so that when I type in the textbox,this I typed start at the front regardless of the position…
-
0
votes0
answers148
viewsModularize Winforms
I have the following scenario, 1 System Containing several functionalities, these functionalities, have some that are similar (Changes according to the User Profile). Only I’m having a hard time…
-
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
votes1
answer70
viewsRecovering the application status when selecting an item in Gridview
Hello, I’m creating a universal application for Windows 10 in C#. On the home screen is a Gridview loading dozens of items. I would like to know how I should save the selected item without needing…
-
0
votes0
answers82
viewsReference of forein key, with the Entity Framework
I’m having a hard time making one Insert, because the FE indicates that there is error in the table reference. But, in my config, I state what is the foreing key. My config: public class…
-
0
votes1
answer188
viewsField formatting Dateedit devExpress Windows Forms
I have a date formatting problem with the date component dateEdit of devExpress. I need the field date formatted as follows: 01/01/2016. And when typing the values, go to the next character without…
-
0
votes1
answer483
viewsImage in Crystal Reports
I am using Crystal Reports in my Asp.Net MVC project. In Database Fields in Crystal Reports in my Visual Studio, I connected a C# class instead of going to the Database. This is the class: public…
-
0
votes1
answer68
viewsDoubt to Load Combobox from an account with the sub account
I made a select to fetch an account and upload the sub account and would like your opinion to see if this is how you do it code private void cbbConta_SelectedIndexChanged(object sender, EventArgs e)…
-
0
votes2
answers78
viewsSerialize Nhibernate object for JSON
How can I serialize a Nhibernate object for JSON. When I try to serialize error by saying that it is not possible to serialize an object in context.
-
0
votes1
answer55
viewsI created my project, I’ve been editing every day, and recently out of nowhere he failed to recognize an existing namespace
I created my project in Visual Studio 2013, I’ve been editing every day, and recently out of nowhere it failed to recognize an existing namespace. The namespace appears in red with the message "The…
-
0
votes2
answers831
viewsJson with an empty list C#
I have the following doubt I have a class that contains a list and I have another class that reads a JSON the Reading class calls the Entity class and mounts the object but when one of the lists…
-
0
votes1
answer102
viewsUpdate image whenever a new one is chosen?
I’m using the following code: private void foto_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { // se teve sucesso na escolha de uma imagem da galeria BitmapImage…
-
0
votes1
answer293
viewsJSON Class Construction and Consumption
I’m trying to consume a JSON, but in the structure I developed the code does not return data. Please, could you help me and explain the concept of consumption and how the JSON structure works? Code…
-
0
votes2
answers636
viewsForeach in Foreach
I need to do a foreach inside another but are two tables one is called categories and the other is a galerya, I need to return all galeryas within each category only that the name of the category…
-
0
votes2
answers906
viewsCalculate difference between dates and change status
I need to create some routine to calculate the difference between two dates directly in the Mysql database and change the status of another field according to this difference. The database fields…
-
0
votes3
answers138
viewsDynamic dropdown list and comic return image does not work
Dropdown dynamic list and database image return does not work after the application is published on IIS. When Inspecting through the browser I had the following error: HTTP 404.0 error - Not Found…
-
0
votes1
answer197
viewsStrange error on screen, debug does not show nda
In Webform, this giving some error, that when debugging in Visual Studio (F5) it does not accuse any error, but when it comes out the result on the screen would be like an internal error(500)…
-
0
votes1
answer161
viewsC# foreach aborted
When I try to move the controls of a FlowLayouPanel to another flpPropriedades -> flpReserva through a loop foreach he leaves in the middle and does not complete the transition. foreach (Control…