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

Software Development Network >> Visual C#

Visual C#

New Question

Valid Windows File Name
login
<example><code> documentation tags go nowhere
implementing public property in a class
graphics in C#
Disappearing code
Using ActiveX controls in a .NET service
Identifyng Generics and Enums in a C# "where" clause
Unhandled Exception in Debugging, Run OK in Starting without Debugging?
Checking for ilegal symbols in a string.

Top Answerers

David Pallmann
HelpMePl0x
Evan Mulawski
Lakmalk
ArielNY
Russ McDaniel
Kendal Walton
.Adrian
humberto molina
Sweeps78
Planet Source Code
Only Title

Answer Questions

  • U m A i R Referencing .Net 2.0 dll in .Net 1.1 application !?

    Hi , I want to refer a dll created in .Net 2.0 in a .Net 1.1 Windows application. How do I do that Thanks in advance Aseem Chiplonkar Software engineer. Hi, You could try building that DLL in v1.1 - It depends on what all features of v2.0 you have utilized..so if that shows up too many errors, you could wrap the DLL within a webservice and then call the webservice from .NET v1.1. Vikram Well .... My problem is that I have a third party dll which is created in VS 2005. I also have the source code. I want to use that dll in my VS 2003 application. Do you have any suggestions how do i do that Thanks in advance, Aseem Chiplonkar software engineer ...Show All

  • Luis Esteban Valencia Mu&amp;#241;oz How does VS 2003 pick the correct dll's to link to while compiling?

    I am using VS 2003 with Nunit. I have both the 2.0 and 1.1 assemblies of nunit on my machine. I have the following directories - >>dir | grep -i "nunit" 06/16/2006 11:05 AM <DIR> NUnit 2.2.8    //built with 1.1 framework 06/16/2006 11:06 AM <DIR> Nunit-Net-2.0 2.2.8    //built with 2.0 framework My GAC for Nunit looks as follows - >>gacutil /l | grep "nunit" nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL    nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77  Whenever I do a fresh checkout of an .NET 1.1 application, all the references to nunit.framewor ...Show All

  • Lionb MessageBox question -->

    This is what I have: private void Form1_FormClosing( object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason .UserClosing) MessageBox .Show( "Are you sure you want to exit " , "User Closing Warning" , MessageBoxButtons .YesNo, MessageBoxIcon .Warning, MessageBoxDefaultButton .Button2); } But, how do I make it so that when the user click yes, the App exits and when the user clicks no, the App doesn't do anything to make the app not close, set the e.Cancel = true; and to make the app close, set e.cancel = false; example:   DialogResult  theUserResult = MessageBox .Show( "Exit " , "Exit Application " , MessageBoxButtons .YesNo); if (th ...Show All

  • Alessandro Camargo How to create desktop alerts in windows services

    Hai, Thank u, But i need to create desktop alerts in windows services ..How can i do this any idea from you any one Regards hi you are right. a windows service cannot create desktop alerts. but u can interact with a windows form application using windows service. do u have any idea how to do that in C# code VS 2005. I think you cannot create desktop alerts directly from Windows Service. Windows Service does not support UI elements. It will give runtime exception. Hi, Why you want to do that if not really critical and must needed requirement then you can think about Task bar alerter application Good sample: MSN msger like task bar notifier: http://www.codeproject.com/cs/misc ...Show All

  • PARVAIZ recommendation for a book ?

    Do you have any recommendation for a book: 1. core C#. no winform, no asp.net, just C# 2. from mid-level to advanced level 3. cover thread, collection in depth, for example, Collection algorithm 4. cover the advanced topic, C# design, inside C#, in depth Thanks. perhaps scroll through this thread and see if there is anything for you http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=849534&SiteID=1 ...Show All

  • svarghese Help! My .cs Code Behind files have vanished from the solution explorer

    Hi There, I am fairly new to VS2005 so please be patient! I have created a website in VS2005 and created a few .aspx pages with the relevant .cs files behind them. Also created a couple of classes in the app_code folder. Then, I published the new site. When I go back to VS solution explorer I now can't see app_code folder or any of my .cs files for the .aspx pages. I REALLY need to get these files back so I can change them further. Could someone please tell me how get these files back I'm guessing they've been compiled into the dll when I published the site. Thank you so much if you can help me!! Kind Regards, Matt Hi, Compiling those files will not delete them. Search yo ...Show All

  • tarponboy11 Additional Fields in a table

    Using VS 2005, access db. I have a maintenance program that uses the 'INSERT INTO' statement. I know at some time in the future I will need to add more fields to table. Is there a method of programming that can be used so a recompile would not be necessary. (assuming I am not maintaining these fields in the program). I was thinking of something like a xml file. Any thoughts would be welcome. Thanks in advance. Thanks - I guess I had not thought this all the way thru. Assuming you store the table structure in a file of sorts, how would ypi get your application to set the field values during the insert operation Not only would you need t ...Show All

  • JohnnyP34 Question about throwing new exceptions and whether I should use InnerException

    When FileNotFoundException is thrown in my procedure, I want to throw a more descriptive error defined in a string variable Errordescription . But I also want FileNotFoundException error to be accessible programmatically for debugging purposes. How do I program the catch block for the exception: First I do this in my catch block: Catch ex As FileNotFoundException Then what should I use, the first o the second: Throw New FileNotFoundException( Errordescription , ex) or Throw New ApplicationException ( Errordescription , _ ex.InnerException) thank u If one of predefined .NET Exception types doesn't suit your need you need to create your own. public class MyFileNotFoundExcep ...Show All

  • Abelard Waiting for a method to execute.

    Hi, I imagine that this is a fairly common question. I have two methods that I would like to run in succession, i.e, let the latter wait for the former to execute. Logic tells me that a better approach would be the use of threads, but alas, I am stuck. For clarity: Help.Call(); //wait for Help.Call() to execute Proceed.PlanB(); Thanks. It's better to do anything that might interact with the controls of the form in the Load event of the form instead of the constructor. Populating the ListView in the constructor might be particularly troublesome... Of course, your problem could in fact be that the first method spawns a second thread, in which case you'll need to get a WaitHandle or something, which would probably require you to modify ...Show All

  • Armela Suppress a mouse click after I have processed it?

    Hello, Does anyone know of how I can go about suppressing a mouse click after I've handled it I know this can be done for keystrokes via the Handled property, but I am unable to find a way to do so for mouse events. You could perhaps handle the WM_CLICK message directly in the WndProc method instead of the Click event or OnClick override, and then not call the base method. It really depends on the context though. What is your goal -- what's problems are you having with it not being suppressed Hi Please make it clear. I cant really Understand what you are trying to do mamush ...Show All

  • Sanjeev Jha One Part Of A File Name

    When click a node my app it makes a new tab in the tab control with the text of the name of the node which is a file name. I only want the last part of the file name, for example "test.txt", in the tabs text; how would I go about doing this I used the second one and it worked. I don't know about the first one because I didn't try it.  The file path is "C:\Documents and Settings\Wasting Body\My Documents\Visual Studio 2005\Projects\Nuke\Nuke\bin\Debug\test.txt" and I just want to get the "test.txt" out of it. you can just get everything after the last backslash. Example: string fullPath = @"C:\Documents and Setti ...Show All

  • Mark Wills How to prevent a form from being activated/gaining focus.

    I'm working on a project where I want to be able to click on a form but not have the form keep focus. Although not what I'm working on at the moment but the Windows On Screen Keyboard is a good example. The OSK when clicked on doesn't take focus, but keeps the focus on the control that had the focus before. It does this but still is able to proccess an onclick event and send the keystroke over to the control that has focus. I'm needing to do something similar. I've tried overriding the onActivate method but it seems by then the form has already taken focus. Any help is appreciated. I tried your suggestion with the following code: [DllImport("user32.dll")] static extern IntPtr SetActiveW ...Show All

  • aka_Big_Wurm Sealed Classes - To use it or not

    hi all, I have read lots of articles/blogs on the internet that recommends not to use sealed classes. they say Sealed classes terminate your innovation . it stops OOD .. like that.. But i think we have to seal every class in the initial design phase . Open it up when needed. one advantage i like is performance. Ok, I personally prefer perfomance over all other illities except for security. People ask why class should be closed. But why a class should be open With Design principles prefering compostion over inheritance , why should we keep classes open.. With programmers breaking all possible designs practices and good designs later in development , is it safe to keep classes unsealed Ok reuse thru inheritance ...Show All

  • chrissav ASP.NET problem: "_Default exists in both guid1 and guid2"

    I get blue squigglies under the variables in the code for some controls (btnAdd) I dragged onto the design surface. The squiggly tooltip says "The name 'btnAdd does not exist in the current context" BUT Intellisense works when I type "." !!! I set a breakpoint in PageLoad, and did a Watch for "_Default" (to drill down into it) and I get an error msg that "The type '_Default' exists is both {someguidhere} and {someotherguidhere}" So... How can I resolve these so I don't get compile errors every time I press F5 (though the page works fine when shown in the Browser) I have the similar issue, I am using grid with dropdownlist user control and when I ...Show All

  • pfunkmasterflex Working with Excel files - MSDN let me down :-(

    Hi all, I'm having major problems accessing Excel data in files. I've found the following snippet which seems to work:                  Range range = firstSheet.get_Range("A1", "C3");                 //Retrieve the data from the range.                 Object[,] saRet;                 saRet = (System.Object[,])range.get_Value(Type.Missing);                 //D ...Show All

464748495051525354555657585960616263

©2008 Software Development Network

powered by phorum