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

Software Development Network >> Visual C#

Visual C#

New Question

problem with multiple serial ports
Shell Context menu (aka Win Explorer context menu) in my app?.. how?
Access to the registry key 'HKEY_CLASSES_ROOT\name of the class' is denied.
Get the computer Id
BackgroundWorker Intelligent Drag drop Copy filetypes into respective folders
Problem when loading packages at startup
ArrayList
HEAP and STACK
Else if statment
Passing an inherited class as 'T' to a generic container.

Top Answerers

Deza
Craig G
anubisascends
Mandip
drakkan
BhuttCrackSpackle
TinyGuan
the emrah
Carl Are
Leonids
sitemap
Only Title

Answer Questions

  • Mikhail Matveev How do you display a number in textbox as Hex value.

      I have 3 text boxes.  The user will enter hex numbers in textBox1 and textBox2.  I want to add them together and display the HEX sum in textBox3. This code ALMOST works.  It displays the answer in DECIMAL.  How can I display it in HEX   Thanks. int mynum1; int mynum2; int myanswer; mynum1 = Int32 .Parse(textBox1.Text, System.Globalization. NumberStyles .HexNumber); mynum2 = Int32 .Parse(textBox2.Text, System.Globalization. NumberStyles .HexNumber); myanswer = mynum1 + mynum2; textBox3.Text = myanswer.ToString();   //this displays in Decimal.  How to Display in hex textBox3.Text = myanswer.ToString("X") - or "x" for lowe ...Show All

  • minority80 How can start and stop the threads [Parameterized thread]?

    Hi, I would like to know the threading concept and How to start and stop the threading in C# application. Please help. Hi Figo Fei, Thanks for your detailed explanation about the threading concept. It really helps me to learn about it and usage of threading. I am having some difficulties for use this thread in my application. Can you please help Here is my usage scenario. I have written an application project that build all the CS & VB project file in given directory up to its leaf directory. Once I started the testing process then I couldn’t able to stop the process. I need to have both the options like stop the process & resumes the process . I am getting idea about suspend & re ...Show All

  • DotNetSavvy Icon with the meaning : 'Alternative'

    Is there a standard icon for the symbol 'alternative' (alt) regards Alu ...Show All

  • Gordon Speirs Problems with interfaces

    I'm having a lot of trouble with interfaces and abstract classes. No matter how I seem to approach the particular problem I need to solve, I end up with heaps of replicated code and extra classes or interfaces. What I have is an abstract class called Subsystem, which contains information allowing my application to store and retrieve configuration data in a generalised way, and methods for the implementing class to call to get and set configuration settings at runtime. Please don't reply suggesting I use the built in configuration functionality in Visual Studio, that is not what this is about. One of the subsystems of my application is the main window, which of course extends System.Windows.Forms.Form, and of course this is where ever ...Show All

  • Pintoo Khaira System Tray Icon with background processes

    Hello Background I'm writing a system service style application. It consists of a NotifyIcon in the sys'tray that has several functions that are called from the ContextMenu / Event s. When the app' starts it should do nothing but sit there until the 'Start Sending' MenuItem 's Event is called. This event starts a new Thread which checks a file repository between Thread.Sleep(15*60*1000) . Problem To cut to the chase, the application is maxing out the cpu usage during a loop: while ( this .Created){ Application.DoEvents();} How to I prevent this excesive usage Do I need to access the System Idle Process This usage doesn't actually halt the server or even slow it down it just capitalizes the usage as there is no ot ...Show All

  • jim_cool How do you define a method with optional/default parameter?

    Thanks Maybe the documentation is buried somewhere. I just a want to implement a simple optional parameter in c#. Something like; int Function(int index, bool recurse = true) Its saying "Default parameter specifiers are not permitted." For some reason, overloads don't work quite well when you are writing COM. I want to experiment if optional parameter will work. Also just for regular programming, it will be nice to know if optional/default parameter is doable in C#. What's your exact requirement Have you have a look on keyword param in C# Best Regards, This feature is not yet availble in C#! You already know Alternates so I'm not going ...Show All

  • MickJ27 Thread Message Suggestions

    I have a question. In my C++ days, I had straight C++ threads using thread messages to act very similiar to MFC UI threads to process messages even though they weren't connected to a UI. The Win32 calls included ::CreateThread(), ::PostThreadMessage(), ::GetMessage() to simulate the behavior of just dropping a message into a thread queue to process the message. Now that I am in C## land, I can't seem to find any documentation about thread messages which tells me that I am looking at the problem incorrectly meaning C## does things differently. Suggestion Hi, If you did the above to implement a thread pool to execute tasks on worker threads, you should have a look at ThreadPool and QueueUserWorkItem. Yo ...Show All

  • Joe Morel - MSFT skipping the base constructor in an Exception derived class

    Hi all, I'm trying to write an exception with overloaded constructor, where one will raise an exception while the other will only write to log. However, trying the follwoing did not work throw new NMSTestException("My Message", 0); Please let me know what am I doing wrong public class NMSTestException : Exception { public NMSTestException(string Message):base(Message) { // raise } public NMSTestException(string Message, int dummy) { // do not raise, write to log only } } Of course it doesn't not the exception constructor or anything in the exception raises, or better throws, the exception, but the "throw" keyword does that. So you can write whatever in your derived exception clas ...Show All

  • RichardHarley Any Easy way to open help files by "F1"?

    There is an "Help" on the MenuStrip, and its short key is "F1". I made a user guide of the software in word format. How to open the "user guide" when user click either "Help" or "F1" To use file open and close or some other easy way BTW. Is there any detailed and all-sided information about the items on GUI Thanks a lot! Thanks! However, I do think I get the answer... At this stage, I want to know what will be the "Path" of the "User Guide.doc" which is added to Setup Project for the Porcess.Start()... I do not know how to make it easily to open the "User Guide.doc" when user press "F1" or "Help" after installing my software. Since I do not know where user ...Show All

  • hwiz What is the idea behind this program?

    Hello everybody. I would like to make a small program for my university I am in. Just a little bit of history. Very often I see people that have not logged out of their accounts. A bad person can do a lot of damage if you have left your accound logged. What I want to do is to write a program to monitor the user's activity. Let's say he/she can define a time interval. If there is no activity during this period, the prograt should log off the user automatically. That's it. So could you guys explain to me the general idea behind this program(programmer's point). How can I monitor the user's activity and stuff like that. Any help would be greatly appreciated. With all the respect, chire :) ...Show All

  • jsdude99 the last questions.........................

    hi i have a problem with the first argument of this methode directoryentry.Invoke( ); where can i find the methodname that i should post as the first argument what the available methodename hi ,nobugz..... sorry but i don't know what do you mean from InvokeGet/Invokesetyou know that they are take an string for their first argument and i don't know what i should do with that could you pleas help me with the first argument thanks bye.............. hi sorry for creating duplication ....... but i don't know how can i use this mehtode and delegate may you define a delegate an use that in this method my actual problem is that the user i ...Show All

  • Tao Wang CSI Refactor - Encapsulate field

    When I use refactor - encapsulate field I get the preparing files dialog and then it scans all the files in the project. It never used to do this and it now takes so long that there is no point in using encapsulate field as it is quicker to type it. On colleagues pc it works immediately without the scan, we are on the same spec pc. Have I changed a config setting somewhere Any help would be appreciated. TIA Thanks for the reply. Yes, I'm using ASP.Net. I'm currently using the file system (internal VS web server) web projects, if that makes any difference. cheers I get the same effect when i refactor (rename) a local variable in a method... I really don't know why Visual Studio wants to scan through the who ...Show All

  • hega72 SqlCommand is undefined value

    I am trying to connect to my Sql Server 2k5 but it tells me that cmd has an <undefined value> when its executing any reason this could be.....Is there anything missing from my code i didnt think it was but just trying to see if i can get a lil help. thanks string connection = System.Configuration.ConfigurationSettings.AppSettings["connstring"]; SqlConnection cn = new SqlConnection(connection); string quu = "SELECT * FROM Class"; cn.Open(); SqlCommand cmd = new SqlCommand(quu,cn); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { Console.WriteLine(dr.GetValue(0).ToString()); Console.WriteLine(dr.GetValue(1).ToString()); Console.W ...Show All

  • occam999 TreeView in C#.NET

    How To Add Nested nodes and ladder of nodes of Xml at in TreeView C#.NET if you mean how to load XML file into TreeView look at this article How to populate a TreeView control with XML data in Visual C# 2005 or in Visual C# .NET ...Show All

  • John McMillion Error handling

    Hi, I'm developing a three tier application, and have some conceptual question about the right way for error handling. the tiers are : 1. Presentation Layers - PL 2. Businnes Logic Layer - BLL 3. Data Access Layer - DAL now lets tak a very simple example, Let say i have an aspx search page on "Users" table. Search fields are : UserName, FromDate (on BirthDate Column), ToDate(on BirthDate). The validation checks for the search are : 1.UserName - 2-10 charecters 2. FromDate/ToDate -Valid Date 3. ToDate is Bigger than FromDate My Questions Are : 1. Should i perform the validation checks on each Layer 2. Should I put the call from the PL to the BLL, and from the BLL to the DaL in try & ...Show All

616263646566676869707172737475767778

©2008 Software Development Network

powered by phorum