Questions tagged as 'c#'

1
answer

Options menu with right mouse button on datagrid

I need to create a menu with a few options so that when you select a record in a datagrid and right click on that record a menu with options for that record will appear.     
asked by 25.05.2015 / 01:42
2
answers

How is crud to update records in SQL Server by Visual Studio C #?

I'm using this code, it does not error, but does not update the data public static int attLoja(LojaVirtual loja) { int resposta = 0; using (OdbcConnection conexao = ConexaoPadrao.CreateConnection()) {...
asked by 25.05.2015 / 19:17
2
answers

Match contents of two objects

I use the following method to update a given table: public int alteraBem(tb_bens itemBem) { try { using (GestaoAtivoEntities db = new GestaoAtivoEntities()) { var bem = db.tb_bens.Where(v => v.int_id_bem....
asked by 26.11.2014 / 14:23
1
answer

Disable MasterPage Menu from a contentPage

I have a small menu on Master Page: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="INTEGRASYS.SiteMaster" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> &l...
asked by 28.11.2014 / 04:36
2
answers

How do you predict future value?

I'm making a calculator for FPS games , and in it, you enter the number of Kills , and the number of Deaths . So far so good, I was able to make the command line for her to take the two values, and set the percentage, but at the time of the f...
asked by 07.11.2014 / 13:48
1
answer

Partial is not rendered

According to this link of another question of mine that ended up generating error where I followed the steps referring to another question, I'm having a rather strange error. I created a partial to do the manipulations in the Telephones t...
asked by 03.11.2014 / 21:06
2
answers

How to create a database in SQL Server?

I installed SQL Server, and here comes Magnament Studio, how do I create my bank? I already tried going there, and I had to authenticate for Windows but it gives an error. How do I create my bank?     
asked by 02.02.2015 / 04:42
1
answer

For the movement of a picturebox c # windows

I have a picturebox and I only move it to the right and left, but I would like it when the end of the image reaches the edge of the form and the start, it is no longer possible to move it. This is how it works: I would like it to look lik...
asked by 02.02.2015 / 11:45
1
answer

Connection with 3g unstable blocked in C #

Personal I have a system, which uses a table in mysql to check if there is an update for it, It happens that in certain moments, it is necessary that the modem is reconnected so that the system can do these operations web, someone knows the reas...
asked by 06.02.2015 / 13:54
3
answers

Verify that the item exists in a List

I have a list typed in C # and I need to look up an item through multiple filters. Proving codes: List<LoteRecla> listLoteRecla = new List<LoteRecla>(); I tried to use the .Exists () method by filtering only one field from this...
asked by 05.02.2015 / 20:09