-
- Killing a C# process from a website
by Hemanshu
- 3 Replies
- Last post
by Peter Ritchie
- Hi
I have to provide a link on a webpage to kill a C# exe
I am running a C# exe which connects to a server
Now i want to give the operators of that server am option to kill that that exe in case they need to from a website
Is there a way I can do it
Thanks
-
- A newbie question about import
by KillerGermel
- 16 Replies
- Last post
by KillerGermel
- I have a problem. I have sensors and I would like to import their info to C#, how can I do that thanks ahead.
-
- Parameter count mismatch
by Umer Khan
- 4 Replies
- Last post
by decyclone
- i m using reflection to load assemblies i hav class like public class myclass { public void MyFun (Object[] myObjAry ) { } } when i used reflection to get Method , it fetch method perfectly but, when i passed array of ojects it raised exception Parameter count mismatch what i did Object[] parameters = new Object[2]; parameters[0] = sumvalue; parameters[1] = sumvalue; Metho
-
- Application Settings
by struct
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hello,
I'm newly converted from Delphi since the IDE for my version won't run properly on Vista. So needless to say, I know nothing!
I can't seem to get the simple task of saving and restoring my form settings to work. Can someone please explain this process to me.
Thanks!
-
- How to automatically add my DLL from VSS to Visual C# IDE
by radicalric
- 6 Replies
- Last post
by radicalric
- Is there anybody here know how to seamlessly integrate my Library from the Visual SourceSafe into the Visual C# IDE
-
- Converting date to system current date time format
by Hemant Hindlekar
- 13 Replies
- Last post
by Hemant Hindlekar
- Hello
Can somebody help me for below problem
In my .Net application I am using vb component having one method which accepts DateTime as a parameter. This value will be inserted into the database. The value to be passed to this method will be taken from some other database. Before passing this datetime variable I want to set the date format as a current culture system datetime format with Sho
-
- SQL type if statement
by Ric Bevan
- 3 Replies
- Last post
by George Olson
- ASP.NET
C#
if statement
I am after an SQL type if statement for my C# code. In SQL there is an option which allows you to query if a variable is in a list of variables.
Example SQL Statement
WHERE variable1 IN (variableCheck1, variableCheck2, etc)
I was wondering if there was a way of replicating this in C# if statement, or something like an if statement.
-
- Avery word template mailing labels...
by dylansweb
- 2 Replies
- Last post
by dylansweb
- Hello.
I need to create a mailing list for printing mailing labels to a word document using some given avery word template... The names and addresses are stored in my database, I need to fetch them and somehow produce a word doc using an avery template. 1) Getting the data from the database, no problem. 2) Getting the data into the Avery word template, problem! Any help is much appreciated!
-
- Reading a bitmap off a 2 dimensional array
by jomanlk
- 5 Replies
- Last post
by jomanlk
- I'm creating an application that stores the movement of independent objects on a two dimensional array. Whenever an object moves it updates it's position on the grid. The objects run on one thread while the method that reads the grid runs on a separate thread. The grid consists of a [1024, 800] 2 dimensional array (used as XY points). The method that reads the grid continuously runs a nested FOR l
-
- Safe IntPtr handle
by Alex Farber
- 1 Replies
- Last post
by Greg Beech
- I wrote the class which is supposed to be used as IntPtr wrapper. It should keep result of Marshal.AllocHGlobal operation, and calls Marshal.FreeHGlobal when instance is disposed or finalized. Class is tested and appears to work properly in different situations.
I want to ask C# gurus to take a look at this class and post opinions about it: C# programming style, safety etc. - something that I p
-
- using classes
by Xelestial
- 1 Replies
- Last post
by Paul Louth
- hi!
i don't know how to phrase my question but here it goes...
i have many functions in my program and they are all placed in the form1.cs what i want to do is separate it and place all of them in a class. how would i do this do i just copy it and now how can i call it in my program
thanks!
-
- How to run two threads concurrently while multithreading?
by AlwaysStudent
- 14 Replies
- Last post
by AlwaysStudent
- Hi all,
I've defined a UserControl, that does a very long process and finally it fill its components (i.e. labels and textboxes) with the result of the process.
The main application that uses this UC, has a main form, with an instance of this UC plus a run button on it. When user presses the run button, that UC starts its processing.
What I need to do is:
I want to show a new f
-
- Integer (Unit) Conversion Help ---
by Evan Mulawski
- 4 Replies
- Last post
by Marcelo Guerra - MSFT
- I have an integer in the unit bytes (like kilobyte and megabyte).
How can I convert it or multiply it so the unit is in gigabytes (GB)
Thanks,
-
- Recursive Hierarchy of generic interfaces
by MuscleHead
- 2 Replies
- Last post
by MuscleHead
- I'm trying to implement a parent-child relationship between 3 objects, and I want to constrain what can be a parent of what. interface3's parent can only be interface2; interface2's parent can be either interface3 or interface2
interface3 -> interface2 -> interface3 -> interface2 -> ... -> interface2 -> interface1
As a first step, I tried to implement an interface hiearchy
-
- How to make a program unstoppable
by andriscs
- 14 Replies
- Last post
by andriscs
- Hi, I have a program that has two goals: start with Windows (XP) and always keep running until Windows shutdown. The user is a limited user of Windows XP. How can I start the program that the user won't be able to terminate it with task manager or taskkill I thought about starting my program as a Windows service (I am not aware of what can be started as a Windows service - is it possible to start
-
- How to use ProcessCmdKey(msg, keyData) and ProcessDialogKey(keyData) like this???
by Haiasc_123
- 4 Replies
- Last post
by Haiasc_123
- Hi all, I try to override ProcessCmdKey on a TextBox to change: keys.Up -> (Shift & Tab) , my code like this protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Up) return this.ProcessDialogKey( Keys.ShiftKey & Keys.Tab ); else return base.ProcessCmdKey(ref msg, keyData); } but it is not ok, ProcessDialogKe
-
- What is the meaning of "Upload Project"?
by daniel mark
- 3 Replies
- Last post
by TaylorMichaelL
- Hello all:
I found a menu on the Project Properties that means "Upload Project".
What is the function of this menu
Thank you
-Daniel
-
- Calling Active Directory search dialog
by Muzzzy
- 1 Replies
- Last post
by DonsSoftware
- Hi, I'm trying to find a way to call a standard ActiveDirectory search dialog from my C# app, so i can pick a domain or computer user an dreturn it to the app. It's a search like one showing when you call: rundll32 dsquery,OpenQueryWindow I'm sure there is a Win32 API method to do that but i can't find one. Any ideas would be highly appreciated! Thank you, Andrey
-
- Odd Debugging Error
by Tricos
- 1 Replies
- Last post
by Figo Fei - MSFT
- Error while trying to run the project: Unable to start debugging. The Microsoft Visual Studio Remote Debugging Monitor has been closed on the client machine.
I'm not trying to remote debug. I haven't even tried to remote debug or set up anything to remote debug.
It is not doing this on any other project, and just started happening all of a sudden.
Tony
-
- Converting music and videos? Possible?
by Evan Mulawski
- 1 Replies
- Last post
by OmegaMan
- Is there ANY way of creating an application that converts any music file to another music file (customizing but rate and tags ).
Just a code sample or explaination will help and be greatly appreciated.
Thank you,
-
- Access violation
by patti_nyl
- 3 Replies
- Last post
by patti_nyl
- Hi, I am having a strange problem.
My application is a C# that is wrapping some unmanaged code. When I run in debug my application works fine, but when I run in it Release I get a exception telling me
0xC0000005: Access violation reading location 0x00000001.
What is wrong What should I do to fix the problem The exception is in my unmanaged code.
thanks in advance
-
- Convert a 1-d array of double to a single string
by jim rozak
- 3 Replies
- Last post
by Figo Fei - MSFT
- I wish to convert a 1-d array of double into a single string with each element of the array separated by a comma in the string.
I know I could create a loop an convert each element from a double to a string and store each result into a string array....then use String.Join (like below) to make the single string...but I was wanted to know if there is method to avoid a looping Thanks.
String.J
-
- how to change audio capture input from microphone to line in
by c@i
- 2 Replies
- Last post
by c@i
- is there any API or method to change my audio record input from microphone to line-in in my c# application
-
- Static property is not changed when downloading via OdbcDataReader.GetBytes
by Adriaan W
- 2 Replies
- Last post
by Adriaan W
- I have a static class DC (dataclass) where all the databae stuff is done and in the main form I have a thread that monitors the totalRead property. this is how my code looks:
public
static
class DC { public
static long
totalRead = 0; public
static bool
DownloadIsFinished = false ;
public
static
MyFileWatcher
getFile(...) { ...
-
- How do do this ( a constant value is expected )
by andrewcw
- 4 Replies
- Last post
by bretonne
- I had some constants that worked well in this switch statement. But a better design would be to use them as enum types, as follows, however now the switch cant compile.
public const string HWPARAMETER = "HWNOPARAMS" ; // I want to consolidate these in the enum
public enum ioTypes { MANUAL,VIRTUALCH,HWPARAMETER,HWNOPARAMS,TMSTIME}
private void Measurement