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# > december 2004 > threads for monday december 20

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

How do you serialize object references?
Posted by films NO[at]SPAM onarom.com at 12/20/2004 10:01:33 PM
I understand the concept. Serialization of a class will add all the sub-objects of the class to the stream if there are also serializible. So say I have: [Serialize] class Author { public string Name = string.empty; void Author(author) { Name = author; } } [Serialize] class Boo...more >>

global variable?
Posted by Le, Thanh-Nhan at 12/20/2004 9:52:23 PM
Hi, How can I define a global variable in .NET? I mean, everywhere in the same project can access this variable. Thanks Nhan ...more >>

accessing webservices from winforms
Posted by news.microsoft.com at 12/20/2004 9:14:34 PM
Hi just would like to know how to access a webservice from winforms. i know i probably have to use WebRequest etc, but could someone supply me with a sample or a location for a sample? Thanks Jason ...more >>

Beginner: Howto Declare variable using string
Posted by Jeff Higgins at 12/20/2004 8:55:01 PM
I would like to use a string variable to declare a variable. How would I accomplish this goal? string nameMainMenu = "mnuMain"; string nameMenuItem = "mnuFile"; MainMenu {nameMainMenu} = new MainMenu(); this.Menu = {nameMainMenu}; MenuItem {nameMenuItem} = new MenuItem("&File"); {nameMain...more >>

1 GB text file
Posted by Patrick Sannes at 12/20/2004 8:37:43 PM
Hello, I want to read an 1GB text file in parts of 100 lines. When I use just a simple stram/filereader, I think it reads the whole file, wich results in a hanging machine. Is there a way to do it in blocks? For debugging this is a lot easyer. Patrick ...more >>

dll from VB for C#
Posted by mamin at 12/20/2004 8:18:58 PM
Hi How can I use VB libraries in C# code? I have library.dll file and after adding it to references in C# i can see only 4 methods, while after adding it to VB's references i can see 15 methods. ...more >>

how can i get the file list of a directory based on some logic
Posted by Mullin Yu at 12/20/2004 6:24:59 PM
e.g. c:\test doc1.txt doc1.pdf doc2.txt doc2.pdf doc3.txt doc4.pdf doc5.txt doc5.pdf only doc1, doc and doc5 will be returned as has both .txt and .pdf files how to implement? i'm not sure whether the DirectoryInfo's GetFileInfo's seach pattern can do so or not? ...more >>

'System.Data.OleDb.OleDbException' when creating a new DataSet..
Posted by brianbasquille NO[at]SPAM gmail.com at 12/20/2004 6:21:13 PM
Hello. Am getting an error message here at the line: DataSet dtSet = new DataSet(); Error is: "An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll" Bizarre as i'm using the same code elsewhere (besides the name of a table) to populate a listbox....more >>



How to draw reverse string?
Posted by Jerry at 12/20/2004 5:47:47 PM
Hi, I want to draw a reverse string, does anyone know how to implement it? And I want to draw a vertical string, it can be implemented by setting StringFormat.StringFormatFlags DirectionVertical, but it's not the effect I expected. I want to get reverse vertical string, like the number of ...more >>

How to suspend a thread which is in WaitSleepJoin state.
Posted by Sakharam Phapale at 12/20/2004 4:19:43 PM
Hi All, In following example, while playing file, if thread goes in WaitSleepJoin state, due to Thread.Sleep method. Now I want to suspend thread by clicking on cmdSuspend button. I have written following code, which doesn't suspend it. Even I tried it by calling m_PlayThread.Interrupt() m...more >>

How do I specify a directory to write to in C# compact framework?
Posted by Daniel Passwater via DotNetMonster.com at 12/20/2004 3:35:48 PM
I'm working on an app in C# compact framework. I need to create directories and read/write files to a PDA on the fly in the shared ActiveSync directory. Could someone please head me in the right direction? Thanks in advance for any and all insights. -- Message posted via http://www.dotnetmon...more >>

Calling Event (sending Datatable) in Timer event problem!
Posted by Anders at 12/20/2004 3:08:45 PM
Hi all, I have two classes: Form1 and GrabTitle Form1 instantiates GrabTitle In GrabTitle there is a Timer event which calls several events in Form1. The strange thing is that one event works while another doesnt. The event transfering a text string works while another transfering a ...more >>

C# List View Scrolling
Posted by ksadek76 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 12/20/2004 2:58:59 PM
I have a list view that displays messages from a server over an Ip connection. I have set the list view to include a scrolling function, however, I can not figure out how to scroll to the last line automatically everytime a new message comes in from the server since the latest info from the se...more >>

How to garbage collect an object?
Posted by Ron at 12/20/2004 2:43:03 PM
In my quest to migrate a vb.net app to C# I encountered the following problem: session.Initialize("pwrd"); NotesDatabase NotesDB; NotesDB = session.GetDatabase(server, filename, false); .... //done with data pulling/processing NotesDB = Nothing //from vb.net - not working for C# ...more >>

C# asp.net In-Line script (HTML tag editing)
Posted by studen77 at 12/20/2004 2:31:01 PM
Thanks in advance to anyone who can help-- :) I have ASP.net page where I'd like to dynamically change the contents of an html <td> tag progromatically, dependent on an an dropdownlist control event; is it possible through in-line script (in C#) to possibly cycle through a list of html ta...more >>

