windows (25,329)


c# - Convert Decimal to Double?

c# - Convert Decimal to Double?

I want to use a track-bar to change a form's opacity. This is my code: decimal trans=trackBar1.Value/5000; this.Opacity=trans; When I build the application, it gives the following error: Cannot implic…


How do I calculate someone's age in C#?

Given a DateTime representing a person's birthday, how do I calculate their age in years?…



c# - Reliable timer in a console application

I am aware that in.NET there are three timer types(see Comparing the Timer Classes in the.NET Framework Class Library). I have chosen a threaded timer as the other types can drift if the main thread i…


.net - Anatomy of a “Memory Leak”

In.NET perspective: What is a memory leak ? How can you determine whether your application leaks? What are the effects? How can you prevent a memory leak? If your application has memory leak, does it…


Best Subversion clients for Windows Vista(64bit)

I've been using TortoiseSVN in a Windows environment for quite some time. It seems very feature-complete and nicely integrated into the Windows shell, and more importantly, it's fairly painless to t…


Register Windows program with the mailto protocol programmatically

How do I make it so mailto: links will be registered with my program? How would I then handle that event in my program? Most of the solutions I found from a quick Google search are how to do this manu…


c - GTK implementation of MessageBox

I have been trying to implement Win32's MessageBox using GTK. The app using SDL/OpenGL, so this isn't a GTK app. I handle the initialisation(gtk_init) sort of stuff inside the MessageBox function a…


internet explorer - Programmatically launch IE Mobile favorites screen

Is there any way to launch IE Mobile's "Favorites" screen directly by specifying any command line parameter?…


c# - WinForms ComboBox data binding gotcha

Assume you are doing something like the following List<string> myitems=new List<string>{"Item 1", "Item 2", "Item 3"}; ComboBox box=new ComboBox(); box.DataSource=myitems; Combo…


c# - Robust Random Number Generation

I'm looking for a performant, reasonably robust RNG using no special hardware. It can use mathematical methods(Mersenne Twister, etc), it can "collect entropy" from the machine, whatever. On Linux/et…




how for file not install download command linux application example