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# > july 2005 > threads for monday july 11

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 31

Windows Forms App: Refreshing UI During Execution.
Posted by Frankie at 7/11/2005 11:39:23 PM
I'm writing a small C# Windows Forms application. As it does its processing, I set the .Text property of a Label - so I can know the status of the ongoing execution. Even though I set the property several times throughout the execution, I don't see any but the last one - and even then I see it...more >>


NullReferenceException in System.Windows.Forms.SafeNativeMethods.MessageBox
Posted by Greg Bacchus at 7/11/2005 10:43:15 PM
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the data that they were entering. Following is all exception information. Any thoughts much appreciat...more >>

Finding *unique* entries in a list
Posted by DrMarvin at 7/11/2005 10:33:01 PM
Hi. I'm fairly new to C#, and have had some luck getting it to do what I want to, but something I could do with bash shell scripting is escaping me. Bash has a tool called "uniq", and it can take a list and just take out unique entries. I am trying to create something that will take a lis...more >>

How to Open Word Document
Posted by Al at 7/11/2005 9:40:02 PM
Greetings, I'm trying to open a word document when a command button is clicked. = The code below loads Microsoft Word. I can see it in the task manager. = When I tried to copy the file, I received an access denied error. So, I = believe the document is also loaded. =20 But, the document i...more >>

For getting the Base Class Name
Posted by thomson at 7/11/2005 9:36:29 PM
Hi all, i do have a class class Page: CustomPage { } and i do have some other class class Page1:CustomPage1 { } I do have a seperate control where i pass (this.page) Here the case is regardless of the base class iam passing the this.page, But i need to know which clas...more >>

