Posts by Tozzi • 661 points
23 posts
-
0
votes1
answer189
viewsQ: Error "Settings to access '"' printer are not valid."
I have an application ASP.Net MVC that makes product sale and printing of this sale we work with several brands of thermal printers (not fiscal) as: Tanca, Bematech, Epson, among others.. we use to…
-
0
votes1
answer63
viewsQ: Questions to resize with ASP.Net application
I am developing a web report (ASP.NET + BOOTSTRAP) and when opening it on mobile phone it is as follows: I’d like to resize those lines to the end or else take out the side lines, would that be…
-
0
votes1
answer281
views -
0
votes1
answer168
viewsQ: Create a list with a Model and an Int in C#
I have the following class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Dynamic; namespace Model { class PromocaoQtdeVendidaModel { private int…
-
3
votes4
answers1202
viewsQ: What kind of data to use for sale ID
I have a Windows Form application developed in C# and with SQL database. One of the functions of the system is to carry out SALE for several different COMPANIES and in several different POS (point…
-
3
votes1
answer803
viewsQ: Replace a variable within a Word file
I am trying to do in C# (Windows Form application) print a Word .doc only that exchanging some vestments of the type @Nome by a string. In short, I have a contract and I need to print it. Stating…
-
0
votes1
answer3397
viewsQ: Resize elements according to form size
I have a GroupBox within a Form which has the following pattern: Padrão de tela - Form: 1290;700 - GroupBox Principal: 1260;600 That one Form is opened through MDI. I use a function to center this…
-
0
votes1
answer82
viewsQ: Manipulating what will be displayed in the Displaymember of a Checklistbox
I have a Model class: class pessoaModel { int id; DateTime data; TimeSpan hora; CliModel ID_Cliente = new CliModel (); public string Nome { get { return nome; } set { nome = value; } } public int ID…
-
9
votes6
answers49720
viewsQ: Convert DATA dd/mm/yyyy hh:mm:ss to yyyy/mm/dd
I have a date in the following format 14/12/2015 00:00:00 and need to convert to 2015-12-14 as I can do it on SQL?
-
2
votes3
answers352
viewsQ: Close the panel when the mouse exits from the top
I have a Panel in a Form wherever the Panel is smaller than the Form. Here’s what I need to do: when the mouse is off Panel the same must be closed as I could do it? Note: I am trying to do this in…
-
0
votes1
answer106
viewsQ: Treatment of Datagridview
I have to present an object list in a Datagridview I am doing as follows: class EntradaModel { int codigo, motivo, anterior, quantidade; string observacao, tipo; DepositoModel deposito = new…
-
2
votes1
answer623
viewsQ: Change color of the Cell
I need to change the color of the cell: I’m doing it this way dataGridView.Rows[rowIndex].Cells["nomeDaColuna"].Style.BackColor = Color.Yellow; however I can’t get past the rowIndex I would have to…
-
4
votes1
answer1504
viewsQ: Add line to a datatable
I need to add a row in a table at a given position. I have the following methods: public void criarTabela(DateTime dia) { tabela = new DataTable(); switch (dia.DayOfWeek) { //case DayOfWeek.Monday:…
-
4
votes3
answers177
viewsQ: Create a table with dates
I am creating a table and I need the columns to be created as follows: Mon, 23 Nov | Tue,24 Nov | Wed,25 Nov | Thu,26 Nov | Fri,27 Nov | Sat,28 Nov | Sun, 29 Nov To create the Table I pass a date…
-
1
votes1
answer4652
viewsQ: Change color of a given cell
I have a DataGridView which has 8 columns (days of the week) and x rows (hours of the day). I need to paint just one cell, getting like this: how could I do that? I already have the following…
-
3
votes1
answer155
views -
0
votes1
answer68
viewsQ: Do date conversion C#
I have a date "Wed, Nov 25" and would like to convert it to 2015-11-25 How could I do that?
-
4
votes1
answer8783
viewsQ: How to set Grid View column width?
I would like to know how to define the width of the DataGridView manually. My first column has to have a fixed value and the other columns must "fill" the grid so that they are the same size.…
-
7
votes3
answers2045
viewsQ: Inserting record and recovering ID generated by SQL Server 2012
I want to insert a record into a table, recover the ID that was generated by AUTO_INCREMENT and insert records into other tables using this ID. But, I want to do this all using the BeginTransaction.…
-
1
votes1
answer63
viewsQ: Display a formatted Timespan time
I have two variables: TimeSpan horaI = new TimeSpan(10, 00, 00); TimeSpan horaF = new TimeSpan(22, 00, 00); I need to present them on the screen as follows 10:00 and 22:00. But I’m not getting it.…
-
4
votes1
answer199
viewsQ: Convert string to specific format in date
I have a string "sex, nov 6" and need to convert to DateTime. I’m doing it this way: DateTime datetime = DateTime.Parse(gridT.Columns[e.ColumnIndex].HeaderText.ToString()); But it’s not working. How…
-
1
votes1
answer1277
viewsQ: Combobox search only items that match the typed
In a User Registration Form, I have a combobox Civil Status Registry (which loads data from an SQL table), when writing to combobox the system needs to go searching the data and presenting only…
-
2
votes1
answer516
viewsQ: Fill in Combobox
In a User Registration Form, I have a combo box UF (which loads the data from an sql table), when writing in Combox the system needs to go searching the data and presenting despite those that…