Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested C# Solutions: 26 - 50 of 5947
 
I neeed to trim the following string to get a unique ID for a DataTable. ProductTypeList:_ctl"3":ProductList:_ctl"10" I have put quotes around the sections I need to extract. the numbers...
Experts, I need to open a word document as read only through my asp.net application using c#.  The web server the asp.net application is running on does not have word installed on it, so I ...
I have a double, db1, that needs to be rounded like so: 123.12 - > fine 123.123 - >123.13 Anything passed the second digit after the decimal gets rounded up 1 digit and parsed to only s...
How do i translate this VB6 code to C# test = InStr(1, strText, vbTab) I tried test  = strText.Tostring().Indexof('\t',0)  -- but did not work
I have a list of users that includes name, startdate, and enddate.  A user may be listed several times but with diferent start and end dates.   I want to create a new list that contains a sing...
i am using SendKeys.Send("{tab}"); in the key press event of a text box to move to the next textbox by pressing ENTER key This is working fine, but i am getting an error beep. can anybody p...
In C#, how do I perform a Left(  ) and Right(  ) string function on a string? For example: Right("This is a beautiful day",3) would equal "day" ~~~~ Left("This is a beautiful...
I need to control the keypress event.  I want to prohibit the user from entering letters in text boxes designed for numbers.  What is my best option?
Hi All,  i have a gridview control that is binded using DataSet object that is filled by code. my gridview has a template fields(for example i use template field to display country name inst...
Hi All, Can anybody tell me how to add, delete and most importantly edit a cell of a particular row in c# 2005? David
Why doesn't this work: System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("en-GB"); textBox1.Text = "18/08/1980" DateTime temp; temp = Convert.ToDateTim...
Hi, I have a textbox called txtAmount. I am trying to find out how I check the text box data is numeric in C# winforms please. Many thanks Lee
I am brand new to C# in .NET.  I am using the DataGridView and want to get the cell values from the selected row. Could someone provide code examples? Thanks
I am trying to have a openfiledialog filter like below All Formats|*.JPG,*.TIF|JPEG (*.JPG)|*.JPG|TIFF (*.TIF)|*.TIF But obviously the All Formats is not working.
I'd like to know how to create a Progress bar on my windows form. If possible, I'd like to find out how to do this using the statusStrip (progressBar, stripStatusLabel, and backGroundWorker). ...
Hello everyone, I am collection information on how to best implement password encryption and decryption. I have found many articles online but most of them are very unrealiable and difficult ...
Hi I’m looking for the best way to Export a populated DataGridView to Excel? It’s a windows forms application C#.Net 2005. Thanks
I have a collection of string item for a combox, say mycb. What we need is to set the default item programatically. How do i do that?
hi i have a list in c#.  i have sorted it by effective date using the following code. MyList.Sort(delegate(ListItem li1, ListItem li2) { return li1.EffectiveDate.CompareTo(li2.EffectiveDate...
On my Windows service written in C#, there is a method that makes an app domain and then loads some assemblies for that app domain (all of these are inside a thread). Im trying to add the f...
Hi, I am working on ASP.Net2.0, C# using Visual Studio 2005 I am using DataGrid to display my records in the search screen I want in the Datagrid where the value of <%# DataBinder.Eva...
How to get windows user ID in C# web application? To clarify, I am talking about login ID that user uses to login to his working machine. (he/she has to press Ctrl-Alt-Del and enter login and...
I am using a variable in my code which is a datetime. I need to convert this to a format which is "yyyy-mm-dd". How could i do this in c#. Here is my code private DateTime DateofBirt...
Hi guys, I was thinking of using C# ArrayList to group and sort 800,000 records.. Comparing with a hashtable, which is more efficient, someone told me once Arraylist reaches 100,000 or more...
Hi, I need to interview some candidates on their C# knowledge. Objective is to test strong C# fundamentals and .NET framework fundamentals. Please suggest some good questions that can te...