Questions tagged as 'c#'

0
answers

My tetris game comes down one piece and in the second piece it's game over

My tetris game comes down to the first normal part, but in the second part it's on top of it, it's game over. As if the second piece had reached the top entering the condition of the GAME OVER function. My game code: using UnityEngine;...
asked by 26.04.2016 / 15:39
0
answers

About packages via Reflection x Manually

Well, the title may not have been very explanatory, but I hope to improve this in the content of the topic. I made a library in C # in which, so far, it writes packages manually, as in the example below: //Escrevendo o pacote SocketPacket...
asked by 25.04.2016 / 23:25
0
answers

Firebird ADO.NET

I updated the "Firebird ADO.NET Data provider" to version 4.10.0 and I am sometimes getting the following exception in my application. Exception information: Exception type: NullReferenceException Exception message: Object reference...
asked by 26.04.2016 / 17:17
1
answer

Entity Framework - Error ObjectStateManager

I'm getting the following error when trying to update an entity in EF: {"An object with a key that matches the given object's key could not be found in ObjectStateManager. Please verify that the key values of the supplied object match the key...
asked by 04.05.2016 / 14:07
4
answers

Validate TextBox content

I have the TextBox fields, for example: txtValorCompra would have to be typed by user 98,90 and can not be letters txtNumero entry with integers % with only letters. Would you like to do this on the form?...
asked by 03.11.2014 / 22:44
0
answers

How to use UpdateProgress with EnablePartialRendering = false?

I have a page where I need to populate two dropdownlist, but it does not load the UpdateProgress if EnablePartialRendering is set to false. If it is true, the UpdateProgress is loaded, but the second DDL is not.     
asked by 26.05.2016 / 19:18
1
answer

How to query cnpj using HttpWebRequest?

Here's how I'm creating a program for conducting CPF and CNPJ inquiries on the federal revenue site. It is not an attempt to circumvent the system. I'm bringing the captcha to a PictureBox so the user can just enter the characters without typing...
asked by 08.05.2016 / 20:49
1
answer

Application sent twice the same message

I'm having a new problem with the skype library (skype4com) . In fact they are two problems. I'm doing my application in WindowsForm (C#) . I made an application to send auto-reply on skype. private Skype skypeId; private...
asked by 22.04.2016 / 22:41
1
answer

Error editing ViewModel data

In design I have a ViewModel and inside it my models and everything. What happens is that I'm trying to edit data that is already saved in the database. I can bring the edited data of the view, but when I actually save it, this error is gener...
asked by 22.06.2016 / 05:29
1
answer

Return object json to ajax in C #

Function in ajax function RefreshFuncaoOrdenamentoJornadaSalario() { idOrdenamento = $("#DDOrdenamento").val(); idCategoria = $("#DDCategoria").val(); GrauNumero = $("#DDGrau").val(); $.ajax({ type:...
asked by 22.06.2016 / 22:14