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# > november 2004 > threads for tuesday november 9

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

Change Textbox from Outside Class
Posted by Kevin Bowser at 11/9/2004 9:34:27 PM
I am having trouble updating the text in a C# form textbox from outside the class. Calling function ChangeDisplay from inside the class ControlPanel works fine, but when I call it from the main program, it doesn't update. I have declared the variable in another class called global vars, which ...more >>


Newbie C# Needs help learning
Posted by finneusj at 11/9/2004 7:59:02 PM
Are there any good reccomendations for places on the web with free tutorials and information on how to learn C#?...more >>

Serialization and derived classes
Posted by StuartM at 11/9/2004 5:51:14 PM
Can anybody point me towards a sample of serializing/deserializing specific classes that are derived from a generic class? Is it necessary to use a switch statement or can it be done in a more extensible way?...more >>

web service session doesn't work
Posted by Tom at 11/9/2004 4:58:49 PM
hello question 1: I have the following code below but the funny thing is that Session only works when I invoke it from the server side.. When I call this session from client (winform app) I don't get an inrementation instead only 0... I don't know why.. question 2: for somereason I do...more >>

ComponentCategroy .NET equivalent?
Posted by Derrick at 11/9/2004 4:39:54 PM
Hi All - So I now have my C# app out in user land, thanks to the many replies on this thread! Anyway, I'd like to come up with a "Plugin" type of mechanism for it, whereby the app looks in it's directory for any dlls it doesn't know about (know how to do that part) and then (the part I don't ...more >>

Comparing 2 arrays, what's the fastest way ?
Posted by Mike at 11/9/2004 4:29:09 PM
Hi! I am trying to determine if the DataRow of one dataset contains the same data as the DataRow of another. I figured I can extract ItemArray's from each dataset and then compare them. 1) Is this the fastest way? I will have to loop through thousands of rows for what I am doing. 2) How ...more >>

[IMPORTANT] obfuscators
Posted by Yama at 11/9/2004 4:15:06 PM
Gentlemen, I realized that code security can easily be corrupted by cheap decompilers. What does Microsoft suggest using to disable or at the least make it impossible for the intruder to reverse engineer DLLs or EXEs. Thanks, Yama Kamyar...more >>

MenuItem Font
Posted by Wal Turner at 11/9/2004 4:11:41 PM
My general question is: How does one determine the font of a System.Windows.Form.MenuItem? I have a custom MenuItem where I have set OwnerDraw = true, and hence the implementations of DrawItem and MeasureItem. With a menuitem, there is nothing like menuItem.Font to get the current Font. Th...more >>



is it possible to develop once for two platforms: window and pocket pc
Posted by zjz at 11/9/2004 3:07:50 PM
Just wondering whether we can only develop once and compile it for the different platforms: windows and pocket pc. Is it possible? welcome any suggestion. Thanks in advance. ...more >>

Japanese localisation
Posted by Thorben at 11/9/2004 2:57:26 PM
Hello group, does anybody knows a way to add Japanese language to a western language based application? Our software is switch-able between English and France. Now I got the job to add Japanese to the application. But when I put Japanese strings from MS Word per drag and drop into the te...more >>

string.Length < 1 : Is this right?
Posted by Al Sav at 11/9/2004 2:55:03 PM
Hi, Which one of these below two is a better way to find out if the string is of zero length? string.Length == 0 or string.Length < 0 Alwin S....more >>

C# -> Read lines from XML file
Posted by Hareth at 11/9/2004 2:53:09 PM
How can I read lines from an XML file. & add them to a counter. If possible, words between <page> <\page> is considered as +1 to my counter. if it isnt possible, I would atlest like to read until the word "explorer" then add it (+1) to my counter, then read next word, and so on. Example...more >>

Play .Wav Sound File
Posted by THE BAT at 11/9/2004 2:44:13 PM
I want to Play a sound file that of .wav . But without using of Windows Media Player Lib. ...more >>

