Questions tagged as 'c#'

1
answer

How to add / remove items inside the Cart

I would like to make a simple Cart, where I used as a basis some explanations here inside the same Stack. Here is my Shopping Cart Controller: public class CarrinhoController : Controller { private Context db = new Context(); public A...
asked by 18.10.2016 / 03:46
2
answers

@ font-face c # MVC Bootstrap

I have a Bootstrap template that I'm trying to apply to a project, but I have a huge problem importing the .eot, .svg, .ttf, .woff, .otf files These files are in the directory: NomeProjeto\Content\fonts My .css file that I call atte...
asked by 11.08.2016 / 21:35
1
answer

Set Popup Size - GridLookUpEdit

Would anyone know how to decrease the popup, presented by the GridLookUpEdit control of DevExpress?     
asked by 12.09.2016 / 19:45
1
answer

Post with no fronend

I'm trying to post a form information but I'm not really sure how to do it. This is my C # form: @using (Html.BeginForm("Enviar", "Mensagem", FormMethod.Post, new { enctype = "multipart/form-data", @class = "", @id = "formNovaMsg" }))...
asked by 02.09.2016 / 18:46
1
answer

Integrity violation not released in BD Sqlite

CRUD in C # is not releasing integrity violation error while deleting dependent registry in SQLite DB. query = "DELETE FROM "+ table + " WHERE id = '" + id + "';"; int returnValue = 0; try {...
asked by 30.08.2016 / 02:11
1
answer

Send multiple variables at once socket

Using the method Socket.Send would have some way to send a package with eg an integer and a string at a time? I've seen one such Packet that apparently was all I needed because I can turn it into an array of bytes and then turn bac...
asked by 30.08.2016 / 08:11
1
answer

Edit .txt using stream and a button

I have a form in C # and winforms, and I need to, when I click a button, it edit a .txt and add a line of text. Follow the commented code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using...
asked by 05.08.2016 / 16:39
1
answer

How to get the directory path

I'm using WinForm and trying to save a string with SaveFileDialog but I can not pass the chosen directory in SaveFileDialog to the System.IO.File.WriteAllLines; private void saveCategoriesToolStripMenuItem_Click(object sender, EventArg...
asked by 02.08.2016 / 05:34
1
answer

Draw outside the area of a form

Using C # with the Windows Forms Application project type is it possible to draw things out of the form? I would like to draw a mouse-stretchable and repositionable square, where should I start? Here's an example image of what I'm looking for...
asked by 02.08.2016 / 11:01
1
answer

Processing of text files

I am processing files .txt , however I process more than 1 file at a time, but in the database only saves 1 file, debugando I see that it reads and processes the 2 files, or up to 3 depending on how many files I am processing. Below is...
asked by 04.08.2016 / 15:11