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

Software Development Network >> Visual C#

Visual C#

New Question

select the current paragraph in a richtextbox
Casting to nullable generics
Multi-language solutions
How to connect to catelog SQL-Server Full text search
C# 2.0: sizeof(MyStruct) ?
Question about using Visual C#
Process.GetProcesses() and user privilege
Application settings
While Loops and Keyboard Events
How to disable context menu in the dataGridView?

Top Answerers

Daniel Walzenbach
Edward Bakker
Omar Khorshed
NUCLEAR-WAR
Walter Sägesser
bhaan
JPBrasil
Mike55
DaedMajaz
lnessling
Comersus Open Technologies LC
Only Title

Answer Questions

  • DanUp Generic Horror, Inheriting types with multiple inherited constraints

    Ok, well I am having a pretty major issue getting a class with insane generics to simply compile...here's the scenario. I have an entity class, attempting to inherit from a persisted entity which on a class level accepts 3 generics, the first 2 generics have a pretty firm constraint which dictates the first type inherit from our base Entity class (which persistantentity does), and also that it has a parameterless constructor. All of that is ...Show All

  • ASMK can my C# assembly know when it's been loaded?

    I am writing a C# assembly that is completely independent from its host. This assembly doesnt have a single functional point of entry (it has a lot of objects that can be used in various ways). Is there a way i can be notified on the first time, just once, that my assembly is loaded/and or being used I need to know this in order to trigger an initialization of a resource. Thanks. Hi Steve, Just a ...Show All

  • ChristopherZ1 Creating a new solution/project by copying an existing one.

    I am a newby to this environment.  I have spent considerable time creating a Windows Form with a C# program.  I want to create a new application using this Form with some alteration and much of the current program code.  By the way, I do NOT want to destory my current application or solution.  I would prefer to have a new Solution/Project in a new directory.  How do I go about it Thanks in advance fo ...Show All

  • Michel Jongbloed Interface implemented over a number of classes?

    I have an interface like this: interface IAccess { void open(); void read(); void write(); void close(); } Now I want to implement each of these in a different class. File: open.cs public partial class Open Access : IAccess { public open() { // Implementation here } } File: read.cs public partial class Read Access : IAccess { public read() ...Show All

  • Jason K Form over Form

    How would I code the Program.cs or Form1.cs (whichever one) file so that Form 2 would appear above Form 1 as the program loads. For instance in Photoshop, the tools form appears above the main form as it loads, that's what I mean't. You can set the Owner property of form2 to be form1, then form2 will never go under form1, but it wouldn't be topmost, you can open other apps and they will go above it. I think it's Owner, there's also a P ...Show All

  • bernie_e IFilter Preview

    What interface and registry settings do I use to supply the picture for the Preview box in the Windows Desktop Search window   I tried adding an IViewObject2 to my IFilter DLL but it never gets called. Hi, My name is Bill Connors – I’m a Program Manager who has just recently joined the Windows Desktop Search team to work on improving the Forum user experience. I will be facilitating getting an answer to your questions and ...Show All

  • rehpix Diffrence between Socket and a port

    Hi It seams that i still have some issues in network programing.. I dont really get it what si the diffrence between a Socket and a port In Java a socket is nothing more than a reference to an IP address/Port pair. Q: 1. can you clarify the difference between a port and a socket A: A socket is an operating system abstraction similar to a file descriptor; it is part of the Application Program Interface (API). A program creates a ...Show All

  • efrbelgarion Should I pass an object to a class using its constructor or using a property.

    I need to instatiate a class and then assign a property with a value. One solution is to: Instatiate the class. Set a property in the instantiated class. Another solution could be: Modify the constructor of the class to accept a parameter. Use the parameter to set the property in the constructor. Any idea if one way is better than another Thanks in advance, Dave Thanks Bren ...Show All

  • Christiane-Annette How to make a image to windows wallpaper?

    Is there a function which can make a image to windows wallpaper http://msdn.microsoft.com/coding4fun/inthebox/wallpaper/default.aspx ...Show All

  • etrynus Typedef-equivalent in C#?

    I pass integer IDs to a variety of functions. I want to create a type for each ID so the compiler can check I am passing the right type. In C I would do this with typedefs. E.g.: typedef int personID; typedef int addressID; void DoSomething(personID p, addressID a) { ... } How can I do this in C# Creating an entire class seems like a lot of overhead. It's not enough to "guide" the programm ...Show All

  • Bill116 Comparing table data in a dataset

    I have two tables in a typed dataset.  Table A is populated from an LDAP query (names of computers in our enterprise).  Table B is populated via a tableadapter from an SQL database that contains the results of a prevoius LDAP query.  I need to compair Table B to Table A, remove records from B that no longer exits and add records to B that have been 'discovered'.  Can I compair these tables inside the dataset or ...Show All

  • RyanMoore How To Return Null From Class Instantiation

    I usually answer the questions, not ask them  .... but today I'm asking : If I have a class to instantiate and there exists the possibility that there may be problems instantiating that class, how can I have the instantiation return null I know that one way out is to throw an exception in the constructor, but we all know how expensive exceptions are. I'd rather have the instantiation be null and have to test for a null: MyCla ...Show All

  • Daniel Petrik I'm a noob - I need some ideas on the best way to design my application in C#

    Hi there - This is my first c# application. I have built a very simple interface. Does anyone have any guidelines on how to design the interface to function well Should I be using TabelLayoutPanels or SplitContainers I don't know what is the best way to layout the visual framework of my application. Also if anyone has any good code for gathering SNMP data, if you wouldn't mind sharing it with me that would be great! Thanks, Matt ...Show All

  • Buda56 Visual Studio's propertygrid - How do I reset it?

    Hi there, As I'm new to the game of C# and visual studio, maybe the question is the wrong place or the answer is so easy it's emberassing, but still... (I'm working in Visual studio 2005 beta2 - C# ) I'm building an VS add in which uses Visual Studio's propertygrid window to display stuff for my class-instances. object [] a = new object [1]; a[0] = aObject; ParentToolwindow.SetSelectionContainer ( ref a);   That works like a charm ...Show All

  • Trond Elde C# analog clock runs slow on some computers

    Hi all, I have a problem with the System.Threading.Timer class that I am using for my clock. The clock runs faster on an Intel box than it does on an AMD box and it has nothing to do with the CPU speed. Has anyone come across this before Any suggestions would be much appreciated. Ok, I have found that it is not a cpu problem as I have another box with an AMD Duron XP 1000MHz(5x200) which runs at the correct speed. I have tried it on another co ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum