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# > march 2005 > threads for wednesday march 30

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

Extract words from a string
Posted by Maya at 3/30/2005 10:46:55 PM
Hello guys, Is there an easy way to extract individual words that form a string and store them in variables like in this example: String "how are you?" My result would be: var1 = "how" var2 = "are" var3 = "you?" Thanks alot, Maya. ...more >>


Exclusive Writes to a file.
Posted by L at 3/30/2005 9:48:27 PM
Hi, If two applications try to write to the same file at the same time, an exception gets thrown. How can we handle exclusive writes to a file? Thanks, Lalasa. ...more >>

c# graphs
Posted by Archana S R at 3/30/2005 8:01:41 PM
how do i create bar charts in c# dynamically.. i need to know frm the scratch , while google didnt help me and the boks that i got didnt have that info.. can anyone throw some light in this issue..? cheers, Archana.S.R...more >>

Converting from ArrayList to non System.Type array
Posted by Jack Addington at 3/30/2005 7:04:22 PM
I have a method that takes an array of nodes (UltraNode[]) as a parameter. I've got an arrayList of objects that I am trying to convert to UltraNodes and pass to the method but I cannot seem to get the syntax right. I thought I was able to go ArrayList.ToArray(typeof(UltraNode)) and be done ...more >>

Scroll wheel
Posted by web1110 at 3/30/2005 6:56:52 PM
Hi y'all, Ok, still playing with my DataGrid ComboBox. I solved the scroll problem, but now I discovered this: If I am in the ComboBox and rotate the scroll wheel on the mouse, I get the exception: The ListManager's position must be equal to rowNum. and the select row but not the...more >>

OnReceive Question
Posted by minnmaxx at 3/30/2005 6:27:37 PM
I have the following piece of code: // this called when some data comes in public void OnReceive( IAsyncResult ar ) { // receive data string message = ...; // continue to listen BeginReceive( ... ); // process string based on some condition if ( condition ) { ...more >>

Client Socket lingering after close
Posted by Jimbo at 3/30/2005 6:20:22 PM
Hi Guys, I'm sorry if you have heard this one before but searching the net hasn't found a solution. I am using Socket in a client to connect to a server. However, after I've finished sending and recieving data and call the Close() method the socket lingers for a couple of minutes. This i...more >>

DataGrid scroll question
Posted by web1110 at 3/30/2005 4:33:41 PM
Hi y'all, I've put together a ComboBox to display in a DataGrid - just to do it. It works fine, except... I added more entries to my test data, enough to scroll and: I select a row in the middle of the table I scroll down (the bottom entry goes off the bottom) , the ComboBox disappears...more >>



onClick event for webcontrol
Posted by chris at 3/30/2005 4:17:01 PM
Hi there, I would like to add an onClick event to a webcontrol which calls a function which is in the code behind an not a javascript. Would that be possible? Something like this: MenuCase.Attributes.Add("onClick", MenuCase_ButtonClick()); private string MenuCase_ButtonClick() thank...more >>

struct
Posted by 14 7/8\ at 3/30/2005 2:49:48 PM
I want to use a struct to constrain a result. The result is a string composed of several strings of fixed length; Let's say the string Result is composed of 3 strings, each 4 char in length. Can I build a struct that would enforce such a construct? I tried putting string[] s = new...more >>

Instance from property
Posted by Islam Elkhayat at 3/30/2005 2:18:07 PM
I hve Dataclasses one for each dbtable & i have user control with MoveNext() & MovePrev() methods i want the toolbar to use the current class so i created an Interface (IDbClasses) with the 2 methods and i use it in the user control, i also added a poperty of type IDbClasses to pass instance o...more >>

#define how do I do this in c#?
Posted by C# beginner at 3/30/2005 1:55:03 PM
#define FILE_DEVICE_FTE 0x8001 #define FTE_IOCTL_INDEX 0x800 #define FTE_CTL_CF_XMIT CTL_CODE(FILE_DEVICE_FTE, FTE_IOCTL_INDEX +31, METHOD_BUFFERED, FILE_ANY_ACCESS) Any help are appreciated...more >>

Packaging Custom Controls
Posted by John Smith at 3/30/2005 1:53:22 PM
Hello all: If you extend and/or create your own control how do you package it up as a .dll file in order to add it to the toolbox and use it in other projects? Thanks, - John -...more >>

Protecting Source Code
Posted by sushant.bhatia NO[at]SPAM gmail.com at 3/30/2005 1:51:19 PM
Hi all. I came across a situation where I wanted to distribute my C# project to a few parties but did not want them to edit the code/copy the code. The only thing they should be able to do is view the code & learn from it. Do you guys know of any solution to source code protection that w...more >>

Seconds to Time
Posted by david.pope at 3/30/2005 1:45:41 PM
Does the .Net framework provide a method to convert seconds into a readable time format? Thanks, D ...more >>

