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

Software Development Network >> Visual C#

Visual C#

New Question

Performance Monitor Counters and Windows Vista
RichTextBox format to SQL
Close folderbrowserdialog also closes the form.
How many threads should a process possess?
WebBrowser 2005 Document.Selection
Static method question
File.Copy gets NotSupportedException or, does it?
Error in assigining value
Three questions regarding C# and .NET of today and tomorrow
File.Copy gets NotSupportedException or, does it?

Top Answerers

Velen
vijayjun
bluebx32
Douglas H. Troy
ratslav
Tom D
RufusLDK
pwhitaker
BALA SINGAM
Dr.Virusi
sitemap
Only Title

Answer Questions

  • Damian Otway Enable double ip addresses

    Hello, we are developing a special software for which we need the ability to assign the same ip address to several network adapters within the same windows computer. When I configure 2 network interfaces to the same ip address, connect them to 2 physical different networks, one adapter gets the ip address '0.0.0.0' and is therefore disabled, as windows recognizes this conflict. In Linux I can assign the same ip address to several network interfaces and an application can accept connections to this ip address, whereby it does not matter on which network adapter the other participant is conntected. I need this functionality also in windows. Does someone know how this control function can be disabled under Windows Thanks! Wolfgang ...Show All

  • madhura_b License Class

    Hi, I would like to implement the license class in my project. I tried so many available components, but every one is using the License class provided by the .net. Could u help me out to implement that class and pls send me a working example. Thanking You in Advance Gaurav Gupta Hello Sir, thanks for replying. but this license is required to be implement in the Windows form application not in the asp.net application. I would like to add this on a Windows form. Thanks for your reply Gaurav gupta ASP.NET related questions should be asked on http://forums.asp.net/ Thank you ...Show All

  • GregRoy Sql server doesn't exist or access denied ?

    I am trying to connect the sqlserver2000 to my server system . when i connect using sqlserver 2000 as client . I can able to connect my server. But when i try to connect using my c# (web app) i get the error Sql server doesn't exist or access denied How to solve the problem Please post your code so that I can trace where might be the error ...Show All

  • Monish Nagisetty Turn base class public method into private

    Hi there, this is my first post in this forum. Here goes the question... I want to create a custom array collection ( MyCollection class) , to store objects of a custom class ( MyObject class). Something like this: public class MyCollection : System.Collections.ArrayList { } Now, i want that only objects of the MyObject class can be added to the collection. So, i tryed to override the Add method, like this: public class MyCollection : System.Collections.ArrayList { /* prevents external calling of this method */ private override int Add (object o) { return base.Add(o); } /* allows add only MyObject objects */ public int Add (MyObject o) { return base.Add(o); } } I received the following error: Virtul or abst ...Show All

  • alien- How can I decleare a function with parameter like int or string keyword?

    I wish to make a function. it has parameter like as int or string. I know typeof keyword. but if typeof keywork use function will be long. ex) testFunction(Type type) { if(type == typeof(int) Console.WriteLine("int"); } this.testFunction(typeof(int)); I only want to use int keyword as parameter. ex) testFunction( type) { if(type == int) Console.WriteLine("int"); } this.testFunction(int); How can I do Hi PeterPan, Can you clarify your question If the function takes a parameter that can be int or string then the best thing you can do is to define 2 functions: void TestFunc(int a); void TestFunc(string a); Now ...Show All

  • Thomaschr Types and Variables

    Is it possible to make a Type into a Variable ok well what is happening is that the user press the add favourite button which is inside the favourite menu. the add code is: private void addNewFavouriteToolStripMenuItem_Click(object sender, EventArgs e) { Favorite theNewFavorite = new Favorite("displayName", "TheURL"); theNewFavorite.DoAddFavorite(theNewFavorite); this.theFavoriteMenuToolStripItem.DropDown.Items.Add(theURL); this.theFavoriteMenuToolStripItem.DropDown.Items[this.theFavoriteMenu ToolStripItem.DropDown.Items.Count - 1].ToolTipText = theNewFavorite.TheURL; } and then that will create the Link in the Favourites menu. so when the Link ins ...Show All

  • Wolfsvein Pause and Resume

    Hi, How can I pause the application executing and resume it Thanks, Aya. I have made a text mining application that takes a long time in the data preprocessing , so if I want to pause it while it is running and then resume it, what I can do 'I mean like we pause the application and resume it in the debugging , but this time from user's point of view' Thanks, Aya. Hi, what exactly do you mean From user's point of view, when application is started, it just sits there waiting for user to do something to it. Perhaps you meant saving user's state when application is shut down and ability to resume from whatever user left it before shutting i ...Show All

  • IceAngel89 Answer What is the idea behind this program?

    Hello everybody. I would like to make a small program for my university I am in. Just a little bit of history. Very often I see people that have not logged out of their accounts. A bad person can do a lot of damage if you have left your accound logged. What I want to do is to write a program to monitor the user's activity. Let's say he/she can define a time interval. If there is no activity during this period, the prograt should log off the user automatically. That's it. So could you guys explain to me the general idea behind this program(programmer's point). How can I monitor the user's activity and stuff like that. Any help would be greatly appreciated. With all the respect, chire act ...Show All

  • ycjj Getting around static data holding in an MDI application

    I have been writing an MDI application where I have a class called "Spectrum" and in that class are two static arrays that hold my X and Y data for the graph in the same class. The static ability allows me to operate on that data from many different classes, and I need to keep that ability. My problem is when I open up more than one window, I have no way of differentiating between the different static variables. Maybe someone would know of a different approach I could use to store this data, so that it is widely accessible. Thanks. Although your problem has not been clearly stated in your post or it's my limitation not to understand your problem. If you please provide us some code sample along ...Show All

  • sham_huss Versatility/Practicality of C#?

    Hey all, new to posting but ive been reading here for a few weeks. Anyway, on with my question (which probably has been asked in some way already)- How versatile is VC# compared to VC++ All I generally see are simple (*duck/cover* ) desktop applications. I've read that its possible to do game dev (including DX and OpenGL), but I have yet to find any engines done in C#. I have just looked at API's/engines/SDK's for games, but I have not gotten actually into manipulating/programming in them yet. I've done some basic reading on C# and I sort of want to get into it, but I plan on in a few years down the line working for Lockheed (or a defense contractor of some sort) or EA-Tiburon. I've been programming since I was probably around 10, ...Show All

  • yaxixi Make a File readable only by my application

    HI, I'm developing a windows application in c# and i use video with DirectX. My problem is that i don t want the video to be readable by classic players and only by my program. I ve try to use cryptography but it take to long to charge the video. If anybody as an idea... Sorry for my english, and happy new year, Laura. Hi, Encryption will be easier and better way still i will suggest, If you want to do something else then another idea would be, - Put some "special thing" in your file header info and change the extension. The "special thing" will be interpreted by your application only and other application will not be able to interprete it so will not be run by other. Your a ...Show All

  • DBAJDS View console app before termination

    Hi everyone..... I have a very basic and probably stupid question. I am just learning C# using the C#Express software and have a problem trying to view the output of my console apps. I have started a console app project, compiled and run. I see a brief flash and then the app closes and terminates. Q. How can I prevent the console closing down so that i can actually see somthing. Hi Just press the Ctl + F5 to see in the console application screen. It will start ur app without debuging. You could make the console app sit there until a certain key is pressed: while ( KeepRunning == true ) { } Then just make a method that waits for CTRL + X. when the keys are pressed you can just do: K ...Show All

  • Damon Russel Question about Generics

    Hi there, I have been reading alot of posts and articles about generics, and I think I understand them and how they work. However, I would like to know if there is a cleaner way to write the following code: //my test generic class public class TestGeneric <T> where T: ITestGeneric <T> { public T add(T t1, T t2) { return (t1.add(t2)); } }; //the required interface associated to my test generic class public interface ITestGeneric <T> { T add( ITestGeneric <T> x); }; //a valid class that can be used with my test generic class public class StringTest : ITestGeneric < StringTest > { public string mValue = "blah_" ...Show All

  • MichaelD&amp;#33; Stop sharing a directory (CReating SHare)

    Hi, I am using a ManagementClass to execute the Create method in the Win32_Share class, this works fine for sharing a directory. However I don't quite understand the Delete method. You'll notice from the documentation that it takes no arguments, does anyone know how it works Or does anyone know another way of removing a share from a directory Thanks Hi David on the other hand, how can I create a Share on my computer Thanks MarkX Hello, I'm posting the answer to this question since I was having the same problem and found the answer somewhere on the web. All you have to do is something like this: ManagementObject share = new ManagementObject ( "Win32_Share.Name=\"s ...Show All

  • KookyDude calling an object in MainForm from Form2

    Hello to everyone, suppose that i crated an object (textbox or serial port .... for example) in a mainform for my app, how is it possible to call this object from an another form2 -------------------------- ----------------------------- Main Form Form2 textBox1 <<<<<-------------------------- How can I call TextBox1 from here 10x for ur help take a look at this on passing variables between forms/classes: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=729974&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=777222&SiteID=1 That was very helpfull thank u very much Thanks very mu ...Show All

202122232425262728293031323334353637

©2008 Software Development Network

powered by phorum