Questions tagged as 'c#'

1
answer

Parameters between pages (ASP.NET Core / C #)

Hello, I have a question that I have researched a lot and did not get any concrete answers. I am a beginner in C # and ASP.NET, forgive me for ignorance. I have an ASP.NET Core MVC project. In it I have Page A and Page B. On Page A I ha...
asked by 28.12.2017 / 20:49
0
answers

Move Cell from a GridView C # desktop

This code does nothing more than move a selected line in a datagridview . btnup - > throws the selected line up. butndown - > plays the selected line down. DOUBT: My question is, how to move only the selected cell, not the enti...
asked by 29.12.2017 / 15:46
0
answers

C # Failed to send emails using SmtpClient

I'm getting the following error when running the system on the server with port 587: Mailbox not available Error Stack: WhenIchangetheportto465andSmtpServer.EnableSsl=true;timeoutoccurs;Irunthesamesystemonmylocalmachineanditworksnormall...
asked by 28.12.2017 / 17:41
2
answers

How to walk through a C # class?

I have DeserializeObject that fills a request class and items, in the items I need to go through this class to write the data, the way I'm doing is zeroing the records, how could I read the data? > public class Item { public string i...
asked by 13.12.2017 / 21:18
0
answers

How to save drawings angles C #

In my game users are supposed to draw figures that I show, I want to save the angles of the drawings to compare with the data I have already stored in a database and see if what the user has designed is acceptable. From the moment the user st...
asked by 02.01.2018 / 16:18
1
answer

How to use DrawToBitmap in WPF to take print from screen?

Following is the functional code of WinForms : Bitmap pic = new Bitmap(label1.Width, label1.Height); Rectangle rect = new Rectangle(0, 0, label1.Width, label1.Height); rect = label1.ClientRectangle; label1.DrawToBitmap(pic, rect); // pic...
asked by 20.12.2017 / 00:19
1
answer

Automatic line break textbox multiline form of email C #

Hello everyone, help me here because I tried everything and it did not work, I'm not able to make the multiline textbox send the line break by email in the contact form. ex: Ola Quebra de linha tudo bem resultado: Ola Quebra de linha tudo bem...
asked by 19.12.2017 / 22:44
2
answers

Gmail notifies that email is usually used to steal information when I use content-type="text / html; charset = utf-8 "

I use the Gmail API to send email marketing, and I always respect the limits and anti-spam standards. And yesterday I started sending bulk emails, averaging 2,000 a day, but after a while I realized that users receive the following information:...
asked by 22.12.2017 / 19:05
1
answer

How to create a dialog tree with a custom language in C #

I created a dialog language for a game, but in the step where I analyze the recursion, it is always generated incorrectly. The syntax looks like this: Chance(Num);Relation(Num);Reputation(Num):Dialog>Option0[RelationInc,ReputationInc],.....
asked by 22.12.2017 / 23:23
0
answers

OpenSource Alternatives to PostSharp

Does anyone know of a OpenSource alternative to PostSharp ? I know it has the Free version, but I'm developing some Nuget packages using attributes and I find the dependency on PostSharp heavy and at any point they can start charging, it depe...
asked by 11.12.2017 / 13:33