Questions tagged as 'c#'

1
answer

Displaying Bitmap in C # application

I have the following code in my application: Bitmap original = new Bitmap("C:/Projeto/Imagens/antialiasing.jpg"); Graphics g = Graphics.FromImage(original); g.DrawImage(original, 100, 100, 390, 390); However, the original image is no...
asked by 20.11.2016 / 17:00
2
answers

Passing information between C #

Hello, I have a problem with passing information between forms in windows forms with C #, the problem is the following. I have a MAIN FORM, from this, I call the one SUB FORM, which happens to be the child's principal. The point is, I want th...
asked by 19.11.2016 / 22:20
1
answer

How does foreign key work in C #? [closed]

I have two Contact (Man) and Woman tables. The man can have several women and a woman is for a man. public class Contato { public int id { get; set; } public String usuario { get; set; } public String nome { get; set; } public...
asked by 21.11.2016 / 18:10
2
answers

How do I checkbox asp.net mvc database

Hello. I'm doing a project for a music player. In the PlayList register, I would like the songs to appear in a checkbox in order to mark the desired ones and save them to the database. This is my controller: using System; using System.Colle...
asked by 19.11.2016 / 20:29
1
answer

Display Alert Loading Page

I'm using asp.net-mvc and as far as I know the OnLoad event would work if I put it in body, which is in ~ Layout, but I need this alert to be displayed on a single page, because if I put in body it will run all instead ... how can I do it? Vi...
asked by 20.11.2016 / 20:40
1
answer

Generating a new file with a template in Excel when saving

Good morning, my software works with bar code reading for generating printed labels. It has several Texbox, each one receiving from the reader a different code. When I click on Save it sends these codes to an Excel worksheet where I can print an...
asked by 18.11.2016 / 16:47
1
answer

Return Collection of Products according to Category [closed]

I'm not able to bring the product list that has at least one related category. //Classe public class EventoConfiguracaoViewModel { public EventoConfiguracaoViewModel() { Menus = new List<MenuViewModel>(...
asked by 23.01.2017 / 16:14
1
answer

DataRow.Delete () command by row index not known

To remove Row from a dataGridView using DataTable I can use the DataRow.Delete() command but for example, in the code below it excludes a Row already known, and in this case I need to remove the% Row th...
asked by 08.03.2017 / 18:34
1
answer

Universal alert win 10 app

I need help to issue an alert signal in the application I'm trying to develop. At first I thought I'd show a red flashing textblock on the screen. if someone else has a better option help me or help me in the way I thought.     
asked by 07.03.2017 / 19:22
1
answer

Changing customer information via ID

I can not change the customer information through the Code that makes changes to the database public void Atualizar(Contato contato)//metodo para atualizar dados: update { OleDbParameter[] parametros = {...
asked by 15.11.2016 / 18:09