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# > february 2004 > threads for thursday february 12

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

acessing C# classes from non-managed C++
Posted by Yordan Gyurchev at 2/12/2004 11:22:27 PM
We have a plugin based app in C# but due to other exisiting legacy products and tools we need to access some of the "new" C# classes from these old MFC and C++ products. I've looked on the web but I can only find info about accessing C# classes from Managed C++. Can you point me to any sour...more >>


Cannot catch Exception in a thread
Posted by goodoldave NO[at]SPAM hotmail.com at 2/12/2004 10:33:13 PM
I am having a bit of a problem with catching an exception within a thread. Here is the scenario: I have a Windows Form. I create a new thread. This new thread calls a method in another DLL that catches an expected exception. The method in the DLL throws the exception back out. When in de...more >>

Asynchronous call problem
Posted by Justin Harrison at 2/12/2004 9:29:03 PM
Hi, I've got a function I am calling asynchronously, with a callback. The callback gets called once, with valid return data. It gets called a second time, with no return data. Does anybody have any idea of what is going on? Justin ...more >>

Need help setting up test environment
Posted by sandman at 2/12/2004 6:29:48 PM
I've done all my development on my own machine, running it on the localhost IIS. Now I need to let a couple of users test it. How can I set them up so they can access the Access 2000 database without writing a webservice for it right now? The obvious solution is to install the development kit...more >>

a.Amount += 10;
Posted by Gustaf Liljegren at 2/12/2004 6:08:21 PM
I guess this is a newbie question. I got an Account class with an Amount property, like this: public float Amount { get { return amount; } set { amount = value; } } I need to add to this amount sometimes, but when I write like this a.Amount += 10; I get the error "The left-h...more >>

windows shortcut help please
Posted by darren at 2/12/2004 6:03:06 PM
hi please is it possible to make a desktop shortcut file to my application at run time ? regards Darren...more >>

Menu Item not showing
Posted by DavidR at 2/12/2004 5:56:05 PM
I created a main menu and added some items. However, when I run it (or even dont have the menuItem1 clicked) I cannot see the menu list. I cannot figure out what I need to do to have it show. If any suggestions I would be very appreciate Thank you DavidR....more >>

Passing Variables between Webforms
Posted by Ivan Sammut at 2/12/2004 5:44:34 PM
I have 2 webforms (WebForm1 & Webform2) I have a button on webform1 that when I click it I need to pass some variables to webform2 and then Popup webform2 and show the variables I passed. Any idea how can I do this. If possible give a short example Thanks Ivan Sammut ...more >>



Detecting that date is on the same week or last week.
Posted by Hadi at 2/12/2004 5:34:51 PM
Hello, I have to DateTime structure, how do I calculate if date A is on the same week with date B or last week of date B? Thanks, Hadi ...more >>

Unable to create/open web projects ?
Posted by WJ at 2/12/2004 5:30:17 PM
My system is an XP Pro. with the lattest patches & Service pack applied. 1. I have IIS installed with XP first. 2. I have .NetFW 1.1 installed next via Windows Update. 3. I have VS.Net 2003 EA edition installed last. VS.Net had been working fine, it could create Windows Form and Web form & ...more >>

ILDASM / IL confusion...
Posted by FDude at 2/12/2004 4:53:12 PM
Hello folks: I am just starting to delve into the DUMPS from the ILDASM utility. Can I do anything useful with the outputted IL code? Can someone give me some references to working with .IL files? Thanks ...more >>

CreateFile fails - 120 error code
Posted by Antoine at 2/12/2004 3:40:14 PM
Hello, I'm writing a program to send requests to my wlan pocket pc device (UIO1: driver) in C#. Here how I import CreateFile functions from coredll.dll with DllImport: [DllImport("coredll.dll", SetLastError=true, CharSet=CharSet.Auto)] public static extern IntPtr CreateFile( st...more >>

