Questions tagged as 'c#'

1
answer

Get list of applications installed on the computer

I would like to get a list of all the programs that are installed on the computer and display in a DataGridView with (C # Windows Forms Application).     
asked by 24.07.2015 / 14:21
1
answer

Problem with foreach Shopping Cart

I'm having a problem with foreach and I wonder if there's another method to not have to change all the code. What happens is that each time more than one product is added to the cart, if we buy 2 products instead of getting everything...
asked by 09.07.2015 / 13:51
2
answers

Field only records the date and the part of the time is "zeroed"

I have this piece of code in my view. <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de Agendamento", htm...
asked by 11.11.2015 / 13:25
1
answer

How can I set the width of each column in a GridView?

How can I set the width of each column to a GridView in the following case below? <div style="width: 1000px; height: 400px; overflow: scroll"> <asp:GridView ID="Grid" runat="server" AutoGenerateColumns="False" CellPadding=...
asked by 10.11.2015 / 20:08
1
answer

call a locally designated variable

I need to call a variable that is empty, but how do I do it? I created the following code public ActionResult Index() { cliente cliente; try { cliente = db.cliente.find(id); //etc...
asked by 30.03.2016 / 15:51
2
answers

How to access classes in Unity 3D (C #)

I'm doing a 3D game on Engine Unity, a FPS to be more specific and taking advantage of this experience to learn programming in C #, the one I'm having in school. But now I came across a problem, which I know is a simple solution, but since I...
asked by 26.03.2016 / 21:13
2
answers

Popular table using Json

I'm having trouble populating a table in my code cshtml . I'm new to ajax and I'm not fully understanding what I need to do with the data that came from the bank. Here is my code: Code cshtml : <div><table id="data...
asked by 18.09.2015 / 20:08
1
answer

stretch label horizontally on a panel in C # [closed]

What properties do you use to stretch a label (the label in question has the text "shortcuts") in a panel? I want it to occupy horizontally all the space on the left panel. Program example: link     
asked by 23.09.2015 / 09:22
1
answer

checkbox + Model + Controller. How to pick the selected lines?

I'm sent my model to a view and loaded the data into a table where I include a checkbox for each line. The user will select the items of interest to be later recorded in the database. My question is right on this point. How do I send th...
asked by 01.10.2015 / 00:04
1
answer

How to use Scope_Identify to return .NET id

I'm developing an application and I need it when sql does the insert return the value of the id that was entered, I'm using the following command SqlCommand cmd = new SqlCommand("insert into solicitacoes (assunto, mensagem, endereco, anexo, st...
asked by 05.06.2015 / 14:31