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# > january 2005 > threads for friday january 7

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

Exit program
Posted by Alberto at 1/7/2005 10:35:18 PM
How can I exit from my program in any point? For example, form A calls formB and when the user press a botton I want to close the application (not only the formB) Thank you. ...more >>


How to read a text file really fast??
Posted by G.Esmeijer at 1/7/2005 10:08:50 PM
Friends, I would like to read a text file (fixed length formaated) really fast and store the data into an Access database (2003). Using the streamreader and reading line by line, separating the line into string just takes to long. When I Import the file with access manually goes fast. But ...more >>

How would you handle context menu for TreeView?
Posted by MrNobody at 1/7/2005 8:45:02 PM
If you have a tree view where particular nodes you want a context menu (right click menu) to show? It should only show for specific nodes, which are classes extending TreeNode...more >>

loading resources
Posted by Wally Pipp at 1/7/2005 7:55:53 PM
I have a bunch of bitmap files that I'd like to add to the resource. Is there a way to do this programmatically? Thanks in advance, Wally ...more >>

IndexOf help
Posted by tomcat at 1/7/2005 7:21:19 PM
I am trying to find the location of "\", I have tried "\\" and @"\". but nothing work, can anyone help please? Tomcat ...more >>

Using Unicode in input variables problem
Posted by Beyondtron at 1/7/2005 7:13:02 PM
Hi everyone, I'm trying to output (in Unicode) a variable read in by the program in its "\u1234" format. I know I can successfully output Unicode values because when I hardcode a string variable it works fine, as in: WORKING: string myUnicodeString = "Hello \u1234 World"; Console.Out.Wr...more >>

Through a Windows service running a method of an assembly in a separate process
Posted by Ajay Pal Singh at 1/7/2005 6:15:21 PM
Hi, I am making an windows service similar to windows task schedular. The = service would invoke the methods of some assemblies at some predefined = schedules. (windows service read the method/assembly and schedule info = from app.config file)=20 I am using reflection to dynamically load the ...more >>

text width
Posted by Dean L. Howen at 1/7/2005 5:26:37 PM
dear friends, when drawing string on screen using DrawString, I could get the text height by calling Font.Height, but how about text width ? Could you tell me? Thanks. ...more >>



C# and C++ share memory
Posted by Anthony at 1/7/2005 4:51:07 PM
Hi, Is there any sample codes or documents about how to send and receive the messages between C++ and C# applications? For instance, I have a C++ dialog application and C# dialog application running on same computer, how do I transfer data back and forth between these two? Thank you ve...more >>

Compile time text import
Posted by amccool at 1/7/2005 4:15:32 PM
Hi, I'm looking for something to read a text file into a string at compile time. I swear I've seen something along these lines. TIA, Alex ...more >>

Configurations, do they work properly?
Posted by Claire at 1/7/2005 4:05:34 PM
I've been trying to create this "deploy" configuration and I've had to keep deleting it then recreating again for one reason or another. I assumed that deriving it from the "release" configuration ,when I create it in configuration manager, would copy the exact settings across to my new "de...more >>

Does C# support OpenType fonts?
Posted by L at 1/7/2005 3:40:01 PM
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa. ...more >>

connecting to other application windows and viewing changes
Posted by Jay Douglas at 1/7/2005 3:20:25 PM
Hello all. I'm not even sure if I am posting this question to the right new group. I'm more on a fishing expedition than anything else .. Here's what I need to do: I have an application that I need to monitor some minor graphic changes to the application's UI. I have explored using wi...more >>

callback to another class (sockets)
Posted by Adie at 1/7/2005 3:16:12 PM
I'm using async-callbacks for a socket client. I have a class doing the work with the server - includes the socket, AsyncResult, AsynCallback etc.. (call it client for arguments sake) Also a class that is calling the above but acting like a message broker and wants the result from it's call ...more >>

Problem using WTSOpenServer on Win2003Server DC
Posted by Christopher Attard at 1/7/2005 3:09:47 PM
Hi, I'm using WTSOpenServer (P/Invoke in a C# application) to open a handle to a specified terminal server which is Win2003 Server Domain Controller. The function is returning NULL (or 0). I'm able to connect successfully to the terminal server when using the remote desktop...more >>