JIT compilation question
Posted by Sheila Jones at 2/12/2004 3:38:27 PM
Hello, I posted this as a follow-on question yesterday, but nobody has bitten: Is a .Net application recompiled (i.e. from CIL to native code) each time it is run? Or is the native code cached - and if so, where? Thanks. ...more >>

Opening new windows
Posted by Jeremy Ames at 2/12/2004 3:09:47 PM
I am using C# to develop my ASP.Net applications. I am trying to figure out how to open new window with specific attributes such as size and window components to show. I have not seen any examples in the documentation on how to do this. Can someone please help? ...more >>

Properties of Interfaces
Posted by Tony Nassar at 2/12/2004 3:08:17 PM
Could someone clarify why this doesn't work? Is there a persuasive reason why it shouldn't? interface IGetOnly { string Name { get; } } interface IGetAndSet : IGetOnly { string Name { set; } } It should be clear what I want to do here: extend the interface IGetOnly with a sett...more >>

Open existing MSMQ
Posted by Kimmo Laine at 2/12/2004 2:58:01 PM
Hi, one stupid question? How can i be sure that i have valid queue: using System; using System.Messaging; // . . . MessageQueue q = new MessageQueue( ".\\Private$\\myQueue" ); // Can i call send!?!? q.Send( "Hello!" ); Is there a way to open existing queue...more >>

Sprites
Posted by m.pfeffer at 2/12/2004 2:48:52 PM
hi i am new in c# programming and try to write a sprite class this class should load a image from hd and displays it on a picture box. i search a method to clear th sprite and move than. But what is the fastest way to delete the image. I try it with paint a rectangle in background color over i...more >>

