Software Development Network Logo
  • Windows Forms
  • Windows Live
  • .NET Development
  • Microsoft ISV
  • Visual Studio
  • Visual FoxPro
  • Smart Device
  • Architecture
  • VS Team System
  • Game Technologies
  • Windows Vista
  • VS Express Editions
  • Visual C#
  • Visual C++
  • Visual J#

Software Development Network >> .NET Development

.NET Development

New Question

Server as form - how to call methods on the form etc.
Pretty XML? should be easy can't find how!
Arraylist from SQLReader
Exception: "The underlying connection was closed: The connection was closed unexpectedly." (sometimes)
Moving the file while it's still being created
Formatting 100000 to display as $100K
Connection Strings in the app.config file
SerialPort class and the ReadTimeout
Query for inserting data into a database
Serializable

Top Answerers

Pär Hedberg
lazy j
newpassport
OrionsToy
Delapena
Daniel Marley
Sabita
xavier gonzalez
Mr_Gear
VincGoh
WebGuyz.Net
Only Title

Answer Questions

  • sergeb Managed Memory Leak?

    I am having a very strange memory leak that seems related to databinding. It is very hard to reproduce, so I won't post any code here to do so, but will just describe the problem. We have data entry forms which have controls which bind to custom business objects through a BindingSource object. On Dispose of the form, we call ClearBindings as described in: http://msdn.microsof ...Show All

  • Jason Stangroome Need desperate help with a simple compare

    Please help... I am so frustrated with this bit of code. I dont understand why its not working. I am checking one field from another field if they are equal then you return a bool value of true. If they are false you load it to an array. I swear it sounds easy but when i run it and i have both fields on quickwatch they look equal it still goes to the else condition string delimiterStr = ","; char [] display; char [] deli ...Show All

  • Mark Brady how to use collection of integer values for in clause in sql server through sql parameter variable

    how to collection integer values for in clause in sql server through sql parameter variable strint iIDS='1,2,3' public void Update (string Name, long PID, string iIDS) { string SqlCommand = @"UPDATE Inventory SET PID = @PID WHERE I_ID in (@ iIDS)"; Database DB = DatabaseFactory.CreateDatabase(Name); DbCommand DbCmd = DB.GetSqlStringCommand(SqlCommand); ...Show All

  • payyans Undefined data type: 'token'

    I've got a committee designed xsd that I need to read and read xml data against it. I'm getting this error 'Undefined data type: 'token'' on the second line of this VS2005 VB code: Dim _ds As New DataSet _ds.ReadXmlSchema("long path to.xsd") The xsd I'm trying to read has 3 files, 2 imports. It looks like this: transcript <-- academic record <-- core The only place in the 3 files I find 'token' is in the core.xsd file. One of ...Show All

  • Yilmaz Ay Receiving ArgumentException while attempting to read Application.UserAppDataPath

    Greetings, I've been accessing Application.UserAppDataPath in my application for a while but recently it's been throwing an exception that's leaving me scratching my head in wonder. I can't seem to find any good documentation or material to help me with this. This is a WinForms application being developed with .NET Framework 2.0 on a WinXP Pro machine. Here is the offending line of code: label3.Text = Application.UserAppDataPath.ToString(); A ...Show All

  • cobramatt Why must a type be marked as Serializable to be serializable???

    I think when we want to serialize a type, we mean it. Why the Framework forces us to attribute it as Serializable In this way I have to add [Serializable] to the following simple class that contain ONLY simple privimite types, just to let it be serializable. class person {     public string name;     public uint age; }   And more worse, if this class comes from a third party class library, I don't ha ...Show All

  • Scott Grosch adding those method comments...

    When I use type library methods and classes, there are these comments that show up for each argument in a method as you type the arguments.  How do I add those comments so they popup with my methods   Thanks in advance,   Devin In .NET 1.0 and 1.1 it was automatic in C# but hard to do in VB. Does someone know if this was fixed in version 2.0 You can add an XML Comment for your ...Show All

  • Ashish Shetty - MSFT Can a dll built in vs2005 .NET 2.0 be used within vs2003 .NET 1.1

    will vs2003 .NET 1.1 be able to use a dll built in vs2005 .NET 2.0 Cheers, Craig I've tried once to create a 2.0 assembly which I tried to use from a 1.1 project. I tried to use the configuration settings described in the document you mention James. Finally, there was no way I could add a reference of the 2.0 assembly to the 1.1 project. VS2003 kept throwing an exception. nope! it's ...Show All

  • VOT Adding install condition

    Hello. Under VS 7.1 the installer by default has install condition that verifies .NET Framework 1.1 presence. How do I add another condition that would verify .NET Framework 2.0 presence Its been improved somewhat, and you can now force it to install the .NET Framework. 1. Create a new setup project 2. Right-click on the Setup project node in Solution Explorer and click Properties 3. Under the Build ...Show All

  • GoodNews Logging using Attributes

    I would like to log method execution in text file. I would like to use custom attribute to mark such method, but I don't know how to use custom attribute to run code before and after method execution Is that doable You can also check out TraceHook.Net. http://www.razorsoft.net/TraceHook.htm It sounds like you may benefit from Aspect Oriented approach... you can checkout this framework it may be of some help. http://ww ...Show All

  • aats139 Collection events

    Hi, just wondering if it is possible to have a collections base class send an event to the collection. Not worded well but heres an example. Class Tree Property color Property species Class TreeCollection property ColorCount property SpeciesCount This is very basic but what I want is if the color of a tree changes an event is fired that the collection sees to reset its count of trees with a certain color. Hope this is clear enough Regards ...Show All

  • Spoofed How to Determine size of the C# Object

    hi how to determine the size of the Custom C# object at run time. I'm storing that object in Cache and i wanted to know the size of that object before i store it. Like in C++ we have sizeof is there any function in C# [ StructLayout ( LayoutKind .Sequential, Pack = 1)] public struct MY_STRUCT { [ MarshalAs ( UnmanagedType .ByValArray, SizeConst = 2)] public Byte [] RecordType; // = n ...Show All

  • leolima Signing Web Application with StrongName

    I want to Sign my Web Application with a StrongName. So that I want to assign some permissions to that application. I have followed the steps as found at http://blogs.ugidotnet.org/markino/articles/24955.aspx So, I have included compilerOptions in page directive, And my key file is c:\WebOffice.vb <%@ Page Language="vb" compilerOptions="c:\WebOffice.vb" AutoEventWireup="false" Codebehind="WebF ...Show All

  • Goran Ciric Passing culture/language from winform-app to webservice

    I want to pass the culture that is used in a client-winapp to a webservice that is called from within the client-winapp. A culture that is set in the client-winapp is (as far as I know by now) not accessible in the webservice. I thought I can use HttpContect.Current.Request.UserLanguages, but UserLanguages is always null. When I make the same call from a web-app, UserLanguages is passed from the browser to the webservice, so it can be dete ...Show All

  • Luis Ricardo Velho Protecting Assemblies

      I'm building an n-tier application with data access, application and UI layers in separate projects and hence separate assemblies. MyProjectUI.dll MyProjectApp.dll MyProjectDataAccess.dll etc... The application will eventually be publicly available for download and installed on end-users machines. How can I protect my middle tier and DAL assemblies from unauthorised access so that a 'clever' user cannot add a reference to o ...Show All

495051525354555657585960616263646566

©2008 Software Development Network

powered by phorum