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 2003 > threads for wednesday september 17

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

VB .Net or C#? Why choose one over the other?
Posted by VM at 9/17/2003 11:40:11 PM
Although I program in C# and all of the projects I work on are in C#, I was just wondering why someone would choose VB .Net or C#. Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer choose one over the other? The reason I chose C# is because it's somewhat similar to C (and...more >>

1 object on 2 different Form objects
Posted by xnn at 9/17/2003 11:17:14 PM
Hi, I would like to know why an object Label cannot be used on 2 different object Forms at the same time? It has the impct of run-time error. Thank you very much. regards...more >>

ExecutionEngineException with WMI
Posted by pat magee at 9/17/2003 11:16:47 PM
have written an app to query a heterogenous network of Win98/WinME/XP/Win2000 machines. I can connect to WMI using the WMI CIM Studio but I get an ExecutionEngineException whenever I try to connect to a Win98 box from C# code. The following snippet works fine when run on Win2000/XP client...more >>

Moveing a window
Posted by Tomomichi Amano at 9/17/2003 10:19:11 PM
(addition to my last question) I want to make it possible to move a window with out a titlebar USEING a mouse. Thanks in advcance ...more >>

How to read PDF files into C# app?
Posted by Rukmal Fernando at 9/17/2003 10:10:02 PM
Hi, I'm working on a tool to do text indexing on documents and want to include support to index PDF files as well. Does anyone know any tool or method of extracting the text from PDF files into a .NET app? Thanks, Rukmal. ...more >>

How to move window
Posted by Tomomichi Amano at 9/17/2003 9:45:24 PM
How do I move a window without useing the titlebar (the blue bar on the top of the window). Thanks in advance ...more >>

Amazon Patents Microsoft's DataGrid Inline Editing Feature....
Posted by nospam at 9/17/2003 9:39:38 PM
Amazon wins patent for ordering forms, Collapsing and Maximizing Form Areas.... NAME OF PATENT Method and system for displaying and editing of information # 6,615,226 http://tinyurl.com/m7v8 **** CLAIM #10 **** __________________________ 10. A method in a computer system for ed...more >>

Do I still need to know COM/ATL?
Posted by M at 9/17/2003 8:31:05 PM
I'm new to .NET/C# and I've been programming C# for a month or so now. I'm not a C++ programmer, but I like knowing how stuff works, so I started reading a C++/COM/ATL book. I got about halfway through it before I started doing C#, and now I'm wondering why I should ever learn COM/ATL. An...more >>



