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

Software Development Network >> Visual C#

Visual C#

New Question

Bind with WindowsIdentity
controls from another form
Transferring data from one form to another, is it possible?
.Net passport
rich textbox question
Inconsistent accessibility: base class
Asynchronous Socket shutdown question?
Get the font filename (like tahoma.ttf)
C# CommandBarButton question
Factory pattern, possible in C#?

Top Answerers

dotBomb
himo
Alex Hall
TJ COLLIER
laurie0718
Andrea Solari
thembi
Dave Hampe
luis figueredo
vini80
LiteSpeed for
Only Title

Answer Questions

  • hullracing dynamic casting/creating

    this isn't allowed : if (soort.Equals("Form1")) { Form1 formulier = (Form1)Sessie.cachedForms.Pop(); formulier.method_of_form1 formulier.show } else if (soort.Equals("Form2") Form2 ... Error 2 : Embedded statement cannot be a declaration or labeled statement Sessie.cachedForms.Pop() returns a reference to a form. What i want to do is making a new Form of the correct type. If I do ...Show All

  • Stezza Stereotype C#.net 2005 to Excel 2003 - Insert function into Excel VBA Editor

    Hi guys,   The code below is a VBA function into Excel VBA Editor. The function opens an unknown file using 862 code page, save it as txt file, and reopens it using 28598 code page. (That's the way I succeeded to read the unknown file using Excel). You can download the unknown file from this site: http://rapidshare.de/files/19995657/Unrecognized_files_examples.rar.html (When it opens click "Free" in the middle on t ...Show All

  • Bagilu Creating A Folder

    Ok. Can someone tell me how to create a folder using code. In a button clickevent I would like to create a new folder on my desktop. Can someone tell me how   private DirectoryInfo makeDirectory(string path)   {    DirectoryInfo myDirectory;    if (!Directory.Exists(path))     {     myDirectory = Directory.CreateDirectory(path);    } ...Show All

  • zdux0012 How do I add windows form controls without setting the positioning or location

    Hi, How do I add windows form controls such as Textbox, Labels without setting the positioning. Is there something like a Flow Layout in C# without creating my own custom object to achieve this Thanks. Hi Chris, I search on the net realised there is such feature in .NET 2.0. If I create my own layout manager, isnt it wasted if I upgrade to .NET 2.0 later Or is there any other alternatives/meth ...Show All

  • CHTHONIC A real easy one

    Can someone tell me how to translate this BASIC statement into c# (There are no help topics in the c# express package about trig functions) y = sin(x) Also: Is there a translation tool that can help old BASIC programmers like me translate things from VB to VC# (My C is pretty wobbly) Thanks and apologies for the noobieness. Thanks. double y ; double x = Math.PI ; ...Show All

  • BHARAT JARIWALA How to connect to catelog SQL-Server Full text search

    Is there a way to connect to a Sql-Server Full text search catelog and display the result in the WDS UI If not, is there a releasedate planned to implement this feature Thanks, Gerard Hi Gerard, I hope the reply Brandon provided helped. Per the forum's new guidelines (please see below), could you please advise as to whether or not it answered your question If I don't hear from you within the next several days I'll go ...Show All

  • sumathra Binary.Write in C#

    My impression was that I could use Binary.Write for data other than byte arrays by giving the variable as a single argument of BinaryWrite. But when I do it with a short integer, it gets padded with two null bytes. I don't want this, since what I am generating is a sound file. Is there a way to do this Do you mean "BinaryWriter.Write(...)" That should only write two bytes if you pass it a 16 bit inte ...Show All

  • ckris select the current paragraph in a richtextbox

    Is there a way to select the whole paragraph, not just the current line, at the current caret position in a richtextbox got it. Thanks again. Don't use the Find method; use the IndexOf and LastIndexOf the String class. Use this on the Text property of the RichTextBox. Just get the last index of the Paragraph char (U+2029) from 0 to the current index and then get the f ...Show All

  • jjjames MSDN Library for VS.NET 2003 download

    Is it possible to download or buy MSDN Library for VS.NET 2003 separately Yes, Questa is correct that the MSDN Library updates quarterly.  It will also include some partner documentation that may not have been included in the box when you buy VS.NET 2003 (for example, you might get all the visual studio docs but maybe not the SQL docs). Thanks, Karen Liu Visual C# That is true! Never thought that way before. It i ...Show All

  • Jamel Nullable type testing against null

    I need to test if a Nullable<T> instance is null after it's been converted to an object. My current code fails using this: using System; using System.Collections.Generic; using System.Text; namespace TestNullable {   class Program   {     static void Main( string [] args )     {       System.Nullable< int > n = null ;     &nb ...Show All

  • Will MC DLLImport - How to set the dllname at runtime

    Hi, I understand that DLLImport require the dllname to be statically coded. In my case, the dll name (pathname) can only be retrieved from a XML file. How can I archieve that Any help would be appreciated. See http://www.msjogren.net/dotnet/eng/samples/dotnet_dynpinvoke.asp for an example. In .NET 2.0 it can be simplified by using Marshal.GetDelegateForFunctionPointer Use Assembly.Load ...Show All

  • AhmadOOka C# and COM Interop and HRESULTs

    Hi, I have a COM object that I am using via c#. THe object supports a method that checks an angle lower and upper limits and returns a bool. The result is either a pass or fail, if it fails further information is passed via the HRESULT indicating whether it failed the upper limit or lower limit check. So this is not an error just a logical failure. Is there anyway I can look at the contents of the HRESULT after the call, even when an exception ...Show All

  • Pr0ger Exception Usage

    I want to know which scenarios to inherit following exception class Exception SystemException ApplicationException Exception - This is the base class of all exceptions. Do not derive user-defined custom exceptions from this class. SystemException - This class is provided as a means to differentiate between exceptions defined by the system versus exceptions defined by applications. Do not derive from this. ApplicationException - Derive use ...Show All

  • Andres Cedeno C# 2005 Online or Offline

    Hey all  Does anyone know where I might be able to find a tutorial on how I can have my program be able to tell whether or not it is online or offline Thanks MacKenzie using System.Management; private bool IsNetworkConnected() {   bool connected = SystemInformation.Network;   if (connected)   {      connected = false;     System.Management.ManagementObjectSearcher searcher = new Syst ...Show All

  • Paul Diterwich autoeventWireup bug?

    Pls could someone explain better autoeventwireup (changed in VS 2005!) I try to put imagebutton in my gridview but it sometimes creates a postback, so my page is renderized twice and if i want to move up a row, it moves up but of 2 positions!  autoeventwireup=true per default (in 2003 was false!) < Columns > < asp : ButtonField CommandName ="MoveUp" Text ="Up" ButtonType ="Image" ImageUrl ="~/IMG/up. ...Show All

2345678910111213141516171819

©2008 Software Development Network

powered by phorum