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# > january 2005 > threads for monday january 10

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

How to add MSComm Control in #develop, thanks
Posted by pcserver at 1/10/2005 11:24:44 PM
How to add MSComm Control in #develop MSComm COM/OCX control. ...more >>


capture the mouse
Posted by Dave at 1/10/2005 10:46:43 PM
Hi, How can i capture the mouse move event of my window form when i move it ebove other control? Thanks! ...more >>

Custom Installation
Posted by Uppi at 1/10/2005 10:21:03 PM
I have a setup Project which consists of 7 services. I have created it using Setup and Deployment Project. I have not used installer class. The Problem is that when I select service for custom installation service gets installed depending on the selection of user using checkbox. But when I un...more >>

Get the type an attribute is defined on.
Posted by Steve at 1/10/2005 10:08:15 PM
Is there a way to get the type information for the class an attribute is defined on at runtime? I tried getting the attribute type, and then checking the DeclaringType property but it was null. Example: [Cool] public class Test {} [AttributeUsage(AttributeTargets.Class)] public class ...more >>

Passing Pointers from manged to unmanged code
Posted by Germic at 1/10/2005 8:44:52 PM
Hi, I want to create an Hashtable in C# and pass an pointer to the hashtable to a C code. Later, the C code could reference the hashtable by passing the pointer to the hashtable as a ref parameter. what is the correct way to do this? Thanks, ...more >>

Directory Locks??
Posted by yk63fd01 at 1/10/2005 8:17:16 PM
hi, Is there a way to obtain a filesystem lock on an entire directory (exclusive access so that no files are added, changed or deleted while the lock is en force). Thanks. ...more >>

About print question !!
Posted by Paul Tsai at 1/10/2005 8:13:32 PM
Dear All, I have a .htm file, and my question is how should I code if I want to print this htm file to the printer !! Thanks !! Paul ...more >>

Reporting Services tutorial
Posted by Alberto at 1/10/2005 8:07:48 PM
Could you tell me where can I find a good tutorial for reporting services? Thank you ...more >>



Refresh form / form controls in backdrop?
Posted by Brian Basquille at 1/10/2005 8:07:17 PM
Hey there all, Fairly easy question for a C# expert, i assume! Am still working on my Photo Album. On frmBrowsePhotos, i have a listBox (photosList) containing photoID's from a table in an Access Database. I click 'Add Photo' on that form and after the OpenFileDialog (etc.), it asks me t...more >>

ACDSee like thumbnail database
Posted by CroDude at 1/10/2005 7:13:54 PM
Hi all! I'm working on a little app for browsing image files. Now I want to make a database support for thumbnails in a way to store a thumbnail image and image properties in a db. This way browsing will be faster since I'll be able to load a thumbnail image from database, and not wasting tim...more >>

Code for Menu File Exit
Posted by Chris at 1/10/2005 7:01:32 PM
Hi, A simple question .. In the design mode I added the standard File Menu, so, New, Open, Save etc. to my Window Form application. On File Exit, I added code like: private void FileExit_clicked(object sender, EventArgs e) { this.Close(); } but nothing happened. The form does ...more >>

Why when I open this form using ShowDialog() it becomes modal..
Posted by MrNobody at 1/10/2005 6:59:03 PM
I am using the no-arg ShowDialog() method hoping that the window would not be modal to any other window like the other ShowDialog(IWin32Window) method does, but when this opens it somehow becomes modal to my main window- even though I don't see how it could even be getting a reference to my ma...more >>

Internet connection availability notification
Posted by yk63fd01 at 1/10/2005 5:58:49 PM
Hello, Is there a way to receive a notification when an internet connection becomes available and when it becomes unavailable? Thanks. ...more >>

how to expand a treeview
Posted by ALI-R at 1/10/2005 5:00:16 PM
I want to expand a tree view in a way that only shows the first chiled,I don't want it to go deeper than one level?? Is here somebody who can help me? Thanks for your time. ...more >>

Marshal struct with embeded array of struct
Posted by Daniel Brown at 1/10/2005 4:57:03 PM
I am coding a managed C# wrapper for an unmanaged C DLL and I am unable to marshal a structure that contains an array of structures. When executed, the following code throws an ArgumentException with a description “Type ErrorInjectionBuffer can not be marshaled as an unmanaged structure; no...more >>

Variable scope problem?
Posted by Tom at 1/10/2005 4:47:52 PM
Hi I have the following code and why can't i change the value of myvar in the DataGrid1_editcommand event so that the (changed) value of myvar is there in the Update event?? (it fires i debugged it!): namespace MYproject { using System; using System.Data; using System.Drawing; ...more >>