Memento to store current state, not just bookmarked state?
Posted by Samuel R. Neff at 3/30/2005 1:34:09 PM
Is there any downside to using the Memento pattern to store the current state of an object instead of using private fields for internal state and a memento just for some bookmarked state? Seems like the upside is less code and easier state management/cloning. Perhaps there's a slight perfor...more >>

Changing folder Attributs/Security
Posted by Feldman Alex at 3/30/2005 1:25:45 PM
Hi everyone! I need to write a simple application that will change folder attributes for a user that doesn't have administrative privileges. (Example : I'll login as administrator, run an application and will give a permission to all users to write to program files) Is anyone know which class...more >>

walking the call stack from within a thread. Getting the parent call stack
Posted by Jason Coyne at 3/30/2005 12:56:30 PM
I am trying to use the StackTrace class to get my current stack trace for some logging. Everything is working fine, except when I am using threading (specifically WaitCallBack and ThreadPool.QueueUserWorkItem) When I try to walk the stack from a location that has been called via QueueUserWorkI...more >>

CurrencyManager
Posted by web1110 at 3/30/2005 12:47:47 PM
I created a class derived from a DataGridTextBoxColumn. I have it working through looking at various examples on the net. To update the underlying DataGrid, I had to overload the Edit method which provided the CurrencyManager and row number required for SetColumnAtRow method. My question ...more >>

ComboBox question
Posted by web1110 at 3/30/2005 12:19:33 PM
Hi y'all, Is there a way to specify the alignment in a ComboBox? Thanx, Bill ...more >>

Newbie Question: One event triggers two event handlers
Posted by MattNC at 3/30/2005 12:14:41 PM
Hi, I'd appreciate any help with this. I'm new to this so I'll need things spelled out. I have a web form that creates an XML document when it is submitted. The code behind has the event handler, everything works fine. But I'm trying to also write a cookie on the OnClick event. How do I add a se...more >>

image from SQL
Posted by Hrvoje Voda at 3/30/2005 12:07:25 PM
Does anyone knows how to get an image from sql database? I managed to save an image(binary) into table, but I don't know how to "transformed" it back to my aplication into grid. Hrcko ...more >>

Printing a form as a report
Posted by Marty at 3/30/2005 11:57:52 AM
Is there an easy way to print a form in .NET? Thanks. ...more >>

Dataview is not serializable
Posted by Raghavendra Tilve at 3/30/2005 11:50:37 AM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stac...more >>

Subclassing controls
Posted by Michael Rodriguez at 3/30/2005 11:30:19 AM
I'm trying to figure out how to subclass a control and override some of = the default properties. I can subclass a control and add my own new = properties and set their default values. But how do you change the = default value for an *existing* property? For a custom property I can do this: ...more >>

.NET Remoting with PocketPC2000
Posted by mscirri NO[at]SPAM osmose.com at 3/30/2005 11:06:00 AM
Never used .NET remoting but I am assuming that you need CE.NET to use remoting on an iPAQ? ...more >>

DirectoryInfo....folder size??
Posted by JJ at 3/30/2005 11:04:01 AM
How do I get the immediate subdirectories and their size under a given directory? I just want list of folders only one level down and total size of each folder under the parent directory? Thanks JJ ...more >>

VirtualTreeView for Dot-Net wanted!
Posted by Dmitry Bond. at 3/30/2005 11:02:41 AM
Hi All. I'm porting one application from Delphi5 to C# (using VS 7.0). To display big ammount of data in treeview I need a control like a VirtualTreeView by Mike Lischke (www.soft-gems.net). Standard TreeView control works petty slow and does not have such possibilities like VirtualTreeView. ...more >>

Drawing to usercontrols and bitmaps
Posted by steve bull at 3/30/2005 10:39:54 AM
I have a program in which I draw various shapes to a form but I would like to move it off the form into a user control. The painting on the form takes a significant amount of time. I was thinking of making a bitmap map to the control so that when it does a refresh it doesn't need to recalculate ...more >>

Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint
Posted by Richard at 3/30/2005 10:34:03 AM
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint of a subclassed DataGridTextBoxColum dos not seem like a practical way to do it. I have subcl...more >>

DateTime.Compare(t1, t2)???
Posted by Darryn Ross at 3/30/2005 10:18:07 AM
Hi, I am having problems with some date comparisons.... i am not getting the correct answer when doing DateTime.Compare(t1, t2) ; I have a DataGrid full of records that i have bound using a currency manager to a DataTable. Records in the Datagrid can be edited added or deleted. before ...more >>

scanning documents with c#?
Posted by jkricka at 3/30/2005 9:47:44 AM
any info on this topic? I want to build control for scaninng documnents with c#. Can someone point me in the right direction? :)...more >>

