Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > march 2005 > threads for saturday march 5

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

using() statement will it call dispose when return is called
Posted by LP at 3/5/2005 11:38:09 PM
Hi, Considering the following code: using(mySQLconn) { if (someCondition==true) return 0; //more code after return //do some db calls } return 1; Will .mySQLconn.Dispose(); still be invoked even when return is called? Thank you ...more >>


Load an Image from DB to RAM?
Posted by pnp at 3/5/2005 7:40:06 PM
How can I load a blob of an image from an SQL server to an object in RAM instead of outputting to a file, and then loading it?...more >>

How to create a bitmap programmatically in C#
Posted by Bradford at 3/5/2005 7:14:08 PM
I have an Windows application that displays lots of different colored = lines in a Panel by using the Graphics.DrawLine method. The location and = length of each line comes from a database query that takes two minutes = to complete. I am using the Panel's Paint event to call my drawing method,...more >>

Compiler error found...
Posted by - at 3/5/2005 7:05:49 PM
Hi to All, To reproduce: The expression: object result = flag ? (long) 0 : (double) 0; always evaluated as a double... see dissassembly to ensure the bad compiled code. Just for sure: if (flag) { result = (long) 0; } else { result = (double) 0; } works correctly. T...more >>

is this a bug of JIT?
Posted by Justin Shen at 3/5/2005 6:57:23 PM
the output of the following codes is "greater than zero", which is rather strange! the correct one should be "not greater than zero" int a = 0x79de61c0; //2044617152; a += 0x12345678; //a is 0x8c12b838 //-1944930248 if (a > 0) { Console.WriteLine("greater than zero");...more >>

Call a procedure from one form to another
Posted by Ivan Sammut at 3/5/2005 5:48:54 PM
Hi, I have just started using c# and this might be a stupid question. I have 2 Forms (Form1 & Form2). I want to create a procedure in Form2 which I can call from Form1 but I cannot find a way to do it. I found how to define a variable and call it from Form1 but I cannot find a way to do the...more >>

Weird file name problem solved.
Posted by Kappa at 3/5/2005 5:33:57 PM
Hello there This might be the wrong group to post this message for me, but since this is to do with "#". I had a Compiled HTML Help file (.chh) named "Windows Form Programming in C#". Since I got it, every time I try to open it and it gave me an empty file. I replaced C# with CSharp in fold...more >>

A lot of proyects in one dll
Posted by Jonathan at 3/5/2005 5:32:34 PM
Hi, if i've 3 projects in my solution, is possible to make one dll from these projects? All projects has the same namespace and are writings in C#. Thanks! ...more >>



C# and const
Posted by news.microsoft.com at 3/5/2005 5:31:41 PM
It seems to me that C# has a serious issue regarding const. It's not possible to have a method parameter declared as const. Often you will want to call a method, and you don't want the method to modify the class you are sending a reference to. Also it's not possible to declare a method as const...more >>

How to protect my source code from reverse engineering
Posted by Fady Anwar at 3/5/2005 5:25:02 PM
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised that i could retrieve my code from my applications after i compile it so i need to know to prevent ...more >>

Toolbar stops catching "Click" event after some time.
Posted by Sakharam Phapale at 3/5/2005 5:03:46 PM
Hi All, I am working on a project, where maximum operations carried out on Files and multi-dimensional arrays. Since array data is huge application takes too much memory. My problem is, after few operations, toolbar on MDI from doesn't catch "Click" event. But it catch all other events lik...more >>

Easy - VS Project Ref. Quest
Posted by Steve B. at 3/5/2005 2:47:02 PM
How do I reference a WinForm file (i.e. Class) in Project B from a WinForm file in Project A? I've previously used Tutorial: Creating C# Class Library (DLL) Using Visual Studio .NET http://www.c-sharpcorner.com/2/pr12.asp to create a dll reference for Project A but how do you reference a fo...more >>

How restrict some assembly
Posted by Dani at 3/5/2005 2:02:31 PM
Hi, I am using codeDom class to compile on fly some c# code. I want to restrinc to use some assembly, i don't know if assembly is the best word, i want to forbid to use class like System.IO.File or System.IO.Directory, how can i do it?? I thought i can do it parsing the code looking for ...more >>

[Proposal] using statement enhancements
Posted by cody at 3/5/2005 1:56:48 PM
Mostly always you use the using clause you deal with native ressources, so exception handlinjg is sooner or later inevitable. so why do we need to write try { using (File f = File.CreateText("bla.txt")) { } }catch (IOExcepion e) { } why don't we allow catch blocks directly at...more >>

2 Problems with Visual C#
Posted by Michaelas10 NO[at]SPAM gmail-dot-com.no-spam.invalid at 3/5/2005 1:48:53 PM
The first one is: Cannot implicitly convert type 'int' to 'bool' The second one: 'System.Windows.Forms.FormWindowState' is a 'type' The code is: private void button6_Click(object sender, EventArgs e) { int i; if (i = 2) { ...more >>

How to get around command line limitation for "Send To" app?
Posted by Greg Arnold at 3/5/2005 1:43:04 PM
I have created a "Send To" application that allows users to rename files. The user selects files in Windows Explorer, right clicks and selects Send To > File Renamer. The problem is when a large number of files are selected, the app gives an error that says "Windows cannot access the specified...more >>

Recommended C# books for beginners?
Posted by John Salerno at 3/5/2005 1:01:33 PM
Hi all. I was hoping some of you could recommend a book or two that would help me get started with the basics of C#. I have a slight knowledge of programming, but basically I want to start out like I know nothing, so I don't skip anything. I considered Microsoft Visual C# .NET Step by Step ...more >>

web Administrative control panel
Posted by freddy at 3/5/2005 12:47:02 PM
I would like to build a web Administrative control panel to update a website. Like have it where you just type in some text and hit upload and now it on your site...more >>

Command Line Arguments within IDE
Posted by Rick at 3/5/2005 12:35:21 PM
Hi, Is there a way to test with command line argument while developing and debugging within my VS .NET IDE? I heard that there's a simple way to do this. Thanks. Rick ...more >>

Property Descriptions in Custom Components
Posted by Jason Perry at 3/5/2005 11:27:02 AM
Hey Gang, I'm writing my first custom component and am trying to add the text that describes the custom properties. I'm talking about the text that displays in the property inspector (design time) when you highlight a property, in the bottom box that describes what it is for. I've tried...more >>

override non-static method with a static one
Posted by Joe at 3/5/2005 11:23:04 AM
I have a base class with all abstract methods. I need to inherit from this base class but the new class will have all static methods. Is there a way to do this? I tried using new but then it complains that the base method hasn't been implemented. Thanks, Joe ...more >>

byte order and endianness
Posted by Senthil at 3/5/2005 10:03:04 AM
Iam trying to pack some bits and create a client request packet using a Byte[] array. To test the "endianess" I tried a small sample and used the BitConverter to print the actual values ... and the out does not seem right ..... the sample code and the output is shown below. What Am I missin...more >>

How to set Menu seperator in VC# Express 2005 Beta1
Posted by SharpCoder at 3/5/2005 9:39:29 AM

How Can I assign value to Struct variables?
Posted by Ñ©ÔÆÓ¥ at 3/5/2005 9:14:01 AM
Hi,all I have a trouble about struct variable,the detail is : I define a new struct which name ServiceProperty,then I declare a variable like this: ServiceProperty instService = null; but compile throw error: error CS0037: ÎÞ·¨½« NULL ת»»³É ¡°ServiceProperty¡±£¬ÒòΪËüÊÇÒ»ÖÖÊýÖµÀàÐÍ ...more >>

Microsoft Visual C# 2005 Express Edition Beta
Posted by Peter Hogg at 3/5/2005 8:31:09 AM
Hello, I recently downloaded 'Microsoft Visual C# 2005 Express Edition Beta'. It's been brilliant, but I couldn't help wondering what more you get when you buy 'Visual Studio .NET'. There must be some considerable advantages of using it considering its price. So I'm asking you what 'Visu...more >>

Registry Editing: NullReferenceException driving me crazy. Please help me out...
Posted by Markali A. at 3/5/2005 3:12:35 AM
Hello, I'm absolutely new to programming, so please don't be too hard on me... I'm trying to make a simple form application to hide or show hidden files. When I try to run the application I get a "System.NullReferenceException: Object reference not set to an instance of an object."...more >>

MyComboBox inherrited from ComboBox
Posted by Mihaly at 3/5/2005 2:55:05 AM
Example: public class MyComboBox : System.Windows.Forms.ComboBox; { public bool CanDropDown = true; public MyComboBox() { } } Prease help me how modify this class for if CanDropDown = false, the user can not open the drop down list of the combobox. I do'nt want to...more >>

Error in SqlCommand
Posted by Fox at 3/5/2005 1:07:56 AM
Cannot accept null value in parameter list My SQL Server can accept null value on field CustomerName When I run this example SqlConnection nwindConn = new SqlConnection("Data Source=(local);Integrated Security=SSPI;Initial Catalog=northwind"); SqlCommand selectCMD = new SqlCommand("SELE...more >>

emergency
Posted by Shawn Zheng at 3/5/2005 12:04:35 AM
I can send email out in Windows C# program in XP by using SmtpMail. but I can not send email in ASP.NET web application. The emails are kept in ...\Inetpub\mailroot\Queue folder. This also occured in Windows 2003 server. What is the problem? Is some settings that I did not do it properly? Shaw...more >>


DevelopmentNow Blog