Best approach to maintain state in a winforms application
Posted by Dileep at 7/11/2005 8:50:01 PM
Hi, I have a requirement wherein I need to maintain the state of the data in the windows forms form application (C#). Basically the interface is a graphical rich interface where there are different shapes and on double click of each shape, a tab window pertaining to that shape will be open...more >>

Retrieve images from WebServer
Posted by Saya at 7/11/2005 8:42:20 PM
Hello, I'm new to WebServices and WinCE. My first projects involves an image retrieving Client app, running on a desktop with XP. The local server is IIS. The images resides on the server machine (jpg, bmp etc). The app works fine; I did it with FromStream from the System.Drawing.Image cla...more >>

Problem display ampersands (&) in a panel
Posted by Robert W. at 7/11/2005 8:12:11 PM
I'm allowing the user to enter a string of text which then gets displayed in a panel. It works great except that if they enter 1 ampersand then it does not display correctly. So I thought it was just a matter of using the String Replace function to fix the problem. I've tried: text.Repla...more >>



Downloading File
Posted by Steven at 7/11/2005 6:36:51 PM
Hello In my asp.net application,I will be showing some PDFs which the user can download. When the user clicks on any PDF I will be downloading the related file and I will be showing the related portion of the map in the image box. When the user clicks on any file, the ImageBox is getting th...more >>

question regarding showdialog() and show() and a child form
Posted by VMI at 7/11/2005 6:32:41 PM
I have an MDI child form and when I display it I'd like all the other open windows to remain unusable ( like the showdialog() ) but, at the same time, it should be a child window (like the Form.Show() ). Is this possible? Thanks. ...more >>

How to retrieve a property for a custom control.
Posted by Vern at 7/11/2005 5:40:02 PM
How can I loop through all the controls on the form, and for certain types of controls, access the custom properties. For example, I've created a custom textbox for name fields. It has a property called InvalidData that I turn on during the validating event if the data is not valid. Here'...more >>

Another C header conversion help.
Posted by Andre Azevedo at 7/11/2005 4:26:57 PM
Hi all, I'm translation some C headers to C# but it doesn't work. I need to fill the Call struct and pass it in encode function as *pdu parameter. The function will encode and fill the PrivateData struct in *priv parameter filling the data field but it return some wrong values. I've the origi...more >>

Sharing Data between apps
Posted by Joe Thompson at 7/11/2005 4:05:01 PM
I am using Visual C# to design a system as follows: There will be 3 computers all on the same network running identical programs at the same time. The computers can come up in any order. The programs (which I am writing) are supposed to share their data with one another a few times per se...more >>

Serialized object to XmlDocument
Posted by Pierre at 7/11/2005 3:53:37 PM
Hi, I would like to apply a Xsl Transformation on a serialized object. But I don't know where to start. Should I do a XmlDocument.load(ObjectToSerialize.ToString())? Or should I call the ObjectToSerialize.Serialize() before? In wich case I dun understand why I can't access the .Serialize(...more >>

COM Interop - Using a COM object from C#
Posted by Grant Schenck at 7/11/2005 3:07:02 PM
Hello, I'm pretty new to both COM and C#/.Net so assume I'm an idiot and you won't be far off the mark! I built an STA COM object using VC 6.0. I build a number of applications which use the object in C++ & VB 6.0. It all works well. I was able to write a test application using C# and u...more >>

creating class
Posted by TS at 7/11/2005 2:45:59 PM
When have a class, but need some info that is contained in other class, is it worth the overhead to instantiate both objects if you only need 2 properties, or let those other properties piggyback on the first class which makes it not so OO? Say you had a Home class & and HomeOwner class. If yo...more >>

Question on parameter for thread monitor?
Posted by brett at 7/11/2005 1:51:33 PM
What exactly is the parameter passed to a thread monitor used for? For example, I might do this: private Object Protect1 = new object(); Monitor.Enter(this.Protect1); try { myarray[j].Delete(); } finally { Monitor.Enter(this.Protect1); } The Protect1 parameter has nothing to do...more >>

Setting form control proerties at runtime
Posted by Homer Simpson at 7/11/2005 12:16:58 PM
I have a form named dataGatheringForm with a few controls on it (some generic labels and a button). How do I set the properties of the form (title, color, etc.) and it's controls (a label for example) at runtime? I've included the code I have so far and it does work. Specifically, in thi...more >>

Internal Compiler Error - URGENT
Posted by gkustas NO[at]SPAM hvc.rr.com at 7/11/2005 12:01:24 PM
I am getting the internal compiler errors (CS0586) in my csharp project - about 15-20 in various "stages" (i.e "COMPILE", "BIND"). I have been beating myself up for a day now on this one - I even rebuilt the whole project from scratch to see where it breaks, but that didn't help. When the projec...more >>

Set the background to a Hex number
Posted by Mike L at 7/11/2005 11:58:06 AM
How do I set the backcolor for a form to a Hex number? this.BackColor = #H00404; ...more >>

How to extract variable and its value from URL
Posted by Jozef Jarosciak at 7/11/2005 11:50:06 AM
I have url: www.site.com/index?a=1&b=2 www.site.com/index?a=1 and I need a regex or some solution to extract 'a' variable and its value. Any ideas? joe ...more >>

How do I open a console from a Winform App?
Posted by Frank Rizzo at 7/11/2005 10:45:30 AM
How do I open a console from a Winform App? I've tried Console.WriteLine but that doesn't work. Regards...more >>

StringCollection property loses value
Posted by Juan Francisco Figueroa Perez at 7/11/2005 9:59:50 AM
Hi all: I have a StringCollection property like this: public class FormExito : Form { ................ ................ private StringCollection FEditar; [Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design", System.Drawing.Design.UITypeEditor, System.Dra...more >>

The Server Connection Time out Error when builiding .Net applicaton
Posted by Zahir at 7/11/2005 9:56:01 AM
Hi : I am developing an applicaiton with ASP.NET & C#, with remote web server. It was working fine . But last two days when I bulid my application it throws an error: "Cannot Save the file bin/holimart.pdb to the web server. The server connection timed out." here holimart is my project name. ...more >>

Reading an ASCII string from a binaryreader
Posted by Claire at 7/11/2005 9:44:50 AM
Would someone give me a code example that reads an ASCII string from a binary reader and converts it to a c# string please. I find that the help files aren't very clear on how do do this eg "DATA" = 4 bytes 0x44, 0x41,0x54,0x41 ...more >>

Show Parent and Child off Main
Posted by Mike L at 7/11/2005 9:29:02 AM
I want to show the parent form (MDIContainer) and a child form on load of the application. frmMain is the parent and frmDataEntry is the child. static void Main() { Application.Run(new frmMain()); } I tried adding...more >>

De-compress a file from UNIX
Posted by Marc Jennings at 7/11/2005 9:26:53 AM
Hi there, I have a problem in that I need to de-compress a file that was compressed using the UNIX compress command. The resulting filename is helloworld.xml.Z I have looked at SharpZipLib, but haven't been able to make it work on this file (perhaps this format is not supported?) WinZi...more >>

Threading question
Posted by John at 7/11/2005 9:05:03 AM
Hi I have some difficulties understanding some issues with multithreading: *What is the meaning of: "implement a method to run each update call in its own thread" *If i have a component that does an AsynchronousCallBack that will pass data to the client, which thread will process the data, ...more >>

why define this kind of variable?
Posted by jerry.xuddd at 7/11/2005 8:06:05 AM
Hello, I am quite new to c#, so this question may be quite stupid. I saw some variables are defined as this: ArrayList _Text= new ArrayList(); why _ is needed? _ -- hello, please help...more >>

OpenFileDialog does not refresh after selection
Posted by Michael Grosse at 7/11/2005 7:41:05 AM
I've conquered a very strange behaviour that I cannot account for logically and therefore seek help in this Discussion Group. I'm currently developing 2 applications and intend to use the standard open File Dialog with the code snippet found below. The code snippet is exactly the same in both...more >>

LPR via C#?
Posted by iamspo at 7/11/2005 7:01:08 AM
I am working on an application which sends a print file to a print queue on a sun machine. Currently this is run vit DTS and a batch file calls the LPR command. I am changing this app to a .net console app in C#. I was wondering if it is possible to do call the LPR command w/o shelling ou...more >>

Calling Corba from c#
Posted by daniel.westerberg NO[at]SPAM ipnc.se at 7/11/2005 6:05:00 AM
Hi all I have to find a way to access som corba APIs on a remote server (Apachee) from a webservice running on a win2k3 server. Anyone have a idea as where its a good idea to start looking? so far all i manage to find is 3rd part vendors selling finished solutions for this, but that is not an...more >>

DataGridViewMaskedTextBoxColumn
Posted by Brian Keating at 7/11/2005 3:40:01 AM
hi again, has anyone an idea on how i can get my datagrid view to only allow entry of numeric values. ok i can validate when leaving but what i really want to do is not allow invalid characters to be typed to begin with. Thanks for any help Brian ...more >>

Timer and Random
Posted by VenuGopal at 7/11/2005 12:34:01 AM
hi, i have a WELCOME screen. here i have a PICTURE BOX. there are 8 pictures that go into this Picture Box. At every 5 seconds i want to RANDOMLY load a new Picture. this is what i am using but it is not loading the new picture. Can any one help? public void Presentation_Load(object s...more >>

EMAIL on Win98
Posted by VenuGopal at 7/11/2005 12:16:03 AM
Hi, My client uses Win 98. The email part does not work in Win98. I read the documentation and i find that System.Web is not supported in Win98. Now How do i send email on a win 98 platform. Thnks and this is very urgent Venugopal...more >>

How can i create a form which cannot get Active / Focus ?
Posted by dulo at 7/11/2005 12:00:00 AM
How can i create a form which cannot get Active / Focus ? thx Dulo...more >>

Tcp socket connection broken
Posted by Droopy at 7/11/2005 12:00:00 AM
Hi, I developed an application in C# (VS 2003) using Tcp sockets. What is the more reliable way to know when a Tcp connection is broken. My code looks like this : while (_mustRun) { if (_socket.Poll (PollTimeout, SelectMode.SelectRead)) { if (_socket.Available == 0) ...more >>

Can 'is' followed by cast by optimized away
Posted by Thorsten Ottosen at 7/11/2005 12:00:00 AM
Hi, Can the following ugly type-switching code by optimized by the compiler/jitter?: object o = ...; if( o is Foo ) return (Foo)o; Arguably, the cast is guranteed to succeed, but do the compiler take advantage of that? If yes, would it be possible to each that conclusion by look...more >>

How to extract an OLE Object (Bitmap Image) from JET?
Posted by deko at 7/11/2005 12:00:00 AM
I have a Windows Forms app that connects to an Access database. One of the tables in the database contains a bunch of pictures stored in OLE Object fields. What I need to do is extract those pictures to the file system so the user can do stuff with the image. For example, the user would s...more >>

ConfigurationManager in Beta2
Posted by Michael Debus at 7/11/2005 12:00:00 AM
Hi, I try to read a value from app.config file using this code: string s=System.Configuration.ConfigurationManager.AppSettings["server"].ToString(); I got the compiler error: Error 1 The type or namespace name 'ConfigurationManager' does not exist in the namespace 'System.Configurati...more >>

Re: Creting a table as in MS-WORD
Posted by Pramod at 7/11/2005 12:00:00 AM
"Pramod" <pramod.yadav@solversa.com> wrote in message news:... > hi all, > I m working in C# .Net and want to create a table > on RichTextBox which should look similar to the one in > MS-WORD. > The column width should resize when text is entered into. > > Any code or Hint will be appriciat...more >>

How to call .bat file from .NET?
Posted by Bright at 7/11/2005 12:00:00 AM
Hi All, I want to execute a .bat file and get the output from console using C# in a window application, the .bat file includes the java classpath and other environment setting, can anyone know how I can do that? Thanks in advance, Bright ...more >>


DevelopmentNow Blog