-
- Interfacing a mobile phone
by usamaalam
- 3 Replies
- Last post
by Michael Koster
- Hello everybody, Is there a way to connect a standard mobile phone with PC and and write code to send/receive SMS(plain text messages) to other mobile devices from PC using the mobile phone that is connected Thanks.
-
- Remove repetitive code
by Azurewrath
- 6 Replies
- Last post
by Azurewrath
- Hi all, I have a method like this, that I am calling from a scripting language. Right now I need it to have a fixed amount of parameters. So is it possible to write this, using 1-2 lines: public static void TransferArray ( float v0, float v1, float v2, float v3, float v4, float v5, float v6, float v7, float v8, float v9, float v10, float v11, float v12, float v13, float v14, float v15, float v
-
- Detect IP or Host
by Darito
- 5 Replies
- Last post
by Suisse
- Hello! I have a file system watcher, installed on a File Server. It does everything perfectly, monitors for changes, creations, deletions, renames. What i would like to add to it, is the possibilty to detect the IP or Host name of whoever make changes in the files, in order to create a detailed log. Is this possible If it is....could you please guide me or throw me some tips =) Thx in advance!!
-
- Help - folder's property dll
by Musafir
- 13 Replies
- Last post
by TaylorMichaelL
- Hi..
In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc..
Is it possible to get the properties dll in c#
please help
-
- Creating an ISO image from a CD in C#
by Jonathan Stanton
- 3 Replies
- Last post
by Jonathan Stanton
- Hello there,
I am trying to write a application to impliment a CD/DVD forensic imaging system. I have already written a library to control a robot arm to deliver and remove disc for the drive and now need to work on a library of functions that can tell me information on the disc loaded. eg if it is data or audio. Then it needs fuctions like ripping the tracks to disc or if it is a data disc cre
-
- C# and C++ combination
by MoSin
- 4 Replies
- Last post
by MoSin
- Hi,
I'm starting a project where I'll do the UI in c# and all the code, algos, logic will be in c++ dlls. Also, I'm going to use the serial port of c#. To use methods in the c++ dll, I saw that invoke and dllimport can do the job, for this I guess I'm ok. The thing I don't understand is how in the c++ logic could I use/access the c# ui objects (listbox, buttons, labels etc) and also how to
-
- numbering rows!!
by Umesh_karthy_41cdd8
- 12 Replies
- Last post
by Figo Fei - MSFT
- hi my application uses a datagrid. i generate rows dynamically as per my requirment and add values to them. is there any means by that i can name or number the row sequentially i.e., rows 0,1,2... and so on. this is the code snippet where i generate the rows and add it to the tables. for(int i = 0; i < x; i++) { newRow1 = table.NewRow(); rowCount++; // Add the row to the
-
- Need help with the IDE
by 357mag
- 1 Replies
- Last post
by TaylorMichaelL
- I'm writing a simple program that just outputs two lines of text to the screen. I'm using the Deitel book. According to them, you should name your class the same as the name of your program. So if the name of your program is "Welcome Program" the name of your class should be:
class WelcomeProgram
Now I noticed that the IDE always just uses the word 'Program'.
So I change
-
- reference object not updated
by rodniko
- 8 Replies
- Last post
by ShellShock
- i send a class variable string into a nested class by "ref" ( using a constructor). inside this nested class i operate a thread and change the string variable value inside the thread. from this thread i call a delegate function which points into the main (not the nested) class function, why can't i see the change in the string there why didn't the variable string changed in the thread bu
-
- Config file properites
by Jarod.Net
- 4 Replies
- Last post
by Jarod.Net
- Hey All!
I need to create in app.config sth like this:
<Accounts>
<Account UserName="John" />
<Account UserName="Fred" /> </Accounts>
So it will be a custom section.
I tried to get help on it in MSDN Library but after creating custom section I got:
<MyCustomSection>
<Accounts>
<add UserName="John" />
-
- Iterators and link.exe - a possible bug?
by Kevin Ring
- 2 Replies
- Last post
by Kevin Ring
- I was torn on whether to post this here (because it has a C# code snippet) or to one of the C++ forums (because the problem revolves around link.exe, which is generally used by the C++ guys). My apologies if I chose poorly.
I have the following simple C# code:
Code Snippet
public class Whatever
{
public IEnumerable < int > EnumerateSomething()
{
-
- issue converting generics list to array and back
by Joey Bradshaw
- 2 Replies
- Last post
by Joey Bradshaw
- I'm new to generics and they are being a real pain when it comes to my web services. I've got a winforms app that uses a proxy web class which invokes methods on a web service. The web method "RemoveRole" takes a parameter of List<Guid>. It throws up saying it could not convert object[] to List<Guid> so I'm trying to figure out how to put the plumbing in place to make the con
-
- Source code parsing.
by Seimur
- 3 Replies
- Last post
by Mujdat Dinc
- I'm very weak in regular expressions, but there are needs to parse source code and build project graph in memory. I know that Visual Studio uses some mechanism to parse sources and after that displays project tree in Class View panel or uses same mechanism to create class diagram from a source. Which library does it, where I can find it and how I can use it
-
- Windows Service help
by sereleg
- 3 Replies
- Last post
by KingCobra
- protected override void OnStart(string[] args) ( SetConfigParams1();
//how I use this after SetConfigparams1() was used, i need to process the window services with the new values from SetConfigParams2()
SetConfigParams2(); timer.Enabled = true )
.....more code
I need to update a Window Service which works fine with just SetConfigParams1(). My task is to call an additional method ca
-
- Help needed please.
by Velen
- 2 Replies
- Last post
by Velen
- Hi
here is my problem and im not sure how to fix it so any help would be great.
Problem XP pro has just notified me that my system has dramaticly changed and i need to reactivate it. I have changed nothing and last install was C# Express. I have had a number of crashes in the past and had to reactivate to fix so i know im about maxed on this coppy of XP. I am presently disabled and unabl
-
- [C#] Waiting for an event to be fired
by Sc0tt
- 12 Replies
- Last post
by Sc0tt
- Hello everyone. I am trying to find a way of making my application stop whilst an event has not been returned. Here is how it works: First, it looks through a xml file such as
Code Snippet
<Actions> <Action> <Type>Method</Type> <Member>ExampleMethod</Member> <Value xsi:type="xsd:short">0</Value> <
-
- Windows Service Install and verifying help
by .net sukbir
- 13 Replies
- Last post
by .net sukbir
- Dear All,
I am creating a windows service. So I have put my supposing code in the
protected override void OnStart( string [] args). The problem now is how can I verify if my code is working or not because I tried to use MessageBox.show but is not available. So how to run my windows service base on interval of every 20 minutes. I dont how to go about installing it and testing it
-
- what does this code block call?
by henrytheinspectorlee
- 14 Replies
- Last post
by baldmountain
- public foo() { ... { //what this block of code call } ... } I recall reading this somewhere but had forgotten. I have a private function call within that code block, will it behave differently if I do not enclose the function call with { }s Thanks.
-
- Function Return Issue:
by Prasanna_Kumar T E K_eb0ffe
- 7 Replies
- Last post
by Colin Wetherbee
- Hi,
We all know the use of functions in all the existing languages (Say¡ C, C++, VC++, JAVA, C# ¡) in all those languages functions can return value. My question is: Although there is and evolution of advancement of programming languages i.e.
For example:
C# is advancement of C++ & JAVA just for instance (Note: there may be wrong in my prediction please kindly ignore it) similarly C++
-
- c# inheritance inquiry
by Donald Allan
- 4 Replies
- Last post
by Donald Allan
- Good Day everyone; I would like to ask if c# allow a subclass to inherit also the classes in a packages like for example those within the System.Data.sqlClient included in the parent class So that if the child class a separate file inherits the parent class, I dont need to declare them in my child class. Given the code below: //file parent1.cs using System.Data.SqlClient; namespace myNameSpac
-
- Is User belongs to Local Admin Group
by Sidheshwar
- 3 Replies
- Last post
by Ivan Pavlovi?
- Hi All,
I am creating a Windows Application in C#.
I want to check for the logged User, whether he belongs to Local Admin Group.
I am Using Windows XP Professional as my OS.
Thanks in Advance.
Sidheshwar
-
- Reading other user data from registry
by UniqueDisplayName-Adam
- 5 Replies
- Last post
by UniqueDisplayName-Adam
- Here is a summary of what I am doing:
1. Running C# application as user1
2. Retrieve ntuser.dat file for user2 and load as a hive in registry
3. Reading HKEY_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
My issue is that when performing #3. The ntuser.dat file for user2 has %USERPROFILE%... in it. When the application retrieves this it is returning the %USE
-
- C# Project Help
by guy2watch
- 3 Replies
- Last post
by guy2watch
- Thanks for the responses guys...
-
- What's the appropriate exception with an input string is empty
by Jeremy Jarrell
- 2 Replies
- Last post
by Friendly Dog
- I'm working on an API level component (logging) and I want to throw an exception if someone calls a logging method with an empty string (""). I nomally throw an ArgumentException with an appropriate message in this case, but I've began to wonder recently if ArgumentOutOfRangeException wouldn't be a more appropriate choice since the string length is 0 which for my use would not be an vali
-
- Application versioning help
by Cminor
- 2 Replies
- Last post
by Cminor
- Hi Guys,
I just wanted some clarification on versioning of an application. Can someone tell me what the appropriate procedure is for this I see software with versioning such as "Version 1.2 Build 3928". What exactly does this mean and secondly what is the most appropriate or industry standard way of versioning my application.
Many thanks
Martin Tuncaydin
martin@ag