WebClient Method Not Allowed
Posted by Arash at 9/17/2003 7:58:11 PM
Hi everybody, the previous error was my mistake but right now I changed the code to: private void btnUpload_Click(object sender, System.EventArgs e) { WebClient mClient = new WebClient(); try{ mClient.UploadFile(" http://mymachine/Pars/Images/Cop.jpg ","D:\\Cop.jpg"); ...more >>

Virtual hashtable
Posted by Dan at 9/17/2003 7:17:24 PM
I need to load a hashtable containing millions of records. Has anyone seen an example of a virtual hastable that pages buckets in and out of ram on the fly? Thanks. ...more >>

Is C++ managed code compiler faster than C#?
Posted by Henrik Andersen at 9/17/2003 7:12:27 PM
Hi newsgroup Does the c++ compiler generate faster code at execution time than the C# compiler? Does the c++ compiler have more optimisations than the C# compiler? Thanks in advance! ...more >>

SAML api?
Posted by bp100a at 9/17/2003 6:55:41 PM
Does anyone know of a SAML api for C#? I know about the Java & C++ APIs at the OpenSAML site. /harry ...more >>

special kind of virtual method
Posted by Zeng at 9/17/2003 6:52:56 PM
I often run into situation where I would like to have a method such as that has derived behavior similar to destructors in c++, is that possible? public BaseClass { private int m_dataInBase; public BaseClass() {m_dataInBase = 0} public void SetDataBase( int val ) { m_data ...more >>

Bug in COM Interop
Posted by George A. Losenkov at 9/17/2003 6:38:11 PM
Hi everybody. I try to create COM server. I have interface interface Font { ... object Color { get; set; } ... } I expect that i will see interface Font : IDispatch { .... [id(0x60020004), propget] HRESULT Color([out, retval] VARIANT* pRetVal); [id(0x60020004), propput] HRESULT...more >>

Adding Meta Data
Posted by Chamindu R Munasinghe at 9/17/2003 6:16:33 PM
Hi I'm using a typed dataset to transfer data between the layers of my application. I need to add attributes to some columns ( a flag true/false) . I have a method that will take a dataset as the parameter and modify the values of the columns that contain the attribute. The problem ...more >>

add or subtract Datagrid Dataset?
Posted by Michael Schindler at 9/17/2003 5:50:23 PM
ROW Accountnr Amount 1 1001 12.00 2 1001 -12.00 3 1002 40.00 4 1002 -12.00 5 1002 -28.00 6 1003 30.00 7 1003 -30.00 8 ???? ...more >>

Overriding vs. New
Posted by muscha at 9/17/2003 5:27:49 PM
I don't get it. What's the main differences between overriding a base class's methods vs. hiding them? Thanks, /m ...more >>

some reflection questions
Posted by memememe at 9/17/2003 5:18:12 PM
I am using the Activator class and creating an instance by passing the type I want to create and the paramters for the constructors. My question is: Lets assume we got Interface A, and Interface B, and a class C that implements both. If I have two contructors, one takes an instance of a class t...more >>

Accessing application variable from static method
Posted by DDE at 9/17/2003 4:52:28 PM
Hi All, Reformulating a problem from a previous post: How can I access an application variable from a static method? When I try: string myString = Application{"thisString"].ToString; whithi a static method, I get the message: CS01020 "In order to use a non-static field, method, o...more >>

Is there anyway to catch both exceptions in the following example?
Posted by Hasani at 9/17/2003 4:29:57 PM
http://www.skidmore.edu/~h_blackw/finally.gif I can only catch the exception thrown in the finally code section. even if I do catch(InvalidOperationException) ...more >>

client IP address in a web service
Posted by tim djossou at 9/17/2003 4:18:41 PM
Hi Is there a way to get the IP address of the client who is using a web service (inside the web service?) Regards ...more >>

DataTable.NewRow() clears previous row?! BUG?
Posted by Tomas R at 9/17/2003 4:15:53 PM
I have a datagrid with a dataview(created from a DataTable) bind to it. = It displayes coordinates and I have a toolbarbutton that will create a = set of new coordinates just like the existing ones, accept that the = x-values is mirrored. It's also possible to remove these coordinates, by = a me...more >>

Backwards Inheritence In Web User Controls
Posted by john bailo at 9/17/2003 4:08:58 PM
For a c# web application, I created a user control that includes a form in control. The idea is, on the main Page, when the user clicks Submit from the master form, that makes the user control visible and gives it new functionality, but retains the look of the top half of the master page....more >>

Regarding Loading Playlist(.wpl) to Player
Posted by manoj at 9/17/2003 4:07:53 PM
hi, I am developing a Player like windows media player. I added some components from WMP. I want to load a playlist directly when .wpl file is loaded , can some one tell me how to do it. for example to add a song :: Playlist.appendItem(Player.newmedia(url)));...more >>

What the heck is this error ?
Posted by james at 9/17/2003 4:02:04 PM
I am getting this and I have no idea what it means. All I did was install VS.Net 2003 and re-load my 2002 version project and re-compile Thanks, JIM Signature of the body and declaration in a method implementation do not match. Type: MyType. Assembly: MyApp, Version=3.0.1355.26622, Cu...more >>

Owner Drawn ListView in C#
Posted by duncan_uwanson NO[at]SPAM yahoo.co.uk at 9/17/2003 3:56:04 PM
If anyone knows how to do this. Thanks in advance,...more >>

WebClient
Posted by Arash at 9/17/2003 3:47:19 PM
Hi everybody, I am trying to upload a file to my local server (http://mymachine) using the code below, what I get as error is: "... ---> System.ArgumentException: URI formats are not supported. ..." I have also tryed the destination without file name (ommiting "Cop.jpg") and got the sam...more >>

Descriptive Intellisense?
Posted by Manish Jain at 9/17/2003 3:27:46 PM
Platform : Asp.Net/C#, Framework 1.1 -------------------------------------------- I have many overloads of constructors/other methods in most of my classes. I want to provide some descriptive help when people cosume such classes, just like MS does say when I say : new DataSet( and I get a ...more >>

File locations
Posted by PeteZ at 9/17/2003 3:24:46 PM
If I write a C# routine and compile it as a DLL then place a reference to in in my Web App (called: myapplication) it gets deployed onto the location: [web root]\myapplication\bin\mydll.dll If this C# routine opens a file called: abcd.txt (note there is NO PATH INFO - just the file name) Wh...more >>

Amazon wins patent for ordering HTML forms; Minimizing and Maximizing
Posted by nospam at 9/17/2003 2:54:11 PM
NEWS.COM Amazon wins patent for ordering forms # 6,615,226 http://tinyurl.com/m7v8 http://news.com.com/2100-1017-5070569.html In its latest patent, the online retailing giant outlined a method for expanding portions of the ordering form, then collapsing that portion of the form and re...more >>

check all nodes in a treeview
Posted by RickDee at 9/17/2003 2:39:04 PM
Is there a command where I can check ( putting a tick mark ) all the nodes within a treeview when the user checked the topnode of the tree ?? thanks regards. ...more >>

custom web control help
Posted by Scott C. Reynolds at 9/17/2003 2:19:31 PM
Hi. I have created a templated control, and I want to know how i can set it up so that the projects consuming it will have all the same intellisense benefits of using any other server control. It will be used by multiple projects. ...more >>

Union Struct Yields Error
Posted by Mike at 9/17/2003 2:08:13 PM
The following struct, DataStruct, is only part of a larger one that contains additional fields and arrays. I need the explicit layout because this struct is really a union, where some of the missing fields and arrays overlap. What's shown here, though, is sufficient for explaining the error. ...more >>

Loop through Controls?
Posted by Phill at 9/17/2003 1:43:22 PM
I have a form with several textboxes, checkboxes, and comboboxes that I want to dynamically databind to a column in the DataRow being passed in when the form is intantiated. I have named the fields the same as the column names that will hold the values. I am stuck. This is what I have s...more >>

Couple of newbe questions
Posted by paul.carre NO[at]SPAM polarinstruments.com at 9/17/2003 1:40:43 PM
New to C# - previous use of C++/MFC OK - there apears to be no similar construct to the ASSERT( ) that MFC used to use - TRUE or FALSE ( sorry - true or false ). Also I create a derrived component ( assembly ? ) and use it on a form - OK so far. Component and form are part of the same...more >>

Image dimensoions
Posted by Lars Pedersen at 9/17/2003 1:33:12 PM
Hi there! Is it possible to get the values of an image in an image servercontrol. Remeber its not the size of the control, but of the image that has been loaded in the image control. thanks in advance -Lars ...more >>

Deploying c# executables that uses dll's.
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 9/17/2003 1:19:54 PM
Back in the Old days, I compile a C++ executable, copy the dll's used by this executable to the same folder. Go to another computer, copy that folder locally, double click on the exe file and off we go.... Today, I have a C# .NET executable, I copied the used .NET dll into the same folder. Wen...more >>

switch on/off browsing pictures in IE
Posted by cherbina Vladimir at 9/17/2003 1:01:24 PM
hello, how can I programatically switch on/off the browsing images and playing sounds in IE ? I need to change the check boxes which are at "Tools->Internet options...->Advanced->Show pictures" thanks. Vladimir ...more >>

Problem upgrading project to 2003
Posted by james at 9/17/2003 12:58:42 PM
I upgraded my 2002 project to 2003 and I am getting several of there errors on my forms xxxForm.resx Resource transformation for file 'xxxForm.resx' failed. Possible Version mismatch. Type System.Globalization.DateTimeFormatInfo has 38 members, number of members deserialized is 35. Now, whe...more >>

How to split a single line!!
Posted by Jay Balapa at 9/17/2003 12:56:33 PM
Hi, I want to do the following- But it is giving me an error- mySB.AppendFormat(" Hello " "How Are You{0}", strName); I was able to do this in C++. Thanks Jay ...more >>

C# question
Posted by Ahmed Zammar at 9/17/2003 12:30:02 PM
Is there a benefit to using C#? ...more >>

passing objects using ref
Posted by Robert Lario at 9/17/2003 12:00:43 PM
For examples sake I have made up a very simple example. I have an object called foo1 which is of type foo. I want to be able to call a funtion called myfunc as follows: myfunc(ref foo1) here's the function : public void myfunc(ref object foo) { do some stuff } I get the follow...more >>

Center Aligning the right mouse click menu
Posted by Sundar at 9/17/2003 11:28:28 AM
Hi I would like to center align the menu that gets displayed when right mouse is clicked. In MFC, the function TrackPopupMenu takes a parameter that determines the alignment of the menu (left, right or centered). How do I do that in C#? Regards Sundar ...more >>

How to get the FileName and Path to which a StreamWriter is attached to?
Posted by José Joye at 9/17/2003 11:28:19 AM
I have a instance of a StreamWriter and I need to get the path and filename to which it is attached to. This sounds easy.... I feel a bit idiot not finding it! José ...more >>

Performance improvement ??
Posted by Gary at 9/17/2003 11:15:49 AM
I would like to know if I use C# instead of Vb.Net for Server components, will there a performance improvement ? TIA, Gary ...more >>

Help - Accessing the UInt16 array ref'ed in a collectionitem
Posted by nite_eagle NO[at]SPAM hotmail.com at 9/17/2003 11:11:36 AM
I have a collection that can have a reference to various types of arrays. String was easy: ... string[] sPropertyArray = (string[])oReturn[oProperty.Name]; foreach( string sItem in sPropertyArray ) { ... How do I handle a UInt16 array? I have tried( and various permutations)...more >>

List view colour question
Posted by Patrick De Ridder at 9/17/2003 11:02:44 AM
Below a rather simplistic example of a list view routine. Say I want to have "over" appearing in red on the display, how would I do that? Many thanks, Patrick. patrick.de.ridder@hetnet.nl *************************** using System; using System.Drawing; using System.Collections; using System...more >>

paint sometime on another graphic without losing the other grapic... how?
Posted by Jeroen Ceuppens at 9/17/2003 10:45:58 AM
When I paint a image, the image disappear when a use a selectiontracker on it, is it possible that the image stays visible when i use the selectiontracker? I found a stupid solution, it isn't good because it always repaint the same image and it flickers during the use of a selectiontracker......more >>

Relative path
Posted by Hai Nguyen at 9/17/2003 10:44:39 AM
Hi All: If I want to connect to an Access data base, the aspx page and the database are located in the same folder, how would I refere to the database? I got an error when refere to an Access database if the string connection does not provide absolute path. eg: OleDbConnection myConnection...more >>

C# string with comma separated values into array of ints
Posted by idog63 NO[at]SPAM hotmail.com at 9/17/2003 10:26:24 AM
If I start off with a string which contains comma separated ints. I want to move this into an int array so i can do sorting. I thought I might get this to work: int[] test = {textBox1.Text}; What would be the best way to accomplish this? This is what i came up with: private void b...more >>

over 4297000000 of GDI objects in a Windows.Forms application! ListView's leak.
Posted by Wiktor Zychla at 9/17/2003 10:16:25 AM
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows. now use task manager to see the GDI usage of the process. everything seems normal. now catch the ...more >>

What should I use : XMLDocument or Custom tree like data structure ?
Posted by Sasha at 9/17/2003 10:12:37 AM
Hi everyone, I would like to hear your opinions about a design solution I am contemplating. The problem I am following: Write an editor for a data structure that is recursive in nature. In other words it is a tree, where child nodes can contain links to parent nodes. And there multiple kin...more >>

Recommendation for storing metadata
Posted by Kieran Benton at 9/17/2003 9:47:22 AM
Hi, I have quite a lot of metadata in a WinForms app that I'm currently storing within a hashtable, which is fine as long as I know the unique ID of the track (Im storing info on media files). Up until now I've been sending the track info to a seperate server app using serialization/sockets whic...more >>

Datagrid questions
Posted by news.microsoft.com.br at 9/17/2003 9:40:49 AM
Hi all, I have two doubts about datagrid in winapp 1 how know when a cell change to edit state and to navigate state? 2) how align the caption text to center? Thanks a lot André ...more >>

How to dyanamically instance a class from a string containing the class name?
Posted by Earl Teigrob at 9/17/2003 9:26:24 AM
In the exampe below, the constructor of the container class is passed the string called "foo". Within the container class, I would like to create an instance(s) of foo and add them to the ArrayList that is returned. (Once I figure this out I will use reflection on the instance to do other stuff) ...more >>

Graphics.DrawImage problem
Posted by Jeroen Ceuppens at 9/17/2003 9:12:21 AM
Hi, When i do this in my programma, in the contstructor of the form: g.DrawImage(i,new Rectangle(0,0,i.Width,i.Height),0,0,i.Width,i.Height,GraphicsUnit.Pixel); it doens't paint it ;( but if I make a button with the same, after the click it paints it, why the problem, i can't get out of it....more >>

System.Resources.MissingManifestResourceException
Posted by namri at 9/17/2003 9:11:34 AM
I don't undertand what does it mean this exception A not managed exception of the type ' System.Resources.MissingManifestResourceException' occurred in system.windows.forms.dll Additional information: Impossible to find resources suitable for the specified culture (or the neutral culture) o...more >>

Self referencing object
Posted by jay NO[at]SPAM mcguinness.co.uk at 9/17/2003 8:48:51 AM
A few pieces of information first: * I have a class called Folder which represents a row of data in a database table. The data access side of things is not an issue. * The table has a parent column which references itself (ie. Adjacency or parent/child model) * I have a public property ca...more >>

string address
Posted by cfyam at 9/17/2003 8:30:59 AM
How can I get the memory address of a string in C#? ...more >>

Marshaller Error when calling vb 6 dll with embedded structure.
Posted by paul_j_barrett NO[at]SPAM hotmail.com at 9/17/2003 8:29:21 AM
I have a problem with the marshaller calling a vb6 dll from csharp. here follows the code that is similar in structure to what i want to call. rem vb6 dll type a b1 as byte b2(2) as byte end type type compoundstruct c1 as byte astruct(1 to 4) as a end type function dosomething(byr...more >>

getting my debugging ducks in a row
Posted by Michael Roper at 9/17/2003 8:22:35 AM
I can find no references to checked builds for either Windows Server 2003 or the .NET Framework. Do they exist? Michael Roper ...more >>

ImageButton problem - ImageUrl encodes ampersands!
Posted by David Berman at 9/17/2003 8:14:24 AM
I'm having a problem with the ImageButton class. I want to set the ImageURL to an asp page, like: Thumbnail.ImageURL = "getpicturefromdatabase.aspx?INDEX=52&GALLERY=12"; The problem is, when the control renders, it renders the url incoded as "getpicturefromdatabase.aspx?INDEX=52&GALLERY=1...more >>

VB Resume statement equivalent in try-catch ....
Posted by tvesel NO[at]SPAM hotmail.com at 9/17/2003 8:05:47 AM
OK- I volunteer to be shot if this question is stupid... BUT, is there a way to, when you catch an exception in the catch{} handler, resume to the same line of code that generated an error while you are debugging within IDE...? Here is an example from VB: Private SomeFunction () On Error GoT...more >>

minimize a window
Posted by manoj at 9/17/2003 7:46:00 AM
hi, Can some one tell how to minimize a window. I want to create a custom button to which i want to connect minimize function.I couldn't find any such function. thank you, pradeep...more >>

Disable ALT+F4; CTRL+ALT+DEL; CTRL+ESC;ALT+TAB
Posted by Stefan at 9/17/2003 6:25:40 AM
Hy, i have an app and i must disable this combination: ALT+F4; CTRL+ALT+DEL; CTRL+ESC;ALT+TAB like this: i find something on Internet and i can block ALT+F4 protected override System.Boolean ProcessCmdKey(ref System.Windows.Forms.Message msg,System.Windows.Forms.Keys keyData) ...more >>

Help on C# Regular Expression
Posted by manig16 NO[at]SPAM hotmail.com at 9/17/2003 6:13:04 AM
Hi Guys, I am new to C#. I have a xml string and I want to read a value of a particular element. I do not want to use dom for this purpose. I think Regular expression will solve this. the code snippet goes like this... string strMsg ="<MyTestXml><First>One</First><Second>Two</Second><Third>...more >>

Calculate Bezier control points
Posted by Dennis Myrén at 9/17/2003 6:05:52 AM
Hi. Sorry if this post might be a little off the topic, but just in case anyone knows... Given a size, a position, a start angle and a sweep angle, i want to draw a bezier curve. I will need to compute the bezier control points (start point, point A, point B, point C). I have had some p...more >>

BUG: PrinterSettings.ToString()
Posted by Jochen Kalmbach at 9/17/2003 5:41:41 AM
Hello, if an PrinterSettings-Instance is not set-up correctly (for example just by using the default-constructor), then the "ToString()"_method will throw an exception! Unhandled Exception: System.ArgumentException: The value '0' is not a valid value for the enum 'Duplex'. at Sy...more >>

help reg. execscript function in VC#.net and javascript usage
Posted by luckybee NO[at]SPAM indiatimes.com at 9/17/2003 5:31:49 AM
I am calling javascript function from my VC# application that returns me an index. Now, how do I get that parameter back in C# from javascript. There shud be some way through which we can accept parameters in VC#.net returned from javascripts. Plz. help ASAP. Its urgent....more >>

Multiple inheritance
Posted by majid at 9/17/2003 2:59:50 AM
How can i write classes with multiple inheritance...more >>

PacMan in C#
Posted by _V_ at 9/17/2003 1:29:24 AM
Well, I'm not really interested in PacMan. I'm curious about whether C# is good for java-type graphic-oriented 'applets' that will play in a browser (from a web page). If so, is this covered in any books? Most of the web-based C# apps that I have seen are text-based HTML/ASP....more >>

Instantiating assemblies in run-time.
Posted by pesso at 9/17/2003 1:15:36 AM
I have an array of filenames, which are paths to the .NET assembly DLLs I built. I know for sure that these assemblies have public method, Execute(). In the run-time, I want to be able to instantiate these assemblies from my CS code and invoke the Execute function. Can I do this without setting...more >>

Patterns and refactoring support for VS.NET and C#...
Posted by Arne Styve at 9/17/2003 1:06:01 AM
Hi, The good old Borland JBuilder has very good support for patterns (GoF) and refactoring. Does such support exsist for VS.NET and C# specifically ? The type of support I'm looking for is to be able to point at a class (either in the editor or the class browser) and apply for instance...more >>


DevelopmentNow Blog