Browse All Questions (1)
When setting a form's opacity should I use a decimal or double?
I'm new to C#, and 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 try to build it, I get this error:
Cannot implicitly convert type 'decimal' to 'double'
I tried making trans a double,…
Why doesn't the percentage width child in absolutely positioned parent work in IE 7?
I have an absolutely positioned div containing several children, one of which is a relatively positioned div . When I use a percentage-based width on the child div , it collapses to 0 width on IE7, but not on Firefox or Safari.
If I use pixel width, it works. If the parent is relatively positio…
Are there any conversion tools for porting Visual J# code to C#?
Are there any conversion tools for porting Visual J# code to C#?
How do I calculate someone's age in C#?
Given a DateTime representing their birthday, how do I calculate someone's age?
How do I calculate relative time?
Given a specific DateTime value, how do I display relative time, like
2 hours ago
3 days ago
a month ago
etc, etc...?
How can I determine a web user's time zone?
Is there a standard way for a web server to determine what time zone offset a user is in?
From an HTTP header or part of the user-agent description, perhaps?
What's the difference between Math.Floor() and Math.Truncate() in .NET?
What is the difference between Math.Floor() and Math.Truncate() in C#?
How do I fill a DataSet or a DataTable from a LINQ query resultset?
How do you expose a LINQ query as an ASMX web service? Usually, from the business tier, I can return a typed DataSet or DataTable which can be serialized for transport over ASMX.
How can I do the same for a LINQ query? Is there a way to populate a typed DataSet or DataTable via a LINQ query?:
…
Binary Data in MySQL
How do I store binary data in MySQL ?
Fastest way to get value of pi
Solutions welcome in any language. :-) I'm looking for the fastest way to obtain the value of pi, as a personal challenge. More specifically I'm using ways that don't involve using #define d constants like M_PI , or hard-coding the number in.
The program below tests the various ways I know of. …
Latest information on PHP upcoming releases
I'm trying to track the progress of PHP 5.3 and PHP 6 and I occassionally see blogs posting information but there doesn't seem to be an authoritative source. Does anybody know where there is an official summary of possible new features?
EDIT: There are some meeting notes that have been around f…
Throw an error in MySQL trigger
If I have a trigger BEFORE UPDATE on a table. How can I throw an error that prevents the update on that table?
How to use the C socket API in C++ on z/OS
I've been having issues getting the C sockets API to work properly in C++. Specifically, although I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined. Am I missing something obvious, or could this be related to the fact that I'm doing this coding on …
Unloading a ByteArray in Actionscript 3
Does anyone know how to forcefully unload a ByteArray from memory in AS3?
I have tried (without success):
byteArray.length = 0;
byteArray = new ByteArray();
and
for ( var i:int=0; i<byteArray.length; i++ ) {
byteArray[i] = null;
}
Any ideas?
Check for changes to a SQL table?
How can I monitor a MSSQL database for changes to a table without using triggers or modifying the structure of the database in any way? My preferred programming environment is .Net and C#
(edits)
I'd like to support MS SQL 2000 SP4 or higher
by "changes to a table" I mean changes to table…
Next Page >
<< First Page Last Page >>