Posts by Diego Moreno • 491 points
28 posts
-
3
votes1
answer49
viewsQ: Do instances of the same application share static objects?
I am developing a Windows Form application in C#, and this application can run simultaneously several times on the same computer. And I am doubtful whether or not I should use static objects…
-
5
votes1
answer529
viewsQ: Upload files with web browser c#
I am developing a process automation system, where my client’s supplier website has a part that needs file uploading. All automation is already developed, missing only this part. I’ve searched…
-
-1
votes1
answer58
viewsQ: Nosql . Net compatibility
I would like to know if there is any Nosql bank that is easier to work with. Net (which is easy to integrate, manipulate, create entities by the Entity framework if possible, etc). If you can give…
-
5
votes2
answers828
viewsQ: Abort Thread through another C#process
I am developing an application in ASP.Net 5.0, where it needs to start a task through a Thread Secondary, as the example below: //Inicia processo de pesquisa var ppBlo = new ProcessoPesquisaBLO();…
-
0
votes1
answer557
viewsA: Is it possible to use Webbrowser on the web Forms Asp.net c#?
For you to log into a website using WebBrowser, will depend a lot on how is the structure of the site, how are arranged the elements you should insert values in them. But usually in my solutions I…
-
3
votes3
answers676
viewsQ: Datatables highlight line with higher percentage
In my system I have a table mounted by DataTables. Data is received from the server via Ajax. Example of the data structure loaded in the table: DDD | Processed | Approved | Percentage | 11 - 19 |…
-
1
votes1
answer526
viewsQ: Identify if a particular program is the focus by C#
I am developing an application, which will insert data into another program (using Sendkeys, etc). For this I need to know if the program is what is in focus. For example: The application open the…
c#asked Diego Moreno 491 -
5
votes3
answers287
viewsQ: Out Of Memory when running a Getfiles in a very large directory
Currently I have a directory with several subdirectories that have more than 3 million files. I need to map only the directory where these files are. And this mapping should be separated by the file…
-
1
votes0
answers131
viewsQ: Linked Server SQL Server Optimization
Currently has an environment that has 4 servers with database. I need to gather some information from 3 servers in 1. Example: The servers are: To B C and D I need to get some information that’s on…
-
0
votes0
answers2413
viewsQ: C# windows appication Event: Clr20r3 on application start
I created a windows application Forms c# . net 4.5, in my development environment works perfectly, but when I put the release in the client environment, give the following error when starting:…
-
4
votes2
answers2245
viewsQ: How to capture Alert message using web browser controler?
I am developing a robot using the web browser controler of Asp.Net C#. In this robot I need to identify some messages that appear in Javascript Alert. The site that the Robot is manipulating is not…
-
5
votes1
answer2239
viewsQ: Load table with json using Datatables
I am using jquery Datatables plugin version 1.10.7. I am trying to load a table following the following structure: JSON { "d:" [ { "IdNotificacao":null, "Contrato":{ "id":631, "serie":2210618,…
jsonasked Diego Moreno 491 -
0
votes1
answer105
viewsQ: Creating HTML elements with Jquery
Guys, I have the following HTML structure: <ul id="list_Viagens"> <li class="has-sub"> <a href="#"> <span class="text">Viagem: <span…
-
0
votes2
answers746
viewsQ: Browse List in Jquery (JSON)
Guys, I have a JSON, which will be returned by an ajax, with the following structure: { "ExtensionData": {}, "CodCli": null, "Codigo": 0, "Data": "/Date(-62135589600000)/", "Detalhes": {…
-
6
votes3
answers1255
viewsA: Display text at random
You can use the function setInterval, definition in: http://www.w3schools.com/jsref/met_win_setinterval.asp EXAMPLE var textos = ["1", "2", "a", "b"]; var interval = 10000; var i = 0; function…
-
1
votes2
answers1152
viewsA: How to count words from a string ignoring prepositions?
This is linked to data mining. I found a presentation on slide share (http://www.slideshare.net/andreschwerz/lucene-12290739) I might be able to help you. Follow other links that are linked to the…
-
1
votes2
answers1062
viewsQ: Develop for windows ce/mobile in visual studio 2013
I have done several searches on the web to find some solution to my problem, but, all tutorials (articles) I found, were flawed for my solution. MY CASE I currently own several smart device project…
-
5
votes3
answers42
viewsA: Formatting problem when injecting date into datetime attribute
Previous answers will help you. But, to avoid confusion and make the code more readable, always try append as follows: $(".container").append( $('<p>').attr({ id: 'msg'+id, datetime: date…
-
0
votes2
answers1396
viewsA: How to organize css and js?
I don’t know if this will answer your question, but it will serve as a suggestion. Currently I use Grunt Js (http://gruntjs.com/) to: Minificar (css, javascript); concatenate several files into only…
ruby-on-railsanswered Diego Moreno 491 -
1
votes1
answer96
viewsA: How to keep icon aligned left when resizing page?
First remove the display: inline since you are wearing float: left. Then remove width e height img and put in css to get better. Code #newsletter-form input#newsletter { float: left; margin-bottom:…
cssanswered Diego Moreno 491 -
2
votes1
answer283
viewsQ: Grid System or Twitter Bootstrap
I’m starting now to search for these "css layout setters", and the ones I hear most about is: 960 Grid System (http://960.gs/) and twitter bootstrap (http://getbootstrap.com/css/). I would like to…
-
3
votes1
answer112
viewsQ: Recommendations for comments on an interface and its contracts
Every day I come across this situation when I will insert comment for an interface and for a class. I wonder if I should use the same interface comments and their contracts, in class and their…
-
2
votes1
answer91
viewsQ: Where can I find the Microsoft.WindowsMobile.Forms library?
I’m developing an application on Smart Device for Windows Mobile 6 in Visual Studio 2008 C#. In this application I need to use the object functions CameraCaptureDialog, because, the main goal of the…
-
0
votes1
answer221
viewsQ: Instruction Left Join in LINQ to entites
I tried to do a left Join on LINQ as follows: (from opr in db.Operacao join vol in db.Volume on new { VOL_CODBAR = opr.OPR_CODBAR } equals new { VOL_CODBAR = vol.VOL_CODBAR } into vol_join from vol…
-
3
votes1
answer103
viewsQ: Converting an SQL from Sql Server to C#LINQ
I have an sql that looks like this: SELECT coluna1, coluna2, coluna3 FROM ( SELECT coluna1, coluna2, coluna3, ROW_NUMBER() OVER(ORDER BY coluna1, coluna3 desc) as row FROM tabela1 WHERE coluna4 in…
-
7
votes2
answers1398
viewsQ: Returning a list using select new with LINQ
I can do it: var filial = (from f in base.EntityContext.vw_filial select f).ToList<vw_filial>(); But I want to do something like this: var filial = (from f in base.EntityContext.vw_filial…
-
1
votes1
answer154
viewsQ: Create partial (partial) method in C#
You can create a method similar to a class that is partial? For example: Has the method $InitializeComponent() which is of the class of a form. I want to increment this function without touching the…
-
2
votes1
answer741
viewsQ: Manipulating Listview C#
I have a Listview that displays the data on the screen and has several rows and columns. For example: Cl1 | Cl2 | Cl3 L1 aa | bb | cc L2 ab | bc | cd L3 ac | bd | ce I wonder, if you have any c#…