-
- interface
by learningcsharp
- 4 Replies
- Last post
by odujosh
- what is the use of interface
what is the necessity of declaring first the signature of functions.
-
- Generic Multi-Dimensional Arrays Comparison
by Bluehunter
- 7 Replies
- Last post
by micvos
-
Hi,
I need to compare multi-dimensional arrays in a function which takes 2 multi-dim arrays which can be any type(int, double, bool...etc). Comparison is done by Object.Equals() of each value in each index of the arrays.
As a result, Generic and Multi-Dimensional is what I need to combine. Any idea I compare 1 Dimensional-arrays with
-
- How to check whether the system is 32 bit or 64 bit ?
by Kulvinder
- 8 Replies
- Last post
by Kulvinder
- Hi,
I want to know programmatically whether the system is 32 bit or 64 bit in C#. My program has been compiled for 32 bit for sure but it is not working on 64 bit, so i need to put some checks.
Can someone help
I have seen the post in MSDN blogs itself but couldnt find it working for C#.
Thanks in advance.
Kulvinder Singh
-
- "Enter outlining mode when files open" Does not work in Visual Studio 2005
by Davo.net
- 7 Replies
- Last post
by TaylorMichaelL
- I like to see my code collapse down to regions when code is open, this is how I work in VS 2003, but in VS 2005 where I have "Enter outlining mode when files open" set to the default value or true.
Turned on via (Text Editor-C#-Advanced).
When I open up a new code window, the code does not collapse.
Am I missing something or is this a VS 2005 bug.
Cheers Dave
-
- How to update a program
by S10n
- 3 Replies
- Last post
by S10n
- Hi, I have always wonder how do you make an application to update itself, but now I'm about to publish an application and updating the software could be an issue with too many users. I had thought about sharing the executable in a network share and when I needed to update I would just replace the excutable on non working hours, however I would like to know if there's a better way to do it, or a li
-
- Path name help
by john6000
- 2 Replies
- Last post
by john6000
- does anyone know how to cut the file name off a path so im just left with a path Many thanks
-
- Casting from Type to Type of loaded assembly
by polenius
- 5 Replies
- Last post
by OmegaMan
- Hi,
My code does somethink like this:
Load assembly from file
Create Type using CLID (mainType)
Activator.CreateInstance(mainType)
Now my code gets properties in this way : o.GetType().GetProperty("ActiveDocument", appDoc).GetValue(o, null); where o is object made by Activator and in appDoc is type from loaded assembly.
This all work fine, everyt
-
- Translate UNC path to local mounted driveletter.
by pnp
- 2 Replies
- Last post
by pnp
- Hi Are there any way in C# to translate a UNC path to a drive letter used on the local machine. E.g.if my drive s:\ is mounted to \\server\Shared, then i would like to be able to feed a method with \\server\Shared\lib\file.ext and get in return s:\lib\file.ext. My first idea was to use DriveInfo.GetDrives, iterate through each and see if they had some information. It doesn't seem like they hold
-
- Does Microsoft Vista Supports Visual C++/MFC Application
by Kihat
- 1 Replies
- Last post
by Matthew Watson
- Hi! I have a query here regarding the Microsoft Vista. does Microsoft Vista able to support Visual C++/MFC application What I know is it is able to support .NET application. Does anyone knows about it
-
- How to Create an Alarm
by Alekos
- 3 Replies
- Last post
by Friendly Dog
- I've been searching all over the place and I cant find simple coding to create a simple alarm.
All I want it to do is count down from a given time (given from 3 NumericUpDown controls or Hours, Minutes, Seconds). The alarm than counts down from the given time, and when it hits 0 it plays a sound. Can someone post code on how to do that
I'll make it easy, here is the button click events I'm u
-
- Accessing info from Active Directory
by Kwame Miller
- 2 Replies
- Last post
by Kwame Miller
- Hi, I am creating an intranet using VS2005 with C# as the language of
choice. I would like to access some information from Active Directory
(which is on another server) on users that log in. Does anyone know of
a tutorial online that I could read to see how this can be done or a
book that covers this I would want to be able to generate a drop-down
list containing all users from the directory
-
- How can I serialize/deserialize an image to string? (.NET 3.5)
by Lucky:&#41
- 9 Replies
- Last post
by Serguei Razykov
- I"m using .net 3.5 and wpf.
Is there a way how to serialize/deserialize an image to string
-
- can i make exe file working without framework ?
by iskiskisk
- 8 Replies
- Last post
by Peter Ritchie
- hello
can i make an exe program working without installing the framework
forexample , i made an program 20kb ,
no sense if i want to let my friend test it to download frame work
is there any way to attach used classes in my program in my program
-
- How to enable debugging with the previous sucessful build
by DDinesh
- 3 Replies
- Last post
by DDinesh
- When I was doing debugging, the current solution was not compiled and Visual Studio asked with a dialog whether you want to debug with the previous sucessful build and there was a check box to check if we don't want to appear the dialog again.
I checked this by mistake...
Does anybody know how I can reset this again
Thanks And Best Regards,
/Dinesh...
-
- Open directory so it is not 'Maximised'
by Harry123
- 1 Replies
- Last post
by Peter Ritchie
- I use the following code to open a directory in my C# app:
string sNewFileDir = Application .StartupPath + "\\MyFolder" ;
System.Diagnostics. Process .Start(sNewFileDir);
My problem is that the folder opens 'Maximised'...How can I open the folder so that it is not maximised
And also , is there a way to select a certain file in this folder and have it highlighte
-
- Include .jar file in .exe and load the .jar file (C#)
by kimi2121
- 5 Replies
- Last post
by OmegaMan
- Hey all! I want to make an application that contains a .jar file included. And that jar to be loaded ... how can i do that How can i include it to put into the exe and then when u run the exe load the jar inside it
-
- How do I add FormClosing event?
by Sam Pearson
- 4 Replies
- Last post
by Sam Pearson
- I don't have a File --> Exit menu or anything, just the 'x' in the top right corner. When I try to manually add a FormClosing event, it gets removed whenever I modify the GUI. Where can I add it so that it won't go away
-
- readonly question
by surapong
- 6 Replies
- Last post
by tlehr
- Can somebody explain this code to me why it compiles
Code Snippet
class Foo
{
public int X = 4;
}
class TestReadOnly
{
public readonly Foo A = new Foo ();
public void ChangeReadOnly() { A.X *= 2; }
}
class Program
{
static void Main( string [] args)
{
TestReadOnly tmp = new TestReadOnly
-
- Implementing Custom Exceptions
by Azurewrath
- 7 Replies
- Last post
by Azurewrath
- Hi all, 1. Basically what I want to do is to implement an exception that will work like .net's, that will halt the compile process and popup a message. 2. I also want it to be isolated from my custom library, same assembly but different files like so: MyExceptions.OutOfMindException(); I know how to do #2, but not #1. Is this an optimal way of writing your own exceptions Btw someone told me this
-
- Application Configuration files for the IDE?
by Lucidquiet
- 3 Replies
- Last post
by Peter Ritchie
- Hello:
My Question is how and where does visual studio save things like changing IDE keyboard shortcut keys Or for that matter other things like rememberring how the IDE was layed out before the application was closed Which macros to load from where Build dependency and basic build configuration setting Where is this stuff stored if not in some kind of build script
Some guidance
-
- How to reset the menus (menubar)?
by Azurewrath
- 4 Replies
- Last post
by Azurewrath
- Hi all, I have accidently removed the Project menu from the menubar. Is there a way to bring it back Import settings doesn't work. Thanks, Aw
-
- P/Invoke signatures and IntPtr vs HandleRef (vs SafeHandle)
by Pete R
- 10 Replies
- Last post
by Pete R
- I am trying to figure out P/Invoke best practices when making calls to the Win32 API. It's amazing Microsoft doesn't seem to have definitive documentation on this, and the pinvoke.net Wiki seems to be the most useful source available. If there's a better source, please clue me in. In any case the interop signatures don't seem to be consistent in their use of IntPtr vs HandleRef, and there's nary a
-
- Event best practice
by dotnetluke
- 11 Replies
- Last post
by dotnetluke
- I need to create an event class that will:
The event will fire in one class...and a different class will consume the event.
public class Event
{
public delegate void MyHandler ();
public event MyHandler MyEvent;
public void FireEvent
{
MyEvent();
}
}
How to I subscribe to the event class
-
- Serial Com Port Availability
by rutlean
- 4 Replies
- Last post
by Jeremy Filburn
- Does anyone know of an easy way to check com port availability using System.IO.Ports in framework 2.0 I am looking for a way that should be easier than this:
public bool IsComAvailable( string com)
{
string sPort = @"\\.\COM" + com;
uint securityAttributes = 0;
IntPtr hPort;
bool now = cwSerial.IsOpen;
hPort = CreateFile(sPort,0,FILE_SHARE_READ | FILE_
-
- How to Iterate through List or IList
by thukralz
- 14 Replies
- Last post
by James Curran
- i can add the values to the IList or List, if I need to get these values in the way they went it...Say I added 5 addresses to the list and I want them one by one...
I can use foreach and get all, but I need a way to only get one at a time or two at the max as I need to update some textboxes...