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

Software Development Network >> Visual C#

Visual C#

New Question

converting ' ' when using Server.UrlDecode
Warning for Xml comments
What is the maximum literal address for a local file?
Interfacings with Web Application
How to view the frame page sources in webbrowser control
NEW ROW IN DATAGRID
search pattern
DataRow cell value?
OnPaintBackground: Should you Dispose of the graphics object?
wanting to right click within FileListBox and change Form title text to selected file.

Top Answerers

db_guy
Alessandro Moacyr Duarte
Amanda Jamin
Doug_Schulte
HMCSharon
JooMoo
Arkkangel
CraigAP
Sworder
jaimemontoya
DGL -
Only Title

Answer Questions

  • x452Alba Calling methods of a class without creating an instance of it

    Hi, I'm sure this probably has been answered before, but somehow I couldn't find it, so really sorry about that. But how do you call methods of a class without having to create an instance of it I mean, in my project I have something like: public class FileOperations{ public void read_config_file(...) { (...) } } And I want to call the read_config_file(who doesn't depend on anything but the filename and a property where it'll write the config values) without having to do: FileOperations fileOp = new FileOperations(); fileOp.read_config_file(); I was a poor (poor like in noob) Java programmer but I used humm I believe it were static methods in abstract classes, something like that, don't re ...Show All

  • Lonnie Barnett Accessing IIS And its Log folder

    Hi all, I want to access IIS and its Log Folder From my application.. Would any one plz help me reagarding this problem.. Thanx in Advance Best Regards ___ Atif Hi, Actually From my code i want to access webserver (IIS) from anywhere either from local location r remote location so that i may access its log folder where it writes its logs.then i want to get the specific Log file to parse.. sorry for weak english.. Thanx Can you explain what information you want to read. About Log files, you should search for IIS Log parser that will give you those data in understandable format. Hello, If you are wanting to do a report of IIS log information, then I would ...Show All

  • Aleniko29139 C# Creating a derived class from a base class.

    I creating a source code generator that code generates the entire data tier and business tier for any SQL Server database (For each table I create a stored procedure, the data object, the business object, the data object reader and writer, etc.). The business objects are inherited from the data objects as shown: public class AddressBusinessObject : AddressDataObject The way the generator works is it creates the data object every time, but it only creates the business object if it has not been created, thus you may customize the business object and any changes to the data object (new fields) can be re-code generated without affecting the customizations to the business object. All of the private variables and properties for th ...Show All

  • Moksi Problem: The breakpoint will not currently be hit. No symbols have been loaded for this document

    Hi, I've run into a problem that seems to defy a solution. Bottom line: When I'm attempting to debug with VS 2005, I cannot set an effective breakpoint in one of the source files. The breakpoint is the hollowed-out reddish/yellow circle, and VS says that the breakpoint won't work because the symbols are not loaded. I've found several discussions in this forum about this type of problem, but there's no concensus that I could find on how to solve the problem. Some background might be in order. I have been developing a "data binder" for use in a forms UI application that has multiple threads. There are three projects/classes in the solution, one for a test mainline, using forms, one for a general-purpose "dump" routi ...Show All

  • Jassim Rahma Is it possible to invoke a generic static class mthod through reflection.

    Hi all, I have the following scenario. I have a generic static class. Is there a way for me to invoke something like that using reflection. For example. I have a static class with a method. MyClass<T>.Show() The item being shown depends on T. Can I invoke such a method using reflection I have the string (MyClass<MyType>) given to me, but I cannot create an instance of that using reflection (since MyClass is a static class). Any help is appreciated. Thanks ahead. David Yes, you've got it. And yes, you need the 1, although to be honest I'm not sure why. I think it might be the indexer of the generic type parameter Hi David. You can simply pass the g ...Show All

  • TkNeo Error: "The path is not of a legal form" in C#

    Hello.I receive the following error Error: "The path is not of a legal form" in C# in the code string location = "List.txt" ; // Read lines StreamReader reader = new StreamReader (location); string [] file_lines = (reader.ReadToEnd()).Split( '\n' ); // Add in Lista foreach ( string one_line in file_lines) { string file_location = one_line.TrimEnd(); System.IO. FileInfo info_item = new FileInfo (file_location); if (info_item.Extension == ".mp3" ) { ListViewItem List_Item = new ListViewItem (info_item.Name, 0); List_Item.SubItems.Add( "XX:XX" ); List_Item.SubItems.Add( "Necunoscut" ); List_Item. ...Show All

  • Rattlerr Difference "Designer.cs" & "designer.cs" WinForms

    Hi, I am doing C# development on Visual Studio 2005. But, as all would know in VS2005, usually the Windows Forms will generate the "Form1.cs" and "Form1.Designer.cs" at the design time simutaneously. But, I forget what I did during the development time. The "Form1. D esigner.cs" became "Form1. d esigner.cs". But it still can be compiled after the letter case had changed. Eventually, I need to standardize all the files name. So, I rename the "...designer.cs" to the original "...Designer.cs". But, the IDE cannot compiled it anymore. Any ideas to rename it back to the original file name Where does the reference to the designer file located Is it in the csproj file or at other resource file Which file is in control of the designer file Than ...Show All

  • Xelestial Using C++ pointer tricks in C#: type safety & unsafe blocks

    This may sound like an unusual question for C# users, but I am trying to migrate some tricky C++ code that utilized pointers in a very efficient manner to populate an array of four bytes with the four bytes of a long value, like so: unsigned char longData[4]; long * longPtr = &longData[0]; * longPtr = doSomeCalcWhichReturnsALongValue(someIntValue); The type safety enforced by C#/.NET doesn't seem to casting between a byte pointer and a long pointer, even when wrapped in an "unsafe" method: unsafe static public byte[] convertData ( int rawData ) { byte[] data = new byte[4]; fixed (float* floatPtr = &data[0]){} int scaledValue = 127 - rawData; // LookupTable contains a list of pre-calc'ed flo ...Show All

  • Dave Britton - VERTIGO getting rid of autogenerated datasources

    I used the Add Data Sources wizard and added some controls to my form. This resulted in datasets & bindingsources being added. I would now like to remove that data source. How can I achieve this I have deleted the autogenerated datasets, bindingsource & tableadaptor. But the datasource still remains in my Data Sources Tab as well as the .xsd file, etc. I don't see any Remove Data Source option... Thanks for any help. Hi, when you add new data source, it gets added to your project. Open Solution Explorer and expand your project's Properties node. There's a DataSources folder; you'll find your data source references there. If you don't need them any more, it's safe to delete them. Andrej ...Show All

  • Michael_Giagnocavo c# and mysql

    I want to pull and add data from a mysql table to a datagridview and allow the user to input data into the datagridview and have it send it to the database. Hi, Try www. mysql .com/articles/dot net / Charles ...Show All

  • Snickel65 removing program from startup

    how can I remove programs from my startup menu I don't want them to run when i start windows. Maybe tmontet18 will reply and discribe his goal a little better. Until then we can have a gueses what he need . I hope this will work: RegistryKey rKey = Registry .CurrentUser.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run\" ); string [] values = rKey.GetValueNames; for ( int i = values.Length-1; i >= 0; i--)         rKey.DeleteValue(values[ i ]); There are some ways of adding program on startup. You can see ways of adding a program on startup on http://www.planet-source-code.com/vb/scripts/ShowCode.asp txtCodeId=3901& ...Show All

  • Vayse_Dev A problem with WebBrowser control

    Hello, I have a very strange problem with the WebBrowser control... When the WebBrowser control have the focus, all my main menu strip shortcuts stop working, and when I set the focus to another control it start working correctly. How can I solve that Your help would be greatly appreciated. It didn't work Sorry for posting twice. I made a mistake posting in the express edition forum. Anyways, I'm getting this problem when WebBrowsersShortCutsEnabled property is set to false. Hi, First please don't start more than one threads for a single topic. Your problem is very specific and un usual. I have never ever got this issue wi ...Show All

  • dragoncells using nested namespaces in application

    Hi, hopefully this is an easy one: I have mutiple namespaces contained within my main assembly for grouping similar classes. For example, let's just say my assembly name is "MainAssembly", and in MainAssembly, I have the following namespaces: MainAssembly.FirstLayer MainAssembly.FirstLayer.a MainAssembly.FirstLayer.SecondLayer MainAssembly.FirstLayer.SecondLayer.a MainAssembly.OutsideLayer Ok, now in my Application that has a reference to this project. My application has it's own namespace, so I need to include the assembly namespace: using MainAssembly; However, when I add this namespace, I cannot see any of the nested namespaces! The only way for my Application to see these, is by inclu ...Show All

  • Matty4242 C# Excel programming

    I can't find anything on how to insert comment(notes) in an Excel worksheet using C#. Any ideas You simply use the .Addcomment function. Microsoft.Office.Interop.Excel.Application excelAPP = new Microsoft.Office.Interop.Excel.ApplicationClass(); Microsoft.Office.Interop.Excel.Workbook wbk = excelAPP.Workbooks.Add(XlWBATemplate.xlWBATWorksheet); excelApp.ActiveCell.Select("A1"); excelApp.ActiveCell.AddComment("Horses"); You can definitely insert headers and footers into excel via the Excel Interop. You must use the PageSetup propertly declared beneath the sheets class. You'll have to declare your worksheet: Microsoft.Office.Interop.Excel. ...Show All

  • Dvlnblk Write to C# Immediate window in 2005

    How do we write to the immediate window from the code window. Similar to "Debug.Print" in VB. Thank you, Paul Not Debug.WriteLine("X"); does nothing either. Here is the code I tested. private void button2_Click( object sender, EventArgs e) { StreamReader re = File .OpenText( "c:\\MyFile.txt" ); string input = null ; while ((input = re.ReadLine()) != null ) { Debug .Print(input); Debug .Write(input); Debug .WriteLine(input); } re.Close(); } Debug.WriteLine("AnyString"); // is this working , and your compliation = Debug Mode Jonathan, You're the man, works perfect. ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum