Questions tagged as 'c#'

2
answers

EntityFramework complaining of duplicate identifier even with property being null

I have the following classes: Product : public class Produto { [Key] public int Id { get; set; } [MaxLength(70)] [Required(AllowEmptyStrings = false)] public string Descricao { get; set; } [MaxLength(10)] [R...
asked by 08.05.2015 / 21:08
2
answers

I'm not getting the first animation wheel of my game

Good afternoon, I'm having a hard time understanding what this error is, I still have only a few days in the programming world. Someone can help me. using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public...
asked by 01.05.2015 / 21:34
1
answer

Hide Menu Tray Icon

I created a menu for my TrayIcon : Butiftheuserdoesnotselectanoptionitisstillvisible.WouldanyoneknowhowIcanhideincasetheuserclicksoutsidethemenuarea?Here'sthecodeI'musingtoparsethemenu:System.Windows.Forms.NotifyIconiconeTaskBar=null;pr...
asked by 17.04.2015 / 20:48
1
answer

Windows Service 'System.TypeInitializationException' at startup

Hello, I'm creating a windows service to perform a backup job. I have created other services before but never had a similar problem. It was all going well, during the development I installed the service on a computer and was running it nor...
asked by 14.04.2015 / 00:54
1
answer

I can not open a byte array extracted from the database!

Language: C # / ASP.NET Database: PostgreeSQL Component used to upload the file: FileUpload The following is the component: Hereisthemethodtoinsertatableinthedatabasethatonlyhasthefields:attachment_id/attachment_name/attachment Andf...
asked by 16.04.2015 / 16:38
1
answer

Two submits on the same page

I have a page with a list of checkbox and with two buttons: One is to View and another to Send the report by e-mail. That is, the user will select the fields that he needs to see in the report and he will select "View" or "Send". I need t...
asked by 07.08.2015 / 19:28
1
answer

Add selected GridControl rows to the ObservableCollection

I'm trying to add my grid items to my ObservableCollection but I'm unsuccessful. I have a column that has the CheckBox that I put through the ShowCheckBoxSelectorColumn property. I have the following Xaml: <dxg:GridControl x:Name=...
asked by 10.08.2015 / 21:00
1
answer

HTML Parser on Xamarin

I'm developing an application with Xamarin in order to log in to a web account using HTTPWebRequest and filter relevant site information for an application. I have already developed the login part, now I need to filter the HTML that...
asked by 27.04.2015 / 22:54
2
answers

Dynamic Report c #

I am preparing a report with the following structure: So far everything is set up right, I'm using C # Windows Form, using the ReportViewer component to make the report, but when it comes to getting the data, it just takes the information...
asked by 13.07.2015 / 19:16
1
answer

I am creating a queue, and I can not develop the function logic so that the previous object assumes the new released position - C #

I'm using unity3D, so my queue is made up of GameObjects, there are 7 GameObjects queued next to each other and my purpose with this code is that with every click of the user - " SimpleMove Function "- the objects move forward, except the last...
asked by 10.07.2015 / 21:48