Questions tagged as 'c#'

4
answers

When the textbox is null, the button will be off

When you type in textbox , the button will call, but when you do not have anything in textbox it will hang up. I was able to make the method of the button connect but I could not do the disconnect if the textbox is null pri...
asked by 30.09.2017 / 16:30
1
answer

Use Contains in an integer field in C # with lambda or LINQ

I have the following expression: query = query.Where(x => x.MeuCampoInteiro.ToString().Contains(filter)); But an exception is occurring: System.NotSupportedException: 'The expression [10008].MeuCampoInteiro.ToString() is not supporte...
asked by 27.09.2017 / 16:43
1
answer

Date field counting 7 days after the current date in C # [duplicate]

I have a field in my application I call txt_dataemissão in case and the current date, and I have another field txt_deadline that I need to show me in that capo the date counted with 7 days after the date of issue, and disregard t...
asked by 26.09.2017 / 18:39
2
answers

How to insert using SqlBulkCopy with EntityFramework

I have a method that adds almost 2000 records at a time, I was using the Bulk Insert and it was working perfectly, however this extension and payment. So I decided to use the SQLBulkCopy class but I'm having a hard time using it. I hav...
asked by 19.09.2017 / 15:19
1
answer

How to create an ArrayList of arrays?

I'm having some problems creating a List of Arrays, I'm using Visual C #, .NET 3.5. Code: using Database; //... namespace Sample { public partial class Form1 : Form { //... private void Button1_Click(object sender, Event...
asked by 23.04.2014 / 03:19
1
answer

Doubts about using .dbml files

I got a system in aspx (VS2008) and I have to make some improvements, add other features and all this using MVC5. Well, there's a web service, which has a guy like that: static Func<lqDataDataContext, T_PDV, IQueryable<T_PDV>>...
asked by 25.04.2014 / 16:15
1
answer

Can I populate a DataGrid with a ListT?

How do I fill a DataGrid from a List typed? Would it be possible to generate the columns automatically?     
asked by 08.05.2014 / 20:03
1
answer

Why does not keybd_event work in some contexts?

I want to understand why keybd_event does not work in some contexts. For example, it does not work in games with League of Legends or games emulated in ePSXe. The following code: Keys key = Keys.Q; keybd_event((byte)key, 0x45, 0x0001 | 0,...
asked by 26.12.2013 / 20:32
1
answer

How can I write values in another process memory?

I have the memory address, the process, and the value. // Processo var p = Process.GetProcessesByName("ePSXe").FirstOrDefault(); // Endereço IntPtr addr = new IntPtr(0x00A66E11); // Valor var val = 0x63; Now how do I write this value in t...
asked by 20.12.2013 / 05:55
3
answers

Consume webservice dynamically

I'm developing an Asp.net + C # application that will access some public webservices. I would like to do something flexible and easy to maintain in the future. I thought of calling the webservice by passing its address and input parameters and s...
asked by 13.02.2014 / 17:23