"\n" in textbox shows up as a square
Posted by ALI-R at 1/10/2005 4:38:54 PM
Hi All, Why when I use "\n" in a textbox ,a square is shown (however the new line is applied)? Thanks for your help. Ray ...more >>

Use RegularExpressions with TexBox
Posted by Gonçalo Boléo at 1/10/2005 4:15:36 PM
Can i validate a TextBox with a regular expression without using RegularExpressionValidator? Can i use a function to do this? I wan't to throw an error different from the way RegularExpressionValidator does. thanks, Gonçalo Boléo ...more >>

DataAdapter/DataSet in non-form application??
Posted by Adam Clauss at 1/10/2005 3:09:46 PM
This may be more of a Visual Studio question than a C# question, but it came up within the context of a C# app, so here it is. In a Windows Form or a Web Form application, you can drag various DataAdapters and create DataSets bound to them so everything is strongly typed - a very nice featu...more >>

Connect/disconnect from the Internet
Posted by maxvizel NO[at]SPAM bezeqint-dot-net.no-spam.invalid at 1/10/2005 2:54:46 PM
Hello, Can someone please tell me how I can connect to the Internet and/or disconnect from it using C#.NET ? I just want to open this window in order to connect: http://www.neowin.net/forum/uploads/post-62656-1105376475.png and to know how to disconnect. Thanks in advance :) *---------...more >>

System.Data.OracleClient
Posted by JJ at 1/10/2005 2:47:05 PM
Hi, I don't know if this is the correct newsgroup to post this question, but here goes. I have installed Visual Studio .Net Professional 2003. I checked the version and it is 7.1.3088. It says in the books that I have read, that this version already has namespace for oracle db connecti...more >>

