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# > may 2005 > threads for wednesday may 25

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

C# messaging
Posted by GTi at 5/25/2005 9:00:36 PM
Do anyone have a simple solution how I can send a simple message (int) from a C program to a C# program/service ? Preferred both ways C <-> C# (Windows messages - how ?) It must be extremely easy and in-memory (no disk media). Best regards, Newbie GTi ...more >>


dbreader
Posted by microsoft.news.com at 5/25/2005 8:41:35 PM
How can I this but using the dbReader instead of the streamreader and get all the items instead of the last one in my text file i'm populating? this works fine: StreamReader sr = new StreamReader("file.txt"); string lines = sr.ReadLine(); while((line = sr.ReadLine()) !=null) { //...more >>

sockets and http question
Posted by Michael Evanchik at 5/25/2005 7:37:18 PM
im having a small bug now where if i give a http header GET / with a connection: keep-alive i cant tell when the server is done sending. If i say connection: close i dont have a problem. Here is breifly my code. remember this works fine if i say Connection: close in the http header, if i ...more >>

How do I treat a byte[] as long[]
Posted by Dennis at 5/25/2005 7:31:02 PM
If I have a byte[] how would I port code from C++ to manipulate the byte array as if it were a long[]? For example: // C++ // assume the following // unsigned char* m_pPalette; // unsigned char* m_pData; // DWORD* pDest= (DWORD*)m_pData; DWORD* pSrc = (DWORD*)m_pPalette; int i; for (...more >>

reading Dataset xml file
Posted by microsoft.news.com at 5/25/2005 6:58:36 PM
i have a dataset and the first row of the dataset is empty. It looks like this <NewDataSet> <ImportData /> <ImportData> <State>Delaware</State> <City>Dover</City> </ImportData> <ImportData> <State>New York</State> <City>Fishkill</City> ...more >>

How to stop designer from assigning values to usercontrol properti
Posted by Jim at 5/25/2005 6:28:04 PM
I have some complex (fairly) user controls that I have created. Some of those user controls host other user controls. When I host one of these on a WinForm, I sometimes run into problems where the designer blows up with an "Object Reference Not Set to an Instance of an Object". Sometimes it...more >>

How shall I injects code into methods of an assembly by DotNetHook ?
Posted by zhonghua_1999 NO[at]SPAM 163.com at 5/25/2005 5:16:53 PM
Hi,all U can download dotNetHookLibrary in http://dotnethook.sourceforge.net . for instance, I have the fellowing code : //------------------------------------------------------------------------ using System; namespace hook { class Class1 { [STAThread] static void Main(string...more >>

Looking for NameOf() type of functionality.
Posted by ESPNSTI at 5/25/2005 5:07:08 PM
Hi, I'm looking some way to get the name of a specific property of an object. For example instead of having to specify the property name as a literal like this: MyObject obj = New MyObject(); DoSomethingWithAProperty(obj, "MyProperty"); I would like to be able to look up th...more >>



