Groups | Blog | Home


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# > april 2004 > threads for friday april 2

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

ADO.NET Cookbook Examples
Posted by CLR at 4/2/2004 11:39:16 PM
Folks, While the downloaded examples (for this book) seem to have been created with Visual Studio, all examples come with only a RESX File and a C# Source File. So, without solution/project files, how do I run these examples ? Regards, CLR ...more >>


Making .net Applications Run Faster
Posted by Manu at 4/2/2004 10:01:46 PM
Hi! How can i make the .net applications run faster on user computers. I have used .net a lot and proagrammed int it. But the applications developed using ..net framework are very slow when compared to other progrmming tools like VB6. ...more >>

web.config error! please help!
Posted by n3crius at 4/2/2004 8:50:13 PM
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with the aspx (as you would realistically) I get this : Details: To enable the details of this spec...more >>

Clearing textboxes..
Posted by Serdar C. at 4/2/2004 8:44:34 PM
hi there, i am writing a program with LOTS of textboxes in it.. my problem is when i try to clean the textboxes with foreach it gives error.. heres how my code looks like: private void ClearText () { foreach (textbox t in this.controls) { t.text = "" } } ...more >>

mac address
Posted by Joshua Moore at 4/2/2004 8:41:53 PM
Does anyone have code to access the computer's mac address (C# or managed code that could be p/invoked)? Thanks in advance, Joshua Moore ...more >>

StreamReader.Close() response is very slow - please help
Posted by thegoosmans NO[at]SPAM hotmail.com at 4/2/2004 8:27:57 PM
All, I am interested in reading the text of a web page and parsing it. After searching on this newgroup I decided to use the following: ******************************* START OF CODE ************************ String sTemp = "http://cgi3.igl.net/cgi-bin/ladder/teamsql/team_view.cgi?ladd=teamkn...more >>

Inheritance Question
Posted by steve at 4/2/2004 8:20:56 PM
Greetings, I have a question about interfaces and inheritance. We are going to create X number of classes that are going to doSomething (see below) cool with typed datarows. I optimistically (stupidly) created an interface class (iFoo) for all the usual reasons. I then though each imple...more >>

How do you do a form with no titlebar
Posted by Will Pittenger at 4/2/2004 7:14:25 PM
It must be top level. I can not write components with this version of C# (less than Professional). I do want a non-resizing border. I kept looking for a "ShowTitlebar" property (or something like that), but never found it. Do I need to write a control? That would not let me have the layout o...more >>



Virtual Properties Problem
Posted by SpookyET at 4/2/2004 6:01:10 PM
I have thought that you can disable a set or a get when you override a virtual property. I guess that I was wrong. The code below compiles and doesn't throw the exceptions that I have expected. It calls the base accessor. using System; namespace Test { public abstract class Meta...more >>

Solution explorer
Posted by Chuck Bowling at 4/2/2004 6:00:00 PM
I have a project that is becoming complex, involving several namespaces that each include several classes. Does anyone know if it's possible to create separate folders in the project display of the solution explorer for each namespace? ...more >>

Auto form fill
Posted by Benny at 4/2/2004 5:50:47 PM
Hello experts, Currently I am working on a web application using vs.net with c#. One of the project task is creating invoices. After the invoices are created, the user needs login to a government website and enter the same invoice information again. Since the information entered to the ...more >>

Displaying field value in datarow
Posted by Amos at 4/2/2004 5:45:33 PM
I'm trying to display a field from a datarow like this: DataRow[] myRow = DS_Urb.Tables["Urb"].Select("Code = 'MyCode'"); // it returns at least one row MessageBox.Show (myRow[0].ToString(), urb); But I get "System.Data.DataRow". How can I display field "Name" ? ...more >>

Problem with UNICODE
Posted by Fabio Negri Cicotti at 4/2/2004 5:25:13 PM
Hi all, I have had problems when I try to insert UNICODE characters through of Windows Form into the SQL Server. Instead of the correct characters, it is replaced by '?' symbol. For example, the string '?????' is saved as '?????'. The most strange fact is, I have 3 forms to enter the data and ...more >>

Microsoft.Directx.* namespaces not found
Posted by Chuck Glenn at 4/2/2004 5:19:55 PM
I installed visual studio 2002 (aka 7.0) enterprise architect, then directx 9.0b. Directx acted like it was installing .net extensions, but I when I open someone else's (tested and working) code, I vs tells me that all the Microsoft.Directx namespaces were not recognized. Does this have anyth...more >>

