Answer Questions
xmart2k How to write "javadoc" in C#?
Hello, Could anyone tell me how to write documentation in C#, like you do in java. And how do one compile and view this Thanx:) Thanks :) NDoc currently does not support C# 2.0 very well. Microsoft will be releasing an in-house doc generating tool that supports 2.0 sometime in the next few months. Announcements will be posted on the Developer Documentation and Help System forum. http://forums.microsoft.com/MSDN/ShowForum ...Show All
JBeardon How do I determine which program window is active?
hi there, i want to programmatically determine which program is currently active from the user's perspective. i.e. if I have Acrobat Reader, Visual Studio and Internet Explorer open but Internet Explorer is currently being used and is ACTIVE. I need to know where the active programs' .eve file is located e.g. C:\Adobe\Adobe.exe or where the process comes from. thanks You can use GetForegroundWindow(); to get the foreground window ...Show All
DanZeMan RPAD function Not working
Hi, RPAD function that works correctly in when executed in SQL PLus is not working in ASP.NET. Actually this is my select statement. select elem_number,element_name,element_type,(trim(elem_number||'-'||element_name)||lpad('~',50,' ')||element_type) element from hrcten0vy order by elem_number Here iam padding 50 spaces before the ~ symbol. This query is working fine when executed in backend. But when i populate the field element in a ...Show All
DuckPuppy shell
hi, could someone please tell me the c# conversion of the vb Command() Command() gives me the filepath of the file that was clicked on that opened my app, much like clicking a document will open word, word then gets the filepath and opens the file thanks for an help Application .ExecutablePath I think you want Environment.CommandLine that is good enough thank you i understan ...Show All
pmacdonald How to read a .wav file from server ?
Hi, I would like to read a SOUND file from server(written locally using C#). The file size is around 2MB. How to do so Thanks, ramakrishna. Do you just want to read the file or do you want to play the sound How to play sound in Windows app There are many ways to do what you intend. One way is using DirectSound, for that you should install DirectX SDK. Other way is to to use ActiveX of SoundRecord ...Show All
asim.iqbal writing value to Registry
Hi all, I have a problem with writing a value to a registry. I want to change the pocket pc registry at run time by my application. On of the keys I want to change is : BDDevClass = 06 05 80 the key value type is REG_BINARY. When I write to this key by the SetValue methode : SetValue("06 06 07") I get in the key the value "06 06 07" (I mean with the "" marks. This is the problem, I want to set the value without the "". How can I do that. Pl ...Show All
LionelG Logic Problems
How come when i run this i get 62 but i am trying to get the average...The average is 15.4 but when i compile it i get 62...why is that can some one help using System; class Average { public static void Main() { int num1; int num2; int num3; int num4; int num5; num1 = 10; num2 = 12; num3 = 15; num4 = 22; num5 = 18; float average = num1 + num2 + num3 + num4 + num5 / 5; Console.WriteLine("Average is {0}",aver ...Show All
iso3200 C# Webpage image file
What is the correct location of the file, and the best way to link an image for a webpage so that it is viewable to all So in C# when I add the image and I go to browse for the file... I should just replace the file:///S:\M Images\Logos\Logos\Custconnects.jpg with (this is a web application for internal use only) Thanks, best way to link the image is to give ...Show All
kawak Noob: Nested For loops Example
Can someone please tell me how to Convert this BASIC snippet into C#: FOR X = 1 to 10 FOR Y = 1 to 10 NEXT Y NEXT X Thanks in advance. Thank You Sir. for ( int i = 1; i <= 10; i++) { for ( int j = 1; j <= 10; j++) { } } ...Show All
Simon Molloy Command Issues
I am trying to type the following command in the comman prompt csc /t:module StringLib.cs... I located the folder i keep the file in but i get the error from the cmd window saying Source file 'StringLib.cs could not be found fate error cs2000: no inputs specified Any Help...If any one has did the excersise in the Amit Kanlani book chapter 4 Step by step 4.13..please shed some light You may need to prefix the file with the full pat ...Show All
hpassant Adding DNS Zones and A Records on a Remote DNS Server
Hi everyone, Just recently I had to make a class to add dns zones and a records to a remote dns server. It was very anoying to create because the info was hard to find - also I couldnt find any C# examples so I had to convert the examples I found from VB or VBS. So here is my final product. The entire class code is below. You can use this to establish a connection to a remote server and then add/remove dns zone and a-records or to check an ...Show All
Timski Persisting events in a SingleCall Remoting server
Hi All How to persist client’s event subscription to server in a common class. Basically I need to notify the client from server. In order to do this I tired by having a event in a common class where client and server can access and the client will subscribe it to that event and in-turn ...Show All
Fleurin Are strings any easier in the new C#?
I stopped using C# about a year ago. I hated the complexity of using strings. Gone were the days of MyString = "Hello"; I had to now make an object. String manipulation, which was once easy using MID, RTRIM, REPLACE, etc., now is tedious. Anyway, I was wondering if the newest version of C# has made it any easier Can you go this : String s = "Hello World"; //Now change it immediete ...Show All
MSTSE No clue about arrays, everything fails ...
I want to fill an array in the constructor of my object, and then use it in in another method. But no matter what I try, I can't get this right. It is too different from how arrays used to be. Either it does not compile, or the array remains null as in the example below. How should I do it class Calendar { private static int day,month; private static int [] daysPerMonth; public Calendar() { day=16; daysPerMonth[1] = 31; daysPerM ...Show All
sridhar reddy mitapalli Closing Dialog Box without ending exe
At the moment I am trying to use a dialog box to put progress messages on the screen as a long process takes place beneath. The box has a close icon (that X at the top right of the title bar) If the user clicks on the close icon this then closes the exe, but I would like to be able to keep the exe going and do some recovery routine to re-establish a known condition on the running exe. Any ideas would be very welcome. Thanks ...Show All