windows users
Posted by Jim at 1/7/2005 2:53:52 PM
Hi I would like to get all the windows users defined in the current domain. What is the code for this? ch Jim ...more >>

Repetition
Posted by Bart at 1/7/2005 2:53:37 PM
Dear all, I have a problem that I cannot understand the reason of. My code is private void ButtDetl_Click(object sender, System.EventArgs e) { // give an information of the sender int num=this.GetNumber(((Button)sender).Name); //check if there is a TextBox with same number of ...more >>

VS05 - DataGridView - CheckBox
Posted by michael schindler at 1/7/2005 2:35:25 PM
hi there i have tried do use the new DataGridView of the Framework 2.0. i use the new DataGridViewCheckBoxColumn Somehow i don't know how to read if a checkbox is checked or not. For example in the DataGridView i have several Ccheckbox-Columns and i tried to access those values after the even...more >>

formatting
Posted by mp at 1/7/2005 2:25:31 PM
I have a string : string s="13376"; how do I format it to 133.76 Thanks ...more >>

windows users
Posted by Cor Ligthert at 1/7/2005 2:08:09 PM
Time correction for Outlook. You live in the future Jim ...more >>

Advantes of using Remoting with HTTP and SOAP with IIS?
Posted by Guest at 1/7/2005 1:53:56 PM
Hi, I unerstand that if you choose IIS to host your .Net Remoting= components with HTTP channel and SOAP formatter, you get the= built-in security and configuraion features of IIS. Also we can= expose it to use for the web services clients. But using HTTP= with SOAP has got the least perfor...more >>

PathTooLongException problem/question
Posted by Justin at 1/7/2005 1:51:42 PM
Hi. I'm writing a little c# program to list all the files in a selected directory longer than a given size. The problem is that when it finds a file that is too long for Windows, I get the PathTooLongException error. I try to handle the exception, but can't do anything because, well, the file...more >>

What does Queue.Synchronized() return
Posted by rmunson8 at 1/7/2005 1:41:02 PM
I have a derived class from the Queue base class. I need it to be thread-safe, so I am using the Synchronized method (among other things out of scope of this issue). The code below compiles, but at runtime, the cast of "Queue.Synchronized(new EventQueue())" to an EventQueue object is failing...more >>

Interfacing between VB6 and C#
Posted by Peter at 1/7/2005 1:38:01 PM
Hi, My C# application is supposed to cooperate with legacy VB6 code, but I am little bit worried if and how far C# strings, double etc. in the method interfaces will work smoothly from VB6 code. In VB6 code below an array of string "params" is passed to the C# method SetParameters. VB6: ...more >>

Propertygrid and objects within objects
Posted by Marek Wasilewski at 1/7/2005 1:31:03 PM
Hi I have an object whose properties are exposed in a property grid using the usual method: _propertyGrid.SelectedObject = objMain; However, what I want to do is for the property grid to also display the properties of an object (objMainMember) which is defined as a property of the first ob...more >>

Generic class
Posted by Franck Diastein at 1/7/2005 1:17:00 PM
Hi, I use a generic class for MSSQL work, I don't know where is it from... It saves me a lot of time... Does anybody know of a generic class for Access ? TIA...more >>

how to make control both Fill and Anchored ???
Posted by MrNobody at 1/7/2005 12:57:03 PM
I want to have a DataGrid that fills up the entire Window but does not slip underneath a StatusBar along the bottom... currently I first set Anchor to AnchorStyles.Bottom then the Dock to DockStyle.Fill. Upon resizing the window the DataGrid fills correctly but then the horizontal scrollba...more >>

Conversin between chars and strings
Posted by Alfons at 1/7/2005 12:40:31 PM
Hi, How can I convert an array of chars into a string and vice versa ? char[] myChars = new char[10]; I want to convert these 10 chars into a single string, but how ? And if I have a single string, like string ss = "abcdef"; How can I make an array of chars from this ? Thx, A...more >>

Difference in date time
Posted by Peter at 1/7/2005 11:53:22 AM
Hi, I want to calculate the time difference (in seconds, minutes, days, etc.) between to DateTime values. I expected some of the DateTime methods could do the job for me, but after some search I came across the System.TimeSpan method. Following code seems to work correctly .. string ss=...more >>

Mapping oledb data to odbc target
Posted by Josef Schneider at 1/7/2005 11:48:03 AM
Given: Data.oledb source, and a Data.odbc target The oledb data is read into a dataset. (1) Is there an easy way to copy that dataset to the target datasource ( I can look through the dataset and do INSERT statements, but is there a single command to copy the data to a table ) ? (2...more >>

How to show dropdown list of menu items just like click on Parent menu by writing code
Posted by Sakharam Phapale at 1/7/2005 11:32:54 AM
Hi All, How to show dropdown list of menu items just like click on Parent menu. For example, Edit (Parent menu) Cut (child menu) Copy (child menu) Paste (child menu) When you click on Edit menu, you get dropdown list of submenu items. How to achieve this w...more >>

Form Skinning
Posted by Paul Hartness at 1/7/2005 11:24:28 AM
I want to be able to skin my application producing non-standard form shapes such as WinAmp & Windows Media Player. I have reviewed toolkits such as DirectSkin, SkinCrafter, SkinBoxer, SkinMagic etc. and though they provide skinning of existing application frames, forms and controls they do n...more >>

Binary File Reading Question
Posted by PJ Olson at 1/7/2005 10:54:01 AM
All, is there a speed or efficiency difference in using FileStream.Position vs. FileStream.Seek to navigate through a file? ...more >>

How to determine base interface???
Posted by J. Jones at 1/7/2005 10:44:59 AM
Suppose the following: class MyContainer : System.Collections.CollectionBase { //... } (where CollectionBase implements IList, ICollection) How do I determine if a type (such as MyContainer) derives from IList? System.Type type = typeof(MyContainer); type is IList -> false typ...more >>

C# .Net Equivalent of NtQuerySystemInformation ?
Posted by Enzo at 1/7/2005 10:41:01 AM
What I need to be able to detect is when the CPU or CPUs of a system are idle or no more than 10% busy. Back in my C++ days we used NtQuerySystemInformation. Is there an easier way built into the .Net Platform or C#? ...more >>

How to call an ancestor base class method ?
Posted by cadilhac NO[at]SPAM gmail.com at 1/7/2005 10:35:27 AM
Hi, I have a class C derived from B which is derived from A. In an overriden method of C, I would like to call the same base method but in A. Using the keyword "base" performs the call in B but hoz can I call the method in A ? Is there a language construct for this ? Thank you Herve ...more >>

datetime differences
Posted by SenthilVel at 1/7/2005 10:29:12 AM
HI how to get the differences in 2 given dates?? supposse if i ahve 2 dates , DATEa, and current datetime. how can i find if the DATEa is less then 3 hrs from the current datetime ??? ,,,, Senthil ...more >>

refreshing DataGrid after insert?
Posted by MrNobody at 1/7/2005 10:29:06 AM
Simple question (I hope!): ater adding a new row to a DataTable, how do I get the DataGrid to refresh so it shows the new row? I didn't have to do anything special to see the result of modifications to an existing row....more >>

Javascript to .Net
Posted by Carlitos at 1/7/2005 9:57:16 AM
I have researched a lot trying to get this. So as a last resource I will have to ask here. What would be the equivalent to the following javascript excerpt: TheDataManager MyDMgr = new TheDataManager(); File MyDataFile = new File(strDataPath); // Cr...more >>

numeric up-downs and enforcing the range
Posted by MrNobody at 1/7/2005 9:37:05 AM
I just noticed that a numeric up/down will let you manually type in any number even if it is beyond the min/max range you specified. The control will not actually return this value if it is beyond the min/max but it won't give you any indication that the value you typed in is out of range....more >>

Assign char range/set to array?
Posted by John E. at 1/7/2005 9:34:45 AM
I cannot seem to find the equivilant of assigning a range to an array in c#. In other languages you can do something like: @myArray = ("a" .. "z"); or something to that effect. Thus creating an array with 26 indexes from 'a' through 'z'. How is this possible in C#? I *really* don't want ...more >>

text overflow in Label
Posted by MrNobody at 1/7/2005 9:17:11 AM
is there any way I can adjust the behavior of a Label when text overflows it's boundaries? I have a specific size Label which can show 2 lines of text, but on some occassions the text I insert may be longer. On such occassion, you can see the top of a third line of text just above the bott...more >>

Array of chars
Posted by Peter at 1/7/2005 8:20:58 AM
Hi, I want to use an array str, while each array element str[i] is an array of chars of fixed length, say 40; The best way to handle this in C# is StringBuilder I guess, but as legacy C++ code must communicate with my C# app, I prefer only low-level primitive types, so chars here. Of cou...more >>

3rd Party Components
Posted by Mark Woodief at 1/7/2005 8:17:21 AM
We are considering purchasing a third party component suite for some projects, the three vendors we chose are ComponentOne, Janus, and Infragistics. Anyone have opinions on these? We need to decide on one. Mark ...more >>

Collections help
Posted by fabdominici NO[at]SPAM tiscali.it at 1/7/2005 7:55:50 AM
Hi I'm Fabrizio and I come from Turin in Italy. I'm a new user of C# until now I program only in Java or sometimes in C. I've problem because the C# collections are different and I don't understand it very much. There is someone on this google groups that have implements java collection in C...more >>

Compiler/JIT optimization causing problems
Posted by pdabak NO[at]SPAM yahoo.com at 1/7/2005 7:41:23 AM
Hello, I am facing some serious problems in my C# application probably due to compiler/JIT optimization. Let is give an hypothetical example that demonstrates the problem I am running into class class1 { public static string func(string param) { string processedva...more >>

How to display international characters?
Posted by MrNobody at 1/7/2005 7:15:03 AM
I'm loading some names from a file which contains many names, some of which have some international charcaters like: ö When I load these names and put them into GUI Labels or DataGrid columns those characters turn into a question mark, so instead of seeing 'Böhme' I see 'B?hme'... any ...more >>

Non Exact Find in DataView
Posted by Mihaly at 1/7/2005 6:59:02 AM
I have a DataView with a string type column which is the sorted column. Please help me, how to find a string in the column and I get the first occurence of this string or substring. Thank you! ...more >>

DataView and DataViewRows
Posted by Joe at 1/7/2005 5:55:04 AM
I have a DataView and would like to extract data from it and write it to a ListView. Can I only accomplish this with the DataViewRows Object array? Is there a way forme to enumerate through the rows of the DataView without using the DataViewRows array? TIA, -- Joe VBA Automation/V...more >>

Writing to an Excel spreadsheet
Posted by John S at 1/7/2005 5:42:36 AM
I am trying to write data to an excel spreadsheet from a C# app and cannot make it work. Does anyone have any good examples? Please do not include any XML examples. ...more >>

Text Auto-completion
Posted by kmriyad NO[at]SPAM vsnl.com at 1/7/2005 4:17:21 AM
Hi All, I am developing an xml editor, inwhich I want to include text auto-completion. When I finish entering start element (ie.<Hello>) on rich text box, the end element (ie.</Hello>) should be entered automatically and also the cursor is automatically positioned in between the start element...more >>

How to set TreeView Tooltip depending on selected Node?
Posted by Alexander Wehrli at 1/7/2005 2:35:02 AM
How can I do that? Regards Alexander...more >>

stuck with return value
Posted by hplloyd at 1/7/2005 1:39:04 AM
Hi, I have a function that adds data to a database and I want to return true if the database was updated and false if there was a problem, so I am using a try... catch block... My problem is that I can return true ok is the routine succeeds but where do I put the return false; statement...more >>

Making Web Server Remoting Client
Posted by Ranjan at 1/7/2005 1:13:02 AM
Hi Folks, I am trying to make my web Server to be used as Remoting client. When I register client channel(tcp) i get error tcp channel already registered. But when i don't register channel here... my programm works fine. Don't we do register client channel in this case. Thanks n Re...more >>

send simple email with NET
Posted by Le, Thanh-Nhan at 1/7/2005 12:25:36 AM
Hi, I want to send a simple mail with C#. I have tried the following, but they don't work: - some solutions on CodeProject websites. - shellExecute(mailto:xxx@yyy.com?subject=aaa&body=bbb). Thanks for help TNL ...more >>


DevelopmentNow Blog