Software Development Network Logo
  • SharePoint Products
  • IE Development
  • Audio and Video
  • .NET Development
  • Visual Studio
  • Visual FoxPro
  • Microsoft ISV
  • Visual C#
  • Visual Basic
  • VS Team System
  • SQL Server
  • Visual C++
  • Game Technologies
  • Windows Forms
  • Windows Vista

Software Development Network >> .NET Development

.NET Development

New Question

How to FtpWebResponse / FtpWebRequest Catch Events ???
How should I send query to datatableadapter?
Problem with String.Replace
FileLogTraceListener class - implementation ?
IoCompletion handle
Instruction and operand types.
Problem With File Dates Created During Daylight Savings Time
GetHashCode and Equals once again
Upload Data To HTTPS via Proxy problems
Trusted_Connection Problem with VS2005

Top Answerers

JLLO
Hakan Gümüş
Ccm1st
arnold park
Jamie Plenderleith
sudharshansalvaji
den2005
MuscleHead
JerryCic
bzoli
DevelopMentor
Only Title

Answer Questions

  • JungleMonkeyMike extracting subtree data from XML

    If I have an XML file like this: <customerdata> <customer name = "cust1"> <column>First Name</column> <column>Last Name</column> <column>Address</column> <column>Phone</column> <column>EMail</column> </customer > <customer name = "cust2"> <column>First Name</column> <column>Last Name</column> <column>Address</column> <column>Phone</column> <column>EMail</column> </customer > </customerdata> If I want to extract information regarding only the first customer using the customer name, how do I do it Sergey's ...Show All

  • redneon What type of collection to use

    I am going to be doing 2 for loops.  One cycles through one set of ProductIDs and another cycles through a different set of ProductIDs. I want to add Each Product ID, ProductID to a collection.  I'm not sure what I should use, a hashtable example: foreach(Product p in myvariable1) {     add p.ProductID to collection and call it ParentProductID } foreach(Product p in myvariable2) {     add p.ProductID to collection and call it RelatedProductID } I will retrieve the hash table later and use it in a call to my method which insert each Pair into a Relationship table and so I'm gonna want to cycle through that collection and do something like this: foreach (value pair in my collection of ProductIDs) {     ...Show All

  • exo_duz ListView order

    I have a ListView control with "Details" property. The ListView has some columns. If i click a column header i want the items to be ordered ascending / descending by the text of this column (like in windows folders). Hi, You need to create a class that implements ICompare, then creating an instance of it and assign it to the ListViewSort property. Here is an example: public class ListSorter : IComparer { public int Compare( object x, object y) { ListViewItem Current = (ListViewItem) x; ListViewItem Comparer = (ListViewItem) y; // // Here you do your comprisons (for example) // return Current.SubItems[1].Text.CompareTo(Comparer .S ...Show All

  • PCSQL66 SQL Server 7 & vs2005 pro

    When using ASP.net, and a gridview, it does not have SQL Server 7 available as one of the database options (only 2000 or 2005). Several tutorials I am working with show it as being available. Did I botch the installation or is there a setting I missed Thanks, Silver Yes I believe the SQLClient driver is designed to work with SQL 7.0 and up so in theory it should work fine. SQL Server 7 is old I believe, perhaps even before SQL 2000 was released. SQL Server 2000 and 2005 are the most common used/versions of SQL Server. the Visual Studio does not install SQL Server or include it. You would have to either purchase them or download SQL Server 2005 Express edition for free however you won't be ...Show All

  • Jeff Weber DataSet.ReadXml error: Method not found: 'Boolean System.Globalization.CultureInfo.get_IsNeutralCulture()

    Help Please! We have an application that reads serialized xml data from a web service. The result is returned as a string rather than a deserialized dataset due to some globalization issues we were facing. Now it seems that most of our users have no problem getting the data from the web service and reading it into the dataset (it's a typed data set), but for one particular user, he's getting the following error (full stack trace posted): Method not found: 'Boolean System.Globalization.CultureInfo.get_IsNeutralCulture()' at System.Data.DataTable.get_FormatProvider() at System.Data.Common.Int32Storage.Set(Int32 record, Object value) at System.Data.DataColumn.Init(Int32 record) at System.Data.DataTable.NewRecord(Int32 sourceRecord) at Syst ...Show All

  • perstam Windows App from .Net 1.1 to 2.0

    I recently installed VS 2005. I converted my 1.1 windows app to 2.0. It debugs fine on my machine (no errors). The release runs fine on host machines with 2.0 (and 1.1) but it crashes on machines w/o 1.1 installed. The release runs fine on my machine even after I've uninstalled 1.1. I don't know what the difference could be. The debug report on the host machines contains no useful info to me. Thanks in advance for any suggestions. no worries, thanks for sharing that with us! Yes, we're on the same OS and neither of us have 1.1. I can't find any references to 1.1 within the code. Could it be that I use Crystal Reports within the app If so would I have to buy a newer version of CR as well I still woul ...Show All

  • Zeek Problem in Generics with Reflection

    Hi All, I'm creating an instance of a GenericType dynamically using Reflection. like, public class A<T> { private T typeval; public T TypeVal { get { return typeval; } set { typeval = value;} } } I'm creating an instance of A using the following code, Type t = Type.GetType("System.Int32"); Type genericType = typeof(A<>); Type[] typeArgs = {t}; Type constructed = genericType.MakeGenericType(typeArgs); object obja = Activator.CreateInstance(constructed); When i try to set the value of typeval for obja using the following code, PropertyInfo finfo = genericType.GetProperty("TypeVal"); finfo.SetValue(obja, 1,null); It gives me the followi ...Show All

  • rgerrit The best way to convert a jpeg image to hexBinary data.

    I'm working on sending an image in a Xml mesage and then recipient expects a hexBinary format for the image data. What is the best way to convert a jpeg image file to hexBinary data Any help or pointer will be appreciated greatly! Xml serialization of takes care of converting a byte array into hexBinary data when the byte array property is marked with hexBinary attribute. You can use XmlConvert class. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemxmlxmlconvertmemberstopic.asp ...Show All

  • Nichole158860 GCHandle.Free explanation

    Does GCHandle.Free dispose of the object being freed if the object implements the IDisposable interface No. A GCHandle is a garbage collector handle, not an object reference. Freeing a GCHandle does not directly free the memory occupied by the object for which it a handle for. Peter Ritchie wrote: No. A GCHandle is a garbage collector handle, not an object reference. Freeing a GCHandle does not directly free the memory occupied by the object for which it a handle for. I wasn't asking whether it freed the memory occupied by the object for which it had a handle but rather whether it called IDisposable.Dispose on that object. Obviously calling the finalizer and freeing the memory is done by ...Show All

  • Mario Cano DataSet Merge with DataRows in .NET 2.0

    Hi all, i’m currently having problems migrating a solution from .NET 1.1 to 2.0. The solution heavily uses datasets and the merge method. There are a number of cases where two datasets have the same tables (same column/structure). The namespace is not equal. My problem is that the merge methods seems not to be implemented in same way as it was in .NET 1.1. For example I have two datasets ds1 and ds2. Both datasets have a datatable called "datatable1". Both tables tables have the same schema, except the namespace. When I now call ds1.Merge(ds2.datatable1.Select(...)), a second datatable with the same name will be created in ds1. To make it clear, the ds1 has two tables "datatable1" after the Merge method. ...Show All

  • WinFormsUser13232 Threading fun ;)

    Hello threading professionals, I have something "clean" and interesting for you... please help. I will appreciate it.. I want to solve the problem and (more so) learn about how this thing works.. very interested in the details. In my simple notes-taking simple, once in a blue moon it happens that the GUI stops responding.. I finally took the courage and attached a debugger earlier today when it happened again. With my newly acquired debugging skills I found out where the problem lies and what is happening. However I still don't understand WHY it happens. I imagine that it should be too hard of a challenge for someone with a lot of experience in this subject. Here we go: In my NotesForm, I use a System.Threading.Timer which fires every 20se ...Show All

  • F. Gsell I have problem when use DateTime class

    I use DateTime.Now in my program and it work correctly. I run my program 24hrs/day . But it work correctly for 6hrs after that it retrun wrong date and time to my program and I have to restart the program to make it work correctly again. example I run program at 31/10/2006 but it return 299/12/2006 to me. I don't know what is the problem. I can't fix it. Anyone can help me Thank ahmedilyas wrote: can you show us the code you are using string tempname = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString("00"); string filename = "log/TBG" + tempname + ".txt"; string filename_temp = "t ...Show All

  • kcm kumar Using .NET component in VC++ code

    Hi All, I have created a .NET library which is used in a VC++ program, a simple dll (created by VC++ 6.0). For this I have used .tlb file created from my .NET library. #import "MyLib.dll" IMyLibPtr pIMyLib(__uuidof(MyLib)); http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconreferencingnettypesfromcom.asp For this my .NET dll should present on target machine and register. (As tlb is CCW for .NET library) But, I want to add a check in my VC++ program to find out whether .NET library is registered or not and if register call function exposed by .NET library or use function in my VC++ program. If .NET library is not installed then "IMyLibPtr pIMyLib(__uuidof(My ...Show All

  • Tomay How to place the Tray Icon for Windows Service using C#

    I need the tray icon for windows service. In that service i am checking for certain timing, at that time i want to load the application. Is it possible using C# in .net 1.1. As Curtis has suggested, Create 2 applications, one Windows Server and other Windows Application. You can hide the main form of Windows Application and put icon in the System Tray. Whenever you want to show an icon you can start that application and whenever you want to hide the icon you can kill that process using Process.Kill.... If you need other communications like, menupulating context menu assiociated with Notify Icon or change the icon dunamically then you need to use Remoting. Best Regards, Writing a service tha ...Show All

  • Duane Douglas Memory management for unsafe code

    Hi, It is known that Garbage collector does the memory management for managed code. i have a code that reads 1 billion rows of an event file (.evt). I m parsing each record of the evt file one by one using UNSAFE code. Due to a large no. of rows, my application used to crash, so i used GC .Collect(); & called it after some specific no. of rows have been read. My problem was resolved My question is who does the memory management for unsafe code Is it the garbage collector which i m calling. I m saying this because my memory mgmt problem was resolved after i added the GC.Collect statement.   Be sure to distinguish unmanaged code from unsafe code. Unmanaged code is automatically unsafe. ...Show All

121314151617181920212223242526272829

©2008 Software Development Network

powered by phorum