Groups | Blog | Home


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 friday march 4

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

object lifetime question
Posted by erdem at 3/4/2005 11:41:01 PM
hi again, here is my problem again: i have a typed dataset dsA; an adapter adapterA; here is structure mydataset dsA; odbcdataadapter adapterA; ..... ..... private form_Load(object sender, System.EventArgs e) { Thread thr; thr = new Thread(new ThreadStart(PreLoader)); thr....more >>


How to use Stackframe and stacktrace in Windows Service
Posted by Avinash at 3/4/2005 11:11:02 PM
Hi, I am facing problem with the use of the stackframe and stacktrace for the exception hadling with Windows service. Can any one please tell me how to use of the above objects (stackframe and stacktrace ) in Window service. Thanks and regards, Avinash....more >>

How to process a CheckboxList multiple selection.
Posted by Jensen bredal at 3/4/2005 10:12:52 PM
Hello, Can someone guide me in how i may process a multiple selection on a databound checkboxlist? The checkboxlist is bound to a table of product category. The product category id is an FK in the product list. When multiple selction are made on the checkBoxList, how may i best process ...more >>

interaction with Shell
Posted by Coder at 3/4/2005 10:00:08 PM
hi, in C# how can execute an external program. Exp: is there something like Execute("notepad.exe") if there is, which namespace(s) required. 10x.... ...more >>

fixed
Posted by Dave at 3/4/2005 9:39:02 PM
I have the following code in one of my programs; ert= CO3; int Code = SR(ert, 1024, 1024); char[] UnsafeTempBuffer = new char[128]; fixed ( char* tBuffer= UnsafeTempBuffer) { Code = Siofunc(tBuffer, 128); } When I try to compile I receive...more >>

Dialog access to callers controls
Posted by Lucas Graf at 3/4/2005 8:21:36 PM
I feel like a bonehead because this seems so easy. I have 2 forms in the same namespace, Form1 and Form2. Form1 is a MDI Container. Form1 has a status bar : statusbar1 Form1 has a basic menu : File -> Show Dialog Form2 is a form with a checkbox on it. Form2 is shown via ... WindowsApp...more >>

Fields unicode
Posted by Alberto at 3/4/2005 8:10:59 PM
How can I work with fields in Unicode? Thank you ...more >>

Getting file size on http resource
Posted by Mark at 3/4/2005 7:38:08 PM
How can I get size of file on http resource? For example I want to get the total size of the file which is located on http://mysite.com/myfile.zip. ...more >>



Translating JavaScript function with Regex to CSharp
Posted by Jon Maz at 3/4/2005 6:34:22 PM
Hi All, Am getting frustrated trying to port the following (pretty simple) function to CSharp. The problem is that I'm lousy at Regular Expressions.... //from http://support.microsoft.com/default.aspx?scid=kb;EN-US;246800 function fxnParseIt() { var sInputString = 'asp an...more >>

Listen TCp Port
Posted by sherif.elian NO[at]SPAM gmail.com at 3/4/2005 6:19:25 PM
hi all i want to listen to a port to get the data passong throught it for example to listen to port 80 to see all data the computer is receiveing throught the http how can i do that in dotnet. thanx ...more >>

How can I send dummy email????
Posted by Mark Miller at 3/4/2005 6:02:03 PM
Hi, I am writing a program that will send emails to our customer. During test I don't want to send real emails. Is there a way to send it to an SMTP server so that it does not actually forward them to the actual recipients....more >>

Capability of C#
Posted by Yuelin at 3/4/2005 5:07:13 PM
Hi I need to do some programming on geographical maps, e.g. highlight a certain section of a road, moving an object along the road, etc. Is C# capable of doing these with GDI+? Thanks Yuelin ...more >>

ListView with file extension icons
Posted by VĂ­ctor at 3/4/2005 4:59:52 PM
I'm doing a kind of file explorer with some additional funcionalities. The problem is that I'm not able to draw file extension icons in a ListView. I know how obtain icons, but when I try to draw file icon, this isn't showed. I tried to do by two ways: 1- By creating the ListViewItem and add...more >>

Deal with Flash
Posted by ByB at 3/4/2005 4:27:32 PM
Hello, I'm looking for a control allowing me to use a Flash file (.SWF) in C# For example, to let me know what is the duration of the Flash, its size or whatever available properties. Do you know of any control (from Microsoft or others) of this kind ? Any link ? Thank you. -- Cec...more >>

Redirecting to another db.
Posted by MA at 3/4/2005 3:31:27 PM
Hi all! I´m building an asp.net application and want to use a login for this. I was thinking about using a separate database for user identification and then redirect to a different database, depending on the user information. Lets say that user1 shoul be redirected to company1 database a...more >>

No keydown event fires in a datagrid
Posted by bardo at 3/4/2005 2:49:04 PM
I have a Datagrid that is inside a panel. I want to use the keyDown event to reconize the arrow keys. But I have no luck at all. The problem is that the keydown event won't fire at all, unless I click on a row (withs will turn blue then) and then click on it again . Now if I press any key the ...more >>

How to make the Close button lying at the right-top corner of form get the focus?
Posted by John at 3/4/2005 2:27:39 PM
?? ...more >>

Javascript on servecontrol
Posted by rehiaa at 3/4/2005 2:13:20 PM
How do I run a javascript on a servercontrol (button). (It has to be a servercontrol, because I am using CultureInfo on the button) regards Rehiaa ...more >>

Determining character code page/encoding programmaticlly
Posted by LP at 3/4/2005 1:49:40 PM
I need to figure encoding or code page of a file programmatically. Also I was asked to figure out what was the original encoding of different records stored as Unicode in SQL Server table. So, these records can be outputted to different files with original encodings. Can it be done? By the ...more >>

Question about methods
Posted by Keith Smith at 3/4/2005 1:31:38 PM
Current I have a method I use like this... public static void WriteToComp(string x) { } It is located in the code for Form1. Whenever I want to use this code from any other form I have to do this... Form1.WriteToDatabase("data"); Is there a better way I should be doing this? It...more >>

where can i download visual 2005 professional beta?
Posted by yin heng at 3/4/2005 1:25:03 PM
I downloaded the beta Express 2005 edition. could some one tell me where can i download the professional editon? thank you....more >>

Open Excel and put in values from C#
Posted by JM at 3/4/2005 1:07:01 PM
Hi I have been trying to open Excel 2003 but I am having rotten luck. Just can't see to get it working. I looked at this article... http://www.codeproject.com/csharp/csharp_excel.asp?print=true Anyone have any ideas?...more >>

Pointer to structure
Posted by Andreas Kristiansson via DotNetMonster.com at 3/4/2005 12:32:31 PM
Hi. I have a problem with sending a struct from managed C# into an unmanaged C code. I'm getting nullreference exception. Tried below solution with ref also. struct in c looks like this: typedef struct { int width; int height; int x_adv; int y_adv; int bpl; } iT...more >>

conflict between .net framework 1.1 and 2.0
Posted by Tolga Tanriverdi at 3/4/2005 12:27:09 PM
I wrote my program with visual c#2005 so it s written with .net framework 2.0 but after that i take my code and compiled with visual studio .net 2003 it was working good until today. Today i deleted the .net framework 2.0 and i took this error when my program executed [b] An unhandled exc...more >>

enum 'expansion' / 'extention'
Posted by Andrew Robinson at 3/4/2005 12:12:42 PM
Not sure what to call this, but I have a series of User Controls that display the days of the week. Usually using a set of radio buttons. Works very well. I display the user controls in a form and typically allow the user to select only a single day within a single week. There are at times, up...more >>

Interface Question
Posted by Razzerroo at 3/4/2005 11:52:32 AM
Hello all I'm currently converting me and our code from VB.NET to C# for the company I work for. I have an VB.NET interface that has an excerpt like this: Public Interface ISensorCameraSettings .. .. .. Property Exposure(ByVal ChannelName As String) As Single Property Gain(ByVal Cha...more >>

Question about FileSystemWatcher behavior
Posted by Hardy Wang at 3/4/2005 11:43:54 AM
Hi, I have a FileSystemWatcher object to monitor one certain folder on server. FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C:\MyFolder"; watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.Size; watcher.Filter = "*.txt"; w...more >>

MemoryStream and BinaryWriter buffering question
Posted by keithv at 3/4/2005 11:20:09 AM
Hi, The msdn doc for MemoryStream has two conflicting statements about accessing a MemoryStream's buffer after it's been closed: The buffer is still available on a MemoryStream once the stream has been closed. But later it says: Attempting to manipulate a stream after it has been...more >>

setup wizard example
Posted by DaveF at 3/4/2005 11:19:04 AM
I am writing a desktop application and I nedd the user to go threw a wizard to set up the program. Are there and examples out there? -- Helixpoint LLC. http://www.helixpoint.com ...more >>

Something similar like a DataTable?
Posted by Tinus at 3/4/2005 10:42:45 AM
Hello all, I was wondering... Is there a way to create a Array so that I can call a value with a name i.s.o. a index number? Something similar like a DataTable. This is what I want: Declare a array of some sorts, private string[,] test; .... I don't want to get the value by saying: test[0...more >>

Overloading and method signatures.
Posted by Marcos Stefanakopolus at 3/4/2005 10:40:58 AM
So this is ok: class foo { int myMethod(string, int) { ... } int myMethod(string, double) { ... } } But this is not: class foo { int myMethod(string) { ... } double myMethod(string) { ... } } The compiler complains "Class 'foo' already defines a member called 'myMetho...more >>

Print Preview Crystal Report
Posted by Marty at 3/4/2005 10:30:52 AM
How do you print preview a crystal report in C#.NET? Thanks. ...more >>

Access files on Network Drive from ASP.NET Client
Posted by Mike McIntyre [MVP] at 3/4/2005 10:03:59 AM
I am working on an issue where and ASP.NET web application on one computer (A) needs to access files on a network mapped drive (B). This application uses as DSN on (A) that maps a proprietory ODBC driver to data on a (B). The DSN directory path points to mapped network drive mounted on (A)...more >>

Creating TabPage and dynamicaly adding to TabControl
Posted by RA at 3/4/2005 9:39:19 AM
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to it the TabPage created in step 1. I don't want to draw the TabPage on the Tabcontrol in design mode,...more >>

Property
Posted by Mark at 3/4/2005 9:25:51 AM
I code in C# ... could someone explain what Type is being returned by the VB.NET property below? I'm confused because the _session object is of type Hashtable, and the Session is of type System.Web.SessionState.HttpSessionState. The both appear to implement ICollection, but don't you have to...more >>

Is this poor C# programming?
Posted by JM at 3/4/2005 9:13:09 AM
Hi I have a Windows Form that I have 3 textboxes and some buttons. Below is the code that I have implemented it reads a pile of files from a folder and then reads each of the files. If the McAfee Dat file version is old (older than 15 revisions) then it will output the machine name, Scan...more >>

missing shortcut key....
Posted by exitstageleft at 3/4/2005 7:53:11 AM
Hi. I am missing the ability to use 'CTRL-SHIFT-F' shortcut key to search files in visual studio. It shows no shortcut key combination on the file menu for Edit->Find & Replace->Find in Files. It's just blank. How do I assign '...Find in Files' with that shortcut key combination?? Others...more >>

c # interfaces limitations ???
Posted by rajkumar NO[at]SPAM hotmail.com at 3/4/2005 7:25:42 AM
Hey all Here is my question Consider two classes Class A : SomeSystemClassA Class B : SomeSystemClassB Now I have to add a common interface to both class A and class B. The way A and B are derived I cannot add a common abstract base class for them. So I do Class A : SomeSyst...more >>

Problem with out parameters
Posted by morpheus0180 NO[at]SPAM hotmail.com at 3/4/2005 6:49:03 AM
Hi, I want to make a class that acts like an "object factory", that creates objects all inherited from a root class called MyBaseObject. To create objects I want to use a method in which I pass in the first parameter the object type I want to create, and in the second parameter (an output pa...more >>

Does declaration of a class as 'public' mean anything?
Posted by u-vcpp NO[at]SPAM com.net at 3/4/2005 6:41:22 AM
I have been playing around with C#, and rading some books: "Understanding ..NET" by David Chappell, and "Fast Track C#", by Wrox. The Chapell book does not mention any code that has a class being declared as public, and with no problems having that class be accessed. The Wrox book says that ...more >>

lease can you tell me, how exactly I can derive my custom class from XmlElement
Posted by zoltix at 3/4/2005 6:38:10 AM
Hi, Please can you tell me, how exactly I can derive my custom class from XmlElement for addind some methods. I get the error: XmlElement is inaccessible due to its protection level. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...g...more >>

Converting HTML files
Posted by bernardpace NO[at]SPAM yahoo.com at 3/4/2005 6:03:53 AM
Hi, I would like to convert HTML documents in an appropriate text document. Is this possible to do in an easy way. Thanks...more >>

socket programming
Posted by kavitha.nallamothu NO[at]SPAM catalytic-dot-com.no-spam.invalid at 3/4/2005 5:47:54 AM
Hi I am trying server request/response program using socket class. here i couldn't send headers with the request to the proxy server.when i send the request i should able to get the response from the server. if u have any idea please help me out. Regards request. -----------------------------...more >>

Object Lifetime
Posted by Richard Steele at 3/4/2005 4:31:05 AM
I have a static object that gets referenced at application startup. This object stores a dataset and various strings to be used whenever required. This object may be called at anytime to provide the data and strings, but can be waiting for any length of time period i.e 24hours (this is not a...more >>

Uninstall won't delete Program Files
Posted by Keith Smith at 3/4/2005 4:25:15 AM
I have noticed that when I uninstall my app it doesn't delete the Program Files / MyApp folder if there are "new" files in it that weren't there before. It deletes all files except the "new" ones. Is there a way to make an uninstall so that it just completely wipes out my Program Files / MyA...more >>

Closing Excel Object
Posted by lasmit42 NO[at]SPAM gmail.com at 3/4/2005 3:58:44 AM
Guys I am writing a program which reads the first cell of many Excel spreadsheets and then takes some actions. The problem that I am experiencing is that each Excel instance I create persists in memory, meaning that after a while the machine freezes. Any help would be greatfuly recieved. ...more >>

How to resolve alias to Namespace or type in C#
Posted by Joe Bloggs at 3/4/2005 3:38:25 AM
Hi, I would like to programatically resolve aliases to the actual type, eg. int to System.Int32. Essentially, I would like to do this: Type t = Type.GetType(ResolveAlias("int")); if (t == typeof(System.Int32)) : else if (t == typeof(System.Int64) : else if (t == typeof(System...more >>

CollectionBase problem
Posted by Josema at 3/4/2005 2:55:07 AM
Hi, i have a windows application. This application uses a object that its of type collectionbase. For other hand i have a ListBox, and i use this collection to fill it. I have implemented the methods (in my class that derives from collection base): //to get an element from collecti...more >>

Advantage over VB ?
Posted by Arsalan at 3/4/2005 1:32:35 AM
Is there any advantage in C# over VB.NET ? Or the difference is only syntax ? Can anything done in C# which cannot be done in VB.NET? ...more >>

UnmanagedType.LPStruct & INTERNET_BUFFERS
Posted by maxixi at 3/4/2005 1:06:42 AM
Hi, It is my first time to use C#, and i struggle with my code with wininet api. Declare API: public abstract class WinInet { StructLayout(LayoutKind.Sequential)] public struct INTERNET_BUFFERS { public UInt32 dwStructSize; public IntPtr Next; public String lpcszHeader;...more >>

How can I get the names of Computers in my workgroup?
Posted by Keith Smith at 3/4/2005 1:01:40 AM
My software will be installed on peer-to-peer networks and sometimes 2000/2003 domain networks. How can I get a list of the computers on the network? My goal is to search each of these computers for a particular shared folder. Thanks. ...more >>

Guid.Empty
Posted by Rene at 3/4/2005 12:20:00 AM
I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to represent a special meaning. The problem is that I don't know if there is a chance that a command like "Guid.NewGuid()"would generate a Guid.Empty value could this be possible or is the "00000000-0000-0000-0000-000000...more >>

Temp Files
Posted by Harsh Vardhan Singh at 3/4/2005 12:00:47 AM
hi, i am trying to create a temporary file associated with a particular process. For instance, i have a windows application which will create a temp file as soon as it this program is executed. Now i want this temp file to be destroyed if this application is closed / crashes. Is this possib...more >>


DevelopmentNow Blog