Questions tagged as 'c#'

1
answer

Programming of a button that when clicking for the 2nd time, the form returns to the previous position

Good people. I have a C # program with multiple forms created. Each form has FormBorderStyle: None and has a button that when clicking maximizes the form. What I want is that by clicking the same button a second time, the form returns to t...
asked by 09.03.2018 / 13:42
1
answer

Login Permissions

I'm doing a C # application where I've created a database for the login system where I have created users. In this login system I wanted to add permissions to certain users. For example, the program detects that it is the admin to log in and ena...
asked by 08.03.2018 / 13:21
1
answer

Pass value from view bag to view

I'm trying to pass value from a view bag to the view create. Controller public ActionResult Create() { ViewBag.BanhoTosaId = new SelectList(db.BanhoTosas, "BanhoTosaId", "Tipo"); if (ViewBag.BanhoTosaId.SelectedValue != null)...
asked by 08.03.2018 / 12:51
0
answers

intersection of polygons and union of polygons

Good afternoon, I have points on a map I want to generate a voronoi diagram on the points, and I want the limit of this voronoi diagram to be a polygon (the city), and once these polygons created would like to unite some between each other, I ne...
asked by 14.03.2018 / 18:45
0
answers

Rotate nhibernate in macOS X 10.13.3 (C #)

Good morning, I'm new to the C # programming world and so I had some problems compiling a project for visual studio for mac . The problem was as follows, the project uses the nHibernate version 4.0.3 to do the database persistence, and when c...
asked by 14.03.2018 / 13:03
0
answers

I can not add objects after ViewPager (image slider)

Hello, I'm trying to make a page like this but I can not add anything else after the ViewPager (I made the slider with viewpager), I tried to put the viewpager in a fragment and use scrollview in the main activity but it did not work. Brief...
asked by 08.03.2018 / 22:19
1
answer

How to validate if files in a directory are or are hidden?

Good morning, people. There is a program that prints PDF files that are in a predefined directory. The problem was happening because there were two hidden files folder and the program was trying to print and burst the error as the print be...
asked by 22.03.2018 / 16:23
1
answer

Not null parameter in Int fields

I'm creating an application in Asp.NET MVC (I'm using the Scafffolded feature), however, all the fields are being filled in, how do I remove this parameter? Note: I've tried unchecking the "Allow null value" option in the database, but withou...
asked by 07.03.2018 / 13:29
2
answers

Find string in html code

I need help with the following: _Add multiple files (.htm extension), approx 20 files. _Analize and find in the 20 files a string determined in the HTML code (maximum length of the string is 20 characters). I thought to perform in html wit...
asked by 06.03.2018 / 11:46
1
answer

UnknownNode when loading XML into class

I get the following XML from a database (modified data, but the structure is this) <registro> <header> <codUsuario>XXX</codUsuario> <codLojista>999</codLojista> </header> <parametros&g...
asked by 05.03.2018 / 21:45