-
- Finding if a method is called in the body of another method. (find all references) Can we use reflection perhaps?
by sashisme
- 5 Replies
- Last post
by Peter Ritchie
- I want to know if a particular method is called in some other piece of code (another method perhaps).
Say i have a method called samplemethod() in dll A.
Dll B has reference to Dll A and some code in Dll B is calling the SampleMethod(). I want to be able to reflect on the methods inside the Dll B and find out if one of them calls SampleMethod().
I'm doing this because i want to simulate
-
- Encrypt setting file
by rnby
- 6 Replies
- Last post
by OmegaMan
- Hi, Is there a way to encrypt the default setting file. I have the connection string to the DB with user name and password stored in the file and want to have it encrypted when I deploy the application. RNBY
-
- C# project unable to start debuging
by Shashi1979
- 1 Replies
- Last post
by frederikm
- I can debug the code file in C# in administrator login of WinXP but could not debug the same using win2003 user on the same computer.Following message displays while debugging.
Unable to start debugigng.Access denied.
-
- 800 MB analysis
by inkexit
- 1 Replies
- Last post
by OmegaMan
- I am writing an application to analyze time series data. The time series are all stored as comma delimited txt files. Some of the files are over 800 MB. I need some advice on how to approach this. The computer I am going to run the app on only has 512 MB of memory. I imagine I would need some code that reads, say, 50 MBs of the file at a time, without opening the entire file in RAM. Or does C# tak
-
- Where Do I Put Global Variables?
by bobber205
- 10 Replies
- Last post
by OmegaMan
- Where do I put data that I want to be globally accessible in my code I read a thread about creating a class that contains all of this and passing it around, but I do not know where to put the instatiation of that class.
-
- Please Supply a Reference: C# Does Not Support Covariant Return Types
by John Saunders
- 13 Replies
- Last post
by nikov
- I know that C# does not support covariant returns. Could someone please provide me a citation for this I'm finding that some don't believe me when I just tell them.
-
- OnUpdate equivalent?
by Wicket
- 2 Replies
- Last post
by Wicket
- I come from the MFC world into c# and .net. In MFC I used OnUpdate commands (ON_UPDATE_COMMAND_UI) to handle enabling/disabling of menuitems, toolbarbuttons and other controls. From what I have seen there is no equivalent functionality in .net/c#
So, I have two questions: 1 - Does Microsoft have a plan to implement this in upcoming versions of the framework 2 - Until then, what method is "
-
- How do you reference existing comments for interface method ?
by Tief
- 4 Replies
- Last post
by Tief
- Hi,
Question : How do you reference existing comments for a class method that implements a interface method
Example:
This is the interface method with comments.
Code Snippet
///
/// Verbose tracing with the specified message.
///
/// Message that will be put in the trace output file.
void TraceVerbose( string message);
Th
-
- Custom Attribute class
by Sha Sea
- 7 Replies
- Last post
by OmegaMan
- Hi, Im using Visual Studio 2005 and .Net 3.0. I wanted to apply Break Points in my Custom Attribute class. I and my falla both used number of sample code but Neither code is not executing Custom class nor break points work. Here is someone sample code. Im not even able to apply Break point. Can any Genious knows the answer
using System;
using System.Collections.Generic;
using Syst
-
- VS2005 Manifest with Vista
by UniqueDisplayName-Adam
- 1 Replies
- Last post
by UniqueDisplayName-Adam
- I am attempting to add the following manifest to my C# application to allow it to run as administrator in Vista.
< xml version = " 1.0 " encoding = " UTF-8 " standalone = " yes " >
< assembly xmlns = " urn:schemas-microsoft-com:asm.v1 " manifestVersion = " 1.0 " >
< assemblyIdentity version = " 1.0.0.0 &q
-
- can we do this??
by chekuriraju
- 3 Replies
- Last post
by ThE_lOtUs
- As of my knowledge i have seen Visitor management system as a desktop application wherein the visitor is captured by a web cam with a pc.The admin captures a photo and the photo identity is issued where all the details including time,address,phone number etc....i wanted to know whether this whole appication can be actually be made online ....i.e web application. if yes what what can we actually us
-
- With statement in C#
by Galvin
- 7 Replies
- Last post
by Peter Ritchie
- I recently read the reasons given for the lack of the "with" statement in C#: doesn't improve readability, increases complexity in the language, no C++ heritage. The 'with' statement is not meant to improve readability, although whether it does or doesn't is arguable. It is meant to make coding (typing) easier. Having a long dereference string in front of variables is simply an unnecessa
-
- Do C# application requires J# redistributable also..???
by Maheshkumar.R
- 1 Replies
- Last post
by Friendly Dog
- hi groups,
My client complaints that the installer which we've shipped was not
working and asking him to install J# runtime. But after installing J#
runtime, setup works fine.
We are simply clueless regarding this J# req in C# application ( vs
2005 ) and used some VB libraries, so we bundled .NET framework 2.0
alone with VB libraries promptly. but now he is getting the below
error, dem
-
- Regarding Threading in C#
by THE RAZI
- 7 Replies
- Last post
by Matthew Watson
- Hi i have a scenario where we i have piece of chunck that requires time consuming processing , so i put that chunck into seperate thread (see code below) now the problem is I got UI reponsive as soon as seperate thread starts so whole aplciation takes very little time around 6 seconds to load (prviously it was 5 mins) now the issue i close the Form and then open it again this time it takes bit mor
-
- Object reference not set to an instance of an object
by IceFlare
- 2 Replies
- Last post
by Thomas Danecker
- Hi, I'm a novice programmer and I really need help on my program. This is for a case study, and I really need the answer ASAP. public partial class mapuaAppInfo : Form { private StreamWriter app; //other codes not pasted to conserve space private void mapuaAppInfo_Load(object sender, EventArgs e) { try { app = new StreamWriter("studinfo.txt");
-
- Please help me,in Text Files
by Swapna55
- 9 Replies
- Last post
by omgtifbs
- i have to read a text file and delete the first line and last line.
Text file can be variable length.
text file can 2.5 gb size.
How can I do this in c#.,Please Respond ASAP
-
- Best way to load temp data to use in application
by polymorphicx
- 1 Replies
- Last post
by CommonGenius.com
- I have two forms that utilize a set of formulas. The formula that is used at any particular time is determined by two variables: "ID" and "Flag." There is a database mapping table consisting of 23 rows which determines the formula is used.
The table looks something like:
ID FLAG1 FLAG2 1 3 7 2 6 2
So, for instance, if I'm going t
-
- ͬ How to use c # to write shrinking algorithm?
by walking fish
- 14 Replies
- Last post
by walking fish
- Algorithm use c # language is described shrinking
Can write the code example
thanks
-
- How to place \' in a c# string so that \' shows up in the text.
by mrappe
- 4 Replies
- Last post
by Alberto Poblacion
- In a MS c# Web Application in VS2005 I am trying to pass a SQL Server error message to a
JavaScript so that I can create an alert box. The error message from SQL Server contains the
' character. This will not work .In the JavaScript it is a delimiter so I have to escape it
(in JS) with a \'. When I do a search and replace in the code I have to use \\' since I have
to escape the \ i
-
- Problem in Reflection of dll from web service
by Teddy79
- 1 Replies
- Last post
by TaylorMichaelL
- Hi everyone, I need to have Reflection of dll got from web service, i.e after retrieving wsdl file, generate .cs file and compile it to dll and then reflect it. The problem is the .cs file generated does not contain the structure : namespace...{} but it uses WebServiceBindingAttribute to specify the namespace so System.Reflection can not get the namespace of the types/classes by either using Type.
-
- Binary
by covertx
- 5 Replies
- Last post
by nielsvanvliet
- Hi all, just a quick question... I've got a string of 1s and 0s that I wish to convert back to a readable Unicode string... This is how I've converted the string into a binary string of 1s and 0s...
Code Snippet
char[] chars = tbText.Text.ToCharArray(); byte[] bytes = UnicodeEncoding.Default.GetBytes(chars); BitArray bits = new BitArray(bytes); StringBuilder binaryStr
-
- Visual Studio 2005 Crashes on Exit
by jdrake3
- 6 Replies
- Last post
by Alec Ginsburg
- System: IBM Thinkpad Z60t Ram: 2G Processor: Pentium M 2.0 Operating System: Windows XP Professional SP2 Application: Visual Studio 2005 Professional SP 1 Installed Products:
ActiveReports for .NET 3.0 Crystal Reports GhostDoc
DevExpress Tools DXCore for Visual Studio 2.0 Refactor! for Visual studio 1.0 Extensions for Windows WF Orcas Technology Preview - .NET Framework 3.0 Development Tools
-
- Returning Focus of a "lost" window
by sjschoenberger
- 2 Replies
- Last post
by cablehead
- Hello, I am working on a project in which the application will only allow one instance of itself to be running at a time. I have figured this part out but the part that has be stumped is if the instance already running is "lost" (hidden behind another window or minimized or somehow off the screen) to bring it back to the front of the screen. I have tried focus and bringtofront options bu
-
- Application Settings saving an array of colors not working
by bozo14
- 3 Replies
- Last post
by bozo14
- Hello all, Im tring to save an array of colors in a projects properties settings. I've added a new color array, this was done in properties - settings - under "type" I hit browse and typed in System.Drawing.Color[] . Everything looks good I have an editer so that I can add any color I want. The problem comes at run time, eventhough I choose an nice color for every element int the array
-
- Errors
by Reta
- 3 Replies
- Last post
by Reta
- Hi,
I got these errors while i am using SqlConnection, SqlDataReader... etc.
Error 1 The type 'System.Data.SqlClient.SqlConnection' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll' and 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\System.Data.SqlClient.dll' C:\Documents and Settings\Pink Panther\Local Settings\Application Data\Temp