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

TextBox.AcceptsReturn Property
Posted by Chuck Bowling at 1/30/2004 11:48:16 PM
Am I doing something wrong or does the TextBox.AcceptsReturn property not work as documented? According to the help, "true if the ENTER key creates a new line of text in a multiline version of the control; false if the ENTER key activates the default button for the form." I don't want the E...more >>

String question
Posted by Tdw at 1/30/2004 11:41:22 PM
In C#, you can use the string data type to hold a series of characters. The string can be compared to another string using the == operator in the same way that you compare numeric or character variables. However, you can only use the == comparison operator with strings that are assigned literal ...more >>

Datagrid displaying related ArrayLists
Posted by Christiaan at 1/30/2004 10:31:43 PM
Hi, I have two classes, Department and Employer, the Department contains an ArrayList (employers) filled with Employer objects. I want to display an ArrayList filled with Department objects using a Datagrid. Therefor, I do a setDatabinding with the Deparments ArrayList and I create two Datagrid...more >>

Converting array data
Posted by Pete Davis at 1/30/2004 9:33:24 PM
I've never done this in C# so I don't know what the appropriate way of doing it is. I've got an array of bytes and I need to convert the array into "usable" data. For example, the first 4 bytes need to be converted to an enum. The next 4 bytes to a 32-bit int. And so on. I'm basically populati...more >>

Exceptions: Order of Catch Statements?
Posted by clintonG at 1/30/2004 9:24:00 PM
Could someone provide me with a URL documenting the specific order of exceptions? -- <%= Clinton Gallagher A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA NET csgallagher@REMOVETHISTEXTmetromilwaukee.com ...more >>

MyClass on the toolbar
Posted by Chuck Bowling at 1/30/2004 8:29:42 PM
I'm working on a class that inherits from TextBox. Is it possible to put this object on the toolbar so that I can drag and drop it on a form the same as a TextBox? ...more >>

Web App with Dataset problems.
Posted by TonyM at 1/30/2004 6:56:00 PM
Hi all, First, Let me say I feel like a complete idiot here, and shamefully come to you for help. I've read and read and can't get this to work in a web application, however in a windows application I have no problems. Here it is: I have an sqlDataAdapter, sqlDataConnection, and a DataSet...more >>

Same method but different events
Posted by Ramsin Savra at 1/30/2004 6:51:35 PM
Hi Group, How can I define one function but able to use it in different events? let's say I have a method which should be called in KeyPress and KeyDown and Click either ? thanks ...more >>



How to sort a datagrid when clicking on column?
Posted by Jon Davis at 1/30/2004 6:48:32 PM
How do I enable my Windows Forms datagrid to sort when I click on the column header? I have a collection of custom classes that are displayed in my datagrid, and it works great except for this missing feature! AllowSorting property is set to True, but it doesn't seem to do anything. Thanks, J...more >>

how to put bmp images in listview or listbox
Posted by Kanaiya at 1/30/2004 6:28:53 PM
hello how to put images in either listbox or listview.bye. -- With regards, Gangani Kanaiya. ...more >>

deleting carriage return and linefeed characters from astring
Posted by Maxxam at 1/30/2004 6:14:41 PM
Hi, I have a simple question but i can't solve it simple. How can i remove carriage returns and linfeed characters , \n\r, form a string? Thanks, Andre ...more >>

TreeView2XML
Posted by thanigai at 1/30/2004 5:45:04 PM
how to Convert TreeView Nodes to an XML File? ...more >>

ADO.NET OnRowChanged
Posted by John Smith at 1/30/2004 5:27:36 PM
I've developed an application that uses DataSet's for data storage. Now I had this idea to make things easy that I could hook into the DataTable's OnRowChanged delegate to know when to Update the dataset. So when a OnRowChanged is fired I connect to my local database and invoke Update on t...more >>

Serial communications in .NET???
Posted by Jim H at 1/30/2004 5:25:41 PM
I need to communicate using a serial port. Are there any classes or libraries for this in .NET? If not are there any open source libraries for this out there? jim ...more >>

