Questions tagged as 'c#'

2
answers

How to capture information from a 64-bit process that is running?

Well, I need help in capturing information from a running process. I can accomplish this task by accessing mainmodule of 32-bit processes, however, I can not do the same with 64-bit processes. I do not know if the reason is I'm trying to...
asked by 01.07.2016 / 08:02
1
answer

How to get value from a variable in the controller with ajax (jquery)

I have to get a value from a variable inside a method in the controller in .net, the method is in the homeController and returns a json, so alright the code is running and returning the json perfectly but I have to get a value of a variable alre...
asked by 02.08.2016 / 19:40
1
answer

Skyrim style item system

I'm developing a 2D RPG in Skyrim style C #, and I'm in the part of implementing the game items, but with a lot of difficulties. I wanted to do a Skyrim-like mechanic in which you have a range of items sorted in a variety of ways such as arma...
asked by 20.09.2016 / 07:15
1
answer

Use Separate DataHora

I have a DataHora field and wanted to use separate, that is, a single field in the database called DateHora of type datetime, and manipulate this field with two editorfor where I saved the date of one editorfor and the time of another editorfor...
asked by 29.10.2016 / 05:34
1
answer

Click button to call different methods

I have a button that calls the btn_Salvar click event in my form. How do I make this event click call different methods according to who created the form the button is contained in? EDIT: Explaining better: I have the Form "frmPrinc...
asked by 17.06.2016 / 15:59
1
answer

Microsoft SQL Server for MySQL

I need some help. I downloaded a project in C # from inventory control, however the database is by Microsoft SQL Server, and I would use MySQL to connect and record data. Here is an example of connection files: Archive: DAL > using...
asked by 15.06.2016 / 00:44
1
answer

Question about factorial in C #

I'm trying to solve this repetition exercise:    Make sure that you start a variable n (number) as 1 and a factorial   (result) as 1 and varies from 1 to 10. Code: int fatorial = 1; for (int n = 1; n <= 10; n++) { } I can not do...
asked by 15.06.2016 / 21:36
1
answer

Hide form via C # keys [closed]

I am making a menu in C # and it only opens when the game is open or running, ie if the game is running show the menu, so far so good it runs, however I wanted to hide the menu for example by pressing F1 on the keyboard without using the minimiz...
asked by 24.12.2016 / 17:34
1
answer

Remove Report Viewer Border

I have tried in several ways to remove this border that appears in the report viewer, and I did not get it at all. BelowispartofmycodewiththepropertiesIaddedtoremovetheborder:viewer.SizeToReportContent=true;viewer.Width=System.Web.UI.WebCont...
asked by 28.12.2016 / 19:18
1
answer

Wpf C # OledbParameters Update where select

I am trying to change a query to use parameters but when I execute using parameter I get the error "Data type mismatch in criteria expression." No parameters works normally. Follow the two queries . cmd = new OleDbCommand("UPDATE tblPen...
asked by 23.12.2016 / 16:21