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

Software Development Network >> Visual C#

Visual C#

New Question

what files for deploying
Guide on Cross Threading
.NET Framework and compatibility
Cannot run startup form
Page Output Caching : Duration
How to return a string[] from a function?
using Microsoft.VisualBasic.Collection
The designer could not be shown for this file because none of the classes within it can be designed.
communication between threads
Connect to database on another computer

Top Answerers

zdrae
KitWest
CraftyFella
He is Cool
DDKCoder
Anarchy
e05153
piknik
Richie_C
RoniBr
Walter Bright Page
Only Title

Answer Questions

  • FannwongCindy Class inheriting itself

    Hi All,        I have a very serious doubt of whether a class can inherit itself. Though their is no purpose, i just want to know whether a class inherits itself. I have provided a sample code for you to check that it actually does which very much proves the concept of inheritance to be wrong.   public class Sample  {           public class Sample1:Sample   {           public  Sample1()    {     Console.WriteLine("Sample1 Constructor wihtout Argument");    }        public void a()     ...Show All

  • Carel Greaves rsa public key for c# .net

    Hi. I have a problem. I try to traslate a Public Key Rsa to a valid format to use in ImportCspBlob. but this code don't work. I find solucion on internet but don't work. http://www.mcse.ms/archive113-2005-6-1681898.html I don't know format for public key rsa for .net and i don't find documentacion. I use framework 2.0 visual studio 2005 I don't know what i need to do... help me please! using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; namespace ConsoleApplication2 { class Program { static void Main( string [] args) { string RsaResult = null ; //questa e la loro chiave rsa pubblica string PublicKeyRsa = &q ...Show All

  • curiousss Learning C#

    Hi, I would like to ask anyone here for their advice on where I should start with C#. I have been programming for nearly a year now and dont know any other languages other than the VB family, such as vba, vb6 and vb.net. Since i have been programming with .net I have learned alot from the msdn library that comes with the installation of Visual Studio, and whenever looking at the example of code I still am always drawn to read the C# code. Something is just making me want to learn this language, However a good friend of mine is trying to alter my path by suggesting I learn C++. Learning C++ I would like to do, and also think I would benefit with the fact my friend knows the language. But may it not be a good path to learn C# then g ...Show All

  • &amp;#32854;&amp;#20809;&amp;#39131;&amp;#32724; IDE changes the .csproj file <SubType> between UserControl and Component

    When any file in my project is changed, I have one UserControl that the IDE changes the .csproj file <SubType> between UserControl and Component. This happens even if the UserControl is not changed. Is there any way to stop the IDE from changing this We have this same problem but with VS 2003 (SP1) and the SubType switching back and forth from "Code" to "ASPXCodeBehind". It does this over and over again on more than one machine. No side effect other than svn checks it in as changed (obviously) and then everyone has to reload their projects. "Bump" - we have the problem here too, and it is annoying, and SP1 did not help us either. ...Show All

  • TheBlackShadow Iterations through a Dataset/datagrid

    I am new to C# and dataset/datagrid processing. When saving any changes, I need to know how to iterate through changed rows to evaluate column contents for validation. The information I have at my disposal does not show any examples. Any help would be greatly appreciated. yes my fault, it should have been DataColumn! Ive modified the post now. how are you checking against DBNull Tried this foreach(DataRow currentRow in theModifiedRows.Rows) { foreach(DataColumn currentColumn in theModifiedRows.Columns) { if (currentRow[currentColumn] != DBNull.Value) { object currentColumnValue = currentRow[currentColumn] } } } Yes this works. I was ch ...Show All

  • leclerc9 vcs# app running in other language version of Windows XP

    I have a small graphical app in c# that relies on the .NET 2.0 libraries. What will happen if the app is run in a European version of Windows XP (User will be in Norway). The user knows english so the app itself can be understood but what I don't know is if English as a character set (US English) is installed in non-English versions. Are the libraries the same (in other words if they have .NET 2.0 installed then I'm OK ) If I'm in the wrong place for this question let me know. Thanks all, Brian You should have no problem. Micrsoft normally goes to length just to make sure exactly that type of thing works. Any font installed is going to have the basic US-English letters. System.String use UNICODE charact ...Show All

  • Kevin Stephens PictureDisplay in POS System Through Pocket PC, need help

    Hi, does anyone know the pocket pc can develop a proper POS system example like McDonald POS system,the pictures of foods can display in POS system.Can i develop it in Pocket PC application to display all the foods pictures in a column Hi, sunni05 You can do it in pocket pc project in smart device dev in .net compact framework. Here is references about "how to": http://msdn2.microsoft.com/en-us/library/ms172482.aspx Thanks. hi, figo fei, Thank you to moved my topic to the other session. Hope some one can help me on it and also thank you for the link that given by you. ...Show All

  • AdrianB79 Outlook Express 6 SLOW to load someone help?

    I hope I am posting in the right area. I am having great difficulty with Outlook express 6. I am using the website as example only. You see where it says: Automatically log on to windows MNS messenger I don't have that check off i have the first 3 boxes. (On step 2 on this site) http://messenger.jonathankay.com/allsteps.aspx ID=8 I would love an answer, because this OE6 is a pain and takes 5-10 minutes to start up just to be able to send one email. Is there something I can do to fix this I apologize in advance if i have the wrong section to post this to wasn't sure being a newbie. Thanks for any help in advance.... Amanda im sorry but these forums are not for technical support queries like yours, these forums are f ...Show All

  • BearLine Are objects inside ArrayList threadsafe ?

    Hi, I am using framework 1.1 In my application I have a list of markets and various associated attributes, such as Current Price, MArket Open Time e.t.c I have created a class in which I have declared all market attributes for each market as data memebers. So if I have 12 markets then I create 12 objects of market class. I instantiate the class only at the beginning of the application and used some of its memebers for look-up purposes and others I have to update constantly, such as last market price. I keep all these 12 objects in an arraylist. In my application I have on thread that gets the last market price. I am updating the "LastMarketPrice" member of Marketclass on this thread. All other calculations are bein ...Show All

  • kholling using cache in windows forms in c#?

    How to use the cache in windows forms when i try to use cache, i am getting an error as: The name 'Cache' does not exist in the current context. This is the code, that i tried to use: foreach ( DictionaryEntry objItem in Cache) { Cache.Remove(objItem.Key.ToString()); } should i include any additional namespace to use cache please help. use the following link to know about cache in winforms and it contains code samples in it. http://www.codeproject.com/csharp/cacheinwinformapps.asp Thank you for the timely help. I am converting a web based application to windows base application. so there was the need of cache. My sample code is as follows: public void ...Show All

  • Steven Gilissen How to prevent a ToolStrip from being moved to a different ToolStripPanel

    For example, if you have a form, with two ToolStripPanels, each of them containing one ToolStrip. One ToolStripPanel is docked to the top, the other is docked to the bottom. Is there a way to prevent that the ToolStrip from the bottom can be dropped into the ToolStripPanel at the top ToolStripPanel does not have a AllowDrop property :-( Best Regards Bernd Ritter Well, not really nice, but it works. Thanks! You can handle the EndDrag event of the ToolStrip and re-parent it to the correct Panel: private void toolStrip1_EndDrag( object sender, EventArgs e) {     if (toolStrip1.Parent == toolStripContainer1.BottomToolStrip ...Show All

  • Tom_Liu Using DeviceIoControl and IOCTLs from C#

    Hello, I'm currently working in a C# project where I require the use of DeviceIoControl(). It seems that there is no implementation of this function under c#, is this correct If this is the case what would be the best way of including calls to this function within the project Would it be best to create a separate project within the solution, and if so is there a link out there that goes over this type of solution/project Thanks, Devan Putting the code in a separate C# project will not in any way make it easier to call the function. It will only affect the modularity of your code. You have to call the function through P/Invoke either way. Thanks for the hint about P/Invoke Mattais. P/Inv ...Show All

  • ebence Replace char in c#

    I had a string "2006/01/27 00:00:58.747", and I would like to replace "/", ":" and "." with "_". Can anyone let me know how to do it in C# Thanks You can use the String.Replace( char, char ) method to replaces all occurrences of a specified Unicode character in this instance with another specified Unicode character. The method will return a String equivalent to this instance but with all instances of oldChar replaced with newChar . String myString = class ="txt4">"2006/01/27 00:00:58.747"; myString = myString.Replace( '/', ':' ); myString = myString.Replace( '.', '_' ); I am doing something simlar yet I ca ...Show All

  • Suresh .M.V Playing sounds simultaneously

    I know how to play an audio file using the SoundPlayer class, but I have only been able to play one sound at a time. If I am playing a sound, and I try to play another sound, it stops the first one to play the second one. And that is with two separately declared SoundPlayer objects. So, is there some way to play two sounds simultaneously I want to be able to play background music and sound effects at the same time. how are you playing the file you can play the sound in Async mode meaning it will carry on the executing of your program whilst doing its play sound in the background....by default it will not do this but wait until the sound has finished playing, then carry on. To do this: System.Media. ...Show All

  • Terry A. King Delegates and events

    Hi, I have been playing around trying to get an understanding of delegates and events - I would like to know if there is any difference between how the following 2 lines of code function ie: public delegate void NotifyFrm1 ( Object sender, ValueUpdatedEventArgs e); public static event NotifyFrm1 NotifyFrm1Action; as compared to: public delegate void NotifyFrm1 ( Object sender, ValueUpdatedEventArgs e); public static NotifyFrm1 NotifyFrm1Action; I get exactly the same results by ommitting the word event. thanks -Barb well it depends what you want to do, what exactly are you doing What is your code Events are needed or ...Show All

424344454647484950515253545556575859

©2008 Software Development Network

powered by phorum