Inconsistant null parameter handling in Reflection
Posted by Stefan Hong at 11/9/2004 2:09:22 PM
Hi, It seems that the way reflection resolves methods is not quite the same as default CLR. For example this simple class: class Test { public void Hello(string name) { Console.WriteLine("Hello(string)"); } public void Hello(object obj) { Console.WriteLine("He...more >>

ArrayList to Array
Posted by Mathew Yeates at 11/9/2004 2:04:18 PM
I'm baffled by something. I want to turn an ArrayList (which stores strings) into an array of strings. I know I can use the ToArray method and pass in a type. But I can't get the code right. Any help here? Am I supposed to pass in a Type? ArrayList myarr; myarr.Add("foo"); myarr.Add("goo"...more >>

Why BackColor of MDI child cannot be Color.Transparent?
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 11/9/2004 1:56:39 PM
I am trying to build a MDI windows form, with child including some stuff, but it seems to be impossible to have BackColor property set to Color.Transparent. Is it existing any solution to have the background of a child window of MDI transparent? Thanks François *-----------------------...more >>

Is it possible to have a sharp window form border?
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 11/9/2004 1:56:35 PM
Hi I use these two properties to have nothing except the content of the window form on the display : // Removing the maximize, minimize and close in the titlebar frmTabrows.ControlBox = false; // Remove the 3d border and the titlebar frmTabrows.FormBorderStyle = System.Windows.Forms.FormBo...more >>

vb to C#
Posted by Tino [Securitas.fr] at 11/9/2004 1:34:02 PM
I have to loard an XML document and modify it cotent in C# here is my source code. but it writen in VB.NET because i had some PB when i tried to get to à specific TAG of my XML document. i dont know excactly how to write this instructions in C# : doc.Item("Configuration").Item("Extensions"...more >>

C# software
Posted by Trying2Learn at 11/9/2004 1:10:04 PM
Hello I need to ask something? Do I need Visual Studio .NET if I want to work with C# or is there any free software I can use. Thanks....more >>

Getting a handle on filtered rows in DataGrid
Posted by MrNobody at 11/9/2004 1:00:02 PM
I have a DataGrid sourced by a DataView of a DataTable, and I would like to output the results of any RowFilter operations to a text file. I thought this would be easy but I cannot find where to obtain all the filtered rows? If I reference the tables rows I get every single record, and the Dat...more >>

Totalling DataGrid rows
Posted by MrNobody at 11/9/2004 12:38:01 PM
I have a DataGrid bound to a DataTable and I'd like to have one row of totals. I was hoping that I can have a row on the bottom of the DataGrid's results which will always be visible (no matter how you scroll and no matter how you filter the table) which adds up values in particular columns. ...more >>

SQL Help???
Posted by Darryn Ross at 11/9/2004 12:25:49 PM
Hi, i am trying to run a simple SQL statement from my C# app to return a number of records, however when i do my record count is always zero, but i know there are transactions in there... My code is as follows... "SELECT * FROM " + Table + " WHERE Date >=" + "#" + DateFrom.ToShortDateString...more >>

Passing a "custom object" to a webservice?
Posted by hellrazor at 11/9/2004 11:37:26 AM
Hi there, I'm very new to dot net programming and webservices programming. I've managed to create simple webservices so far. Here's my problem: -I've been given a project which needs to have a proprietary algorithm split into a webservice. -The program consuming the webservice needs ...more >>

Folder properties
Posted by mc at 11/9/2004 11:29:29 AM
Hi, How do I access folder properties? For example, in XP, when I do a right-click->properties on any folder, it will show me Size, Size on Disk, Location etc How do I access these information? Thanks ...more >>

newbie question about methods vs properties
Posted by Flip at 11/9/2004 11:12:11 AM
I'm coming from java where everything is supposed to be a method, so please go easy on a newbie. I'm learning C#/.NET and am a bit confused as to what makes up a property and what makes up a method. Does anyone have any ideas on a methodology for this? Like I say I'm used to java where you h...more >>

startup SQL server
Posted by Dean L. Howen at 11/9/2004 10:54:23 AM
Hi friends! Could we add some codes to start up sql server instead of manual? Thanks ...more >>

Threading pdf?!
Posted by Nedeljko Tadic at 11/9/2004 10:42:37 AM
I need free e-book about threading in c#... Does anyone has or knows where I can find it??? ...more >>

Processing byte[] returned from C DLL
Posted by Maury Markowitz at 11/9/2004 10:36:02 AM
Thanks to a tremendous amount of patient help from Rob over in the interop group I have managed to successfully wrap a vendor-provided DLL and call it successfully from managed C# code. Now I'd like to process the data returned, a void* buffer which I have "cast" into a byte[] on the C# side. ...more >>

launch default email client
Posted by Dino L. at 11/9/2004 10:29:50 AM
Hi, how can I launch default mail client from my application, after users click? It should give subject and my email to outlook (or some other client)....more >>

byte to binary string
Posted by joethis at 11/9/2004 10:03:01 AM
is there a way to convert a byte to a bit string? For Instance if the value of the byte is 104; then I would like to convert that to a bit string of '1101000'?...more >>

network connections to .net application
Posted by Dennis C. Drumm at 11/9/2004 9:59:19 AM
Is it possible to monitor and limit the number of concurrent users that can run a .net application from a server? Thanks, Dennis ...more >>

Need help: fill dataset
Posted by Tee at 11/9/2004 9:47:30 AM
Hi, I need some help about filling dataset, I am not sure how to describe it, so I give the example here. da = new OleDbDataAdapter("SELECT * FROM Path WHERE PathID=1", cnn); da.Fill(DataSet, "Path"); this is the code of current DataAdapter filling up a DataSet. What I wanted to ...more >>

How do I call a Servlet from a C# Web Service?
Posted by michael NO[at]SPAM marrconsulting.com at 11/9/2004 9:36:12 AM
Hello, Has anyone figured out how to call a Servlet from a C# Web Service? Thanks in advance, Michael......more >>

byte[] Test2=&Test1[66];
Posted by Olaf Baeyens at 11/9/2004 9:33:35 AM
I have another problem, maybe it is simple to fix. I have this: byte[] Test=new byte[100]; But I now want to have a second pointer Test2 to point to a location inside this Test. But with no copying. Something like this. byte[] Test2=&Test[66]; The intentions is that Test2[0]...more >>

Iterating through a SortedList
Posted by rgarf at 11/9/2004 8:50:08 AM
I want to be able to change the values in a SortedList, I tried doing a foreach but it doesn't let me modify the DictionaryEntry. So How do I go about changing the values of a SortedList as I loop through it? Thanks...more >>

Best structure to use for interoperability
Posted by GeRmIc at 11/9/2004 8:44:08 AM
Hi, I have to pass an array containing a structure from a C# library to a C DLL. Which is the best way to do it? Hashtable or ArrayList or anyother better way. Also, how do i marshal and then retreive the data at the C end. Thanks...more >>

Special character in the messagebox
Posted by kannan at 11/9/2004 8:23:05 AM
hi, It might be the simple question. I am concatinating two string and displaying in messagebox. Ex: MessageBox.show(string.Concat("The following validation(s) failed:\n", arg.DisplayMessage)) But I have overloaded my messageBox for my project style. When the message is displayed it...more >>

Easy ? about solution explorer?
Posted by Bruce D at 11/9/2004 8:10:23 AM
Being new to .NET, prompts this question: Why is it that when I open one of my .aspx pages (it only happens with one of them), it always gets marked with the * to save changes...right after I open the file? Is there something on the page that I haven't done yet? I find it odd...any insight is ...more >>

Closing a running executable
Posted by mg at 11/9/2004 7:31:06 AM
System.Diagnostics.Process.Start("c:\\windows\\system32\\notepad.exe","c:\\x.txt"); launches x.txt in notepad What code will close this instance of notepad? ...more >>

Process.Start( ) syntax
Posted by mg at 11/9/2004 7:11:05 AM
The Process.Start( ) method below works correctly. System.Diagnostics.Process.Start("c:\\program files\\adobe\\acrobat 6.0\\reader\\acrord32.exe",@"/t ""c:\exportfiles\d.pdf"" ""HP LaserJet 3300 Series PCL 6"" ""HP LaserJet 3300 Series PCL 6"" ""DOT4_001"""); I need to substitute a varia...more >>

global connections
Posted by Mike P at 11/9/2004 7:00:32 AM
I am converting a VB6 app to C# and the VB6 app has 1 connection and 3 recordsets, all global and open all the time so that all the required procedures can use them. Using C#, would it be best to have a global connection and datareaders etc, or is it better to put all the db stuff into a sepera...more >>

Convert byte array to string?
Posted by Dave at 11/9/2004 6:24:04 AM
Hi, I'm trying to convert a byte array to string --This works... System.BitConverter.ToString(bytes) "EB-55-79-20-18-B2-76-4D-85-0A-93-6B-97-33-31-B8" --This doesn't, but returns "System.Byte[]". How do I do this with System.Convert.ToString()??? System.Convert.ToString(bytes) "Sys...more >>

Static class method return non-static object?
Posted by Paschalis Pagonidis at 11/9/2004 4:48:05 AM
Hi, I have a class which all its attributes, properties and methods are static. However, I want a method to return an object that should be non-static. Is that possible? thx, Pascal...more >>

How to pool another thread out of a wait state???
Posted by Sharon at 11/9/2004 3:47:01 AM
I wish to control other threads, that are warped with my own classes, so when they are in any wait state (lock(), Monitor.Wait(), ReadWriteLock.Wait(), Mutex.Wait(), AutoResetEvent.Wait(), ManualResetEvent.Wait()) I’ll be able to take them out of the wait state even if the object which they ...more >>

Basic C# Question
Posted by Barry Young at 11/9/2004 3:26:43 AM
I have the following .cs file: Hope you can read the code In the Main() I want to pass the PathName and FileName and have the FileStream object do a read, and return it into a string. I can get intellisense to recognize Source.ReadSourceFile, but I haven't figured out away to pass the par...more >>

rtf hyperlink
Posted by 2G at 11/9/2004 3:22:40 AM
Hi I finaly managed to insert text and images with rtf in a richtextbox but how are links done? I would like to create a link that displays Accept like in msn so the DetectUrls isn't really an option :). I saw in a rtf made in word that they use \field and such so I tried to do some stuff wi...more >>

interface vs class
Posted by Jimski at 11/9/2004 1:54:58 AM
Hi, I am creating a model to navigate a tree of symbols and links. My main purpose of this post is to ascertain the quickest way of navigating the tree. There are two ways that I am considering, see below. I am unsure why you would implement interfaces in this design? Is it a performance issu...more >>

C# System.IO.File.Move () with "Access denied" error
Posted by 50230065 NO[at]SPAM alumni.cityu.edu.hk at 11/9/2004 1:01:06 AM
To all, I've tried to use System.IO.File.Move (srcFile, desFile); but there is an exception similar to this : The process can't access desFile because it's being used by another process I think that it's strange since I've already closed the FileStreams associated to all available files al...more >>

OT: WS Address Behind Firewall
Posted by rawCoder at 11/9/2004 12:16:03 AM
ODD TOPIC Hi, Pardon me for this post, sent here for larger active users. Will try to keep the question simple. What WS-Address (mechanism) is used to specify a client that needs a WS Server to send data to the client ( via "Reply To" or whatever method ) BUT the client is behind a fir...more >>


DevelopmentNow Blog