Marshal.AllocHGlobal
Posted by Stefan at 2/12/2004 2:06:10 PM
I have the following question The Marshal class contains a function to allocate a block of memory 1. Marshal.AllocHGlobal ( int cb 2. Marshal.AllocHGlobal ( IntPtr cb The first version I can understand, because the integer indicates the size of the memory block that is required But the seco...more >>

Loading large file in memory or not?
Posted by Gustaf Liljegren at 2/12/2004 1:56:40 PM
I'm writing a program that will query an XML file with the XmlTextReader class (the question is not specifically about XML, however). This file is very large (maybe 20 MB at most), and during extreme conditions, it'll have to be queried thousands of times (maybe 20,000 times at most). Small frag...more >>

HELP!! IPC using MailSlot
Posted by aherzallah at 2/12/2004 1:53:00 PM
Hi every one can anyone help me on how can I create/write/read from a MailSlot in .NET using C#, just like the windows API CreateMailslot, (in case still not clear please see the link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/about_mailslots.asp?frame=true) th...more >>

Executing multiple DDL statements using C#
Posted by rudykayna at 2/12/2004 1:39:16 PM
I'm having trouble executing multiple DDL statements in one SQL file. I've been using ExecuteNonQuery() but it does not seem to like the "GO" statements in my SQL file. I need to keep the "GO" statements because its DDL. Anyone know a way around this? --- Posted using Wimdows.net NntpNews Co...more >>

Looking equivalent class to HttpContext in Win app
Posted by ron at 2/12/2004 1:31:06 PM
hi I am looking for a class that will give me the same functionality as the HttpContext that i can use in a Windows app Thanks Ron...more >>

Problem setting string class to read-write
Posted by travis powell at 2/12/2004 1:11:21 PM
i have created a string class. later on i created a procedure where i need to change charaters in the string. it seems to work just fine unitl i want to assigm the new character values to a particular position in the string [see starred lines at the bottom]. i get the error message that the Prop...more >>

scope question :
Posted by NotYetaNurd at 2/12/2004 12:03:04 PM
for(int i=0;i<6;i++) { // } wont i go out of scope after the for loop ...? ...more >>

Migrating a website into Visual Studio .NET
Posted by Steve Wasser at 2/12/2004 11:43:52 AM
While not specific to C# (although I am coding in C#). I have a website I've developed using Dreamweaver, and am rapidly getting sick of it. Is there an import or migration function for Visual Studio .NET to pull that into a solution, or would I have to cut and paste and recreate from scratch? ...more >>

ASP.NET bug tracking web application ???
Posted by gicio NO[at]SPAM gmx.de at 2/12/2004 10:58:23 AM
Hi!!! I'm looking for an ASP.NET bug tracking web application. ´ Or some others that are based on the web. What kind of bug tracking applications used Microsoft to track bugs? Or what kind of web based bug tracking application would you suggest me? best regards, gicio ...more >>

How can I make a Excel template using my C# functions
Posted by Lily NO[at]SPAM discussions.microsoft.com at 2/12/2004 10:49:33 AM
Hi all, I have some statictcle functions in C#, I am making some Excel templates, they are xls files. How to make my template using these functions? Before these functions are in Excel VB so I used them in my Excel template like this: =FileName!FunctionName() Lily ...more >>

2 combo boxes in datagrid
Posted by Kevin at 2/12/2004 10:41:06 AM
Hi Al I want to add two combobox columns in my datagrid. the one combobox column must be bound to the same datasource that the datagrid is, and the other combobox I just want to populate with a whole lot of values, and then when the user selects a value, I want it to filter the possible values in ...more >>

GPS API tool set
Posted by Torre Quinn at 2/12/2004 10:40:36 AM
I am not even sure what group to ask this question so forgive me if this is not the correct forum. I am really just starting my research on this subject so pardon me if they are "green". I am trying to find out more about how to use the Magellan 315 GPS unit I have in an application I am about...more >>

C# and Macromedia Flash
Posted by S³awek Mróz at 2/12/2004 9:19:58 AM
Hello! I'm a beginner in C# programming and I'm wondering if it's possible to put Macromedia Flash movies and C# applications working together. If yes and you know some good web-articles giving explanations and examples - pls let me know the links. BR Slawek ...more >>

Check if previous instance of application exists
Posted by Hubert Hermanutz at 2/12/2004 8:45:04 AM
Hi, is it possible with C#/.NET looking after previous instances of application, or rather to check if previous instance is always running? Thanks in advance, Hubert ...more >>

Ref Propogation in C#
Posted by orianavim NO[at]SPAM hotmail.com at 2/12/2004 8:17:30 AM
Hi, I have a simple question. Let say that i have 3 functions as following private main() { Object oTop = new Object(); } private void A(ref Object obj) { B(obj) } private void B(Object obj) { obj = "1"; } Does the function B receive the same reference to the object "oTo...more >>

How to greate Excel project in C# from .net?
Posted by Lily NO[at]SPAM discussions.microsoft.com at 2/12/2004 7:53:17 AM
Hi All, I want to new a Excel project from .NET using c#. I go to File/New/Project/ there is no office projects to choose. I want to know why? I installed Visual studio .Net 2003 and office 2003(.Net programmablity is chosen). Any thing else I should install in order to have a Excel pro...more >>

[OT] Visual C#
Posted by C# Learner at 2/12/2004 7:50:14 AM
I'm thinking of purchasing Visual C#, but have a question about it. Does it allow certain language elements (i.e. keywords) to be boldified in the editor? If I recall correctly, Visual C++ 6.0 *didn't* allow this at all. Also, does anyone know of a site with various screenshots of the IDE?...more >>

DataGrid.DeleteCommand
Posted by Duane Leem, BSIT at 2/12/2004 7:45:10 AM
Hi guys, I'm receiving this error: 'System.Web.UI.WebControls.BaseDataList.DataKeys' Denotes a 'property' = where a 'method' was expected It appears the error is at the DataKeys part... I highlighted it in red. = Anyone know why this is causing an error? ---------------------------------...more >>

How do I tell i
Posted by Top Gun at 2/12/2004 6:38:11 AM
Because I am developing a high-speed data entry form that focuses on 10-key, the users want to have the "+" key on the 10-key pad function as a "tab" key. I would like to trap this in the textform TextChanged event and do a SelectNextControl in order to simulate the behavior, but don't know how t...more >>

DataGrid "MappingName" property
Posted by _e_ at 2/12/2004 6:37:35 AM
I'm trying to set custom widths and headings for DataGrid columns, but they keep displaying as defaults. I did configure the params via the TableStyles collection -> ColumnStyles collection. MappingName is set to the name of the DataTable. My understanding is that the names should match or e...more >>

MSIOpenDatabase and MSISummaryInfoSetProperty
Posted by Paul Rivers at 2/12/2004 6:26:07 AM
When I'm trying to write a single feature to an MSI DB using C# there is so little documentation that I have had to piece together everything by hand. Any help would be appreciated I tried in C# to set up the MSIOpenDatabase to open an existing MSI DB. I get a handle of 1. I'm not sure what I'm...more >>

StreamReader Error -he path is too long
Posted by Mike at 2/12/2004 5:36:06 AM
I created a StreamReader object from a local file on my c:\ drive StreamReader srTemp = new StreamReader("C:\\myFile.txt") I then used a RegEx to strip out all the html and save what's left to a string object So far so good. So now I'm left with just the text Question 1.When I created a s...more >>

Opening an Image from SQL database
Posted by il_hadida NO[at]SPAM hotmail.com at 2/12/2004 4:53:24 AM
I am trying to open an image from a binary field in SQL Server. I have got a far as making an object which holds the image. I have done this using an example off the site of microsoft. Now I am trying to display the image into an image component. The problem is that the image component wants...more >>

problem with an XmlTextReader with a NetworkStream
Posted by dmu21003 NO[at]SPAM mail.ikasths-dot-dk.no-spam.invalid at 2/12/2004 4:22:07 AM
I've got a multi-threaded server (we are very early in the project, trying to uncover some risks), and I want to send data using XML. The class ServerAdapter is supposed to connect to the server (which works fine), to send data, but on the same stream be able to read data (which is causing pr...more >>

ListView Reorder
Posted by Travis at 2/12/2004 3:59:16 AM
I have set AllowColumnReorder to true and turned off AutoArrange but when I load a list view with data I still cannot get it to order the columns no matter which column I click on. Help ...more >>

Reading text files using pointers?
Posted by Einar Høst at 2/12/2004 3:46:33 AM
Hi I'm trying to learn a bit about performance, hope someone can help me out I have a text file with 8-bit characters in it. In order to improve performance, I'm using a BinaryReader instead of a StreamReader. I've made two versions of my method, one which uses typesafe code, and one which uses ...more >>

DataBinding change notification problem...
Posted by Richard at 2/12/2004 3:13:56 AM
Hi, I have a DateTime picker control on a form. The datetime picker control is data bound to a column in a DataTable. Yes I know about bound DateTime pickers and DBNull and etc. so no troubles with that stuff... However, as somebody out there probably knows, programmatically setting ...more >>

ListView
Posted by news.telusplanet.net at 2/12/2004 2:09:58 AM
I am trying to populate a list view using this code if the reader returns this data when querying for all workordernumbers starting with 98 workordernumber date firstname 9808 2004-09-08 Travis 9889 2001-09-12 Lane 9806...more >>

Casting - Cant convert VB sample.
Posted by Kurt at 2/12/2004 12:51:05 AM
Hi I was trying to get this VB type code to work in C Sub SetColumns_Example( Dim ol As Outlook.Applicatio Dim MyFolder As MAPIFolde Dim itms As Item Dim itm As Objec Dim dtmStart As Date, dtmEnd As Dat Dim lngElapsed As Lon Set ol = New Outl...more >>


DevelopmentNow Blog