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# > september 2004 > threads for monday september 13

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

winform: minimise window to systray ?
Posted by Tom at 9/13/2004 11:54:04 PM
Hi friends I was wondering how can I minimise a winform into the system tray ? Thanks Tom ...more >>


"Form1" name unwanted
Posted by Tim923 at 9/13/2004 11:46:55 PM
I rename "Form1.cs" on the right to the desired name, and also go into properties of the form and name it in the (name) section. After building, Form1.cs appears in the code and gives an error. I was told not to double-click anything, but it still happened. How to fix?...more >>

Custom ComboBox
Posted by Mohammad-Reza at 9/13/2004 10:23:34 PM
Hi I want to design a combo box. I open a new UserControl project and inherits from System.Windows.Forms.ComboBox and try to override OnPaint event and set the DrawMode to OwnerDrawFixed. But when I compile the project the interface did not change. How can I override the OnPaint of this compon...more >>

Random Numbers? What to use?
Posted by Glenn Wilson at 9/13/2004 9:31:04 PM
What would be the best way to generate random numbers for games. At the moment I use the following to seed the generator. Can anyone think of another way Random mRand = new Random(unchecked((int)DateTime.Now.Ticks)); ...more >>

C# Applets and Dependencies
Posted by Jonathan Seidner at 9/13/2004 9:18:47 PM
Hi, Another Question. If my .net Applet uses other assemblies such as a custom component (a sophisticated grid component for example) the html refuses to show the applet embedded in the page which is obivous from a certain standpoint (the assemblies on which my componenet are depended are no...more >>

MSMQ 3.0 and multiple listeners?
Posted by Ole Hanson at 9/13/2004 9:13:57 PM
Hi forum, I am planning on a solution where I have a potential high volume of messages flowing into my MSMQ 3.0. To extract these messages and process them, I am thinking about putting up 3 different but identical services (Windows Services, C#), that should extract the messages and proce...more >>

Winform>GUI>hide the frame in winform ?
Posted by Tom at 9/13/2004 8:17:34 PM
How do I hide the frame around the main form ? and How do I hide the windows bar at the top (where the minimise and maximise is) ? thanks guys Tom ...more >>

Converting to C# - Syntax
Posted by Jared at 9/13/2004 7:56:05 PM
Hello all, I want to start expanding my skill to C#, and would like some suggestions/links/resources in the syntax variants between VB and C#. I do realize MSDN has documentation in all languages, and that will be my main resource. What I am really looking for some suggestions on the eas...more >>



HowTo: Wrap the String.Format method?
Posted by Matthias S. at 9/13/2004 7:28:04 PM
Hi, I'm writing a logging utility and I need to wrap the string.Format method. I'd like to call the Trace method of MyLog like this: MyLog.Trace("Var1:{0};Var2:{1};", MyVar1, MyVar2); The Trace method should then use the string.Format function to produce a properly looking string. I tho...more >>

What is the equivalent of Delphi's "reintroduce"?
Posted by Chazza at 9/13/2004 6:57:38 PM
I would like to override a method from an inherited class, but the new method has a different signature to the inherited class. Example: class A { private void Init() { // code } } class B : A { private void Init(string text) { base.Init(); // do so...more >>

BT under .NET
Posted by Compic at 9/13/2004 6:32:49 PM
Hi! Is there any way how to work with Bluetooth under .NET? Thanks in advance. ...more >>

parseing an xml string
Posted by Keith Henderson at 9/13/2004 5:20:43 PM
I have an xml document loaded into a string that I need to parse. below is the first few elements in the xml string. <?xml version="1.0" standalone="yes"?> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> ...more >>

XML Document - find one row
Posted by Mark at 9/13/2004 5:14:59 PM
I have a single XML file containing forty records, with no child nodes. For example, imagine a list of people's names, and birthdates with SSN. I'd like to find the row of a person with SSN of 123456789. What's the quickest way to: 1. Load the file from disk. 2. Find the "record" I want. ...more >>

opening child form from another child form?
Posted by VMI at 9/13/2004 4:53:52 PM
In my MDI Widows app, how can I open a child Form X from within another child Form Y so that X is still inside the parent MDI Form? I'm using this code to open the Form from X (a child Form) but it opens as a separate Form outside the MDI: frm_auditFromOpen frmAuditFromOpen = new frm_auditFrom...more >>

What are the relationship between COM , ActiveX, DLL ?
Posted by Ricky at 9/13/2004 4:16:45 PM
Hi Can anyone explain what are the relationship between COM , ActiveX, DLL ? I really get confused about the terms... Ricky...more >>

.FindString implementation
Posted by Marcin Floryan at 9/13/2004 4:09:09 PM
Hello! I have recently come across two very nice methods in ListBox control: ..FindString and .FindStringExact it is very usefull for me, and I would like to use it in some other situations. Where could I find an implementation of thiese methods or other similar solutions. I would like to ...more >>

How can i send the fax through ASP.Net application
Posted by Karunakararao at 9/13/2004 3:12:59 PM
Hi all How can i send the fax through Web application Thank U Karanakara rao ...more >>

Difference in && and &=
Posted by Joel at 9/13/2004 2:48:08 PM
Run this method: public void test() { bool b; int i=0; b=false; i=0; b=(b && i++==1); Console.WriteLine(i.ToString()); b=false; i=0; b&=i++==1; Console.WriteLine(i.ToString()); } Notice how in the first syntax, i++ is NOT evaluated (because ...more >>

Need C# function for javascript function Browser.History.Back
Posted by Lubo¹ ©lapák at 9/13/2004 2:30:17 PM
Hi, I need (in one function in aspx page) return the WWW browser back to previous page. How can I do it? Thanks ...more >>

Dispaly Properties
Posted by Thom Little at 9/13/2004 2:14:56 PM
I need to invoke the System Display Properties dialog opened to the Screen Saver tab. Is there a convenient way to do this? What was the source of your information? -- -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd. -- ...more >>

Showing help (please, urgent)
Posted by Diego F. at 9/13/2004 1:58:38 PM
I'm trying to show my application help. I installed VSHIK 2003 to create a simple help file. Now I need to integrate it into my application. I have two problems: - I don't know how to register the help file. I created a setup project and included the HxS file, but it doesn't open. - I tried...more >>

can an object find its parent?
Posted by ilPostino at 9/13/2004 1:58:02 PM
Hi, This is a strange question. Firstly, I'm working with custom classes, nothing available in .net and I _don't_ want to add a parent property. Here is the problem. Lets say I have two classes. public class1 { public class2 Class2Instance = new class2(); } public class2 { ...more >>

Draw a line
Posted by Mathieu Chavoutier at 9/13/2004 1:55:04 PM
Hi. I would like to do something like paint. I try to draw a line. I want, like paint, that when I clickdown, it begins to draw the line, and then, when I move the mouse, the line follow the cursor. I have tried many things, and I have mysterious things appening. Here, I can't remove the l...more >>

File I/O (Advanced Question)
Posted by Vai2000 at 9/13/2004 1:53:35 PM
Hi All, I have really large files (>300MB) to process in my application. I wanted to build a mini index of the records within it before I proceed with chopping/processing it. I was wondering is there something similar to grep command of UNIX in Windows so that I can grep all the lines (with some ...more >>

Installing Services Using VS.Net Base Setup Project
Posted by Alireza Haghshenass at 9/13/2004 1:52:39 PM
Dear All, I just wanted to know, how can I register a service using Visual studio setup project. I can create a Setup Project successfully, it installs all the program, but I need a hint on how to run "InstallUtil.exe <ApplicationDirectory>\ApplicationName.exe" in order to install and register ...more >>

how to get type used in Image
Posted by pyda001 NO[at]SPAM ec.auckland.ac.nz at 9/13/2004 1:48:56 PM
Say I have declared an Image as: Image img = Image.FromFile(@"C:\file.jpg"); Now, how can I retrieve the original format (jpg) from img? img.GetType().Name always returns "Bitmap". - Peder -...more >>

SharpZipLib Help--Don't want to distribute the .dll is there a nother way?
Posted by Yogi_Bear_79 at 9/13/2004 1:45:41 PM
I recently some embedded GZIP files into my project. I added the sharpziplib.dllas a referance. But when I distribute the .exe it looks for the .dll. Did I do something wrong, or miss step? I don't want to have to distribute the .dll, I was hoping to continue this as a stand alone .exe ...more >>

XP Image List Problem
Posted by Alireza Haghshenass at 9/13/2004 1:42:52 PM
Dear All, I am writing an application which uses image list for listview and tree view usage. I encountered a problem in windows 2003 this is working fine and I don't have any problems. In Windows XP the images of this image list is not shown in ListViews and Tree Views. I don't know what is t...more >>

Version Problem with Excel
Posted by Altruist at 9/13/2004 1:13:46 PM
Hi, I am using Excel Library in my .Net Application. What would happen if the version on my machine does not match with the version of Excel that is being used on the machine where my application is installed. For eg the SaveAs method of Version 10 has 12 parameters and that in Version 9 has on...more >>

Events and delegates
Posted by Sgt. Sausage at 9/13/2004 12:57:04 PM
NOTE: I'm new to c#, but not to programming. For reasons unimportant to the discussion below, I need to be able to dynamically, at run time, discover the set of all objects listening to another object's events. Given some jRandomType, I've figured out how to get the Events themselves via r...more >>

CrystalDecisions.CrystalReports.Engine.LoadSaveReportException when OpenSubreport() was called
Posted by beihong NO[at]SPAM gmail.com at 9/13/2004 12:40:34 PM
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on http://support.crystaldecisions.com/library/kbase/articles/c2010275.asp to set up the log on information. But I always got the exception at ...more >>

How can I use System.Security.Cryptography
Posted by Lubo¹ ©lapák at 9/13/2004 12:33:53 PM
Hi, I need encrypt string with using one key. Write please short example, how can I do it? Thanks Lubos ...more >>

Accessing Web Service via sockets. Error ->
Posted by pronto at 9/13/2004 12:06:01 PM
Hi guys. I made Web Service (C#) and running it on my localhost (Win2000). It does work from IE and from C# client application. Now I'm trying to create application with Visual C++ 6 and get access to the same WebService. What VC++ application does is : get HTML page from the URL and print...more >>

Any faster cross boundaries comms than Remoting?
Posted by Urs Vogel at 9/13/2004 11:49:54 AM
Hi For my application server, I had to overcome some limitations in older COM-database drivers, whers sessions per driver instance are limited. Instantiating the COM component several times does not help, since it still reports the same Process ID to the DB server, so the limit persists. ...more >>

Need .Net Design Help
Posted by Jack Addington at 9/13/2004 11:40:25 AM
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a WinForms interface and then need to port that to a web app. I am kinda stuck on a design issue an...more >>

Exchange
Posted by Z D at 9/13/2004 11:15:27 AM
Hello, I'm trying to query Exchange Extension Attributes from ASP.NET. I would like to show the value of the attributes for a given user. For example, EXTENSIONATTRIBUTE3. I was wondering if anybody has some sample code, resources they could point me to, or general advice. Thanks!...more >>

Resetting the FPU mask in C#
Posted by Marcus P. at 9/13/2004 11:05:32 AM
Hi, I have a COM server that appears to be stepping on the FPU mask for my client program. In the short term, before I get the COM server fixed I have read that I can manually reset the FPU mask after the unmanaged call to the COM server. However I have only found examples of how to do this...more >>

constructor on inherited object
Posted by Jack Addington at 9/13/2004 10:59:48 AM
I am having a problem getting my inherited object to compile. I am trying to add another variable to the constuctor and I cannot get past different variations of the following message: No overload for method 'dataObjAnc' takes '0' arguments... I tweak the code and the 0 changes to 1 etc......more >>

Updating Menu Items
Posted by fjlaga NO[at]SPAM sbcglobal.net at 9/13/2004 10:49:52 AM
I have a tray icon application that displays a context menu when it is right clicked. One of the menu items on this context menu is a submenu. The text of the menu items in this submenu get updated from time to time, however, when the submenu is popped up the old/original text always shows. S...more >>

Invoke C#-Function calls in aspx pages
Posted by Sandro at 9/13/2004 10:21:52 AM
hello ng i know, probably i am not the first asking about this, but i am really dependent on it. i have an asp.net application (aspx/jscript with c# codebehind) and i am searching for a possibility to invoke c# funtioncalls in the jscript-code. as i know there is a possible way by using ...more >>

What have I confused compiler with here?
Posted by Claire at 9/13/2004 10:10:59 AM
The following is an extract from my base protocol class. It worked fine until I changed my code so that each type of comms wll be handled by its own protocol class. I created a single Protocol abstract class and a couple of derived classes. The delegate and event are declared in the base clas...more >>

What problem with following code?
Posted by Aloneplayer at 9/13/2004 10:01:46 AM
internal interface IBaseData : BaseView.IViewProvider { Color BackColor { get ; set ; } } internal class BaseView { internal interface IViewProvider { BaseView View { get ; } } internal class BaseData : IViewProvider, IBaseData { public BaseView View ...more >>

DTD or XSD
Posted by kids_pro at 9/13/2004 9:47:53 AM
Hi there, What is the different between DTD and XSD? What does these mean to XML file? Cheers, Kids ...more >>

Forms Inheritance
Posted by Mojtaba Faridzad at 9/13/2004 9:34:19 AM
Hi, I have some forms that they need to have access to some public variables. to solve this problem I decided to have a RootForm and all other forms are drived from this form. I can set my public variables on this RootForm and use them in the drived forms. sounds good? but there is a probl...more >>

Importing csv files must have a csv extension?
Posted by James at 9/13/2004 8:57:38 AM
Hi, I'm importing some csv files with this code /// start of code snippet int iPos = strFileName.LastIndexOf(@"\"); string strPath = strFileName.Substring(0,iPos); string strSelect = "Select * from [" + strFileName.Substring(iPos+1) + "]"; string strConnection; strConnection = "Provid...more >>

Setting unique key in DataTable
Posted by Karunakararao at 9/13/2004 8:47:23 AM
Hi All, Iam using datatable in my C# application. My problem with the datatable is that when i tried to bind the same column name to a datatable it is throwing error that the names already exists in the datatable.Is there any way to set unique key to the datatable so that it can...more >>

Adding an Array to an Array List
Posted by Jack Addington at 9/13/2004 8:39:40 AM
Is it possible to add an array to an ArrayList with one call? Instead of iterating through each of the array's members and doing an ArrayList.Add( ) ? thanks ...more >>

Sharing code between Smart Device Project and desktop project
Posted by Dan at 9/13/2004 8:24:42 AM
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for those parts of the code which are different on desktop and smart device projects 2. How can I actuall...more >>

C# and runtime data population of a crystal report
Posted by thollingsworth NO[at]SPAM kinexisdms.com at 9/13/2004 7:34:53 AM
I'm new to C# and I was trying to create a Crystal Report. I've designed a simple report and I've used several methods for attaching fields to the report at design time. I've used a DataSet that I've created by add new item, and I've used the add command and used an actual SQL statement, and I'v...more >>

Asynchronous Delegate w/ Callback Parameters
Posted by Michael C at 9/13/2004 6:49:32 AM
Hi all, Is there an easy way to get the parameters of an asynchronous delegate call from the callback function? Here's an example of what I'm trying to do: private delegate ArrayList AsyncDelegate (string server); private void GetServerInfo (string server) { AsyncDelegate ad = new A...more >>

It is possible to write a bluetooth application software by C# in Pocket PC ?
Posted by Alvin Lau at 9/13/2004 5:51:49 AM
It is possible to write a bluetooth application software by C# in Pocket PC ? If it is possible , where can i find the reference or sample? ThX ~ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Compiling C# source code
Posted by Help! at 9/13/2004 5:41:30 AM
I need to use the reseditor.exe to create some resource files, but I only have Visual Basic 2003 Standard Edition. The source files are in C#, from the SDK, and every time I try to compile them I get an error msg. Can someone post the compiled Reseditor.exe program. I could email the sou...more >>

Reading file contents to unmanaged memory block (IntPtr) from C#
Posted by TT (Tom Tempelaere) at 9/13/2004 5:21:08 AM
Hi, In my project I need to use VirtualAlloc (kernel32) to allocate memory to ensure that data is 4K aligned. I need to fill the data block with file contents. I notice that there are no 'Read' operations to memory pointed to be an IntPtr (I checked FileStream & BinaryReader). Can I do this...more >>

Date conversion
Posted by kiran_rallabandi NO[at]SPAM yahoo.com at 9/13/2004 4:57:00 AM
Hi, Please help me on converting julian date into dd MMM yyyy format in c#. Ex of julian date: 1093128564 1093128537 1093128419 Thanks in advance. Regards, Kiran...more >>

Response.Write for a XML string
Posted by msuk at 9/13/2004 4:27:07 AM
All, I have a well form block of XML that is stored in a C# string type and I just simply want to display it in the browser using Response.Write but when I try this I get the following error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the...more >>

constructor constraint in C# 2.0
Posted by Ole Andre Karlson at 9/13/2004 1:23:21 AM
Hi Im using Whidbey version 8.0.30703.27, working with C# 2.0. I discovered that creating an object through the constructor constraint is a sloooow process... Is this just because I'm working on a beta version, or is there a deeper cause for this? My time measurements for creating 1 m...more >>

(WTF)Assignment Operator Not Working!
Posted by x0td0x NO[at]SPAM hotmail-dot-com.no-spam.invalid at 9/13/2004 1:08:45 AM
In a dialog box to which is passed to it an object of type "aliasrow" derived from datarow, there is a routine that updates the internal 'aliasrow' (termed mar for member alias row), upon the time which the user clicks a button with the caption 'ok' - the scripture says thus private void btnOK...more >>


DevelopmentNow Blog