locating a carriage return in C++
Posted by Laura D at 1/30/2004 5:11:09 PM
How can I identify a carriage return in C++? \r, \f, \0, \n, \t does not work. I have also tried !isprint(ch), iscntrl(ch), isspace(ch), etc....with no luck! I even poked around in the MSDN and found some code that MS claims will save a file in unix format and I cut and pasted into my program(and ...more >>

Conditional compile from a main file with defines, is it possible?
Posted by John Dolinka at 1/30/2004 4:37:41 PM
I have a project of several files with #defines to setup a conditional compile. I would like to put these #defines in a single file and change the conditional compile from this one file with the #defines using an "include like" directive. C# does not have a #include directive so it appear...more >>

C# DataGrid Issue
Posted by Sunny at 1/30/2004 4:11:07 PM
Hi I wanted to create some custom DataGrid columns that i could use in my DATAGrids and allow the user to use them e.g. in addition to the TextBox, and Boolean column which are in the DataGrid by default, I would like to use, images and progress bar columns and perhaps any generic OBJECT column ...more >>

adding spaces to string
Posted by VM at 1/30/2004 4:08:49 PM
I'd like to add several spaces to a string variable. For example, if the value is "VM", I'd like to add 7 spaces so the new value is "VM ". Is that possible? Thanks. ...more >>

C++ capability within C#
Posted by David H. at 1/30/2004 4:01:09 PM
I have some background with C and C++ and am considering migration to Visual C#.NET for academic work. To get started, is it possible to compile working C++ code in the Visual C#.NET environment? If so, how is it done Thanks in advance for any help....more >>

Bound Control
Posted by Jim Heavey at 1/30/2004 3:22:17 PM
Hello, when you have bound a datatable to a control, say a comboBox and you have set the "ValueMember" and the "DisplayMenber". The cbo.SelectedValue returns the object which equates to the "ValueMember", but how do you retrieve the object which is associated with the Display Member? I have ...more >>

Where can I download a Windows Mobile 2003 emulator?
Posted by Jim H at 1/30/2004 3:09:34 PM
Where can I download a Windows Mobile 2003 (PocketPC 2003) Emulator? Thanks, jim ...more >>

TextBox Find and Replace !
Posted by Ramsin Savra at 1/30/2004 3:03:19 PM
Hi, What do you suggest to do if I want to do a search in TextBox ? I know that using RichTextBox, we could have Find method to search for a specific word or information but I was wonder if somebody knows some methods for Find and Replace in TextBox. Thanks ...more >>

Convert string to font
Posted by Wim at 1/30/2004 2:58:42 PM
I would like to store the ListView font in the XML config file. So I have a string variable listFont that stores the font (font.ToString()). It must be a string variable because a Font object cannot be written to the XML config file. Next time the program is started the font is read from the...more >>

copy var contents to the clipboard
Posted by Stephen Russell at 1/30/2004 2:50:58 PM
I am getting frustrated! I have huge strings in making segments for a SP in SQL Server. Everything looks good but I want to copy and then past into ISQL as a test. this is my error: Line 1: Incorrect syntax near 'whereclause'. Description: An unhandled exception occurred during the executio...more >>

shared variables or messages in C#
Posted by Ramsin Savra at 1/30/2004 2:17:03 PM
Hi group, Back to my C and Pascal programming under windows we used to have a segment or external file to keep common messages (error, warning and ...)! now what? how can I have my messages (associated with a project) in a unit or file ? then I would be able to modifiy just a file instead...more >>

cache
Posted by kuya789 NO[at]SPAM yahoo.com at 1/30/2004 2:14:27 PM
I made a web application using c#, i'm trying to port it to a windows application. but some of the functions didn't work. What is the equavelent of cache in a windows application? and how do i use it? Thanks a...more >>

how to put images in listbox
Posted by Kanaiya at 1/30/2004 2:02:27 PM
hello i want to put bitmap file which is midium size (on disk it is full size) in to some control which display it like thumbnail type any idea about it. -- With regards, Gangani Kanaiya. ...more >>

CString.Right
Posted by Selen at 1/30/2004 1:37:53 PM
I have a code strDocExt=CString.Right(txtFileContents.PostedFile.FÝleName,4).ToLower(); in c# CString.Right equal what? Thanks. ...more >>

datasets and XML
Posted by Dave at 1/30/2004 1:29:40 PM
Hi, I have the following data I want to produce from a dataset. <Request> <Ref>123</Ref> <RefType>Search</RefType> <CriteriaList> <Criteria Type="Detail">XXX123</Criteria> <Criteria Type="Detail">XXX345</Criteria> <Criteria Type="Summary">XXX678</Crite...more >>

Custom Parameter Attribute for Set Accessors
Posted by Ben Blair at 1/30/2004 1:06:10 PM
Hi. How does one assign a custom parameter attribute to the implicit "value" parameter of the set accessor method of a property? For example, I can assign a custom attribute to the return parameter of the get accessor as follows: public string Foo { [return: MyAttribute] get { ...more >>

Serial Coms
Posted by carmen at 1/30/2004 12:23:45 PM
Hi, I've just build a small application (Windows Applicañtion) that work with John Hind's CommBase.dll. This application opens Com1 port and sends a byte. I spend some days working on it because I'm new with VS .Net and new with C# Now I wanted to build the same application for SmallDevices wor...more >>

show data without datagrid
Posted by Mike at 1/30/2004 12:10:25 PM
I'm creating a asp.net application in C#. (i'm new to this process). All the examples i see that are displaying data are using the DataGridControl. Can anyone point me to some examples that is displaying data from a SQL database without using the DataGrid? Thx ...more >>

Hierarchical Component Editor
Posted by JPRoot at 1/30/2004 11:56:08 AM
Hi, When you use the Datagrid, editing TableStyles, you can add ColumnStyles using the design time editor. On the ColumnStyle design time editor, there is a Add button where there is a drop arrow where you can choose between a DataGridBoolColumn and DataGridTextBoxColumn to add. I wish to have t...more >>

Using C# to create a PDF
Posted by Kenneth H. Brannigan at 1/30/2004 11:54:23 AM
Hello, I was wondering if anyone could point me to a source that gives the standards for creating PDF documents. I do not want to use a third party product at all I want my C# object to create the PDF 100%. Thanks, Ken ...more >>

How to Cancel the process in between ?
Posted by Gopal Prabhakaran at 1/30/2004 11:10:58 AM
Dear Guys I developed a Win form application using C#. In my application, I used Login form to enter into application. In this login form I used three buttons( OK, Close and Cancel). The OK button call the web service and check the login credentails and then delivers the proper required data s...more >>

Executing Methods on a Different Form
Posted by rgreen3 at 1/30/2004 11:01:04 AM
Form1 is a PUBLIC class with a button, a label, and a PUBLIC method called AddText() Form2 is a PUBLIC class with a button When Form1.button is pressed it opens Form2 using the Show method The button on Form2 should execute the AddText() method on Form1 which simply adds some text to the label. ...more >>

Windows Service
Posted by Ruslan Shlain at 1/30/2004 10:59:50 AM
Can anyone point me to the resources on the web about writing Windows Services? ...more >>

executing program by clicking on an associated file (ext)
Posted by Marco Martin at 1/30/2004 10:44:44 AM
Good Day Group, I'm trying to make my application open and run some code when a user clicks on a file with an associated extension. This is *my* understanding of what actually happens, please correct me if I am wrong. I've searched the net, but there doesn't seem to be much on the subject. ...more >>

Help w/ TreeView and Images
Posted by John Bowman at 1/30/2004 10:44:19 AM
Hello, I'm tyring to understand something about using a TreeView ctrl & assigning the images. For testing purposes I'm just using the VS IDE to create and assign the contents of the TreeView. When I add a Node I can set the Image, and or the Selected Image properties for that node. Normally, w...more >>

C# Process Issue
Posted by Sunny at 1/30/2004 10:36:06 AM
Hi, Does anyone know what is the equivalent of C# "ExitSub", as in VB. I wanted to stop the processing of my procedure once an Error is encountered, therefore i wanted to use ExitSub. With Regards Sunny...more >>

UserControl enter key
Posted by Chuck Bowling at 1/30/2004 10:25:19 AM
I have a UserControl that contains a TextBox. I can't figure out how to capture and process the Enter key. I'm using the event code below... private void txt_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e) { if(e.KeyCode == Keys.Return) { Blink(Color.Green, 10, 100); }...more >>

Recommendations for C# books (help)
Posted by Micus at 1/30/2004 10:11:40 AM
Greetings, I would appreciate it if someone could recommend a few of the better C# and general .NET books for an intermediate C++ developer. I've searched the news groups and came up empty. My background has mainly focused on the Win32 API, ATL/COM and avoided MFC (if that info will help ...more >>

Network route with c#
Posted by markus r. at 1/30/2004 10:09:42 AM
Hi together, I am trying to add a new network route to the system with C# (like the dos command "route add ...."). But I can't find a suitable class in the framework. Perhaps can somebody help me who has tried some similar operations with c#. Kind regards Markus ...more >>

Very Fast Multithreaded URL Fetching
Posted by Arsen V. at 1/30/2004 9:39:30 AM
Hello, Does anyone know if an object or how to create one, that will allow me to fetch up to 10 URLs (containing XML-feed data) in an extremelly fast server side fashion? If the request is taking longer than it should, the object would need to be able to timeout on the spot (without waiting...more >>

FTP Transfer
Posted by Soulspace at 1/30/2004 9:31:58 AM
Hi all I'm write FTP applicatioin, but it must use port mode for transfer data and through gateway. i want to known how to do? ...more >>

ClipBoard Issue
Posted by Sunny at 1/30/2004 9:31:05 AM
Hi I am using Data Objects in my Applications and need to clear the ClipBoard or Memory Buffer after some intervals How do i clear the contents of the System.ClipBoard With Regard Sunny...more >>

WildCard Search
Posted by MFRASER at 1/30/2004 8:48:15 AM
Is there a way to get a list of files that match a wildcard search? c:\temp\test.xml c:\temp\test2.xml c:\temp\test32.xml c:\temp\123test33.xml I want to get a list of c:\temp\test*.xml so I should get a collection of three file items ...more >>

Implicit Reference to parent class?
Posted by JezB at 1/30/2004 8:47:43 AM
Is there any way in a generic class object to implicitly get a reference to the class that instantiated that object ? Obviously I can pass it a reference to store but it would be nice if there was an implicit Parent property or something similar that gave you it "for free". ...more >>

How To Click a Button using SendMessage and C#
Posted by mark.overstreet NO[at]SPAM mail.state.ky.us at 1/30/2004 8:20:18 AM
I am trying to click a button in another window and I have it's hWnd value so I was trying to use Send message. Here is my code but it doesn't work as expected... response = Win32API.SendMessage(hWndYesButton,Win32API.BM_SETSTATE,0,null); response = Win32API.SendMessage(hWndYesButton,Win32API...more >>

.Net Architecture question
Posted by kuya789 NO[at]SPAM yahoo.com at 1/30/2004 8:16:53 AM
is it faster, performance-wise to use as fewer libraries/namescape(?not sure wht they are called. ie using System.IO) as possible? i wrote a program that has about 3000 lines of code, and there's only one function that needs to do some xml-like string manipulation. It'd be easiest to use one ...more >>

Debug optimized code? (with inlined methods)
Posted by trnospam NO[at]SPAM earthlink.net at 1/30/2004 7:42:11 AM
I want to experiment with the JIT compiler's optimization of code, especially regarding inline compilation of small methods. What I have done is set the Build options for 'Optimize Code' to TRUE and set 'Generate debugging information' to TRUE. I run the compiled application from Windows Explo...more >>

[Semit-OT] Naming Conventions
Posted by C# Learner at 1/30/2004 5:48:46 AM
Why can't people abide by naming conventions?! It seems that most people have to have their /own/ custom convention....more >>

Decect 'hidden' text in a MS Word-document
Posted by Thomas at 1/30/2004 5:36:04 AM
How can I detect hidden text in a Word document using C#? -Thomas...more >>

Alt keys don't work
Posted by BuddyWork at 1/30/2004 5:33:52 AM
Has anyone come across bugs with .Net where the Alt keys does not work. For example I have a screen which has buttons and one button has a text "E&xit" and when I press the Alt-X it does not trigger that button, I have another button which has a text "C&onvent" and when I press the Alt-O ...more >>

Keep my application on top
Posted by Mario Reiley at 1/30/2004 5:28:21 AM
Hi, Group I am C# and VB.6 programmer but in this moments I have the followin question: How Can I keep my application on the top of all applications on my Windows desktop. Please let me know Best regard MArio ...more >>

Why cannot start Process using C#?
Posted by billgay_hk NO[at]SPAM yahoo.com.hk at 1/30/2004 12:45:50 AM
upgent help i want to start IE explorer using C# i try many code such as below: ProcessStartInfo startInfo = new ProcessStartInfo("IEXPLORE.EXE"); Process.Start(startInfo); or Process process = new Process(); process.StartInfo.FileName = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE...more >>

Spam
Posted by Charlie at 1/30/2004 12:28:06 AM
Hello G-Lock make email software. They have the best spam filterer I have come accross. I was getting seventy to eighty spams per day I havnt had a viagra spam for days They also have a brilliant support forum. If you dont know how to do it, someone will tell you. There is a l...more >>


DevelopmentNow Blog