Questions tagged as 'c#'

1
answer

Current time in Brazil C #

I'm trying to get the current time of states / DF Brazil with different time. I found the code below but it did not help much. Does anyone know of any way to do without webservice ? public static void Main() { DateTime timeUtc = Date...
asked by 20.11.2016 / 00:48
1
answer

Separation of the Identity Bank with the Application [closed]

When using Asp.net Identity, a single bank is generated. And it is recommended to leave this bank only for Identity and create another bank for your application, as I read in some articles. So far so good ... I went to see a video lesson (lin...
asked by 14.10.2016 / 22:44
1
answer

execute Task.When all wait and then go back run

I'm trying to do a console program, run a task, wait and run again and continue on this cycle infinitely. In theory would be to put the function inside an infinite While(true) loop, but as the function is asynchronous it is not working...
asked by 20.10.2016 / 22:10
1
answer

How to concatenate data from a DataGridView and Save in a single field of the database

I want to concatenate and save the fields of a datagridview, however I do not know how to do this. What I Have: method: public void Gravar() { string strQuery; strQuery = "INSERT INTO Prato"; strQuery += (" VALUES("); str...
asked by 16.10.2016 / 05:53
1
answer

How to hide items from a menu in C # MVC template?

I'm having trouble restricting access to some menu items in my application because there is a type of user that will only have access to certain items and the Admin user after logging in will have access to all the content, while not logged in t...
asked by 19.01.2018 / 17:53
1
answer

Regular expression in C # - Regex that accepts numbers with DDD and accepts numbers without DDD

People, how do I create a regular expression, in which it should accept numbers with DDD, and should I also accept non-DDD numbers?     
asked by 12.05.2016 / 22:06
2
answers

ListView with an empty and editable column

PersonnelwantedtohaveemptyandeditablecellsinacolumnofaListViewthatpullsinformationfromtheSQLServerdatabasetomyproject.TopulltheinformationIuseLINQandIcanlistallthedataIwant.Theideais:whenthislistisloadedtheusercaneditthecellsofanewcolumn(Quanti...
asked by 15.05.2016 / 01:52
3
answers

Entity Framework [ForeignKey]

Reading a tutorial on the entity framework, I came across a rather strange example for me. This example is about the DataAnnotation [ForeignKey] public class Student { public Student() { } public int StudentID { get; s...
asked by 05.05.2016 / 17:38
1
answer

What is the best way to generate pdf files via webservice? [closed]

I have a Soap webservice and I came across the need to generate pdf documents. Has anyone worked with generating many documents via webservice and what technologies have they used? Which technologies have achieved better performance, workability...
asked by 05.05.2016 / 15:14
1
answer

Scrollbar on Windows Forms screen

Is it possible to put scrollbar in winforms to increase the amount of window content? Not only in a datagrid , but on the whole screen to include anything like more buttons, text fields ... The goal is to unify three tabs in a single v...
asked by 16.05.2016 / 22:04