Possible Duplicate:
What does DateTime? mean in C#?
Hi All,
I recently came across with some code in C# where float? is used as return type. I want to know what is the concept behind using this and in which scenario we need to use it against normal float return type.
Thanks
...
I have a webBrowser Control. HTML inside webBrowser control displays some small images (4kb each). However when I run my application, Images are not loaded in to webBrowser Control. Also I have used javascript function to keep refreshing page at some interval.
function StartTimer(MS){
TimerObj = setTimeout("window.location.href=windo...
Hi,
The following code outputs the screen to a JPEG. When printed on A4 , it hardly occupies half the height. Can it be made to scale up to 827 x 1169 i.e A4 size ?
Thanks, Chakra.
public void TakeScreenshot()
{
Rectangle bounds = Screen.PrimaryScreen.Bounds;
using (Bitmap bmp = new Bitmap(bounds.Width, bounds....
When using the PropertyGrid and passing in an Object for the user to make changes, what is the best approach for handling a cancel/undo.
Do you provide a copy of the original object into the property grid make your changes then if the user accepts the mods then update the values into the original object?
Make a copy of the original set...
I am wondering if there is a resource/book that details out scenarios like Session management in webfarms, sql state management in replicated servers etc. I am looking for tips and tricks and gotchas in real world scenario that are not usually discussed in technology books.
...
I am looking to parse mp4 for my .net application. I couldn't find any mp4 parser in .net.
Found mp4parser which is in java.
Please let me know is there any C# version available? if no, is it possible to use mp4parser with .net?
...
How do I go about producing random numbers within a range?
...
Visibility="{Binding, Converter={StaticResource nVis}}"
My converter return collapsed if object is nothing and visible if not.
Why the error :
Erreur 1 Erreur de génération inconnue, 'MC3045 : propriété 'Converter' inconnue pour le type 'MS.Internal.Markup.MarkupExtensionParser+UnknownMarkupExtension' rencontrée lors de l'analyse d...
Not much to add to this. Have an example?
...
i have the following problem concerning the index::
my source code::
<table style="width: 80%">
<tr>
<td>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
...
Is there an easier way of creating shell extensions in .NET than this?
http://www.theserverside.net/tt/articles/showarticle.tss?id=ShellExtensions
The article is dated 2004.
...
m having a winForm and in that m using BackGroundWorker control for keeping Form GUI active.
Now i'm accessing datagridview from backgroundworker_doWork() method, so i created a delegate method below:
delegate void updateGridDelegate();
private void invokeGridControls()
{
if (autoGridView.InvokeRequired)
{
...
In my view I have the following code (for checking if user exists):
$('#CheckAvailability').click(function () {
var username = $('#Member_Username').val();
var oldusername = $('#Member_Oldusername').val();
if (username != null) {
$.ajax({
type: "GET",
url: "/Admin/M...
I have a DLL supplied by a 3rd party along with an accompanying .NET 2.0 assembly that wraps it. If I create a .NET 3.5 project with VS2008 I am able to call into the DLL via the wrapper assembly and it works OK. However, if I create an equivalent .NET 4.0 project with VS2010 then I get a R6030 - CRT not initialized error in a message bo...
How can I open files, which are embedded in a resource file, like a file on the harddisk (with an absolute path) ?
...
Hello everyone.
I'm currently designing an MDI application (a custom CRM) in .net 4.0 and i'm starting to dislike the whole interface simply because there's no real way to track which windows are open or closed and it'll probably lead to a very confusing interface.
What is the best way to avoid this?
- Should i implement a taskbar to t...
Hi
I need to arrange sort of dictionary where the key would be a pair of enum and int
and value is object. So I want to map a pair to some object.
One option would be
public enum SomeEnum
{
value1, value2
}
class Key
{
public SomeEnum;
public int counter;
// Do I have to implement Compare here?
}
Dictionary<SomeEnum, obje...
If you need to install a 100% .NET product, should you prefer MSI installers? Why?
Thanks.
...
I have a problem with a image when trying to display it.
In my project i have a Class witch have a "public String Image" atribute.
I have a web server localy wich return me a colection of Class. When i look in debug mode at the Image atribute it show me the corect url (if i paste the url in browser it show me the image) but the image isn...
I am trying to find a .NET component that allows GUI (drag-and-drop) workflow design, and I need it as a part of a bigger software so I prefer it to be a usable component. What I imagine is it is similar to the GUI used to design workflows in Visual Studio 2008 and 2010. Is there any such component? I tried searching for a while and didn...