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# > august 2004 > threads for monday august 23

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

VERY STRANGE...
Posted by Tamir Khason at 8/23/2004 11:42:42 PM
It's late, maybe because of it...BUT 5 classes. I call to method of class A from class B (Both initialized), BUT it does not executed. While traveling with "Step Into" in debug mode it just DOES NOT ENTER THE METHOD !!! Why?? Bug? TNX -- Tamir Khason You want dot.NET? Just ask...more >>

Unable to connect to the oracle database through .net application.
Posted by kollirameshnaidu NO[at]SPAM rediffmail.com at 8/23/2004 9:33:25 PM
string conString = "user id=perksmgr; password=rgmskrep; data source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PORT = 1551)) ) (CONNECT_DATA = (SERVICE_NAME = REKS816) )) " ; con = new OracleConnection(conString); Plese send me compleate details, how to ...more >>

How to hide the form window when minimized?
Posted by alex at 8/23/2004 9:15:41 PM
How to hide the form window when it's minimized? Please help. ...more >>

Selecting current row in DataGrid after sorting
Posted by aaa NO[at]SPAM bbb.hr at 8/23/2004 8:43:03 PM
Hi I am trying to create a read-only DataGrid that would always have current row selected. Currently, I am using method: public void SelectDataGridRow(DataGrid dg) { if (dg.CurrentRowIndex > -1) { dg.Select(dg.CurrentRowIndex); } } to select current row. I call this method from...more >>

How to view a deskop remotely?
Posted by Yoshi at 8/23/2004 8:37:03 PM
I am interested in learning how to view a remote computer's desktop screen realtime. Has anyone come across any c# code that attempts to do this? Thank you, David ...more >>

COnverion of CommonLisp To C# Code
Posted by Shiju Poyilil at 8/23/2004 8:25:05 PM
Hello, I am urgently looking for a tool to convert the existing CommonLisp code to C3. can any one tell me if any such tool they are aware of and the link for it. your help would be highly appreciated. Rgds Shiju ...more >>

Syntax violation error-C#-Sybase-PasswordEncryption
Posted by Karunakararao at 8/23/2004 8:18:18 PM
Hi All I'm using sybase database, I have a binary datatype column in a table, when I'm trying to store the char(128) value into that, I'm getting syntax violation error. If I take "w" as the password its ascii value is 119, when you add +9 to that, it will be 128. How to insert this val...more >>

Property Grid Question.
Posted by pnp at 8/23/2004 5:25:15 PM
When I use a custom class object as the selected object of a property gird control is there a way to set custom names fro the grouped sections shown in it? Thanks, Peter ...more >>



Open Source Word Document Parser
Posted by Dennis Myrén at 8/23/2004 5:22:57 PM
Hi. Are there any open source libraries available for parsing Microsoft Word Documents? Especially written in C# able to parse Word2003 documents. I doubt there is. Are there any specification on the format available from Microsoft? I have searched. No success. Thank you. Dennis ...more >>

Is there an API for Messenger?
Posted by jayderk at 8/23/2004 5:19:23 PM
Hello all, I was wondering if there is a developer SDK/API for Microsoft Messenger? regards, Jay ...more >>

Image.FromFile fails...
Posted by pnp at 8/23/2004 5:19:07 PM
Why does Image.FromFile() fails (OutOfMemoryException) when I try to load an icon file from the filesystem, that contains 32bit and 24bit icons, but works fine for Icon files with only 32bit icons (and 8bit icons)? Does the fact that EnableVisualStyles() is being used matter? Thanks in adva...more >>

Events and multithreading
Posted by Zürcher See at 8/23/2004 5:15:33 PM
The event is thread safe? If a class call a delegate for an event, is the class thread to execute the code or is the thread that has itself registered that execute the code? In few words if a form contains an object with a working thread, and the working thread want to update something on the fo...more >>

Cookies and Password TextBoxes
Posted by Chris Scragg at 8/23/2004 5:04:04 PM
Hi all, In my prog, I give users the option of saving their login information (cookie). When the user returns to the site, their username is populated correctly into the textbox for username, however, their is no masking on the password textbox, yet the user still authenticates. How do I e...more >>

