Software Development Network Logo
  • Microsoft ISV
  • Windows Vista
  • Visual J#
  • Visual Basic
  • Game Technologies
  • .NET Development
  • Windows Live
  • Visual C++
  • SQL Server
  • VS Team System
  • Smart Device
  • VS Express Editions
  • Visual FoxPro
  • Visual C#
  • Visual Studio

Software Development Network >> Visual C#

Visual C#

New Question

WebRequest / WebResponse
Fixed Pitched fonts
C# generics on conversion operator and constructor
authentication
"Layer of Abstraction" Confusion
Getting a COM dll's version from it's COM registry entries
ConfigurationManager not working ConfigurationSettings obsolete...
C# Parameter not passed to Web Service
Best Practices
Missing SQL Server Project Template

Top Answerers

Shotmaker
BobTheCorkDwarf
Indigo Cowboy
MarcioMVM
ShadowLord
Tom Bowen
Esemi
DaveInAZ
Frank J DeFalco
jesc
University of Louisville Department of Ophthalmology and Visual
Only Title

Answer Questions

  • tonda Dynamic Casting in C# at runtime

    How Can I dynamically cast at runtime.That is I am passing a child class object in the parent class object in a function.In t hat function i have to cast to passed child class object at runtime. How Can I Cast It. protected void Page_Load( object sender, EventArgs e) { Circle circleObj = new Circle (); circleObj.Radius = 5; Response.Write(chkRefrence(circleObj)+ "<br \\>After " ); } ...Show All

  • Carlos90210 error:No value given for one or more required parameters.

    I am using C#.net to write a program. I have an update to update the database when the user changes the cooment. All values that I have assign to the datarow as data in it. Here is the code: foreach ( DataRow dr in _dsComment.Tables[0].Rows) { if (dr[ "CommentId" ].ToString() == strId) { dr[ "OrdNo" ] = _Order; dr[ "Comment" ] = frmN.Comment; dr[ "Date" ] = System. DateTime .Now.ToShortDateString(); dr[ "Name" ] = UserName; } ...Show All

  • Ivo Manolov MSFT Getting the executable directory

    I've had a good look on the Web but can't find the answer to this... How can I find out the path where my service is installed to, rather than the working directory (typically ..\windows\system32\) This is with a view to reading config files, writing log files,etc, within the installation folder. Thanks for any tips, Mike This should do the trick: System.Reflection.Assembly.GetExecutingAssembly() ...Show All

  • mareke ListViewItem checked status change

    All I need to do is enable a few buttons whenever at least one item in my ListView is checked. I tried using ItemCheck event but it seems to execute my code before it actually changes the Checked property of the item I change. That might be just fine if it weren't that if I have a ListView with only one item in, and that item is checked, trying to uncheck it results in enabling of those buttons too, when I really want them to be disabled. Questi ...Show All

  • Michel P&amp;#233;res Byte array to a number

    Hello! I am wondering how I can convert an array of bytes into an integer or a long or any other number datatype. For example, byte[] someArray = new byte[] { 0xFF, 0x4A, 0xC2, 0x21 }; How could I turn that into 0xFF4AC221, so that I can perform normal numerical operations on it Well, it was just an arbitrary example.  I'm basically asking how I can take the bytes from a 4-byte array and put them ...Show All

  • Daxel How to get the last file modified time ?

    Hi all, I had loop thru a directory whereby I would like to get the lastfileModified time of each file in this directory. If the last Modified time is more than 7 days, I would like to delete this file. Can anyone help me of how to code it Part of my code is as follow: private void DeleteLogFile( string sourceDir) { string [] fileEntries = Directory .GetFiles(sourceDir); foreach ( string fileName in fileEntries) ...Show All

  • cruelasix DOS window doesn't close after process started?

    Hi, I'm trying to run a process from a Windows application. Example: if (Regex.IsMatch(textDomain.Text, "( =^.{1,254}$)(^( :( !d+.)[a-zA-Z0-9_-]{1,63}. )+( :[a-zA-Z]{2,})$)") && Regex.IsMatch(textRecord.Text, "^( :( :25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d \\d)( ( =\\. \\d)\\.)){4}$")) { Process testProcess = new Process(); testProcess.StartInfo.CreateNoWindow = true; Process.Start("cmd.exe", "/c ipconfi ...Show All

  • GaryBla Multidimensional Array

    Are there any functions in .NET 2003 to handle multidimensional array manipulations. Like summarizing data of the array based on a field in the array Say you have one of the fields in the array represent the "Year". And the value is not unique. You want to summarize other fields in array based on the value in this field. you can always creat&manipulate MD Arrays ...Show All

  • shivachrome USB and C#

    Are there any libraries or classes that allow C# applications to talk to devices on a the USB (Universal Serial Bus) I don't think theres any specific namespaces in the framework. You might want to take a look at this article  which deals with working with USB devices and has some good pointers. Cathal Read this article and follow some links from it  http://msdn.micr ...Show All

  • haSta How to get return code from a launched process

    I need to capture the return code from an external program that I am launching using the Process class. I can't seem to find information on how to do this. An example would be, my program launched a legacy executable that returns a value indicating the success/failure of the application. Assuming that you call Process . Start () then it returns a Process object.  If you call Process . WaitForExit () to bl ...Show All

  • BarrySo How do you change the file version?

    I have created a C# app in VS2003. I have changed "assembly: AssemblyFileVersion" to what I need. I then right-click on the .exe file in explorer and select Properties. In the Version tab, the File Version at the top is "0.0.0.0". In the list box, the File Version shows what I changed. How do I get the File Version at the top of the dialog to reflect this I tried that and the File Version a ...Show All

  • rafidheen multiple pages in windows form

    you saw the book view in Ms Word for sure.(multiple pages not in print or report) how we can create this kind of view in Visual Studio .net which container control must be edit I want to have a simple multiple pages data in my form. I have a data reader which read feed my form by thousands of records these records are too short in their length therefore I rather have a splitter in my form with two panels : ...Show All

  • Jaqq Test Zanebug Resource access issue

    Hi, I have an application wich requires internationalization. So , I used an instance of ResourceManager class and .resx files in order to translate the texts. I succesfully build and run the application. Further, I tried to run tests on the application using Zanebug. I wrote a simple test: [Test] public void TestCheckTracing() { MyForm form = new MyForm(); form.Show(); Assert.AreEqual(1,1); } ...Show All

  • kp6453 Repeating Sequence

    You how you put Console.WriteLine("Press Enter to continue"); and then you put Console.ReadLine(); Now i want it to say would you like another entry Y or N if they enter Y how do i repeat the process of going back to the excution of the program....basically how do i start it over... I know it seems i am asking very basic question...but i started programming very differently than most developers... Hi, Ok, lets dissect the statement ...Show All

  • Michael__H How to Clear TreeView nodes?

    Hi. In my application, I run a BackgroundWorker to load content from the net. In BackgroundWorkers RunWorderCompleted event handler I want to populate a treeview based on the received content. But first I need to clear the whole treeview. When I try to clear the nodes using myTreeView.Nodes.Clear(), a TargetInvocationException is thrown. I never saw that before, so I think that background worker is to blame. Any suggestions how to clear the Tree ...Show All

767778798081828384858687888990919293

©2008 Software Development Network

powered by phorum