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

Software Development Network >> Visual C#

Visual C#

New Question

DateTime Conversion
how to use switch to judge range values
How to uninstall application from commandline?
creating arrays of user defined types
how to use switch to judge range values
Barcode Scanner
Generic overloading badness
Some questions about working with dynamic linked dlls
How to check the properties of Windows which the user is using?
Override Attribute

Top Answerers

IamHuM
WRuschhaupt
Rob Zuber
m.a.fuchs
sydes141
chris441962
Sugan
Daffodils
zz2
asher101
sitemap
Only Title

Answer Questions

  • richard.bailey c# common classes

    is it possible to reference shared classes in fm1.1,without we have to import them , like framework 2.0 do with app_code folder classes If a class is referenced or in a project you can always access it by its full name. If there is a class in MyProject.DataAccess called Reader you can reference it as MyProject.DataAccess.Reader reader = new MyProject.DataAccess.Reader(); This approach does not require to state that you are using MyProject.DataAccess and write something like this Reader reader = new Reader(); As long as your project knows classes in a namespace it can use it, you do not need to explicitly state that you want to use it. OK, the answer to this is twofold. 1 - If ...Show All

  • Virdee Framework relates

    How do i deploy dotnet application with out installing dotnet framework in targeted system. kinldy reply for my question at my mail id .. regards Balaji There is no way. You cannot run a .NET application on a machine without having the common language runtime (CLR aka .NET Framework) available on it. A web application... or terminal services would be the alternative. Or you could create an MFC application using Visual C++. But again, if you have a .NET application that you want to run on a PC, it needs the CLR. ...Show All

  • AirpowerDavid asych operations using delegates

    Hello, Need some help here. We have a client/server windows app that is acting strange ever since we upgraded to 2.0 framework. We use async calls for all database operations. Some folks are getting the following error "Endinvoke can only be called once from an async operation". Some users get the error, some users don't, some times the user that gets the error will at times not have a problem, very strange. Here is a sample of our code: ProcessServer pas = new ProcessServer(); AsyncCallback RemoteCallback = new AsyncCallback(this.ValidateInspectorCallback); //call to server ValidateInspectorDelegate del = new ValidateInspectorDelegate(pas.ValidateInspector); IAsyncResult ar = del.BeginInvoke ...Show All

  • Roee-sgrass Mnemonics unpainted with themes

    With the .net 2.0 the underlines for mnemonic characters are not painted. I am not sure if this bug goes back to .net 1.0. Does someone have a workaround Johan, Thanks for your reply. Sorry I had not looked at all of the other posts earlier. Somehow, I missed them - probably because this was the first time I used this service. Have everything squared away now. Dave Glandorf I'm so sorry. I didn't realize they were off. The designer fooled me into believing that they were on. Oh well, the designer needs to paint them unconditionally... Problem solved Are you sure that you haven't checked the "Hide underlined letters for keyboard ...Show All

  • enric vives Convert string to double

    , Hi i have a big problem that i can't resolve. I try to develop a program how need information comming from the user by a textbox. This info is supposed to be used a double but textbox give back string. So i need to convert it into double. I have tryed Convert.Todouble( string) but i don't knwo why it doesn't work for negativ number entrered, or decimal number, when i use a coma or a point to enter my decimal number it give back NaN. Please help Try this... double d = Convert .ToDouble( String .Format( "{0:D}" , TextBox1.Text)); I've found it a lot easier to rely on databinding to take care of the conversion (eg: http://www.timvw.be/databinding-a-nullable-t-property/ ) As already ...Show All

  • Kamen How to Create a URL syntax checker in C#

    I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site. To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent. I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and I have included there 3 anti-phish tools. One of the tools is to check for URL syntax error. i have searched for such but has given me no good results that can be of any help to my project. I was hoping that some of the bright minds here could help me or enlighten me in my search. Thanks. javascript in C# could it be I am quite a beginn ...Show All

  • Darrin Turner How to tell if calles within an exception context?

    Hello I'm writing a log class in c# writes a message to log in the constructor and in the dispose method. This can be used like this: ... using (ScopedLog log = new log(logger, str)) { // scoped code } The output would be a message to the logger (ILog) before the scoped code, and after. I want to be able to tell, within the dispose method if dispose was run because of an exception that occured somewhere in the scoped code, or because execution reached the end of the using scope. Is that possible Thanks ronla Well, all I need in this class is to add a message to the log if the scope has ben exited as a result of an exception. It doesn't matter if it is caught later on or not. As for the delegate solu ...Show All

  • Crish Don't know what type of issue of My Visual Studio 2005 Team suit IDE

    I got a problem of my IDE. If I create a new C# website project using either File System or IIS project, when the solution was created, I opened codebehind file, the IDE produced a lot of erros for the syntax (by default). when I pointed to that error, it's said "'class' statment must end with a match 'end class'", it seems that the IDE use VB syntax to check my C# codebehind file. Does anyone have had this experience before or any solution Javafun wrote: Yes, it happens in the beginning when I crate a new site and then switch to the code behind. The good thing is, the SP1 RTM version has fixed that problem. Cheers! Well I am glad to hear that your problem is fixed. Sorry, I meant programming ...Show All

  • Vohuman Difference between Build and ReBuild

    I'm using .Net 2005. Can anyone plz. explain me what is the exact difference between Build and Rebuild. When to use Build and when to use Rebuild Best Regards Nani. Build will do a dependency analysis and only rebuild assemblies which need to be updated based on changes either within types inside of them, or dependent assemblies. Rebuild rebuilds the assembly even if the analysis detects that it doesn't need to be rebuilt. AnsonH_MS (Expert) - http://msdn.microsoft.com/chats/transcripts/vstudio/05_0505_dn_clan.aspx Rebuild : Cleans the solution and builds Build: Just builds with out worring anything, where are Rebuild cleans all the intermediary files and the output directories th ...Show All

  • Sundaraguru Reading from a Select Statement

    Hi I have a Select Statement, which iam passing to the server using an object of type SqlCommand. Now, this select statement returns the string value. I wanted to read this value obtained in to a String type. What i have to do. Do i have to use the sqldatareader to do this Thanks! Santhosh You are doing a double cast. GetSqlInt32 returns a SqlInt32 . You then try to convert that to a int which won't work. Do one of the following: 1) int loop2 = rdr.GetInt32(0); 2) SqlInt32 val = rdr.GetSqlInt32(0); int loop2 = val.IsNull 0 : val.value; 3) int loop2 = Convert.ToInt32(rdr(0)); I'd lean toward #1 myself unless the column can be null. In that case use #2. Michael Taylor - 8/4/06 ...Show All

  • dampbarn A design pattern for retrying operations

    Is there a well-known design pattern for retrying methods that are likely to fail I am thinking of a delegate-based implementation where the delegate wraps the method to be invoked. The delegate would then be fed to a RetryMethod method that implements the actual logic behind retrying an operation. And what if each method that supports 'retrying' takes different parameters Would 'anonymous delegates' apply in this case Thanks, Yazan D I came up with the following pattern. While it is incomplete, it does solve my problem. Code is below: class Retry // Test class below { #region Data members static public int _nRetryCount; #endregion #region Retry Delegates - add de ...Show All

  • Mateusz Rajca UnhandledExceptionMode

    Hello, Is there a way to write a custom exception handler, other then the one seen using: Application .SetUnhandledExceptionMode( UnhandledExceptionMode .CatchException); I want that the application will continue to run, after my exception handler is called with the thrown exception. (like the default win forms exception handler - after the exception form is shown the application continues) Thanks. I want my application to continue running. Just like the default exception handler that shows a form with the exception and allows to contiune. I'm not sure if what you wrote is what I need.. Ori N wrote: I want my application to continue running. Just like the default exception handler that shows a form ...Show All

  • Michael Hecht how to update database using dataset and stored procedures

    i've been trying to update my database using my dataset but see no results. my dataset came from the datagridview. i passed the dataset to my dal and i want to update my database using stored procedure. i've seen some samples but its not using stored procedures. Mate you'll have to give a little more info Follow these steps:- 1: populate the dataset 2. Make the changes that you want 3.Create update,insert ,delete commands for the dataadaper 3.pass the dataset to dataAdapters update method. The code will look as follows:- SqlDataAdapter da = new SqlDataAdapter (); SqlCommand com = new SqlCommand (); DataSet ds = new DataSet (); SqlCommand com1 = new SqlCommand (); SqlComman ...Show All

  • Naldai_ Wizard Control

    Hi, How do I disable Asp.net wizard control sidebar navigation (only next ) and force prev/next buttons . I only want to disable next navigation from sidebar but want to allow previous navigation.   Wizard Control........ in Windows Forms If you are talking about Web Froms please post that question http://forums.asp.net ! Best regards, Rizwan ...Show All

  • donkaiser Creating instance of a generic type

    Hi eveyone, I have kind of weird problem . This method is creating an instance of the specified type (parameter:typeFullName) . Reason we don't directly create an instance of the <T> is that it could be an interface too. Here is the code sample : public static T CreateDAO<T>(string typeFullName) { Type daoType = Type.GetType(typeFullName); return (T) Activator.CreateInstance(daoType); //Exception thrown line } Exception says : Unable to cast object of type "Sample.OrderDAO" to type "Sample.OrderDAO" . It can't cast itself to itself's type . What might be the problem Thje following works fine for me. More details are needed: class ...Show All

2345678910111213141516171819

©2008 Software Development Network

powered by phorum