late binding: how to diferentiate nested classes from outer classes
Posted by Daniel at 12/20/2004 1:54:09 PM

Config file
Posted by Gas at 12/20/2004 12:14:16 PM
I am developing a Class library and I want to use config file to store some of the key-value pairs.. Heard that app.config is not supported by Class library, is it? if so, what should I do if I need a config file? Gas ...more >>

InnerXml in ToolTip
Posted by ALI-R at 12/20/2004 12:07:10 PM
I am showing the InnerXml of a node (in a treeView Control) in a tooltip ,but it is not formatted well ,all the elements after each other ,is there a way to format the innertext in a tooltip. =========Code========== private void tvTreeView_MouseMove(object sender, System.Windows.Forms.Mouse...more >>

Main window handle (processes)
Posted by Per Rollvang at 12/20/2004 12:01:27 PM
Hi All! How do I get the handle of the main window (if any) for a given process via API? TIA Per Rollvang ...more >>

Pls Help! - convert 2 bytes into 2-byte number
Posted by MuZZy at 12/20/2004 11:50:19 AM
Hi, I just wonder if someone can help me wit this - i have a byte[] array and need to convert it to short[] array, creating short numbers by combining bytes by pairs: My array: byte[0], byte[1], byte[2], etc. I need: short[0] = byte[0]+byte[1], short[1] = byte[2]+byte[3], etc. So my...more >>

ASP.NET, threading and static member.
Posted by Francois at 12/20/2004 11:12:31 AM
Hi all, Each time an HTTP request is received by IIS, it forwards it to the ASP.NET worker process. Then does the ASP.NET worker process in turn start a new thread for each HTTP request it serves (from a pool of thread for example). Or are all HTTP requests served by the same thread? An oth...more >>

string resources
Posted by quilkin at 12/20/2004 11:05:04 AM
Can someone explain how to get a .resx file (containing simple string resources) into an assembly? This must be such a common requirement but I have failed to find a simple guide. I have used 'resgen' to generate a ..resources file, but what is this 'al.exe' referred to in the documentation, ...more >>

ComboBox in User Control
Posted by Rachel Suddeth at 12/20/2004 11:03:38 AM
When I put a ComboBox on a form, I can enter strings through the designer to fill Items collections. I have put a ComboBox in a UserControl, and exposed the the Items collections with the same type... public class ControlWithComboBox : MyControls.BaseControl, IDataEntryControl { ... ...more >>

Reflection Values
Posted by Roger Webb at 12/20/2004 10:50:07 AM
Hey All, I've got a class that I'm trying to get a listing of the properties...kinda like one of the Reflection examples from Microsoft. However, unlike their example, I need to get the value as well. And am having trouble understanding how the GetValue() function of the PropertyInfo should ...more >>

problem with string.Split delimeter
Posted by Ron at 12/20/2004 10:31:42 AM
I am trying to read a delimited textfile to the console window as follows: using System.IO; StreamReader oRead; string str1; object[] str2; oRead = new StreamReader(strPath + @"\testFile.txt"); str1 = oRead.ReadToEnd(); oRead.Close(); str2 = str1.Split((char)"\n"); //problem here f...more >>

rsacryptoserviceprovider
Posted by ivang at 12/20/2004 10:11:55 AM
Why I can't create an instance of RSACryptoProvider class under impersonated user rights? ...more >>

Cloning derived objects whose base objects have many fields
Posted by K.K. at 12/20/2004 10:00:10 AM
Suppose I have a class called Vehicle with many fields. Now I make a new class derived from Vehicle called Car. I'd like to make a method to copy the data from a Vehicle instance to a Car instance. Is writing a long series of assignments in a Clone() statement my only option? I know that I can...more >>

Maximum length of TextArea in Visual C#
Posted by Mohamed Harris via DotNetMonster.com at 12/20/2004 9:16:58 AM
Hi What is maximum length of textarea in visual c#? Thanks in Advance. Harris -- Message posted via http://www.dotnetmonster.com...more >>

vb.net FileDateTime function in C#?
Posted by Ron at 12/20/2004 8:42:31 AM
Yes, I am trying to use the FileDateTime function from vb.net in C#. I am just starting out in C#. Here is how I use FileDateTime in vb.net: Dim NewDate As DateTime NewDate = FileDateTime("C:\SomeDir\TestFile.txt") In C# I got this far: DateTime NewDate; NewDate = FileDateTime("C:\S...more >>

IPs problem
Posted by bernardpace NO[at]SPAM yahoo.com at 12/20/2004 8:19:25 AM
Hi, I am writing a small client server program. Now my computer is connected to a router, and is going to run as the server program. Since the router generates IPs for the computers connected to it, what IP should be given to the client...or how can I get around this problem. When I ente...more >>

Retry: UI Changes to cell contents in DataGrid
Posted by TT (Tom Tempelaere) at 12/20/2004 7:25:03 AM
Hi, The intention is to get -- Tom Tempelaere....more >>

Problem binding DropDownlist
Posted by Josema at 12/20/2004 6:47:12 AM
Hi, I have a DropDownList called BSDropDown and the following code: this.BSDropDown.DataSource=B2BSS_; this.BSDropDown.DataTextField="Name"; this.BSDropDown.DataValueField="ID"; ListItem newitem=new ListItem("choose option","0"); this.BSDropDown.Items.Insert(0,newitem)...more >>

Changes to cells in DataGrid
Posted by TT (Tom Tempelaere) at 12/20/2004 5:13:02 AM
Hi there, I'm struggling to get the right event. I want to be notified of a change in a cell in a DataGrid made by a user. I need following information about the change: * the row index * the column index * the newly entered value I need this information to update another DataGrid. I ha...more >>

C# compiler into JVM bytecodes
Posted by Sergi Adamchuk at 12/20/2004 5:06:10 AM
Is there any C# compiler which can make byte codes for Java Virtual Machine? Compilation to .jar or .class ...more >>

how can i create a color dialog box or color palette in asp.net ap
Posted by eng_nahswa at 12/20/2004 4:15:02 AM
hiiiii everybody i want to know how can i create a color dialog box in asp.net application or a color palette....more >>

Populating Dropdownlist with dataset
Posted by Darrylw99 at 12/20/2004 3:59:02 AM
Hi Folks I've been dumped in at the deepend and need to understand the answer pretty quickly. I've got a dropdownlist and need to use Microsoft Data Access Blocks; so implementing a Dataset, how do I populate the list with the contents from a table called Parameters. Also does anyone know ...more >>

HTTPWebResponse / HttpWebRequest POST method ?
Posted by Sagaert Johan at 12/20/2004 1:47:28 AM
How can i change the behaviour so the server gets a POST /sms HTTP/1.0 instead of POST / HTTP/1.0 Johan ...more >>

filling ( more than one table ) in dataset using one stored proced
Posted by Rami at 12/20/2004 1:17:07 AM
Dear all, i would like to ask if it possible to fill one dataset using one stored procedure. for example: if dataset has two tables: ( emp) and ( dept ) can i use the following stored procedure to fill them both: < SQL CODE > create procedure sp_get_emp_and_dept AS Begin ...more >>

Filling a dataset using one stored procedure
Posted by Rami at 12/20/2004 1:09:02 AM
Dear all, i would like to ask if it possible to fill a dataset using one stored procedure, for example: we have two tables ( emp ) and ( Dept ) can i use the following stored procedure to fill the dataset < SQL CODE > Create procedure sp_emp_and_Dept AS begin select * fr...more >>

Process.Getprocesses() problem
Posted by Jane at 12/20/2004 1:07:01 AM
Hi, I try Process [] remoteByName = Process.GetProcesses(); it works but when I try Process [] remoteByName = Process.GetProcesses("localhost"); it fails with invalid operation please Help me! Threre is no way to find help on the internet, i am desesperate. ../Jane...more >>

picture baox and counting the black pixels..
Posted by serdar c at 12/20/2004 12:49:02 AM
hi everyone, i am writing a program for my scool project and i need to count the number of black pixels in a white empty picture box.. in the old visual basic there was a really simple command called "Pset(x,y)" retruns the color code of the specified location. but i couldnt found much things ...more >>


DevelopmentNow Blog