Questions tagged as 'c#'

1
answer

Window Immediate Windows is gone

Immediate Windows window has disappeared and I can not restore it anymore. The condition does not appear in Visual Studio 2010 Menu Edit .     
asked by 28.11.2014 / 15:04
1
answer

How to maintain a Session after re-executing an application?

In my project in MVC 5, a session with user data is created at login and after re-execution of the Session application no longer exists, however, the Coockie authentication still exists. What can I do to keep both active or destroy both? [H...
asked by 24.10.2014 / 14:44
1
answer

Filter search with Checkbox values

For example, the user entered the title of a publication, and marked the genres Action and Adventure, or the user did not enter any title, but want to see all the publications that fit into these genres. How can I do this search query? My tab...
asked by 17.11.2014 / 00:48
1
answer

Remove printer and driver

I have the following code: private void btnDeletar_Click(object sender, RoutedEventArgs e) { string nomeImpressora = null; if(cmbImpressoras.SelectedIndex != -1) nomeImpressora = cmbImpressoras.SelectedItem.ToString(); else...
asked by 14.11.2014 / 13:32
1
answer

Retrieving malformed string when containing accented words

In my application I'm having trouble fetching the data in the PostgreSQL database, accented words being retrieved from the database and dealing with DataReader are coming poorly formatted as in the image below. In the correct formatte...
asked by 03.11.2014 / 22:01
1
answer

How to make an in in lambda?

I have a function convertStringListaInt with parameter String . Example: String: 1,2 . I'm converting this string to a List of type convertStringListaInt_Result having property number (integer). How can...
asked by 03.11.2014 / 13:59
1
answer

How to paint a cell in a DataGrid?

See the code in How to change the color of a DataGrid row in C #? He is painting the entire line, as far as that is concerned, what happens and that when I give a scroll the painted line deregulates. Example: I painted line # 1 when sc...
asked by 03.11.2014 / 15:56
1
answer

Type conversion error with EntityFramework: Can not convert an object of type 'System.Collections.Generic.HashSet'1 []'

I'm getting this error when trying to write a new record of Atendimento .    Can not convert an object of type 'System.Collections.Generic.HashSet'1 [Domain.AccessAbout]' to type 'Domain.AccessAbout'. Classes: Service : publ...
asked by 28.10.2014 / 13:20
2
answers

Relationship between data with combobox

Hello, I have a C # application using Windows Forms My question would be as follows. I have a database made in Access It contains 2 tables, a table called State, which contains Code and State and another table called Cities, which contains Co...
asked by 17.06.2015 / 17:02
2
answers

Handling different returns from JSON

I'm working on an API integration with JSON. I have not implemented anything yet in my C # code, I am currently studying the API but I have already had a question. I have a login method that if successful returns me a type of response, and if...
asked by 18.06.2015 / 16:42