insert using sqlparameters
Posted by nbohana at 5/25/2005 3:51:02 PM
I am trying use the following code to update sql. The problem is it only works once, then I get a message that the '@Param1' can only be used once. I need to know how to reuse these things or reset them!! Can any one please help me, you see I am new to this type of code. try { sqlInser...more >>

Tabpage add/remove
Posted by Cynthia at 5/25/2005 3:31:02 PM
I knew that "Hide" doesn't work with Tabpage if I want to hide it. I should use Remove/Add. But I have some other controls in the tabpage which I don't want to use code to dynamiclly create them. If I use remove to remove that tabpage and later use add to add it back in, I have to write cod...more >>

Assignment Method
Posted by Christopher Weaver at 5/25/2005 2:35:37 PM
Seems like there ought to be a method that copies an object. If I do something like this: System.Data.Odbc.OdbcCommand cmd; cmd = new OdbcCommand(); cmd.Connection = odbc_Categories; cmd.CommandText = "SELECT * FROM \"tblCategory\" ORDER BY \"Category\""; odbcDA_CatSubCats.Select...more >>

ComboBox - Searching the List Box
Posted by Andy at 5/25/2005 12:24:02 PM
I am having trouble using the ComboBox in my app. I am attempting to use the text from the ComboBox, to search the list box portion. However: In my "TextChanged" event: I cannot get the value of the entered text. Below is my code. private void cbEdit_TextChanged(object sender, System.E...more >>

SQL string does not recognize querystrings in c#
Posted by .Net Sports at 5/25/2005 11:55:22 AM
I have an sql string in a C# script: "SELECT d.salesrep_id FROM tblDeal as d WHERE d.orderdate = '" & request.querystring("boarddate") & "';"; ....but I can't use request.querystring because it is vb.net . Is there a comparable statement in c# that works? thanks ..NetSports ...more >>

XML documentation comment question.
Posted by dlgproc at 5/25/2005 11:51:14 AM
How do you reference a class constructor in a <see> or <seealso> tag? using System; namespace MyNamespace { /// <summary> /// Does some stuff on some stuff. /// </summary> /// <remarks> /// See <see cref="!!!HELP!!! WHAT DO I PUT HERE?!?!?!"/> for an example. /// <...more >>

DA.Update calling Delete inappropriately
Posted by Christopher Weaver at 5/25/2005 11:16:49 AM
When I invoke DA.Update(DataSetName, TableName) it invokes the DeleteCommand even though no rows have been deleted. This happens when a row has been altered. Anyone have an explanation for this? How about a way to fix it? ...more >>

Writing to Registry
Posted by glenn at 5/25/2005 10:27:28 AM
I am trying to write to the registry and the objects that are suppose to be handling this function are not working. Here is what is happening. I am issuing the following commands: RegistryKey reg = Registry.CurrentUser.OpenSubKey("Software\\mykey\\mysubkey\\Settings", true); reg.SetVal...more >>

Why enums can convert to IntPtr?
Posted by Andrey Simanovsky at 5/25/2005 9:41:06 AM
Consider the following code snippet: using System; enum E { A, } struct T { public static explicit operator T(int i) { return new T(); } public static void Foo() { E e = 0; IntPtr ptr = (IntPtr)e; // case 1: compiles fine T t = (T)e; // case 2: gives ...more >>

generate html from dataset
Posted by helpful sql at 5/25/2005 9:11:47 AM
Hi all, How can I generate HTML from data stored in the dataset usingxml and xslt? Does anyone have any sample or pointers to any articles on this subject? Thanks in advance... ...more >>

Packaging and distributing my dll
Posted by Leo2005 at 5/25/2005 8:50:11 AM
Hi I have created a dll (xyz.dll) and an exe (abc.exe) that I would like to put up as an open source. I would also like to give a set of directories that contains sample programs that demonstrates the usage of the 'xyz.dll' and 'abc.exe'. How would I distribute/package it ? Where should the...more >>

decompiled .net or VB6?
Posted by Elhanan at 5/25/2005 8:34:27 AM
hi.. i'm about to create a small winform application, the code in it is rather sensitive, and since i read lots of stuff of how easy it is to decompile an assembly, and how a winform application is not suitable for commercial products, i'm thinking about doing it in vb6 (it does use tables in...more >>

ComponentOne Studio Enterprise 2005
Posted by yohaas at 5/25/2005 8:11:20 AM
Can anyone comment specifically on the ComponentOne Studio Enterprise 2005. I am in the need of a component libray for winforms and I am considering purchasing this one. Any comments about it would be greatly appreciated. Thanks, Yohaas ...more >>

Disposing Collections
Posted by gmccallum at 5/25/2005 7:03:03 AM
This whole dispose topic confuses me regarding managed and unmanaged resources. I think that it was easier when you just cleaned up every object, which brings me to my problem. I have some classes that have Hashtables collections defined as class variables. In the past, when I was done wi...more >>

WIN API & C#
Posted by MaxBici at 5/25/2005 6:15:40 AM
In c# , I use wmi to monitor print job but I need to get PrintJob 's number of copies and wmi don't expose it. So i think to use win API but I am a newbie of Pinvoke. This is function declaration: [DllImport("winspool.drv", EntryPoint="GetJob")] public static extern int GetJobA (int hPrint...more >>

ActiveX with C#
Posted by Raed Sawalha at 5/25/2005 1:50:06 AM
I created ActiveX as following: namespace BmpActiveXNET { public interface DesktopScreen { string getDesktopScreen(); } [ClassInterface(ClassInterfaceType.AutoDual)] public class BmpActiveX:DesktopScreen { public string getDesktopScreen() ...more >>

video stream
Posted by osama hamed via .NET 247 at 5/25/2005 1:48:18 AM
(Type your message here) how can i use tcpclient to write video stream on port -------------------------------- From: osama hamed how can i use tcpclient to write video stream on port ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>8ndo+XUCUU28LsiCFn...more >>

MS ESC: Bug in Windows
Posted by Sahil Malik [MVP] at 5/25/2005 12:16:25 AM
This is not a .NET or C# bug, but a Win32 bug. - but well, I don't know where else to report it. I have this thread running on my blog regarding a notorious "Path is too deep" error that occurs on Windows machines. This seems to be a catch-all hardware issue, and the knowledgebase articles ...more >>

File Transfer
Posted by lkr at 5/25/2005 12:00:02 AM
hi i got one file transfer program using serialization which has a limitation that i can send only 8192 bytes(8KB). i want to send more than that wht can i do. how can i divide the file into mutiple segment and send the file and receive it. here is the program below public static void Sen...more >>

Microsoft Enterprise Library
Posted by poifull at 5/25/2005 12:00:00 AM
Is anyone using the Microsoft Enterprise Library? If yes, do you like it or not? Any feedback will be appreciated. ...more >>

Using statements swallowing exceptions
Posted by John B at 5/25/2005 12:00:00 AM
ARGGGGGHH I have a database class instantiated with a Using statement, then a reader also instantiated with a using statement. If the command I use to populate the reader throws an exception, then that exception gets "swallowed" and never populates back up the callstack. I added a threadexcep...more >>

how to convert a int[] to string[]?
Posted by Allan Ebdrup at 5/25/2005 12:00:00 AM
How do I easily convert a int[] to a string[]? Kind Regards, Allan Ebdrup ...more >>

Miss out parameter
Posted by Gav at 5/25/2005 12:00:00 AM
I have a select statement with parameter ie SELECT * FROM USERS WHERE UserID = @UserID If I do not supply @UserID I get an error, how can I set it up so that if I don't supply @UserID it returns all of them? Help would be much appreciated Thanks Gav ...more >>

2 Questions on Reading Binary File; "Conversion buffer overflow"
Posted by poifull at 5/25/2005 12:00:00 AM
Hi All, What is the proper way to read a binary file into a byte[]? I am using BinaryReader to read from a Stream and call the ReadByte method of the BinaryReader object. The method I'm using leads to the second question. I got the "Conversion buffer overflow" error when I run the follow...more >>

Tab control problem...
Posted by Jeti [work] at 5/25/2005 12:00:00 AM
I have tab control with several tab pages. Each tab page contains a few textboxes filled dynamicly from the code. Everything goes fine, but every textbox that is located on a tab page that has hot been selected after the form has been activates has no text! Let me try to describe my problem furt...more >>

Help with Type.InvokeMember in C#
Posted by Laurent at 5/25/2005 12:00:00 AM
Hello, I'm having a problem trying to call a DLL assembly from a C# code with some special parameters. I have a global class used to store some parameters and work with them: public class GlobalClass { public int parameter1; public string paramete...more >>

MessageBox corruption
Posted by Mark Rae at 5/25/2005 12:00:00 AM
Hi, I'm experiencing a very strange problem with popping a MessageBox in a C# WinForms app, whereby the message text and the button text do not display. I'm using a Dell OptiPlex with on-board Intel graphics chip, and have downloaded and installed the latest drivers etc. Same with the lates...more >>

Close form in C#
Posted by Vivek Sharma at 5/25/2005 12:00:00 AM
How can I close a form in C#? Here is the code that I am using but closes everything? private void frmSplash_Click(object sender, EventArgs e) { this.Close(); Form frmLogin = new frmLogin(); frmLogin.Show(); frmLogin.Activate(); } ...more >>

how to activated a closed form?
Posted by ywchan at 5/25/2005 12:00:00 AM
when i press a button, a form.Show is triggered the form provides some reference information for me to input information in the parent form, so i don't want to use ShowDialog. besides, i want the form to opened once only how can i do this? i use form1 frmReference; if (frmReference == nul...more >>

open Form
Posted by msnews.microsoft.com at 5/25/2005 12:00:00 AM
Hi, How to open a form with onClick event in VS 2005? I tried this private void frmSplash_Click(object sender, EventArgs e) { Form frmLogin = new Form(); frmLogin.Show(); frmLogin.Activate(); } It opened me a blank form. Thanks ...more >>

How to Get VolumeSerial Of Harddisk?
Posted by Arif Çimen at 5/25/2005 12:00:00 AM
Hi everybody I need to get serial number of harddist drive (C:\). Here I tried some codes. //************** using System; using System.Runtime.InteropServices; namespace HanleyUretim { /// <summary> /// /// </summary> public class ManagerClass { public ManagerClass...more >>

Crystal reports save as dialog box
Posted by pnp at 5/25/2005 12:00:00 AM
How can I control the filetypes that a report, displayed in the crystal report viewer, can be saved as ? Thanks in advance, peter...more >>

ListView Sort columns?
Posted by perspolis at 5/25/2005 12:00:00 AM
hi all I used a listview with RightToLeft property enabled. I have 2 questions 1-how can I show icon in right side of listview not let side? 2-I want to sort listview by clicking on it's columns..,how can I? thx in advance. ...more >>

Hw reading
Posted by Gianmaria I. at 5/25/2005 12:00:00 AM
Hi, i'm using some functions to retrieve infos form an hardware device trought com ports. The device is a mobile phone and i retrieve SMS messages. Everything works fine, bbut when i execute the scan for retrieve messages my application freezes for some seconds.. how can i work around this pr...more >>

assembly:...
Posted by Frank at 5/25/2005 12:00:00 AM
Hello, could someone explain what that 'assembly' line does in the next MS example? (from help: waitall method). Thank you Frank using System; using System.IO; using System.Security.Permissions; using System.Threading; // Request permission to create and write files to C:\TestTest. [a...more >>

Win32_UserAccount
Posted by Hrvoje Voda at 5/25/2005 12:00:00 AM
Does anyone has an example of how to use Win32_UserAccount class ? I looked in MSDN but there is only a VB example Hrcko ...more >>

Ive broken my service
Posted by Claire at 5/25/2005 12:00:00 AM
I must have been tired but I removed my "service.cs" file from my service project by mistake and recompiled I replaced it again, but some solution "links" must have been broken and now my service doesn't work or install. I think that some properties have been unset from somewhere but I don't k...more >>

Help on Symmetric Cryptography algorithm
Posted by kiran at 5/25/2005 12:00:00 AM
Hi , I need some helpon Symmetric Crptography algorithm. My friend has given a encrypted message ( encrypted using Symmetric cryptogrraphy algorithm and he does 't mention on which plat form is used ) . I have to decrypt the the encrypted message. I tried to decryppt using Symmetric class pro...more >>


DevelopmentNow Blog