Questions tagged as 'c#'

1
answer

Update a Window's Label through the Contents of a ComboBox of a UserControl

I have: A Window: Window1 (MainWindow) Three UserControls: -UserControl1 -UserControl2 -UserControl3 In window 1 I have a label (label1) and in each of the UserControls I have a ComboBox. Each ComboBox has 3 options: BLU...
asked by 30.05.2017 / 19:01
0
answers

ScrollBar GridView

I have some GridView in my project, but some have many columns and all are necessary, I would like to place a horizontal scrollbar on the grid, but besides the scrollbar, I would like to place an arrow, to navigate the columns, making it easier...
asked by 23.05.2017 / 20:25
1
answer

Doubt over contextMenuStrip

It'sthefollowing,Ineedtoaddthesetoolsexactlyasshownintheimage.Ijustneedapush,howtogetstarted.  Inserttext    InsertImage    Delete(button)CODEnamespacefrmLoginRPG{publicpartialclassfrmMenuPrincipal:Form{privatereadonlyButton[]_todosBotoes;publi...
asked by 20.05.2017 / 02:30
1
answer

Queuing Problems for Asynchronous Controllers

Hello, I'm having some problems regarding Asynchronous Controllers because the server's request queuing continues to be blocked for the client during some operation. The routines work exactly, I can execute even parallel functions (for exam...
asked by 18.05.2017 / 03:06
1
answer

Error generating file

I have a method that generates a file, this method is actually generating the file, I have another method inside my service that returns the file for download and for this I return a List until then I return that list with bytes for my controler...
asked by 18.05.2017 / 02:19
1
answer

How do I stop the program until a form is closed?

I want it when Form1 is opened, the whole program stops, and only comes back when it is closed. How can I do this? Code that opens Form1: if (x == DialogResult.Yes) { Form1 f1 = new Form1(); f1.Show(); } As it's called: public...
asked by 28.05.2017 / 18:12
1
answer

Validation with ASP MVC

I tried to use [StringLength (4)] but when it executes the error because it can only use character, I looked for some solutions but so far nothing.     
asked by 25.05.2017 / 01:37
1
answer

Log in with the Facebook user

How do I do a routine in C # or Razor on my site, to instead of the guy only by the login page, have the option to log in for the facebook user? I'm not asking for ready code, just how I do it.     
asked by 16.05.2017 / 23:32
0
answers

Error trying to read signatures from a program. (This program can not be run in DOS mode)

I was trying to make a program to read signatures, basically, what the anti-virus does. But the error that I come across is this:    This program can not be run in DOS mode. Not even try-catch solves this ... My code: string pasta; P...
asked by 17.05.2017 / 02:10
1
answer

Nhibernate Self-reference Mapping

Hello, I need to return a list of child objects of the same type as the parent. however, using nhibernate, the same only returns a child object, while in the database I have 3 children. Here are some excerpts from the code: Data Step...
asked by 17.05.2017 / 03:39