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

Software Development Network >> Visual C#

Visual C#

New Question

Using SqlConnection.Open repeatedly
System command to throw an html file to ie/ff/opera/whatever
escaping characters
Static fields, inheritance, and Reflection...
anyone have a simple exmaple to map all instances of CPU in performanceCounter
Static fields, inheritance, and Reflection...
C# - Change Web Site encoding?
Exposing C# indexer to COM
Switch Statement/TextBox
How to get caller's thread?

Top Answerers

MrBigStef
kart
moondaddy
aspfun
CKLEIN
Can-Ann
Kurt CLAEYS
PiGuy
Sammaye
Jules Dcoder
Djsomers
Only Title

Answer Questions

  • thukralz Exposing properties

    Hi! My idea is to include into language a mechanism to expose a field's properties. Let's say I'm inside some WinForms user controll. My control's got a label named label1. I want to expose the Text proprety of the label inside my user controll class and call it LabelText. The main pattern idea is to 'inherit' all the child's property attributes automaticly (like DefaultValue, Browsable and so on - these are just examples, Text proprety's got some others). I would only have to write single line of code that would do everything for me, like public LabelText = label1.Text; One problem I've noticed is that some of the attributes may be of private nested inside that class types, like class MyClass { [AttributeUsage(Attribut ...Show All

  • Schwarzer Schmetterling displaying form as image

    Hello everybody i want to display a form as thumbnail in the listview for that i am using DrawToBitmap() but it is not working for richtextbox and any com components if i use CopyFromScreen() it is also capturing any contextmenus and filedialogs please help me regards Ramana kumar hello  Sven De Bont thank you very much for your response, it is also working similar to CopyFromScreen() method it is capturing any contextmenus and folder dialogs i have to avoid those things again thanks, regards Ramana kumar   hello bhanu no it is not solved. i am managing this with copyfromscreen but it is having problem ...Show All

  • curiousss Winzip utility in C# web application

    Hi We need winzip component in order to have utility which can zip and unzip a file. Is there any corresponding microsoft utility for web applications Many thanks in advance. Hi, Following is the MS C# Built-in Zip/Unzip utils. Which uses System.IO.Compresson Libs. Hope this help. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; using System.Windows.Forms; namespace Zipper { class ZipUtil { public void CompressFile ( string sourceFile, string destinationFile ) { // make sure the source file is there if ( File .Exists ( source ...Show All

  • DennisWCP Properties.Settings; ArrayList and a custom object

    Hello, I am writing a Windows Forms application using .NET Framework 2.0 and Visual Studio 2005. I would like to use Properties.Settings class to persist a collection of custom objects, so I can created a property called Connections of type System.Collections.ArrayList using the Properties designer in VS. At run-time I populate an arraylist with instances of my class and then I set the Connections property to this arraylist. Then, I execute the Save command on the Settings.Default. The Save command does not generate an error, but no settings are persisted either. Do I need to do something special with ArrayList and my class (serialization, perhaps) in order for settings to be persisted correctly Many thanks for your help! ...Show All

  • Bear23 How can temp files be removed before the setup program is committing in VS.net 2005 SetUp project

    This setup program is used to do sth. like new a database,so after it's done,the temp files in local disk are not needed any more,so how can these files be removed before the setup program is complete. ...Show All

  • riemerg Slowness when typing in IDE

    I encounter an incredible slowness in typing in the c# ide, when programming windows forms aplications. It's like if the intellisense stuff is lagging behind... I encouter this from the moment i compile and start the application. When i restart the IDE the problem's gone till the next time i compile and start... Any thoughts on this Am i the only one who has this (hope not) Tnx Tom Try two other things as well. 1) Disable the Navigation Bar Go to Tools | Options | Text Editor | C# | General and uncheck "Navigation Bar" 2) Disable AutoToolboxPopulate Go to Tools | Options | Windows Forms Designer and set "AutoToolBoxPopulate" to false. Let me know if either of those w ...Show All

  • Prashweenet Using a Console with a Windows Form...

    Alright, I've been searching but I can't find anything related to my question... I need to use a Console with my Windows Form (for debug purposes). How do I "add" a Console Another thing... I need to find out how to make a rich text box unwritable. Thanks! Another easier (but not a pretty) way is just to set your program as a console application (by pulling up the properties of the project). It will create a console window as well as your form. To write debug information while running a Windows Application containing form, you may use a custom Console to print console output. Console can take a output stream where it can write console message. You can set a output stream in the following way: Console.S ...Show All

  • Apollo13 Passing a variable to another process

    Hi, Im trying to find out how i would pass a value, in this case a string, to another process My app detects if another instance of it is currently running, if it is then it shuts down, but when the user opens a file with it i want to pass the string (filename) over to the exsisting window so it can open before this one shuts down. Any help or a point in the right direction would be excellent. Thanks, -Dave I have been working on it for a while and still no luck, i cant seem to find any examples when searching where someone has done this outside a simple command line app that does nothing but count. Anyone help Thanks Mark but i think i would be better of ...Show All

  • micronax accessing information from a website using .net

    Hi, i want to do an application that access some information from different websites and store it in a spreadsheet. usually these information is displayed on the corresponding websites in a table format. how can i do this using .net ( C# ) also, this application should be run automatically ie without any user trigger . it should run daily at some fixed time. i think i can implement this using .net windows service. but i donno how to. anyone pls help me.. thanks in advance Sajitha using webservice is a good idea but i couldnt find any webservice in the websites that am checking. anyway i will try to implement it in the other way ie using system.Net object You can access any website by using the Framework's ...Show All

  • maqk download msdn for visual C#

    Can I download msdn for visual C# Thanks. Hopefully you can download MSDN successfully. Excuse me, I mean I can’t work with MSDN library online. Hi Mahdi, I'm confused. If you can't work with the library then what was it that you wanted to download Can you be more specific As far as I can tell, not by itself, although the MSDN Library is part of the full VisualC# Express package, which can be downloaded ( http://msdn.microsoft.com/vstudio/express/visualcsharp/download/default.aspx ) Note that the full package is 1.3 GB so hopefully, you have a fast connection and a lot of time. Also, the MSDN Library is avialable online at http://msdn2.microsoft.com/en-us/default.aspx Thanks James But ...Show All

  • Kunk How to display an int[] as a bitmap

    Is there a possibillity to display an array of integers as a bitmap or is it only possible to display arrays of short as bitmaps (16bpp grayscale images) I've done some research on the web and it turned out that the Format16bppgrayscale is not working. So in the end I had to use Format8bppIndexed instead and then I know the drill. Try this Bitmap m = new Bitmap ( 100, 100 ); Graphics g = Graphics .FromImage ( m ); int [] i = new int [4]; i[0]=1; i[1]=1; i[2]=1; i[3]=1; g.DrawString ( i[0].ToString (), this .Font, new SolidBrush ( Color .Red ), new PointF ( 0, 0 ) ); You should be able to display any numeric array ...Show All

  • Jason Croft Visual Studio 2005 Locks / Freezes with devenv 100% - CSS Problem?

    I spent a few hours trying to figure out this issue and I narrowed it down to VS 2005 having a problems with CSS. In a project I started recently I have an ASP.NET page that anytime I go into design mode and drop a control on the page VS 2005 will freeze with devenv going to 100% and sometimesy VS 2005 crashes if it does not I have to kill the devenv process. This happens anytime I go to design view or drop a control on the page. I found that when I removed my references to my .css file the problem stopped and I could add controls and go into design view. Then if I add my css link back in the IDE freezes again. This code is no different that what I would have done in VS 2003. Can anyone help me out on this issue Thank you, Patrick Her ...Show All

  • Danny Thorpe MSFT can i create a new object using a variable?

    for example.. i want to create a new Panel everytime i click on the "next button" .. but each time i want its name to be different,, like for example onButton_Click(...) { Panel panel(here i want to add a variable or whatever to make it unique) = new Panel(); } ok.. another question please.. what is the best way to capture this panel and save it as a jpg pic.. "note" the panel contains drawings. thnx using System.Collections.Generic; Dictionary<String, Control> MyControls = new Dictionary<String, Control> public void Button1_OnClick(Object sender, EventArgs e) { MyControls["somevariable" + "name" + 1].add(new Panel); MyControls["somevari ...Show All

  • rabbitoh XML Code Documentation

    We all know that if you type \\\ on the line above a function or variable definition etc. what you get is: ///<summary> /// ///</summary> public void myRidiculouslyLongFunctionNameForNoParticularReason() {    DoSomeStuff(); }   or maybe /// <summary> /// /// </summary> /// <param name="iVal"></param> /// <returns></returns> public double myLittleMathFunction(int iVal) {      double rVal =  DoSomeMaths();      return rVal; }   And this is Great.  Does anyone know if it is possible to change/modify/add to the XML Documentation comments that are generated For example, I want the automatically generated XML c ...Show All

  • Sumit Kumar Data from two column of a Table in one ComboBox

    Hi, It's possible merge data from two column of a Table in one ComboBox for example I've in a Table the column Name and Surname and I want that data in one ComboBox for select Name and Surname! Thanks, bye! ..yes, I can also create a select query and add the result added value to ComboBox, now it's good definite. thanks all. Sure you can, string strName = ""; for ( int i = 0; dataGrid1 .Rows.Count > i; i++) { strName =   dataGrid1 .Rows .Cells[0].Value.ToString()  + "  " + dataGrid1 .Rows .Cells[1].Value.ToString()  ; cmbNames .Items.Add(strName); } Assuming your Forename is stored in the first ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum