Questions tagged as 'c#'

1
answer

Exception when adding usercontrol more than once

Hello. I have a newsletter user control and it is added in several places within the project, for each page it is called, a property is set to insert the email into a certain group of emails (% with%). It turns out that now beyond the internal p...
asked by 25.11.2016 / 13:29
1
answer

Printing with PrintDocument, PrintPreviewDialog C #

I'm trying to print labels of my products right from my application. But I can not reduce the size of the paper in the print, so I'm missing 1 label for every 1 print I make, follows the photo: MyPreviewDialogshowsthatthepaperreallyisbigg...
asked by 04.11.2016 / 15:56
0
answers

How to capture camera image in real time - C #

How would you do to capture the real-time image of a camera from an android cell phone for example? I mean with "real time" it would be like you were analyzing every time the camera was turned on.     
asked by 04.11.2016 / 19:16
1
answer

BeginForm does GET instead of POST

I have a controller that has two Actions; public ActionResult Cadastrar() { return View(); } //[ValidateAntiForgeryToken] [HttpPost] public ActionResult Cadastrar(Usuario usuario) { if (ModelState.IsValid) { var appUsuari...
asked by 09.10.2016 / 02:18
1
answer

How to perform event with class instantiated in another method

I have a method that instantiates a "BandedGridView": private void popula_retContrato(string contrato) { Classes.Datatable.Datatable_cliContrato dat_contrato = new Classes.Datatable.Datatable_cliContrato(); gridControl4.V...
asked by 05.10.2016 / 16:10
0
answers

Link sends null array

I have a search screen and need to send a parameter as array, that part was quiet, the big problem is that this screen is paged, so in the page change links I put to send this parameter, but it is always sent null. Codes:    Controller...
asked by 05.10.2016 / 16:08
0
answers

Xml NFSe (NotaBlu)

Hello, I'm having trouble finding decent documentation for integration with WebService of notablu , I need at least one model of what XML would be like to send (preferably with caption of what some values mean, or things like I could...
asked by 04.10.2016 / 21:48
0
answers

Save multiple photos in the SQL database in the same ID

I'm having trouble saving multiple photos in a single id This is the cs of the page that makes the registration protected void btnSalvarImovel_Click(object sender, EventArgs e) { try { var cmd = new SqlCommand("...
asked by 05.10.2016 / 02:25
0
answers

Solidworks PDM API - IEdmBomView.GetRows does not return the same items for the BOM that are in the PDM

I have a C # routine that exports the BOM, but when I validated it, the 2 items marked in the image are not returned by the GetRows routine of the IEdmBomView class. Items are normal in Solidworks. And when I export the Bill of Materials to Exce...
asked by 05.10.2016 / 15:05
1
answer

How to return to the beginning of an Array in C #

I have to develop a code where it does the Cipher of Cesar encryption, the characters that I should use should be in this sequence; A ~ Z, (whitespace), 0 ~ 9. I already developed a lot of the code, but I came across a problem; for (int i = 0;...
asked by 23.11.2016 / 17:14