Boxing effect on struct methods
Posted by Tom at 4/2/2004 5:06:24 PM
Couple of questions relating to boxing. Firstly, I already know that boxing is the processing of temporarily copying a ValueType (e.g. struct, enum) to the heap so that the system can treat a value type like a reference type. However, I have some questions relating to implicit boxing: 1. If I...more >>

about StringDictionary
Posted by C# newbie at 4/2/2004 5:00:57 PM
Hi, How can I grab to a specific element value into a string dicitionary ? Let's say we have an string dictionary which is full and on a specific row want to grab one of the item. I found "ContainsKey" method but when I write (within a foreach loop): if (myStringDicArray.ContainsKey("Contr...more >>

Which one is best performance?
Posted by Khaled Atta at 4/2/2004 3:52:59 PM
Hi every body Well lets assume that we are making a windows application project and I have a datagird which will contain some data 1) well I can make a command object and give it a query in C# and execute this command so that the datagrid gets its data. 2) and I can make a Query in the MS Acce...more >>

help with datasets, datatables, etc
Posted by Dave Cullen at 4/2/2004 3:32:06 PM
I have a C# database app (someone else's code) that started crashing when I changed some values in a data table. If I use numeric data in this field, it works OK. Changing to non-numeric strings causes Oracle's ORA-01722 error (invalid number). I know what is wrong, but I don't know how to fix t...more >>

I like C#
Posted by Sami Vaaraniemi at 4/2/2004 3:31:29 PM
Sami www.capehill.net *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

At breakpoints: "The breakpoint will not currently be hit. No symbols have..."
Posted by Amos at 4/2/2004 3:24:28 PM
In framework 1.0, In my Windows application in the breakpoints I add to one of the classes, I get this message: "The breakpoint will not currently be hit. No symbols have been loaded for this document". The only thing I did (that I remember) was change the name of the solution and modify the ...more >>

Different text colors in ListBox
Posted by Nenad Dobrilovic at 4/2/2004 3:05:09 PM
Hi, can I have two lines with different colors in Windows ListBox control? Thank you in advance, Cheya...more >>

conversion
Posted by Mike at 4/2/2004 2:53:48 PM
I have a vb6 app that I want to convert to .NET but in C#, Is it possible to do that or will the project convert to VB.NET automatically? thx ...more >>

FormsAuthentication.RedirectFromLoginPage is not passed fully qualified url
Posted by Jacob Crossley at 4/2/2004 2:48:19 PM
I have two web applications on the same server: http://localhost/ModemUpgrade and http://localhost/TestFormAuth The web.config of ModemUpgrade: <authentication mode="Forms"> <forms name=".cuid" loginUrl="http://localhost/TestFormAuth/MemberLogin.aspx" path="/"> </forms> </...more >>

