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

Software Development Network >> .NET Development

.NET Development

New Question

.NET Remoting issue with COM client
.net remoting using tcp channel
DISPLAYING TABLES OF AN ACCESS DATABASE THROUGH C#
vb.net and access
Transaction without DTC???
Using Framework 3.0 - GetJobStream using system.printing Ref.
Get type of class in a static method
Pinchanged event
MDA: Binding Failure
Binding XML file to DataGridView in Windows Applications with C#

Top Answerers

Dietz
Jamie Thomson
dark_majician
kiral
E Jensen
Deuce BOI
Robi-Robo
omasoud
KeithFranklin
Noah Hambayi
sitemap
Only Title

Answer Questions

  • GrandpaB ArrayList: storing and retrieving records

    Hello, I've never used ArrayList before and despite having done some reading and searching the web for an answer have come up dry. Here's my code: public class TVRecord { public string ProgramID; public string ProgramTitle; public string ProgramDescription; public string ProgramSubTitle; } ArrayList TVShows = new ArrayList (); TVRecord TV1 = new TVRecord (); TV1.ProgramDescription = "test program description" ; TV1.ProgramID = "1" ; TV1.ProgramSubTitle = "test subtitle" ; TV1.ProgramTitle = "test program title" ; TVShows.Add(TV1); txtSelect.Text += TVShows[0]; After the last line is executed (txtSelect is a textb ...Show All

  • Newbie Kam DAL code generating tools

    I am doing evaluation of different Data access layer code generation tools for dotnet. Many people in the industry do evaluation of t he tools based of many points.3 of those points are not understandable to me. 1. Maintains single identities for objects returned from queries 2.Resolves Circular Identities 3.Business rule Support Can somebody please help me in understanding in laymans language what these means Cheers leo pretty sure i dnt get wat this is wat do i do wats happeneingggg Thanks Dave for patiently solving my queries. I got your point on query number one.So if one DAL can maintain a single identity of a entity, it will increase the performance.Now its clear. I ...Show All

  • Ajai NP Dictionary container serialization problems.

    I have a dictionary datamember that I am trying to serialize and get the following error {"Cannot serialize member InstrumentUI.Tallie.UserSpecificData of type System.Collections.Generic.Dictionary`2[[System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[InstrumentUI.Tallie+UserTally, InstrumentUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], because it implements IDictionary."} Does this mean that you cannot serialize the dictionary data member. And if so is there antoher container that I could use. I need a data member that can store a byte[] as the key and hold another datamember that stores a string as the key and an in for the value. any ideas. I was using the dictiona ...Show All

  • DKB System.Timers.Timer high resolution problem (C#)

    I want to use System.Timers.Timer in my project as a metronom with the resolution of approx. 1ms interval value. When i tried, it works fine up to 10ms, but below that value, it doesn't work. in my sample application, i am using a count value which increases every tick and when the count reaches the value of 100, i invoke a function which updates the label1. When i use the interval as 10, label1 updates every 1 second as expected but when i reduce the interval value, the time for updating the label1 doesn't decrease. For example, when i set interval to 1ms, it still takes 1 second to update label1. Does System.Timers.Timer allows interval below 10 Or is there any timer which does this in .NET framework PS: I didnt set the Syncroni ...Show All

  • Bijan programmatic access to sqldatasource dataset

    i'd like to take advantage of all the benefits of the new sqldatasource control to do quick queries & bindings, but also retain the flexibility of the previous ways of data access (i.e. sqlcommands/sqldataadapters) to fill datasets. is there a way to have programmatic access to the dataset that is filled after a sqldatasource queries a db i dont want to display all the columns queried in my gridview, but i want that data available for further manipulation without having to run another query. am i going about this the wrong way, or have i just not stumbled upon the solution thanks, david thanks for the suggestion. ive looked at it for a couple of days now but have not been able to come up with ...Show All

  • Tdar MailSlots and FileStream

    I'm trying to create a MailSlot and use FileStream using BeginRead and BeginWrite to do async operations, but running into some issues. using Microsoft.Win32.SafeHandles; using System; using System.Runtime.InteropServices; using System.Security.AccessControl; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Threading; using System.IO; [DllImport("kernel32.dll")] static extern SafeFileHandle CreateMailslot(string lpName, uint nMaxMessageSize, uint lReadTimeout, IntPtr lpSecurityAttributes); [DllImport("kernel32.dll")] static extern bool GetMailslotInfo(SafeFileHandle hMailslot, IntPtr lpMaxMessageSize, IntPtr lpNextSize, IntPtr lpMessageCount, In ...Show All

  • Uppy Displaying text as XML on a web browser

    How can I change this code to make it display the contents of xmlString on the browser in XML format instead of as ordinary text as now Private Sub Page_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load If ( Not Page.IsPostBack) Then Dim xmlString As String = "&ltCiscoIPPhoneText&gt<BR>" xmlString += "&ltTitle&gtArrests&lt/Title&gt<BR>" xmlString += "&ltText&gtC# XML text&lt/Text&gt<BR>" xmlString += "&ltSoftKeyItem&gt<BR>" xmlString += "&ltName&gtNext&lt/Name&gt<BR>" xmlString += "&ltURL& ...Show All

  • BlindCoder Raising an event

    Hello Suppose I have a class called C which defines an event called E and a method called M. Only one delegate registered to E In the method M I have the following code: do some work - part I Raise event E do some work - part II My questions are: Is it guaranteed that the delegate linked to event E will be completed before "do some work - part II" code is executed Is there any difference in the behavior if I'll invoke Application.DoEvent method after raising the event Is there a difference, behind the scene, between invoking a method using event and invoking the same method by calling a delegate of that method Thanks, Gil Hello, 1) Yes. ...Show All

  • Don Cameron Object dieing after some idle time

    Hi, Need some help ragarding remoting . I have an application developed using remoting scneorio. I am using SAO singleton objects. My application is working fine. But when i left the application idle on client sie, (user machine and not server machine) say some half an hour, ,y application returns the error. I found that object is dieing after some idle period. Any guess why this is happening Thanks Vyanki Hi, we have not set any times for object lifetime we are using public override object InitializeLifetimeService() { return null; } which will set the lifetime to infinite. Thanks & Rgds Vyankatesh What lifetime did you set on the objects This article sho ...Show All

  • cmumford Windbg - "Failed to request ThreadStore"

    Hi, I'm debugging a C# app (that sits on top of an unmanaged c++ app). I've loaded my .dmp file in windbg, and loaded the sos extension. Running the !threads command gives the above error, searching around I can't find any information about what can be causing this I can use the ~ command to see all native threads running. Running the !dumpheap command gives the following: The garbage collector data structures are not in a valid state for traversal. It is either in the "plan phase," where objects are being moved around, or we are at the initialization or shutdown of the gc heap. Commands related to displaying, finding or traversing objects as well as gc heap segments may not work properly. !dumpheap and !verifyheap ...Show All

  • Samoyed generics and static methods question

    I'm learning generics and c#. Is there a way to call static methods in the T class so I can streamline this I have two static methods in T named GetItem and SaveItem that I would like to invoke by something like T.GetItem(astring) and T.SaveItem(t). Reading some of the other posts seems to indicate that a static method can not be used. Thanks for any recommendations. public class FrmUpdateManager <T> : Form { T t; // etc // would like to do something like T.GetItem(tb.Text) to eliminate the if clause // for each type I implement i f ( typeof (T) == typeof ( InsuranceCompany )) { object obj; obj = ( InsuranceCompany .GetItem(tb.Text)); t = (T)obj; displa ...Show All

  • Don Eddleman Substring with regex??

    This is a simple stripping MyString.substring(1,150); but I want to strip the first 150 chars and also any of the following characters if found in the first 150 chars: HTML tags carriage returns line feeds tabs Can this be done using regex and substring or just regex How can this be done try this Regex reg = new Regex ( @"(<[^>]+>|\t|\n|\r)" ); str = reg.Replace(str, "" ); Depends you want to get certain number of characters BEFORE or AFTER replacement, use substring accordingly. Note the above expression eliminates <!CDATA[ ]]> sections as well, and if it's not a HTML doc but some string like "this is some ordinary < string >", ...Show All

  • GaryPod Library or source files

    Hello, I've created a webservice. What brings more performance If I put the whole service in a compiled library or can I let the source files in the app_code folder Procompiles the IIS the source files or are they compiled for each request thanks Is there a function to compile the whole files in App_Code before deploying found it myself...thanks! Well, when you deploy, you should not deploy source files. The assemblies, content and configuration etc. files need to be deployed. ...Show All

  • Frank Miller Creating a Custom Calendar Control in Asp.net

    I need to implement a Calendar Control in my application so that it can be used throught the aplication.I have searched the internet and have found some but those are just calendars and we can select a date. But if we wnt to go to some year say 2011 then we have to go on clicking the next month navigator until the required year and the month comes up.So I want to implement two dropdown lists on top of the calendar which signify month and year and we can select from the dropdowns. This can also include the navigation icons for the months and years. I want to implement them in an .ascx file.Can some one give me some suggestions or provide any helpful links to create the calendar control. The calendar control needs to be implemented as a cust ...Show All

  • Handra satellite assemblies

    Hi, Is there any application block which is used to build multi lingual application If not can any one give me sample program to create and use satellite asseblies used to support multiple languages. Thanks Deepa Hi, There is currently no application block that does localization. Here is a good example on creating satellite assemblies: http://www.codeguru.com/csharp/.net/net_general/tipstricks/article.php/c11367/ Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ok.. Thanks for the help ...Show All

92939495969798990123456789

©2008 Software Development Network

powered by phorum