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

Software Development Network >> Visual C#

Visual C#

New Question

Redim in C#
Searching in a text file
Inherit from exception
Help refactoring a method
How to write a ArrayList-like collection type which can be used by specified data type.
Definitive Guide to Exception Handling
What does the ? mean in C#
Regex?
Printing Options C#
IDataReader???

Top Answerers

Fusion54
AlexDcosta
debraj dhar
abzA
MovGP0
Lee Taylor
Chimme
Tyrael117
Biche
Tryin2Bgood
sitemap
Only Title

Answer Questions

  • KrishnaUNISYS which is the best way to desgin a bussiness model, class or struct?

    i develop a B/S project which include below: WEB - web project - UI BLL - class library - Business Logic DAL - class libaray - Data Access Model - class library - Business Model when i design the business model, for example BookInfo, i am confused for create it with class BookInfo or struct BookInfo. who can give me a guide thx in adv If you don't know what a struct is and if you don't understand the ramifications that a struct is, don't use it You want to put your logic in classes according to your nickname and your reply time, i can dope it out:-) coz, i am a chinese too. i have read the article " C# Heap(ing) Vs Stack(ing) in .NET", that's really good and clear. so could we ...Show All

  • Bruce Bukovics Ngen

    Hi, I've created native image by using ngen now How can i know whether .Net framework is using native image(generated by Ngen) or it is compliling it again by using JIT I suspect it is still using JIT Thanks sparta Does it help if you set ForceLog=1 in the registry http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptools/html/cpgrffusionlogviewerfuslogvwexe.asp Fuslogvw.exe is always blank Am i missing any thing or it shows only the built errors just some points on ngening http://farazmahmood.wordpress.com/2005/05/21/ngening-some-misconceptions/ regards One way is to use Fuslogvw.exe. See http://blogs.msdn.com/junfeng/archive/2007/02/18/native-image-loading.aspx ...Show All

  • pvphuc How do I get the application directory

    hi there, how do I get the application directory. that is, the directory of the running application as a string I need to know the directory of the code and the solution files, not Visual Studio With Application.StartupPath for example. GetExecutingPath() does not exist in the Assembly class tks but i code in notepad only Hi , Just check the following code snippet ---------------------------------------------------------- String strAppPath = Application .ExecutablePath; String [] tokens = strAppPath.Split( new char [] { '.' }); String strFolderPath = tokens[0]; int nPos = tokens[0].LastIndexOf( "\\" )+1; String FileName = tok ...Show All

  • LouArnold Value does not get assigned??

    I am trying to assign the OrderID from my OrderLegDetail object...when i step through the code while it running "this.OrderEntryID" has the value of the current instance of the OrderEntryID but it does not assign it to the OrderID of the OrderLegDetail object...it take it to its default value of -1 but i cant seem to figure out why.... for ( int x = 0; x < Legs.Count; x++) { ((Tracking.BusinessObjects.OrderLegDetail)Legs[x]).OrderID = this .OrderEntryID; } Different Legs Do all derive from OrderLegDetail Then it still should have the public properties of the base class available without casting. What type has Legs Just a collection of objects Can you single step the assignment Does your property sett ...Show All

  • Pat. Code comment using nullable type in cref

    Hi everyone, Does anyone know how to reference a nullable type for xml comments Quick example: /// <param name="p1"><see cref="bool " /> type of parameter</param> public void (bool p1) {} Do you do something like this /// <param name="p1"><see cref="Nullable{T}" /> type of parameter</param> /// <typeparamref name="T"><see cref="bool" /> nullable type</typeparamref> Seems awfully clumsy and I can't really get it to work Thanks, B. ...Show All

  • Kalyot How to make apps startup faster?

    Hi! Ive written an app in C#. The overall performance is great but the starting up of the app is really laggy. How can I make the apps startup smooth Matt The Framework is a monster. The first time you load an app that needs it...welcome to dogville. end of story. I have it set to Release and I also removed all unnecessary code. It might be because the app has a lot of buttons and menus. Would threads help ~Matt   Practical Tips for Boosting the Performance of Windows Forms Apps Thanks alot ;-) for sharing a great article. Yes, using both these articles will really increase the worth of your application in performance. Cheers ;-) ...Show All

  • Eric Jensen How to connect SQL Server to VS?

    Hi, I've been trying to access database to VS. I wrote some code shown below. using System.Data; using System.Data.SqlClient; namespace ADO1 { class Program { static void Main(string[] args) { SqlConnection cn = new SqlConnection(); try { cn.ConnectionString = "Integrated Security=SSPI;" + "Initial Catalog=AdventureWorks;" + "Data Source=(local)"; cn.Open(); SqlCommand dataCommand = new SqlCommand(); dataCommand.Connection = cn; dataCommand.CommandText = "Select Person.Contact.LastName, Person.Contact.FirstName"; dataCommand.CommandText += "From Person.Contact where LastName like 'Smith'"; ...Show All

  • Coritani problem with datasets for reports.

    Hi, I've recently testing the Microsoft report viewer and Microsofts reports and I discover some problems that I don't know how to solve I tested some datasets each one made with a diferent database (using always the same report), but the problem is that after I created one dataset and succesfull tested it, I deleted the Dataset and objects created and started over with another.... after that (when I feel confident enough) I started to build the report I was really going to use... but.. .BUT when I was going to set the Grid Data Set I realized that the name of the older datasets still exists but they DO NOT exists enywhere else in the project and I don't know how to get rid of those options. I even search throuh all the project fot the nam ...Show All

  • simon_ Windows Service or Scheduled Task

    Dear All, I need to run particular database script every 20 minutes. So what should I be doing I am confuse between windows service and scheduled task. Which is better I would say that which is better depends on your scenario. Meaning if you only need to do this on one machine then a scheduled task is probably the right way to go. But, if this is something that needs to be deployed to many differeny machines, then a windows service would be easier. Hope this helps! Dear Gabriel, I guess my choice wil be windos service cause I may later need to run this script on several different machines. Can you tell me where can I get a good reference to ...Show All

  • jomunoz New project and i need help with haveing something show up....

    if you would like to see what i am talking about when i ask for help you can download what i have done so far here: www.teamcyberia.com/downloads/TeamCyberia.SerialKeyHolder.zip some of you might of noticed that i was working on another project i have put that one off to the side for the moment and i am starting a new one to help me learn a little bit I am making a product that will store your serial keys for you, for programs because i keep loosing mine and this will organize them and store them And this is what i am asking for help with:   when you look at the program you will see a list view box with 2 sections one section is product and the other is the serial key i have got it to save the product under the product s ...Show All

  • geliser131 calling a .dll function from c#

    Hi... I have written a function in a .dll file like... ********************************************************************* extern "C" __declspec ( dllexport ) unsigned char * TransferMessage() { return TxdFrame; } *********************************************************************************** & i am calling this application from my C# application . I want to print the data whtever is i am getting from this .dll function on the form. So i want to know how i can do this. Any help from you all to solve this problem is welcome... Regards, Vinay Thanks Boban, i tried your answer but its giving error that... Run-Time Check Failure #2 - S ...Show All

  • MarkNyats overloading == operator in c# fails checking for null values

    Hi, I have developed one class called CProductInfo providing == and != operator features. I have one problem. When I use this class in my program, say CProductInfo product = null; and later, when i check for emptiness, if (product==null) it returns false as if the product instance is not empty. I tried various ways to eliminate this run-time error, but it just does not happen. Also I don't think there is use full tips on net for this. Can someone help Thanks in advance - Constantine <<<< THE BRIEF SOURCE CODE FOR CProductInfo IS BELOW >>>>>   using System; using System.Data; using System.Data.SqlClient; using MyDataLibrary; namespace ProductManager2006 {  public ...Show All

  • LLeuthard save datagridview contents to access database

    Can someone please show me how to dump the contents of a datagridview into a programmatically created access database When I click a save button, an access database is created to hold the contents of datagridview1, with fields named according to datagridview1's column headers.. Thanks for any help Hi, You have to bind the dataset's content to a dataset through the binding source object and call the table adapter's Update method. If you also want to know how to create a new access db on the fly look into ADOX: http://www.4guysfromrolla.com/webtech/013101-1.shtml A whole bunch of good resources, including numerous books, that could really help you out: ASP.NET 2.0: http://quickstarts.asp.net/ ...Show All

  • Joeku C# Or C++ .net?

    Does C# Have The Power Of C++, Or C++ Still The Best I Am Talking From 3D Application Side If you're comparing to managed languages, they're about the same. Each compiles down to the same intermediate language and suffers from the same speed/performance issues. If you're talking about the difference between C# and native C++, then C++ will always be faster--there's much less overhead in the unmanaged world. You can mix managed and native code with C++ to get the best of both worlds with VS2005. C++ interop. automatically performs all the PInvoking/Marshaling implicitly when you mix managed classes with unmanaged classes with Visual C++. If performance is an issue but you still want to use managed code, this may be your be ...Show All

  • Konstantinos Polychronis Class Property (Accessor)

    I have a question regarding accessibility of a field through a property. I have a class "myClass" that contains a private field "myfield" with a public accessor "MyField" to be able to get and set the value of the field. If I have a file "file_a.cs" that instatiates myClass I can access the field with a statement like myClass.Myfield. However, I have a file_b.cs that instatiates myClass also. How can I declare the accessor property in the shared class so that "MyField" is not available in file_b.cs but only available in file_a.cs Thanks confused at your side note there... public can be a property or a method, as so can private - the public/pri ...Show All

222324252627282930313233343536373839

©2008 Software Development Network

powered by phorum