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

Software Development Network >> Visual C#

Visual C#

New Question

How can I rename remote local user using API[DllImport]?
Weird one - Router Death by Vista
C# - How powerful?
Downloading Tutorial
how do you apply a class
Code Snippets NOT inserted from Intellisense
Initializing struct members
Live Update?
How to add parameters from stored procedures.
Vs 2005 SP1 final worse than SP1 Beta

Top Answerers

John Lockhart
Ekta
Eirian
Tryin2Bgood
JollyChollie
Jassim Rahma
Vegar Imsland
rtaiss
Cherian
hrubesh
sitemap
Only Title

Answer Questions

  • RivieraKid Detect Close via X button in Console App

    Good day, We have a VS2005 C# Console Application and are trying to detect the user closing by hitting the X button in the top right corner of the app. As you can see by the following code, we have tried hooking up a variety of event handlers, but in all cases the event handler never gets called. What are we missing Thanks in advance... static void Main( string [] args) { // get notification of close AppDomain .CurrentDomain.ProcessExit += new EventHandler (CurrentDomain_ProcessExit); //Application.ThreadExit += new EventHandler(Application_ThreadExit); //Application.ApplicationExit += new EventHandler(Application_ApplicationExit); //Process.GetCurrentProcess().EnableRaisingEvents = true; ...Show All

  • ODP help with ToolStripButton

    hi all. i have a TooStripButton on my toolbar. on the button i have text and image. can i know if the user clicks on the text or on the image If you talking about a ToolStripButton on a ToolStrip and its DisplayStyle property set to "ImageAndText", then image and text on the ToolStripButton will work as single object. Anyway why do you want to capture click on the text and click on the image of a single button Yes, you just need to add a System.EventHandler of the click to handle it. you add it from the event set in the attribute using the design mode ...Show All

  • bkejser how can we see output?

    hi, i m using visual C#. when i build the program its build correctly by pressing F5 . but how can we check the output of that program i mean in a console application when we make any program to pirnt a number 5 times then it automaically check tha errors in visual C#. but when we press E5 to buil the console application it it appears on the screen only for 1-2 second means not for enough time to see the output . what is the command in console application by which output should be visible atleast for 5 second. Hi, you can use System.Threading.Thread.Sleep(5000); which will pause the main thread for 5 seconds before allowing the console to exit. As mentioned you could also use Console.ReadLine() but that would then requir ...Show All

  • David J Oldfield return type of BSTR??

    I want to write a function in a class library which is the return type of the function is BSTR, how can i do that Can anyone give me an example source code Ya, There is no BSTR type in .NET.Use String in the class library. This'll be converted to BSTR , when the above library is used in VC++ client. Thanx, Ch.T.Gopi Kumar. Hi, chongsk You mean the one in UnmanagedType Enumeration Thanks There is no BSTR type in .NET, you should use String. Hi , Could u please post the solution for ur problem , if u have got Thanx in advance. Regards, Ch.T.Gopi Kumar. ...Show All

  • barryt Please help me confirm on windows service

    Dear All, I have a windows service which I need to run on particular time of a day. So I have build my windows service and add the code of my action of checking the database in the onStart function Is this correct or must I have a main function Another thing I have added is the debug.write I dont know whether it prints or not I done with installer and manage to successfully install my window service. So I dont know how to confirm if my windows service is running or not How can I set the time to be like specify for certain hours in a day eg. to run at 10 am, 12 pm, 2pm and 4pm daily Thanks. I would recomend to let Windows Service run always and use a config file which may contain the times on w ...Show All

  • fode want to use .h header files in c#

    Hi, I want to call the header files in my c# program. Where i am using the acrobat sdk which has references to the header file. i tried prebuildevent where i did not have proper examples. if anyone can through light on these it will be appreciated. thanks -rajashekar s I have used that sdk from Visual Foxpro with great success. I think the best way to use it in C#, however, it to define constants in a class rather than using them from a header file like the sdk gives you. You should be able to just copy them. Alternatively, you can create enums for each item that would make your code more readable. HTH A C/C++ SDK for static linking is no ...Show All

  • tampa_dba Visual Studio 2005 TS crashes under Windows Vista Ultimate

    Dear sir or madam, I am in urge of assistance regarding my VS2005 TS / VS2005 SP1 TS on Vista. I started by sumiting my problem to MS Connect, but they totally ignored me, and that why I hope to get help here. For the original request, please visit this URL: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=243085 My problem is severe - if i open any file in the VS IDE (except for CSS files) VS2005 crashes - and I mean crashes! I am left with the option to send a error repor to MS, which i usually do (and the crash must be big, as the processing time making the report takes close to 10 min. and the transfer as well take 10-15 min (upstream: 1024KB)). I have never had a problem like this under X ...Show All

  • Chandra4332 get nmea string

    Hi, I am working on a gpsdevice enad i wanted to get nmea string, i know that i must creat file with the fonction CreateFile and give the return handle to ReadFile but i don't even knwo to invoke it and how to get from it because it return bool variable. Please help!!!!!! This the code that used for create file: //Flags private const uint GENERIC_READ = 0x80000000; private const uint FILE_SHARE_READ = 0x1; private const uint CREATE_ALWAYS = 2; private System. IntPtr handle; public bool Open( string FileName) { // open the existing file for reading handle = CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, System. IntPtr .Zero); if (handle != ...Show All

  • jewelfire Learning C#

    Hi, I would like to ask anyone here for their advice on where I should start with C#. I have been programming for nearly a year now and dont know any other languages other than the VB family, such as vba, vb6 and vb.net. Since i have been programming with .net I have learned alot from the msdn library that comes with the installation of Visual Studio, and whenever looking at the example of code I still am always drawn to read the C# code. Something is just making me want to learn this language, However a good friend of mine is trying to alter my path by suggesting I learn C++. Learning C++ I would like to do, and also think I would benefit with the fact my friend knows the language. But may it not be a good path to learn C# then g ...Show All

  • Daniel Gary Shared components versioning strategy.....

    Is it wise or/and acceptable to use "*" (asterisk) in version number. If the assembly is shared and GAC'ed, each time a developer re-compiles to fix an "issue" it changes the version and all applications that depend on the shared component will break... Is there a good reason to use "*" (asterisk) in version number Are there any references or Best Practice documents about this subject I wouldn't recommend using it. Here's one blog entry with some guidance on versioning: http://blogs.msdn.com/suzcook/archive/2003/05/29/57148.aspx ...Show All

  • bpeikes Monitoring an object for changes

    Hi, I have an object which contains many Properties. Actually, this object is only one type of object inside of a hierarchal based object model using the Collections.ObjectModel.KeyedCollection. To give you an idea as to what I am trying to do, let me explain some of the objects and the properties that I need notification of. "Rod" class has a .Length property. "Part" has a .Shape, .Pin, and .Socket property. "Wheel" has a .Diameter and .Radius property. "NonStationary" has a .CurrentValue property. That's just a small example, just to get to my question. I was wondering what is the standard practice of notifying when property values have changed. The trick is that I am not concerned about single individual object property changes, only T ...Show All

  • Jesper Kleis Jensen Capturing the up/down arrow key in a child form

    Hi, Recently, I was trying to capture the UP arrow key from my window forms application. I was able to capture the key in the parent form but once i open a child form, I would not be able to capture all the arrow keys but the rest of the keys like 'a', 'b','+' and etc are ok. I have searched the web but did not find any solution. Does anyone know how to overcome this problem Thank you. Soh Sorry, I meant KeyDown. Change everything that says KeyPress to KeyDown. Can you post your code Hi What I was trying to do is to capture the keystroke : Arrow UP, Arrow DOWN, Arrow LEFT and Arrow RIGHT on my child form. When I detect Arrow UP maybe I will relocate one of my controls. From ...Show All

  • fanxg IHTMLDOMNode doesn't have onClick event :(

    Hi, everybody! I have inserted a dom node(representing an image) in a web page by c #, but how could I manage the click event of the node(i.e.the image) IHTMLDOMNode doesn't have th onClick event :(, some ideas thank yuou all in advance. Lulaleila Try adding it by using the attributes element. Set a new attribute with the name onclick and the value to the function to run. Michael Taylor - 12/7/06 But an IHTMLElement does have an onClick and a IHTMLElement is an IHTMLDOMNode (but not necessarily vice-versa) ...Show All

  • DTHMTLGOD How to compare contents(like font,formatting styles,images,tables etc) of two word docuemtns using c#?

    Hi Friends,  Anybody know how to compare(font,fromatting styles,images etc) contents of two word documents(both formats of 2003 & 2007) in c# Also suggest me if any free/trial version tools you know it's very urgent ...Show All

  • kdong [URGENT] Distance between two postcodes

    Hi all, We have a kind of urgent issue here. We are about to commence development on an application that is to perform calculations based on the distance by road between two postcodes. We were going to use a certain web service provider for this but they have come back saying that they do not support the volume of queries that our application is going to make (potentially 40000 per month). My question is do any of you guys know of any software or web services that we can interface with to query the distance between two postcodes by road, bearing in mind that this is a UK based operation and reasonable performance is a must. Thanks in advance, Stephen. http://www.google.com/apis/maps/ Un ...Show All

616263646566676869707172737475767778

©2008 Software Development Network

powered by phorum