Posts by vinibsc • 61 points
8 posts
-
-2
votes1
answer82
viewsQ: Increasing list in c
#include <stdio.h> #include <stdlib.h> int main() { int total = 10; char letra = '*'; char *retorno; retorno = (char *) malloc(total + 1); for (int i=0; i<total; i++) { retorno[i] =…
-
-2
votes2
answers710
viewsQ: How to know how many characters there are after the comma c#
I would like to count how many characters there are after the comma. I was using public static string strToDouble(String text) { string aux; if (text.IndexOf(",00") <= 0) { aux = text + ",00";…
-
0
votes1
answer164
viewsQ: How could I reverse the way a foreach travels through the object?
Code to follow: foreach(Control objCtrl in groupBox.Controls) { if (objCtrl is NumericTextBox) { int i = objCtrl.Text.Length; MessageBox.Show(i.ToString()); if (String.IsNullOrEmpty(objCtrl.Text) ||…
-
0
votes1
answer203
viewsA: How to generate multiple PDF dynamically through Itextsharp
I don’t know where the loop ai... but you could do so: protected void btn_pdf_Click(object sender, EventArgs e) { do{ Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 40f, 0f);…
-
2
votes1
answer45
viewsA: Datagridview displaying incomplete id
CREATE DEFINER=`root `@`localhost` PROCEDURE `sp_select_lixeira`( IN nome_tabela VARCHAR(255), IN id_tabela VARCHAR(10), IN campo_tabela VARCHAR(255) ) DETERMINISTIC BEGIN DECLARE maxDigitos…
-
2
votes1
answer45
viewsQ: Datagridview displaying incomplete id
The grid displays only the first character of the "ID" For example: if the ID is 16 it displays 1; If it’s 20 displays 2; However from 1 to 9 displays correctly... Code that selects the data...…
-
0
votes1
answer47
viewsQ: How to pass a parameter to Dataprpetyname (in Datagrid) C#
How can I pass a parameter there? For example change the id_inss to id_example? I couldn’t find a way.…
-
-2
votes2
answers441
viewsQ: Error 1 No Overload for method 'Inherited method' takes 1 Arguments
Error 1 No Overload for method 'Inherited method' takes 1 Arguments Code: public void restauraRegistro(DataGridViewRow linha) { try { string codigo = String.Empty; //verifica se e para recuperar com…