Threading Exception!!!!
Posted by Vai2000 at 4/2/2004 2:21:32 PM
Hi All, I am running into an exception with my Multithreaded App. (This app is derived from IServicedComponent). I am calling a method with ThreadPool ThreadPool.QueueUserWorkItem(new WaitCallback(Foo), stateInfo); void DoSomething() { ManualResetEvent[] manualEvents = new ManualResetEv...more >>

mixing compact and winform code
Posted by Hans Kesting at 4/2/2004 2:10:46 PM
Is it possible to mix code meant for the CompactFramework and code meant for the standard framework? We are trying to make PDA and light-weight "laptop" versions of one application. This means a lot of functionality is identical (or at least similar). As the compact framework is a subset (cor...more >>

Not sure if this is a development problem or IIS setting?
Posted by Ted Corbell at 4/2/2004 2:09:18 PM
I have a site www.careermetasearch.com and we have a username and login section to post jobs and enter in resumes. My developers are really busy so I thought I would help out. We were having problems when people would enter in their username and password and it wouldn't let them in. I went i...more >>

HOWTO Convert Byte or int to Binary String in C#?
Posted by CSharpener at 4/2/2004 1:21:03 PM
This should be *so* easy! How do I convert a Byte or int to a binary string representation in C# In JavaScript, it goes like this for an int: javascript:(123).toString(2 or javascript:(0xFE).toString(2 No problem. So, how do I do the same in C#? What simple thing am I missing CS...more >>

Problem when rebuilding solution with several projects - not all references are updated...
Posted by Amos at 4/2/2004 1:06:49 PM
My Solution has three different projects: GUI, Api, Match. Project GUI includes a reference to Match.dll and Project Match includes a reference to Api.dll . Project Api doesn't include any references. Technically, GUI calls on classes/methods in Match, and Match calls on classes/methods in Api. ...more >>

XmlSerialization
Posted by george r smith at 4/2/2004 12:58:01 PM
I am following a msdn example as below. The serialization works but I can find no example to deserialize the item I write out. Will someone point me to some code. thanks private void SerializeObject(string fileName) { XmlSerializer xmlSerializer = new XmlSerializer(typeof(OrderedItem)); // ...more >>

Is C# 2.0 syntax of Properties closed?
Posted by Marcin_Grzêbski at 4/2/2004 12:43:10 PM
I red MSDN article of C# 2.0 this week... and i found very strange syntax for properties e.g.: public int MyIntValue { get { // ... } protected set { // ... } } .... Is this syntax defined and obligatory? Maybe it's not only my feeling that aboved syntax is no...more >>

Assembly not strongly named problem need help
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 4/2/2004 12:35:39 PM
I am trying to make it so that I can use: using owc10 in my csharp page. I created a set of .dlls with aximp.exe. I tried to drag them into c:\windir\assembly but windows xp pro. complains: The located assembly 'OWC10.dll' is not strongly named. What am I doing wrong? Thank you f...more >>

dynamically load managed dlls
Posted by pnp at 4/2/2004 12:31:00 PM
Hi, is there a way that i could dynamically load a managed dll (written in C# as well) and use the classes, interfaces and in general, use it, as I would use a C# code file? And how could I do that? Thanx in advance, Peter ...more >>

bugs
Posted by Ayende Rahien at 4/2/2004 12:18:40 PM
Recently I've encountered two highly annoying bugs in the framework, anyone who knows how to solve them would be most appriciated. 1) I'm trying to do Process.Start(url); and get a Win32Exception, after quite a bit of testing I found out that the reason for this is that I didn't have STAThr...more >>

GetManifestResourceStream
Posted by Mark Rae at 4/2/2004 12:17:34 PM
Hi, I'm writing a WinForms app in C# which requires a 3rd party executable called htmldoc.exe in order to create PDF documents from HTML files. To prevent the app from not functioning if the user accidentally deletes this file, I'm investigating the possibility of making it an Embedded Resourc...more >>

Hide cursor in RichTextBox
Posted by misop NO[at]SPAM gmx-dot-net.no-spam.invalid at 4/2/2004 12:15:16 PM
Hello, I want to hide cursor in textRichBox. Default the cursor blink if you click on richTextBox and I want to disable this feature. I need to make something like Adobe Reader, so textRichBox as readonly but the text can be selected, etc. Any idea? ----== Posted via Newsfeed.Com -...more >>

When the connection to the database will be destroyed?
Posted by Quentin Huo at 4/2/2004 11:43:24 AM
Hi, I want to create a class (named "classA") in which a connection to a database will be built. In another class (named "classB"), an object of the "classA" is created and data are retrieved from the connection of the object of the "classA". But in C#, we never need explicitly destroy an obje...more >>

OleDb & ASP.NET - Exception - Operation must use an updateable query
Posted by mp at 4/2/2004 10:51:00 AM
Hi, I have following problem: Operation must use an updateable query I have use OleDb, C# and ASP.NET and MS Access DB named pubs. Code: private void Button1_Click(object sender, System.EventArgs e) { @OleDbConnection thisConnection = new OleDbConnection( @"Provider=Microso...more >>

Magnifier
Posted by Anand Ganesh at 4/2/2004 10:45:33 AM
Hi All, I planning to write a Magnifier Application in Visual C#.NET. So when I move the window on some Image it should work as a lens like magnifying it. Any suggestions on what should I use. Do I have to use a picturebox control or is there any other control which will do this task for me?...more >>

Read text file from bottom up?
Posted by RobbieGotNeeds NO[at]SPAM netscape.net at 4/2/2004 10:37:15 AM
Anybody out there know of a way to read a text file starting from the bottom of the file then going backwards line by line? I am reading large log files in which the data I'm looking for is always near the bottom. I would like something like: StreamReader sr = new StreamReader("MyFile.txt...more >>

which event will be fired if Windows shutdown
Posted by Mullin Yu at 4/2/2004 10:22:32 AM
i want to a Window application, and which event will be fired if Windows shutdown without closing my Window application? i want to to capture the event and do something. thanks! regards, mullin ...more >>

Index error makes no sense
Posted by Dave Bailey at 4/2/2004 10:16:13 AM
When I run the following code public DataView CreateLocationDataSource() { string locationConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString() + ""; string locationSelect = "SelectDescription from Locations " + " where Location = " + "'" + locationLabel.Text.ToUpper() + "'"...more >>

C# case sensitivity and VS.
Posted by at 4/2/2004 9:49:52 AM
Is there an option in VS IDE which can be set for automatically fixing of C#'s case sensitivity typing errors? Ex. if I type getLength , I want VS to convert it into GetLength. Thanks ...more >>

Late Binding in C#
Posted by Scott English at 4/2/2004 9:01:48 AM
I am writing an C# program. I call a method on a COM object that returns Object. I don't know the type of the object (and reflection just says its a __ComObject), but I know there is supposed to be Controls property. How can I call the Controls property without knowing the type of the object? ...more >>

How to...
Posted by Jacek Jurkowski at 4/2/2004 8:18:31 AM
.... speed up Fill() method of SqlDataAdapter? It's very slow. I'm just executing 'sp_tables' procedure on SqlServer and the performance is poor ... ...more >>

Premature termination of C# code without error or exception
Posted by ian_p_sykes NO[at]SPAM yahoo.co.uk at 4/2/2004 7:10:19 AM
I have a C# program which terminates prematurely, with no error or exception being raised, the termination point varying with what diagnostic code is present. The termination point appears to be consistent between runs when the source code is not changed & recompiled between runs. The code is...more >>

Creating unknown objects at runtime
Posted by littlecharva at 4/2/2004 7:06:08 AM
Howdy I need to create an instance of a subclass of one of my classes, but I won't know the name of the subclass until runtime. How can I create an instance of a class when all I have is the class' name in a string Also, these subclasses will be uploaded to a website (by clients) and used as pa...more >>

Use properties or variables in class
Posted by John Baro at 4/2/2004 6:26:43 AM
I have a class as: public class a : { private float m_b; public float b { get { return m_b; } set { m_b = value; } public float compute() { //***************************************************** //This method ...more >>

converting images and open in fireworks
Posted by stecus at 4/2/2004 6:16:55 AM
Hello, I can convert the images now and view them in paint and in de preview window from microsoft windows xp, but I can't open the images(gif, jpeg, ...) in fireworks and photoshop. Does anybody know what I do wrong? Bitmap bmpHulp = new Bitmap(strFileToConvert); Bitmap mybmp = new Bitm...more >>

IDesign C# coding std 1.81, topic 3.21
Posted by TT (Tom Tempelaere) at 4/2/2004 5:36:03 AM
Hi Topic 3.21 in <http://www.idesign.net/idesign/download/IDesign%20CSharp%20Coding%20Standard.zip> claims the following "Release build should contain debug symbols I wonder why. Doesn't this make the executable larger, and slower Thanks Tom....more >>

C# coding std v1.81 / 38.a
Posted by TT (Tom Tempelaere) at 4/2/2004 3:21:03 AM
Hi I'm reading the C# coding standard and I don't understand the following item (38) 38. With delegates as class members a) Copy a delegate to a local variable before publishing to avoid concurrency race condition What is the reasoning here Thanks Tom...more >>

Encryption and Decryption in C#
Posted by Ravi at 4/2/2004 3:11:04 AM
H I have a requirement where i need to encrypt the data using 3DES in C# and pass on the data to the Application server where i need to decrypt the data. The application server is a Unix Box running the java components There is a type mismatch between the byte datatype of C# and java, as C# is on...more >>

Adding change history to classes
Posted by Lee at 4/2/2004 2:06:02 AM
I have come to C# via VB6, and our VB6 apps all had the following header in every class/module/form etc '************************************************************************** ' '* $History: clsDooHicky.cls ' '************************************************************************** ...more >>

When to use null
Posted by Steven Blair at 4/2/2004 1:41:36 AM
Hi, Here is a small example function. What I would like to know is when I should be using null: private bool MyTestFunc(string Message) { StreamWriter sw=null; string str=null; sw = new StreamWriter(FILE_PATH,true); //Do some stuff with the SW str = String....more >>

anyone did IDbConnection and IDbDataAdatper before?
Posted by pei_world at 4/2/2004 1:39:51 AM
I am create an generic class for Database access using these interfaces. I run my program with the idea of IDbConnection and IDbDataAdatper without any problem in single table. But since IDbDataAdatper's Fill method only takes DataSet as parameter, so I can define my table name in the dataset fo...more >>

Communication Between Two Forms-enable/disable button
Posted by Suni at 4/2/2004 12:29:14 AM
Hi everybody, But what I am trying to do is like, there are 2 forms, and if I click on the button in form1, it'll open up form2 and disable the button in form1. Then when I click on the button in form2, it will close form2, and then enable the button in form1. Could you please give me some hints...more >>

How to check if Drive is a network Drive
Posted by BuddyWork at 4/2/2004 12:27:11 AM
Hello, I need to know how I can check if the drives on my machine are network drives and local drives via the .Net framework. For example my PC has the following drives C: Local D: Local N: Network S: Network I want to get the information regarding 'Local' and 'Network'. Thanks,...more >>


DevelopmentNow Blog