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

Software Development Network >> Visual C#

Visual C#

New Question

Set and Sorted Set
Whats wrong witth this project
Getting protected controls through reflection
Process class used from Windows Service fails
Checklistbox problem in new domain...
Method(new Object), when is the object released/disposed?
Username and passwords using C#
problem with making query wich contains parameter
Cannot implicitly convert type 'uint' to 'int'
Problem with AssemblyInfo.cs

Top Answerers

ash141vsp2003
Fatboy15
Siggy01
Rick101
Bobal
Al33327
ReneeC
Alexander Marinov
LouisVanAlphen
Terrence Chan
News and Observer
Only Title

Answer Questions

  • Kunal Yadav DateTime Difference on WinForm and WebForm!

    I write a simply code to see the difference: this .label1.Text = DateTime .Now.ToString(); this .label1.Text += " " + System.Globalization. CultureInfo .CurrentCulture.ToString(); The output of WinForm is “ 28/11/2006 11:03:21 en-GB ”, while WebForm is “ 11/28/2006 11:02:55 AM en-US ”. Even I restart my computer, the difference is still on. Can you explain this difference What Windows version are you using How did you change the local settings. Please post the exact steps. -- SvenC Yes, I think your suggestion will help. But I want to know how to change the settings of computer to change the WebApp's default culture . From " ...Show All

  • Stoobs Saving Music Files

    I have a Media Player that I made but I can't figure out the streaming involved with saving the music that is currently playing on the player. I can play music with my player but I can't save it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace Media_Player { public partial class Main : Form { public Main() { InitializeComponent(); } private void openMediaToolStripMenuItem_Click( object sender, EventArgs e) { openFileDialog1.ShowDialog(); WindowsMediaPlayer.URL = openFileDialog1.FileName; } private ...Show All

  • Steev Syntax error while using a '

    Dear All, My problem is very simple. First I have a simple query as below Query1 = "Update tblID " + "Set value='"+value1"'"+ "Where 'table1'.tableName='table1'"; Query2 = "Insert into tableQueries " + "Set query='" +Query1 + "''" ; The problem here is when I run my query which gives a syntax error due to the symbol ' which I used in Query1. So I tried using \' but it doesnt work too. Can somebody pls help me Dear James, So you mean to say that if I want to show as a C# string then I use a \' is it So if I want to use it as sql statement then I should use two single quotes is ...Show All

  • Callum Problems with error CS0118!!!What to do???

    Hello.I wan't to create a animation in DirectX so I went to this site http://www.riemers.net/Tutorials/DirectX/Csharp/tut2.php to learn.But I receive error CS0118!!!Why Here are te content of the files: Program.cs: using System; using System.Collections.Generic; using System.Windows.Forms; namespace The_City { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { using (TheCityEngine EngineConnection = TheCityEngine()) { EngineConnection.InitializeDevice(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new TheC ...Show All

  • chris441962 Why the following condition is never met?

    double number1 = 1, number2 = .5; while (number1 > number2) { number1 -= .1; MessageBox.Show(number1.ToString()); if (number1 == number2) MessageBox.Show("condition met"); // <- never } Please help Floating point math isn't 100% precise, especially depending on the granularity of the decimal places or in cases where both numbers vary greatly. In this case, number1 might be 0.5000000000011, which is not exactly equal to number2 (0.5). It's a classic issue with using floats and doubles. So your choices are to avoid using "==" (use some variation of range checking instead), or use a fixed point datatype like decimal instead of a floating point datatyp ...Show All

  • matti-81 What are Generics? what do I get from them?

    If anybody can provide a sample code, much better. Thanks, Omar generics is new in .NET 2.0. It allows you to make a safe strong typed collection and allows you to use them similar to say an arraylist such as adding/removing objects. you can only store objects of a certain type in this collection and nothing else, otherwise you will get a compiler error List<string> theStringCollection = new List<string>(); theStringCollection.Add("hi"); //correct theStringCollection.Add(1); //compiler error - because its not a string. it has to be a string because thats what the collection type is. another example, if we have an class called "person", we can only hold objects that are o ...Show All

  • Bravechou Embedded manifest in .Net App

    How to make someapp.exe.manifest file embedded in someapp.exe In C++ application we could set manifest using manifest tool. I don't want to have separated from main application .manifest file. I've added manifest in C# project, but there is no special settings applied to manifest files in VS2005. The only option I've found useful is Copy to output directory -> copy if newer. I'm not sure what you mean. If you're talking about the Assembly manifest then that is embedded in all C# applications. You can't *not* embed it. You can access it using the System.Reflection namespace. This is simply not true. In my experience the manifest is not embedded automatically. Accor ...Show All

  • Chimme how to extract icon from my exe

    Let's say I have written a program and it has got an icon embedded in it as a resource. I would like to extract this icon from this exe and create it on the computer every time it runs. So my exe has to create new icon and use an icon from its resource as the source of this icon. How can I do Icon was just an example, I'm interesting in extracting any file which is embedded in the resource. Thanks you can extract files from an embedded resource: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=885322&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=863714&SiteID=1 and do whatever you want with the extracted file which is in the Stream object. Does this give you a ...Show All

  • saAction NullReferenceException was unhandled.

    I was sending a pictureframe to a client in synchronous mode which meant, the program gets blocked until the client is found or transfer is complete. Consequently, I shifted to asynchronous mode. Now as far as i can see, there's nothing wrong with the client/server bit of the code but the part, where I am copying the picture frame from a clipboard throws this exception. It's utterly preposterous ! Apparently NOTHING gets copied from the clipboard and the IDataObject ends up having a null status. This never happened in the synchronous communication mode, hell, i didnt even touch the frame grabbing portion of the code. Anybody know whats wrong Most probably you check clipboard BEFORE data is copied. ...Show All

  • hoabinh Keyboard shortcuts for Find - Toggle Match Case, Toggle Match Whole

    ...in VS 2005. Also there appear to be no toolbar buttons for these either. I used to find these handy in previous versions of VS and VC++, because I often do a search and don't realise that I've got one or other of these toggles set. But the button states enabled me to quickly change modes and redo the search without having to display a dialog. In the absence of the buttons the keyboard commands would be useful. Kevin See thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=143616&SiteID=1 These features have been removed from VS2005 ...Show All

  • eldiener Problem loading web forms

    I am new in C# and I am building a simple web form with just a label, but when I try to run it, comes a messages saying that the page cannot be loaded. What coud it be Is it user permissions or somethig Thanks You are right this does not seem to come from any code because you are not allowed to acces this page.   Did you write any rights for accessing folders etc. into your web.config This is the error I got: If I disconect tha computer from the LAN, I got the error that comes when a page is not founded. I have already installed the IIS on me computer. The error does not seems to be in the source code. I guess!!!!     ERROR The requested URL could not be retrieved Hi, d ...Show All

  • anubisascends Save my program for God's sake!!!!

    Just as I was getting some decent work done on my project, I set down my keyboard to make a bathroom run, and once i returned, I found my cat lying on my keyboard... When I tried to clean up the constaint garbage that was created by him, I tried running my program and found a ton of new errors. What makes it worse is that I have this bugged sucker saved... Tried cleaning it up, and like a freakin moron, I saved it before I re-ran the program. Apparently I changed something mere mortals such as my self shouldn't have touched. partial class Form4 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel. IContainer components = null ; ...Show All

  • Bollwerk How to call .NET 2005 assembly from .NET 2003?

    Sample source code will be great. Thanks I have an assembly made by VS .NET 2005. I am now using VS .NET 2003 and I want to call the DLL written in .NET 2005. Hi, cl408e I'm confused whether you are dealing with VS2005 now and wanna call assemblies from VS2003 or in the opposite way hi, It's ok for you to call assemblies of Framework1.1 (VS2003) in Framework2.0 (VS2005). But Framework2.0 has some break changes from Framework1.1, it cannot be compatible forward, since may touch the break changes. Thank you ...Show All

  • Ian Jorgensen CheckBox and CheckBoxList?

    what's the difference between CheckBox and CheckBoxList in a webform could anyone here give me a example for both many thanks checkbox is used for a single value selection. say for example the contact and permanent address are same, so we can use single checkbox to get the information from the user. whereas Checkboxlist is used to get the group of informations from the user, means multiple checkboxes with the same name. so no needs to write such a long coding. just simply using the for loop we can get all the checkboxes values. example for Checkbox <asp:checkbox id="check1" runat="server"  value="Same as above"/> this.check1.value is used to get the value example for Chec ...Show All

  • Koen Vermeire Generating all possible character combinations

    Hi everyone, I just wanted to know if you have better ideas on generating all possible 4-character string combinations in C#. Something like: aaaa aaab aaac ... zzzz What i have in mind right now are nested for loops. I wonder if there is a .Net function for automatically incrementing characters/string. Thanks a lot. -Ver Look at using the StringBuilder class. It has a Chars property with an indexer that will allow you to change each position. You will be able to use a single StringBuilder object, although you will be creating a large number of strings at some point. Consider using SQL Server to do the work for you. If you create a table w ...Show All

505152535455565758596061626364656667

©2008 Software Development Network

powered by phorum