-
- How to recognize process?
by marffin
- 2 Replies
- Last post
by marffin
- hi everybody
I'm trying to write an application to redirect hotkeys of specific program. For example, in notepad, if the user press "ctrl+s", that means save. But I really want to assign the save action another hotkey and of cause, without modifying the notepad program itself. Unfortunatley I was stucked at the first step: How can I recognize the process of the certain program I'm tar
-
- Embed a manifest XML resource in .NET 2003
by Pablo De Paulis
- 4 Replies
- Last post
by Pablo De Paulis
- Hi
Does anyone know how to embed an application manifest (XML) file in an .exe built using using .NET 2003
With .NET 2005 there seems to be linker directives such as "/MANIFEST" and "/MANIFESTFILE:"; however when I enter them in the linker command line for the Visual studio version of the reference they are ignored since they don't exist.
Tried adding it as a file in t
-
- Using DataContractSerializer on the ISerializable objects.
by Vic76
- 2 Replies
- Last post
by Vic76
- While trying to use DataContractSerializer to serialize an object that implements ISerializable I noticed strange behavior. Here is my example (purely theoretical):
- The object I would like to serialize:
<Serializable()> Public Class test
Implements System.Runtime.Serialization.ISerializable
Private s() As String
Private ss As List( Of String )
Publi
-
- Is it possible for an interface to span multiple classes?
by BhuttCrackSpackle
- 3 Replies
- Last post
by Kim Major
- Since you cannot do this...
Dim MySpanningInterface as ISpanInterface = new (Class1, Class2)
My problem is, I am trying to take a series of classes and present parts of each of them to client programmers in a way that's convenient for them to program against.
The classes belong logically apart, but certain members of each class are needed for certain kinds of things.
I
-
- directory transfer
by XeonYK
- 8 Replies
- Last post
by XeonYK
- i want to make application that can transfer a directory not only a file, i have search for the library but their not free. where can i get free library for directory transfer thank
-
- Filtering Problem of DataTable
by Nazmul
- 10 Replies
- Last post
by Nazmul
- Need help. I want to filter a DataTable by one of it's date value....and only by the month portion of that date value. For example, I want to get all the row of month June. Any option in DataTable.Select(...) method or DataTable.DefaultView.Sort property...other than looping the table Regards. nzhuda@gmail.com
-
- CustomAttributeData.GetCustomAttributes throws exception when type has a WebService attribute
by GaboG
- 6 Replies
- Last post
by Peter Ritchie
- Hello, I'm trying to access the CustomAttributeData of a class that has the WebService attribute defined.
If the WebService attribute has a Namespace parameter + any of the other WebSercice parameters defined (Name or Description), it throws a CustomAttributeFormatException "Binary format of the specified custom attribute was invalid." exception.
If the WebService attribute has onl
-
- Regarding Asp.Net 2.0 Web application Deployment
by karthiksanrosys
- 1 Replies
- Last post
by Martin Xie - MSFT
- Hi,
I have deployed my web application (Asp.Net 2.0) in two servers.I put on the source files(aspx and aspx.cs) in DNS server.We used the infragistics web controls in my application(Infragistics Netadvantage 2006 volume1 CLR 2.0).I just shared the folder in DNS server(application folder).Creating the virtual directory in IIS server.
I browsing the application,Got an Error
-
- Where is DLLMain in a C# DLL?
by aokhovat
- 2 Replies
- Last post
by svoeller99
- I am writing a simple class library with C# that exports a class. The DLL needs to do some initialization once a process loads it. In the good old days of VC++ 6.0 (and Win32), you could rely on DLLMain to do that. However, I can not find a counterpart to DLLMain in the .Net framework. Any comments would be appreciated.
Thanks
-
- Creating Database Access 97 with VS 2005
by Fabiana Munhoz
- 1 Replies
- Last post
by Paul P Clement IV
- Hello people!
First, Sorry because my english is bad, I am studing the language.
Second, my problem is:
I will have create the database Access 97 with VS 2005.
I try using the dll: Microsoft ADO Ext. 2.8 for DDL and Security
My code is:
Public Sub CreateDatabase
Dim catalogo As Catalog = New Catalog()
m_sConex = "Provider=Microsoft.Jet.OLEDB.4.
-
- SqlTransaction and SqlConnection state after worker thread aborted
by Yojen
- 4 Replies
- Last post
by Yojen
- Hi,
I have a project that I need to use background worker thread to update database in one transaction. But when I abort the worker thread at the middle of transaction, the State of SqlConnection is closed in catch block. Because the connection state is closed, the Rollback in fact did not really rollback the transaction. I checked Activity Monitor in Sql Server 2005, the connection was still t
-
- RSA : Encrypt with private key and decrypt with public key
by Sebastien LEIX
- 13 Replies
- Last post
by tkucuk
- Hi,
I want to e ncrypt with private key and decrypt with public key using the RSACryptoServiceProvider, but it doesn't work.
I tried many ways, like exchange E and D parameters in keyinfo with the Encrypt... or i tried to use Decrypt for encryption and Encrypt for decryption, but there is a padding error...
Is it possible with the framework to do that
Thanks
-
- Culture and DatePattern
by JanDV
- 1 Replies
- Last post
by nobugz
- Hi,
I need to format a string using the month and year codes. But is has to be culture aware. Unfortunately the default YearMonthPattern of DateTimeFormatInfo doesn't do the trick because it displays the months in full text. So I tried to provide a custom pattern, but then it isn't culture aware anymore.
Dim d As New Globalization.DateTimeFormatInfo d.DateSeparator = "/&
-
- How to Add/Insert Nodes in XML?
by Penicillin
- 4 Replies
- Last post
by Penicillin
- Hello
I have this file.xml which contains these data:
Code Snippet
< xml version="1.0" standalone="yes" >
- < DocumentElement >
- < MyValues >
< Name > John </ Name >
< Occupation > Doctor </ Occupation >
< Age > 40 <
-
- TypeDescriptor.GetProperties () : Interface Issue
by The Blue Rage
- 6 Replies
- Last post
by GrantaGuy
- Consider the following:
Code Snippet
namespace foo{
public interface IFoo {
int Foo{
get ;
}
}
public interface IBar : IFoo {
int Bar{
get ;
}
}
}
I would expect a call to:
Code Snippet TypeDescriptor.GetProperties ( typeof ( IBar ) );
to return a collection of two properties
-
- System.Runtime.Remoting.RemotingException: Cannot load type ...
by toargul
- 2 Replies
- Last post
by Jesus Ruiz
- Hi
I am trying to call a Window Service written in 1.1, through 2.0 code, using remoting, and serviceController class.
But i am getting the error,
Error System.Runtime.Remoting.RemotingException: Cannot load type BServiceReporter...
Source "mscorlib"
when I try to call the method GetBWorkerStatusList .
oReporter = ( BServiceReporter ) Activator .GetObject( typeof ( BSe
-
- test
by nicholas_shen
- 2 Replies
- Last post
by Gabriel Lozano-Moran
- can I upload log files into the forum
-
- Eventid missing in Framework 2.0
by JD653687
- 11 Replies
- Last post
by Kev Sout
- I am upgrading to Visual Studio 2005 and have a problem with the following, hope someone can help me out:
{
EventLog aLogs = new EventLog ();
aLogs.Log = "System" ;
//aLog.MachineName = machine;
aLogs.EntryWritten += new EntryWrittenEventHandler (OnSysEntryWritten);
aLogs.EnableRaisingEvents = true ;
}
private static void OnSysEntryWritten( Obje
-
- is it possible to use the sql data file only?
by Jassim Rahma
- 3 Replies
- Last post
by cverdon
- I am developing a small IQ software using C# and SQL Server Express and I don't want to pack the whole SQL Server Express with it.. is it possible to distribute and use the mdf file only as a stand-alone data file
-
- WebService RPC/Encoded
by AKANDOUCH
- 2 Replies
- Last post
by AKANDOUCH
- when using RPC/Encoded mode in Webservice , the IsNullable=false is ignored in the WSDL file:
I have the class (generated from xsd file) that contains the following attributes:
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable= false )]
public string CorporateName;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNulla
-
- Passing a Stream to a Web Service
by Fred Fredson
- 5 Replies
- Last post
by Fred Fredson
- Hi,
I'm trying to pass a IO.Stream as a parameter to a Web Service but I am coming under a little difficulty. Both the calling application and the Web Service application recognize the IO.Stream object but when I try and call the WebMethod it tells me that it is expecting a WebService_Stream data type instead of an IO.Stream datatype.
I've done some research and seen suggestions to &
-
- Why isn't my object garbage collected ?
by Chris.G
- 7 Replies
- Last post
by Pravin Chandankhede
- Hi ! What could explain that the instance of 'MyControl' is not garbage collected even though !dumpheap shows that there is no longer any strong reference to it To put this in evidence I inserted a loop calling GC.Collect and a breakpoint at which I'm running !dumpheap. What is even stranger to me is that 'MyControl' gets eventually collected, but later (after exiting Main). This is annoying sinc
-
- searching for a stock symbol
by cheatcountry
- 14 Replies
- Last post
by cheatcountry
- if I wanted to search for a stock symbol would this be the right way to do it [][A-Z]|[A-Z]|[A-Z]|[A-Z]|[A-Z][]
-
- thread.abort causes "error 2"
by starsign
- 2 Replies
- Last post
by Thomas Danecker
- Hi,
I have a application that ataches to an Excel file (using jet 4) and fills a dataset in a background thread. This background thread uses calls a specific dll to handle the connection to the Excel file.
If the user clicks 'Cancel' from the main form then the main thread calls thread.abort followed by thread.join. However, just after thread.abort is called a messagebox pops up sayi
-
- Access memory error after unmanaged interop in Vista.
by fhta0
- 14 Replies
- Last post
by DeepNight
- I have got a Access memeroy error when get a memory be malloced from unmage code to manage code in Vista, but it works well in XP SP2 .
My manage code are
public partial class Form1 : Form
{
private void button1_Click( object sender, EventArgs e)
{
string name = RunInterop .GetStringFromUnmanage();
}
}
Interop code
pu