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
votes1
answer1332
viewsWPF application. How to reference the image in the XAML code, so that another user can view it when running . exe project file?
I’m having a problem with my WPF application. I have two images in XAML code, and when I run the application on my computer, they appear normal, but when I ask someone to run the file. exe , it runs…
-
0
votes2
answers5572
viewsConnect application to Postgresql?
Rstou wanting to connect a simple application made in C# to a Postgresql database, what I would like to know is if the procedure is similar to Java, in which I have to create a connection class, a…
-
0
votes1
answer1532
viewsC# framework implementing graph theory
Does anyone know any C# framework and implement Graph Theory?
-
0
votes1
answer220
viewsProblem with parameters in Sqlcommand
I am developing a service registration, the first screen is the login and I need to take the position of the user who logged in and indicate a form for it, my code ta thus: using System; using…
-
0
votes1
answer74
viewsAssemble link only when there is data
I have a webforms application. In this application I have this line in my Asp.net. <strong><a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%#…
-
0
votes1
answer221
viewsInstruction Left Join in LINQ to entites
I tried to do a left Join on LINQ as follows: (from opr in db.Operacao join vol in db.Volume on new { VOL_CODBAR = opr.OPR_CODBAR } equals new { VOL_CODBAR = vol.VOL_CODBAR } into vol_join from vol…
-
0
votes1
answer77
views301 redirect to dynamic domain
Good afternoon, you guys. We have a website meusite.with and we updated it and ai domains like meusite.com? id=123 lost their "direction". How do I do 301 on these dynamic Urls on IIS?…
-
0
votes1
answer135
viewsQuery with Pagedlist
I am using Pagedlist.Mvc for results pagination. But when doing the following action with the querys: public ActionResult Index(int? page, string searchString) { int pageSize = 10; int pageNumber =…
-
0
votes2
answers55
viewsDisable Toolstripbutton in Form
I need to do a check and if it is true, the button remains enabled, if it is false, the button must be disabled... How could I do that ? So far only have the if, because I do not know how to do…
-
0
votes1
answer381
viewsHow to fill Textboxes?
I wouldn’t want to use several if's to control a method of mine, unless there is no way to do it without the if's. I write in a list, the return of the BD that may or may not have banking…
-
0
votes1
answer630
viewsUsage Tempdata ASP MVC
What I’ve been researching (here), I can save a data list in a Tempdata created in one function, to use in another function in my Controller. All right, I’m trying to do just that, I’m just not…
-
0
votes3
answers1060
viewsImplementation of generic CRUD
I have the following class CRUD that is generic: public abstract class CRUD { protected string tabela = null; protected object classe = null; public CRUD() {} public virtual void insert() { //código…
-
0
votes3
answers1270
viewsHow to remove the first item from an array without for or foreach
How to remove the first item from an array without for or foreach. I tried this, but it says that there is no method to remove or remove. int[] arr = {1,2,3,4,5}; var removeu =…
-
0
votes1
answer171
viewsOpen PDF on iOS mobile using Xamarin - C#
Does anyone know how to open a PDF that is in the local iOS folder using the Xamarin platform? I have researched and tested several ways, but none works.
-
0
votes1
answer526
viewsDoubt about the use of multiple user control on the same page
The most difficult thing here is to ask the question the right way not to get downvote, but come on. I will try to explain it well, because doubt is complex or boring. I will ask punctual questions…
-
0
votes0
answers652
viewsInserting double type value into mysql database
I have a Windowsform with a value field and I need to enter its value in the database. I need some example of how to do this? File that queries //Cadastrar Gastos public void cadastroGasto(Gasto…
-
0
votes1
answer105
viewsHTML embedded in C# dot net visual studio
I need to generate a dynamic HTML in a C# application implemented in Visual Studio. In case, I need to display the tag li as logged in user (Session). The code is: <%if (Session["usuario"] !=…
-
0
votes0
answers49
viewsMark point on image taken by Kinect sensor
Guys, I have the following problem: I have an application that provides me the Kinect images in real time, only I need to develop a functionality where the user marks some points in the image using…
-
0
votes1
answer37
viewsDuplicate files in Appmanifest.xml.
I’m trying to upload an update of my app, and this is coming up error 2001: There are duplicate files in Appmanifest.xml. How to solve it? Thank you very much.
-
0
votes1
answer126
viewsWhat is the difference between a WCF Service and a Duplex Service?
Follow the doubts... 1- What is the difference between a WCF Service and a Duplex Service? 2- When to use a Duplex Service? 3- We can compare it to Signalr?
-
0
votes1
answer391
viewsProblem accessing dynamically generated ASP.NET field data
I am developing a website where there is an administrator for contact forms, IE, the client can create fields for this form. So far so good, the registration works well and I can draw the form…
-
0
votes2
answers320
viewsInstallation of Namespace
I have a test project that came without the Namespace System.Web.Helpers and others. I searched and didn’t find it. I should be, but it’s not. How to install the guy? Well, I can hunt on the…
-
0
votes1
answer320
viewsHow to generate the EAD code for PAF-ECF in C#, according to ATO COTEPE 23/15?
I would like to know if someone could assist in the generation of C# EAD code for Rxx type registration according to Cotepe 23/15 Act documentation. See the link…
-
0
votes1
answer1468
viewsHow to mount a Select to join columns
I’m having a doubt I don’t even know if it’s possible: I would like to perform a select that joins two columns. Otherwise it would be: Person table with the cod_person fields - name - rg -…
-
0
votes1
answer827
viewsTimeout while Getting a Connection from pool
You’re making this mistake. I’m using postgres Erro ao buscar servidor por id: Timeout while getting a connection from pool. A first chance exception of type 'System.Exception' occurred in…
-
0
votes0
answers1142
viewsMove Image in Picturebox C# Windows Forms
I looked for some examples on the Internet, but the ones I tried didn’t work. I load an image at runtime, this works normally, but I am not able to move the image that is loaded inside a PictureBox,…
-
0
votes1
answer522
viewsHow to limit the number of lines after ordering the Vb.net/C#datatable
How do I limit the number of rows on a datagrid after Defaultview.Sort Follows the code: da = New OleDbDataAdapter(MySQL, Conexao) dt = New DataTable("Pedidos") da.Fill(dt) dt.DefaultView.Sort =…
-
0
votes1
answer646
viewsAssign Listbox values in vector
By playing the items one by one within an array, position 0 with 0 and so on, it works correctly. But the code has a malfunction because ,in the first iteration is normal in the second of the error:…
-
0
votes0
answers50
viewsDataset sent from one class to another
Is there any component Ado equivalent to a recordset that I can send from one class to another in c#?
-
0
votes1
answer741
viewsHow to use a c# net combobox filter using SQL Server?
I need to improve on a project I’m doing in MVC, with SQL and I’ve done a combobox that takes the data from the database, but I need to create a page to filter data from the database. Ex: I have a…
-
0
votes3
answers5248
viewsHow to open a link in a new aspx tab
I’m trying to open a new page in a different tab, through aspx, I got a code on the internet that does this, however, it only works with clicks. follows the code…
-
0
votes1
answer727
viewsProblem receiving very large JSON in Restful Webservice
We work here with Android + Webservice (.Net Restful) for data communication. We are receiving the data in JSON format in a method, below: //Método public Retorno MetodoA(string sConexao, string…
-
0
votes1
answer1095
viewsGet list of applications installed on your computer
I would like to get a list of all the programs that are installed on the computer and display in a Datagridview with (C# Windows Forms Application).
-
0
votes2
answers193
viewsSorting Gridview event, do you doubt?
I have the following scenario in which I have a Gridview but when I want to order disbelief it is not ordering. goes below: protected void gvdNomeClientes_Sorting(object sender,…
-
0
votes1
answer241
viewsJavascript and Activex printing
I’m needing to make printing from a web application, I believe I will have to do this with Javascript and also by what I researched maybe I will have to do this with Activex. I’ve tried to use…
-
0
votes1
answer866
viewsHow to validate a date on a Datagridviewtextboxcolumn?
I’m creating a form where the user will input data through a DataGridView, one of the columns of this DataGridView is the type DataGridViewTextBoxColumn and it will receive a date, I would like to…
-
0
votes1
answer57
viewsParameter in URL is coming null
I have a page that will call another as below. if (hdfCdTipoStatus.Value == "2") Response.Redirect("/frmANACadastroBens.aspx?/CdProcesso=" +…
-
0
votes2
answers215
viewsIgnore dot in a Query
I am trying to run the following Query: select codigo from cliente where codigo ilike '%99.999.999%'; I thought by putting the ilike, he would ignore everything, points and accents but I was wrong.…
-
0
votes1
answer357
viewsSend mouse click
I would like to know how to send mouse click on the screen passing the position coordinates of the click (x,y) per parameter in c#.
-
0
votes2
answers822
viewsHow to return more than one database Entity in a LIST?
I have two entities, CATEGORY and TRANSACTION, on the bench I also have these two tables. TABELA: CATEGORIA CHAVE: ID TABELA: TRANSACAO CHAVE: CATEGORIA_ID When performed a select for Entity…
-
0
votes1
answer345
viewsAsp.Net Mvc Remote Validation
So I’m trying to implement RemoteAttribute, but by clicking the button submit, is not giving the post on my page. My Controller public class TesteRemoteController : Controller { // GET: TesteRemote…
-
0
votes1
answer54
viewsRadiobuttonlist does not accept if Selectedindx
I have this Radiolist declared: <label>Aprovar</label> <asp:RadioButtonList ID="rblAprovar" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem…
-
0
votes1
answer476
viewsSelect Format yyyyyy-MM-dd HH:mm:ss in MYSQL table column
Date 2014-12-01 10:52:38 2014-12-01 10:52:14 2014-12-01 10:51:57 2014-12-01 10:35:34 2014-12-01 10:23:17 2014-12-01 10:22:18 2014-12-01 09:03:49 2014-12-01 08:53:51 I have this column with these…
-
0
votes1
answer88
views -
0
votes1
answer39
viewsRadiobuttolist does not obey the selected Selectedvalue
I have this Radiobutton: <asp:RadioButtonList ID="rdlCpfCnpjFornecedorBemNovo" CssClass="cPFCNPJRadioButtonList" runat="server" RepeatDirection="Horizontal" AutoPostBack="false"…
-
0
votes0
answers700
viewsInsert image into an existing table in a word document
I have hundreds of documents and need to add a logo inside an existing table. I am using Spire.doc, someone has a light to give me? Console.WriteLine("Digite o nome: "); String nome =…
-
0
votes0
answers228
viewsDifficulty mounting calculation with jquery
It was made a jquery function by a fellow designer, to meet the following need. I have a table, which works inside a Repeater, in which it works as a grid. This table has 4 <TD>. There is a TD…
-
0
votes1
answer1359
viewsHow to generate PDF with Crystal Reports and send it by email?
I’m making an application where I have to generate a report with Crystal Reports and email it. Would anyone have any way to do that? Sending and generating reports are already working, but I’m not…
-
0
votes1
answer170
viewsFor the movement of a picturebox c# windows
I have a picturebox and I make his movement only to the right and left, but I would like that when the end of the image reaches the edge of the form and the beginning, it is no longer possible to…
-
0
votes1
answer114
viewsDifficulty hiding part of a form with Usercontrol
I have a form called frmCadastroBens that declares a Usercontrol, which I call wucCadastroBens. In this form I register the UC like this: <%@ Register src="WUC/wucCadastroBens.ascx"…