Posts by Diego Vieira • 481 points
10 posts
-
1
votes1
answer46
viewsA: Remove class depending on site height in refresh?
Use jquery for scroll events (see: http://api.jquery.com/scroll/), to know the position of the scroll, then save in browser cookies when the scroll is at the top of the page or when it is below the…
-
12
votes1
answer9757
viewsA: How to round up decimals to get an integer in C#?
Use Math.Ceiling(), example: var valorArredondado = Math.Ceiling(1.01); Example taken from MSDN: double[] values = {7.03, 7.64, 0.12, -0.12, -7.1, -7.6}; Console.WriteLine(" Value Ceiling Floor\n");…
-
4
votes1
answer5859
viewsA: Windows Service - ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Try to change the permissions that your Windows Service runs, the way it seems that the service is not allowed to access ODBC data sources, you can do this through the Windows service manager (press…
-
1
votes1
answer149
viewsA: Remove C# Webbrowser Details Print
Try to take a look at using @media print via css. Here’s a link with some cool examples on the subject: http://taylorlopes.com/? p=1855 Basically you need to configure the areas you want to print:…
c#answered Diego Vieira 481 -
0
votes1
answer136
viewsA: host wcf on IIS without domain
Yes, you can only use an IP to consume a WCF service on IIS, domains are nothing more than a friendly way if you get to the IP by means of redirects, then all you can access by a domain you can also…
-
8
votes2
answers264
viewsA: How to instantiate a class with abstract methods in C#
It is possible yes, you just need to create the method declaration abstractly and then in the class you want to add the implementation use the "override". public abstract class MinhaClasseBase {…
c#answered Diego Vieira 481 -
2
votes1
answer68
viewsA: Isolated Storage or SQL Server Compact
SQL Server Compact you can enjoy benefits that Isolated Storage may not be able to provide you, such as using Plinq (Parallel Linq, see: http://msdn.microsoft.com/en-us/library/dd460688(v=vs.110).…
-
1
votes1
answer1005
viewsA: Error saving list of MVC C#objects
Hello Marlon by what it seems to me when you mark the object with state modified, EF understands that all its fields have been modified, and since there is a relationship between the models, ends up…
-
3
votes1
answer274
viewsA: How to develop an asynchronous mechanism to test pings?
When you use "await" you are talking to Main Thread to synchronize with your async method, that is, it will wait for the result, resulting in the runtime equal to the previous one. You need to…
-
0
votes1
answer138
viewsA: Relational Combobox C# BD Access
without you passing a piece of code gets a little complicated, but I will try to answer you so that you can understand with ease, come on... Your combobox1 has an event that runs every time you…