Questions tagged as '.net'

2
answers

How to fix this problem with the DataGridView Check Box cell?

I'm having a problem with the DataGridView checkBox cell: Click the checkBox , and it marks the Checkbox and updates a value field. I click again, and it does the opposite. Everything works fine until I quickly click on the checkBox . i...
asked by 15.07.2014 / 15:37
1
answer

TimeOut HttpWebRequest Second time

public static bool Sinc(int v, out List<Ma> x) { try { XmlDocument urlData = new XmlDocument(); HttpWebRequest rq = (HttpWebRequest)WebRequest.Create("http://192.168.1.155/Se...
asked by 19.05.2014 / 14:29
1
answer

WCF Restful Https for a single method

I have a RESTful WCF that I'm using for a mobile application, I need a single method, the payment method, to use HTTPS, I do not want to enable HTTPS for the whole service because some methods return a large amount of data and it would be too he...
asked by 04.04.2014 / 15:55
1
answer

Process.Start (variable) to open an application without knowing the installation location

I have a Console Application that needs to call an application. As I'm not sure where it was installed, I need to assign the value to the path variable as below to get the app install location. string path = System.AppDomain.CurrentDomain.B...
asked by 10.04.2014 / 20:31
2
answers

SqlDataAdapter Query with Parameters

I'm having difficulty returning a query in the database using SqlDataAdapter with parameters. Well, I have a layered application in my View when I first access feed a GridView with a query (this part is ok)! In this same View...
asked by 05.06.2014 / 20:22
2
answers

Querying the type passed via the generic method

I have the following situation: public List<TEntidade> MeuMetodo<TEntidade>() { //My Code Here } Is there any way I can get the type of this TEntidade? The final goal is to use this Type to create a switch ...     
asked by 17.03.2014 / 18:22
1
answer

ActiveX AxVLCPlugin2 no event works

I have a VLC Player in my form. In it, I need to get basic information like video duration and current position. but no event works. Am I doing something wrong? Here is the code: public Form1() { InitializeComponent(); vlc.play +...
asked by 17.03.2014 / 19:35
2
answers

WebClient request returns empty

In my program I need to get content from my website, but the return of the downloadString method of the webclient object returns null. The most intriguing is that there is no exception, the status code is 200, the request is perfectly executed b...
asked by 06.03.2014 / 18:43
2
answers

Why can not I read a string in the console?

I'm trying to read a string typed in the console, which is halfway through the code, but what happens is that it passes straight through and displays the final information. using System; namespace Viernes { class Program { st...
asked by 23.06.2014 / 17:49
2
answers

How to create reports in Crystal Report with data from 2 or more tables?

How do I create reports through Crystal Reports using a DataSet that contains more than one Table? With a table I can work normal, but when I insert more than one table the result of the Report is blank. The only thing I did after the connection...
asked by 18.02.2014 / 21:36