Passing array of int to c DLL
Posted by albanialbert NO[at]SPAM yahoo.de at 8/23/2004 4:48:05 PM
Hello I have a problem that I cannot seem to solve I have a c funtion in a DLL that basically looks like func_c (some_struct* s) {...} some_struct is defined like so: struct some_struct { int count_bytes; // number of // elements in array_int int* array_...more >>

Datagrids -> Default Values???
Posted by Darryn Ross at 8/23/2004 4:24:55 PM
Hi, I am adding records into my datagrid and everytime i add a new record the default values are all (null). How do i get away from this and set some defaults of my own. I have a custom table and column style setup and i have tried assigning the fields to their default value... like so but not...more >>

Asynchronous Socket Client always connected
Posted by news.microsoft.com at 8/23/2004 4:21:14 PM
Hi I write dll library which one of it component will be Net socket communication. Communication is working very good, but i've got problem when client is connecting. When server is started, client is connecting without problems; but when servre is down and i start client, client connect to s...more >>

what's the difference
Posted by z. f. at 8/23/2004 4:18:04 PM
what's the difference between using the VB.NET function IIF or the c# operator ? VB.NET: a = iif ( b=c, d, e) C#: a= (b==c)?d:e TIA, z. ...more >>

Delegate limitations?
Posted by timasmith NO[at]SPAM hotmail.com at 8/23/2004 4:03:49 PM
Hi, If I have 5-10 methods with different signatures, different content except for the first 6 and last lines, can I use delegates to share the 12 lines of code. e.g. public void method1(string p1, int p2) { line1(); ... line6(); // lines specific to method1...more >>

How do I test custom Pipeline component in BTS 2004?
Posted by Aaron at 8/23/2004 3:49:18 PM
I am kind of new the BizTalk 2004, can someone tell me how I can test my custom (decode) pipeline component in BTS 2004? ...more >>

Some what off subject question
Posted by Frank Wisniewski at 8/23/2004 3:25:08 PM
Hi All, This may be off subject but I have a feeling that some of you may be able to give me input or point me in the right direction at least. I have a number of people that want me to build them web sites for them on the side, what would be a fair price to charge them. Does anybody have ...more >>

Howto check if a COM is available?
Posted by msnews.microsoft.com at 8/23/2004 3:19:58 PM
Hi, My C# application used a COM. When I deploy my application, how to detect if the target machine has installed the COM? Thanks, Max ...more >>

How can I set a byte to hold the binary value 10?
Posted by Max Adams at 8/23/2004 2:21:54 PM
How can I set a byte to hold the binary value 10? Doing this doesn't work, I want to store the code for 10 in 1 byte of memory. byte encodedBytes = '10'; Doesn't compile "Too many characters in character literal" Any thoughts? ...more >>

Properties - multiple execution of get accessor code ?
Posted by net NO[at]SPAM aboeder.com at 8/23/2004 1:08:44 PM
In one of my test classes there is a code fragment like this: protected System.Collections.Hashtable pData; public System.Collections.Hashtable PData { get { //TODO: read PData from DB System.Console.WriteLine("GET Hashtable"); return pData; } ...more >>

Writing From A dataset to a comma delimited text file
Posted by John Tyce at 8/23/2004 1:05:24 PM
Does any one know how to write the data from a dataset table to a text = file? I have found a clumsy way to do it using WriteXml, XmlReader, = XmlNodeReader, etc, but this seems awful clumsy. Is there a better way = to do this? --=20 JOHN TYCE...more >>

This works, but should it?
Posted by Greg Merideth at 8/23/2004 12:59:31 PM
I was looking for a way to pass, by reference, a class to a webmethod to allow the web method to alter the values of some (now) 50 variables of the class. Now, to get this to work, I have to put a copy of the class in the webmethod itself. When I create the method I do the old: public voi...more >>

Color Combobox
Posted by Anina at 8/23/2004 12:53:06 PM
When setting a color property of a control (like the BackColor) in the property window of C#, you get a popup containing three tabs labeled Custom, Web and System, which is used to select the color. Is there a way that I can use this same feature on a control that I display the user of the app...more >>

multiple languages in an application.
Posted by MA at 8/23/2004 12:46:47 PM
Hi all! I´m developing a new web application and I want the user to be able to select language. I´m totally new to this thing, so I just wonder if you know any good page or have som own ideas? /Marre ...more >>

Concurrency issue - Best Practice wanted
Posted by Robert Schuldenfrei at 8/23/2004 12:44:00 PM
Hi NG, I am looking for an opinion here. I am new to C# and SQL, being an old COBOL hand. I have started into a conversion of an old COBOL ERP system. I have a number of functions working now and it is time to decide how best to deal with the issues of concurrency. The old COBOL programs u...more >>

Input null into a DateTime property.
Posted by Fabiano at 8/23/2004 12:00:07 PM
Please, i have an webform, that work with a object that receives a DateTime value. I don't want to save date into it. How can i verify if it's value is null or not? Tks Fabiano ...more >>

string delimiter
Posted by Hetal Shah at 8/23/2004 11:23:37 AM
It is a C# code. I have a string like, one||two||three I want to split it into one, two and three. string str = "one||two||three"; string[] myStrs = str.Split("||"); This code does not work. How can I do it? Yhanks Hetal ...more >>

Windows Service Pack 2 issue
Posted by jayderk at 8/23/2004 11:10:55 AM
a customer was trying to install some of our software after they installed the windows XP service pack 2 and he is getting a message that says something about it not being compatable with windows XP? we have our software on thousands of XP boxes and have not had a problem up to this point. Any...more >>

RichTextBox.GetLineFromCharIndex Discrepancy
Posted by Arlyn_L at 8/23/2004 10:39:01 AM
Can someone please explain why I get a different result when using the GetLineFromCharIndex method on the last char in the Text property and the Lines.Length property? MainForm_gedcomTextBox is a RichTextBox. For example this code: private void End_menuItem_Click(object sender, System.E...more >>

put_FullScreenMode and GetMaxIdealImageSize ARE WRONG
Posted by Tamir Khason at 8/23/2004 10:25:58 AM
Please assist: I have DirectStream window and I want it in fullscreen mode. So what's the problem? myWindow.put_FullScreenMode(OATRUE); // That's it...BUT The windows going to be just like GetMaxIdealImageSize (it's about 384X282 or something like this) <- and I see just small sqare at the le...more >>

declare delegate inside routine: Possible?
Posted by Mark at 8/23/2004 10:24:22 AM
Hi, is it possible to declare a delegate inside a routine? E.g private void MySub() { delegate int oAddMe(int n1, int n2); } Or can delegates only be declared with a global scope inside the class....... public class MyClass { delegate int oAddMe(int n1, int n2); private void My...more >>

C# COM call with Optional Parameter
Posted by Binder at 8/23/2004 9:48:20 AM
I am trying to call an ActiveX DLL written in VB6 from my C# app. The function call has a single parameter that is declared optional. How do I call it from C#? The VB function is: Public Function GetTasks(Optional ByVal lngUserCode As Long) As ADODB.Recordset Thanks, Rg ...more >>

How to construct a surface in VC# with the help of DirectX?
Posted by Zoury at 8/23/2004 8:51:21 AM
look up your timezome settings... you have future posted. ...more >>

Image centering..
Posted by Zoury at 8/23/2004 8:47:40 AM
Hi there! :O) I'm trying to stick a 16x16 pixels image on a 24x24 pixels button. The image is never centered properly no matter what alignment i sets. there is always a little margin or something.. any thoughts ? I've tried to override the OnPaint() events without any success (probably due to ...more >>

Help - parsing large text files
Posted by arunprakashb NO[at]SPAM yahoo.com at 8/23/2004 8:02:35 AM
Hi, I have a web application that looks for a particular string in a set of huge files( the files grow into MBs - max i have seen is 30 MB ). ( search using reg expressions ). the string can occur multiple times in a file. whenver the string is found in a line, the whole line must be printed ...more >>

COM component in web applications
Posted by Amitava Sengupta at 8/23/2004 3:51:57 AM
Is there any issue in using COM component in web applications. The problem I'm facing are 1. Though the dll is using non-static member variables which are being instantiated on each call, Whenever I'm calling the (.aspx) pages using the dll more than once simultaneously, both results in ga...more >>

C# Compiler Bug?
Posted by dlf at 8/23/2004 1:13:01 AM
In this case, I am trying to perfom a math function on a byte value with another byte value returned by a function. There appears to be no way to convince the compiler to do this even with explicit casts. Works fine if the values being added are constants, but when one is a function it doesn't...more >>

C# Client/Server Application
Posted by Salina at 8/23/2004 12:40:27 AM
I am new in C#.Net and going to write a window client/server application. my database is mysql and the data will update every min. what i need to do is push the up-to-date data to clients from server directly. Clients just need to read the data, not neccessary for modification. Can anyone ...more >>

Timer Control
Posted by source at 8/23/2004 12:14:38 AM
I have a timer control in a NT service project. I set the the Enable property of the timer to TRUE in the Constructor of my class. The tick event never gets fired when I debug my NT service (I do attach the process to debug it) Am I doing anything wrong ? NT service project OnStart event ...more >>


DevelopmentNow Blog