2005 betas with VS 2002?
Posted by FuzzyR via .NET 247 at 3/30/2005 9:36:22 AM
Has anyone installed Visual Studio 2005 beta (or C# Express beta) side by side with Visual Studio 2002 and Framework 1.0? -------------------------------- ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>HyYZwoI4uky2NblCjf5LFw==</Id>...more >>

insert a picture (bmp) to data base (Access)
Posted by N_i_E_¶_W_i_A_D_o_M_y at 3/30/2005 9:18:42 AM
Hello. I have a problem with insert a picture (bmp) to data base. I wan't add picture to cell in data base (Access) like double decimal. Someone have a idea how to make this? Please help MarianZED...more >>

Mathematica .NET/Link: closing kernel window
Posted by Siddharth Jain at 3/30/2005 9:14:12 AM
Hi I am using Mathematica 5.0 to make a plot in Visual Studio 2005 beta. Each time, a window of the kernel opens. I want the window to close once I close my form. Can someone please guide me on how to do that. Thanks Siddharth Jain ...more >>

howto: How do I slice up a variable then run through a switch?
Posted by DEWright_CA at 3/30/2005 8:59:28 AM
I have a variable that can be between (1) and (1,2,3,4,5) etc... this variable shows which type of query to run, and each runs from a private void function. I understand the method of doing but don't know enough C# yet be able to finish. I am trying to do something like this I think? Shou...more >>

Help files for VS.NET...
Posted by AMeador at 3/30/2005 8:40:36 AM
In the Tools...Options...Help...Preferred Collections I have the standard Visual Studio .NET 2003 Combined Help Collection. I also have installed the MSDN Quarterly Libraries for Oct. 2004 and Jan. 2005. Should I leave this on the Combined Help Collection or select the most recent MSDN Librar...more >>

Create and Excel file and edit its cell values from a template...
Posted by AMeador at 3/30/2005 8:21:29 AM
I need to have my c# application actually create a new Excel file from an Excel template file, and then update a bunch of fields in the new file. Can this be done? I am using VS.NET 2003 EA Edition and Excel 2003. Any pointers or sources would be greatly appreciated! Thanks! ...more >>

Adding Method to TextBox
Posted by ngconte NO[at]SPAM yahoo.com at 3/30/2005 8:02:30 AM
Hi .Net experts, I am trying to build a user control of textbox and would like to add a public method to the object like public void CheckOptions(string str) { // codes here } So over the WinForm, I would expect the following to work txtMane.CheckOptions("Hello"); //txtMane is ...more >>

Proper closing methods of a form
Posted by Christopher at 3/30/2005 7:57:06 AM
Looking for a proper way to close or hide a form in this example. I have a form X that calls a new form Y to show on a given event. Both X and Y are different classes. Ive tried instancing X and calling X.Close(); and X.Hide(); from within X. Ive tried instancing X from within Y and calling ...more >>

Cookies VS. SessionState
Posted by Adam at 3/30/2005 7:19:33 AM
Well guys some might consider this a silly topic but i just want to get the general consensus on the matter. So i ask the question "Which is more efficient to use Cookies or SessionState Variables ?". I'm just looking for opinions so please don’t flame me. - Adam...more >>

How do I detect if a upper/lower case letter was pressed on the keyboard?
Posted by Tegdeep at 3/30/2005 7:17:40 AM
Here's what I want to do: I have a hash table which contains data associated to different keys. The Hash keys are represented by a single character from the keyboard: 0-9, a-z, A-Z, and the other special characters. I want my program to detect what key the user pressed from the keyboard and...more >>

C# - Problem to receive data from a C++ Dll
Posted by Gandalf at 3/30/2005 7:17:09 AM
Hi, I have a C# program and want to call a dll, but have problem to receive the data from the dll. The dll declaration is the following : "extern "C" void GetSN(TCHAR** pData)" The Dll call is the following : [DllImport("mydll.dll")] private static extern void GetSN(ref string[] val1);...more >>

Resource 'skin.bmp' could not be found in class 'Syndirella.UI.Form1'.
Posted by oran johnson at 3/30/2005 6:24:24 AM
Source: taskbarNotifier.SetBackgroundBitmap(new Bitmap(GetType(), "skin.bmp"), Color.FromArgb(255, 0, 255)); Error: Resource 'skin.bmp' could not be found in class 'Syndirella.UI.Form1'. I have added this file to Resources via the resx file. Any ideas? Thanks....more >>

GDI+ Questions !
Posted by Just close your eyes and see at 3/30/2005 6:09:05 AM
its important to my work to find answers for these questions so if u know the answer please help me how to make an area in the form have an opacity less than the hole form? and how to make the area of desktop behind this area accessable by the user -(as it looks like a transparent area)- fro...more >>

asp.net, passing parameters to other page
Posted by xxxxyz NO[at]SPAM abv.bg at 3/30/2005 3:15:45 AM
Hi. Could you tell me the ways in which I can pass the value of a given variable to another Web page? I prefer NOT to use cookies and parameters in the URL. For example I want the user name to be shown in each page in a label control. Thanks. ...more >>

WNetGetUser
Posted by AbdSol at 3/30/2005 2:01:02 AM
I would liike to know which C# function is the replacement for the following function, and how do I use Platform SDK functions which r not updated in .Net Framework. CHAR nUser[100]; DWORD mError = 80,test ; test = WNetGetUser(NULL, nUser, &mError); if(test == NO_ERROR){ ...more >>


DevelopmentNow Blog