[Conditional] question
Posted by Marc Jennings at 1/10/2005 2:40:26 PM
Hi there, I am trying to get some conditional functionality into some of my apps. I can use the format : [Conditional("DEBUG")] private void doStuff() { //do something } as expected, but I would like to makr it a little more useful in a multi-machine environment. I want to ma...more >>

oledbadapter Question !
Posted by msnews.microsoft.com at 1/10/2005 2:40:11 PM
Hi All, I need some help in adding the OledbDataAdapter Insert Command Parameter. I have two datasets. 1. SourceDataset 2. DestinationDataset I need to copy rows from the Source into the Destination Table. I am using the Insert Command. The confusing part is setting up the Source ...more >>

DataGrid Woes
Posted by John Smith at 1/10/2005 2:03:16 PM
Hello all: What is the best way to get a reference to an item selected in a data grid? What I am trying to do is have it so a user can select from a list in a data grid of all our employees and then click a button to update that employees details. What is the best way to accomplish this ...more >>

TcpClient Notification of sent data
Posted by Adie at 1/10/2005 1:39:47 PM
I'm using TcpClient in blocking mode with NetworkStreams and would like to be able to give notification that data was sent - I presume this must be possible? But anyone know how?...more >>

datetime.now
Posted by mp at 1/10/2005 12:52:53 PM
I am using : SystemDate= System.DateTime.Now.Year.ToString() +System.DateTime.Now.Month.ToString()+System.DateTime.Now.Day.ToString(); strbRetVal.AppendFormat("{0}{1}",SystemDate,m_chFieldDelimiter); but this gives me : 200517 I want the date to look like: 20050107 How can I do t...more >>

Multi-threaded safe singleton class question
Posted by John Lee at 1/10/2005 12:17:10 PM
Hi, I like the C# implemention of singleton class presented at MSDN. My question is that is it correct or right thing to do to modify that class to make the class will return the same instance if for the same parameter when calling GetInstance? public static Singleton GetInstance(string ...more >>

Java's StringTokenizer is *what* in .NET?
Posted by Carlitos at 1/10/2005 12:11:03 PM
Hi there, What would be the counterpart for Java's StringTokenizer class in .NET? In fact, does anybody know a good web site that gives this kind of information, like a Java-.NET/.NET-Java dictionary or equivalency table? Many thanks, -- Carlitos...more >>

How to run windows executable file in the webForm
Posted by Jiang Zhao at 1/10/2005 12:01:18 PM
Would you please tell me that some C# WebForm application (VS.NET 2002) can run/call windows executable file such as notepad.exe (use Process.Start)? if so how to do it. Jiang ...more >>

IStateManager Question
Posted by Chris Fink at 1/10/2005 11:47:08 AM
I have a question pertaining to the implementation of an interface's contract, specifically why in some interfaces the InterfaceName.method is required when other times just the Interfaces method name will work. For example, When using ICollection.CopyTo Method I can implement the CopyTo ...more >>

DataGrid copy-paste column headings?
Posted by PeterZ at 1/10/2005 11:37:42 AM
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is there any way of including column headings when copying/pasting from a running datagrid to notepa...more >>

How to kill a thread in c#?
Posted by bie2 at 1/10/2005 11:28:05 AM
Hi, Here's what I want to do: 1. Start the application. 2. A SplashScreen running in its own thread is started. 3. I'm checking if the application needs an update. 4. If an update is needed I close the SplashScreen and copy the file. 5. Restart the application. My problem is happening a...more >>

asp.net tabs
Posted by Frank at 1/10/2005 11:14:49 AM
Hello, in the browser it's possible to ask for the source code (right mouse button and menu source code). That source is generated by asp.net. It contains a lot of whitespace. Is it possible to switch off that whitespace with some setting in VisStudio(C#)? Thanks Frank ...more >>

Crystal Reports
Posted by Christopher at 1/10/2005 11:09:04 AM
Hi All I would like to pass the following sqlStatemet to Crystal Reports, as the statemet to retrieve records : SELECT Emp_Name,Emp_Surname,Emp_Number FROM Employees WHERE Emp_ID = @Emp_ID The Emp_ID is chosen from a combo box on the form that has my crystal viewer control on it. ...more >>

Crystal Reports
Posted by Christopher at 1/10/2005 11:01:04 AM
I know that there is no Crystal Newsgroup, but could someone please show me how to populate my crystal report from within my C# Application, by passing an SQL Statement with parameters as a report source, if this is possible Thanks Christopher ...more >>

Why manipulating 1 object affects the other?
Posted by Ryu at 1/10/2005 10:45:32 AM
I created 2 objects from a custom collection class. IntCollection a = new IntCollection(); IntCollection b = new IntCollection(); a.FromInt32Array(someIntArray); b = a; However when ever I attempt to remove items from the object a, somehow b will be affected. Is there a reason why this is...more >>

List of User/Computer
Posted by Mel Weaver at 1/10/2005 10:18:27 AM
Hi, I'm trying to get a list of Users or Computers currently logged into a domain? Thanks Mel ...more >>

Checking end of file on binary file
Posted by Chris at 1/10/2005 10:10:47 AM
Hi, What is the most easy way to check on EOF while reading a binary file with all integers ? In lot of examples the read data are first stored in a string, and afterwards the string is checked on *null* value, but that does not work for binary files. Like this ... string buf; while ( ...more >>

ProcessCmdKey vs ProcessDialogKey
Posted by Paul at 1/10/2005 8:15:08 AM
Hi, I am still confused the different between ProcessCmdKey and ProcessDialogKey. When to use it? I write a simple user control and these 2 override functions looks the same to me. protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { const int WM_KEYDOWN = 0x100; c...more >>

create an event handler for control array in C#
Posted by frankcvc at 1/10/2005 6:19:02 AM
I created a control array at runtime using the following code. I also wanted to code the controlarray click event. My code can respond to click event but cannot identify the specific control clicked on, which is important to my application. Appreciate your help. Frank ---------------...more >>

Multi-Selecting Files in ASP.NET
Posted by Chris Jones at 1/10/2005 6:13:05 AM
Does anyone know of a C#/ASP.NET Open File dialog that I can use in an aspx page that allows multiselect? I need to be able to select and upload numerous files. Is there a reason why MS has made this so difficult? I am willing to pay for such a control. ...more >>

Memory question when returning an object from inside another object
Posted by Steven Blair at 1/10/2005 4:18:52 AM
Hi, Quick overview of the problem: public bool Something( out DataSet ds ) { bool ret=false; try { xmlDocument myXmlDoc = new xmlDocument( myFile.xml ); ds = myXmlDoc.DataSet; ret=true; } catch( Exception e ) { //Do something } ...more >>

scroll bar
Posted by jima80 NO[at]SPAM gmail.com at 1/10/2005 3:47:18 AM
Hello, Is it possible to adjust the scroll bar to move until there is data on the form? Thanks!...more >>

How to use the Graphics class in web forms?
Posted by Renato Vieira at 1/10/2005 3:45:02 AM
In order to do some UI animation or drawings can I use a Graphics object in a WEB Forms project (in VisualStudio.NET) -- Renato /*Portugal*/ Vieira...more >>

Problem with properties
Posted by DAMAR at 1/10/2005 2:29:01 AM
Hello got such proble (easy I think:( ) i declare variable: private int[] var1 = new int[10]; how to write property for this variable? ...more >>

Fully qualified names
Posted by fc2 at 1/10/2005 1:36:33 AM
Hi I have a problem with fully qualified names. According to the C# language specification: "Every namespace and type has a fully qualified name, which uniquely identifies the namespace or type amongst all others." However, I have problems compiling the following: namespace Foo.System....more >>


DevelopmentNow Blog