.net

How to obtain The Oracle Package name from a Crystal Report file using .NET code

I'm trying to obtain the Oracle package name used for a Crystal report data source using .NET code. I have obtained the procedure name, but for some reason I can not find the package name. Dim rpt as new ReportDocument rpt.Load(filename) Dim procedureName As String = rpt.Database.Tables.Item(0).Location Dim DataSou...

use of e as System.EventArgs in CheckChanged event of CheckBox

please tell me the use of parameter e as System.EventArgs in CheckChanged event of CheckBox ...

Connecting to ACCDB format MS-ACCESS database through OLEDB

I've recently made another question about connecting to MS-ACCESS database with .NET in C# or VB.NET. It worked just as intended with MDB, but with accdb it caused an exception in conn.Open(); which follows: Is there another way to do this? My original intention (like stated in the original question) is gathering some (actually, a ...

DirectShow complains I'm running a mixed debug/retail build. What?

C:\Program Files\Microsoft SDKs\Windows\v#.#\Samples\multimedia\directshow\baseclasses\wxdebug.gpp line 890: /* If this fires you have a mixed DEBUG/RETAIL build */ ASSERT(!!szObjectName ^ !!wszObjectName); What does it mean and how can I fix it? If it matters: I've written a managed media player library that wraps DirectShow, and I...

Representing hierarchical data .net winforms

Hello all How i can represent the following hierarchical data ? What control should be used , if possible example will help. -node -----node1 - -data--data --data -------------node111 -- data -- data -------------node112 -- data -- data -------------node113 -- data -- data -----node2 - -data--data --data -------------node1121 -- data...

MoQ - issue when trying to debug a test

Hopefully this is a simple. I just getting started with mocking frameworks and have decided to use MOQ. I'm having trouble with one of my test after setup of my mock object so i decided to step through the code. When i hit F10 after the following line: Dim Mock = New Mock(Of IMyInterface) <----Error When on this line and hit F10 Wi...

Optimisation by CLR for separating expensive types by assemblies

According to an article on Codebetter, there is an optimisation by the CLR when separating assemblies so that code that is expensive but rarely used is only called once. Is there any proof or any details on the extent of the optimisation? ...

Finding a control in .net

In vb.net I have control named checkbox1 that I can see at dropdown menu in properties tab. but in designer I am not able to locate it... Also when I am selecting CheckBox1 from properties' dropdown menu, no checkbox in designer gets highlighted.... How to find that control in designer? pls help me.... ...

Return statements in catch blocks

I have seen some developers use the return statement in a catch block. Why/when would this be a useful technique to employ? EDIT: I actually just saw the return keyword being used. Thanks ...

Webservice Response is turned into ref parameter when using MessageContract

I have defined the following Interface [ServiceContract] public interface IHealthProducts { [OperationContract()] ResponseClass OrderSelfSignedHealthCertificate(); } Which returns the following type [MessageContract] public class ResponseClass { [MessageBodyMember] public string AnimalSpeciesCode { get; ...

Format a value that is under 1.00 with {0:C}?

If I have the value 0.0042 returned and I pass this to: string.Format("{0:C}",....); It displays $0 as the results when I want it to actually display: $0.0042 ...

How to create a backpropagation neural network in neurondonet?

I am doing stock market prediction using ANNs in c#.net. I am using NeuronDotNet for the neural part. I have to give eight inputs to the network, with a hidden layer consisting 8 nodes and a single node output layer. Can anybody please give me some coding ideas for this???? ...

How can I modify an MSI in memory?

I'd like to read an MSI file into a MemoryStream (or something similar), and modify it. What's the easiest way to do this, without corrupting the MSI? All I need to be able to do is modify the value of one of the properties in the MSI. I'd prefer something in .Net, but I'm open to other platforms. Update: Here's my working code, using...

Include all localized resources in MSI - VS2008

I am building an MSI for a windows service application that has a set of satellite assemblies with localized resource data in them. I can manually include the Localized content from the projects but since my application contains several projects with localized data, do i need to manually include them in the VS2008 msi file system view o...

How to set property value through an attribute tag name using reflection ?

I wish to write a reusable library for querying against AD with LDAP. I'm using both ActiveDs COM objects and System.DirectoryServices. Greatly inspired by Bart de Smet LINQ to AD, I have written a SchemaAttribute and an DirectoryAttributeAttribute classes to use with a DirectorySource(Of T) class (Yes, it's VBNET, but any C# code will ...

how to know logout account issue? asp.net

i want to know when account logout without logout button click. actually i want to manage dashboard. with some events like login, logout with it's activity date and time. so if any user login so i will entry for login. and if any user direct close browser so how can i manage logout entry in database. ...

How to integrate .NET and Zabbix?

I have a .NET app that must send data to a Zabbix server. How to do that? ...

Why does .NET dislike this C++/CLI template function?

In a plain vanilla WinForms app (C++/CLI, set to /clr), I have the following template function, flagged as "unmanaged": #pragma managed(push, off) #include <string> template< class c > const c& test_alloc() { static c test_alloc; return test_alloc; } #pragma managed(pop) Then in main, I use it before Application::Run(): test_al...

Any coding security issues specific to C#?

In C++ world there is a variety of ways to make an exploitable vulnerability: buffer overflow, unsafe sting handling, various arithmetic tricks, printf issues, strings not ending with '\0' and many more. Despite most of these problems were solved in java, there are some things to talk about. But is there any list of typical C#-specific c...

How can I use a special char in a C# enum?

Hello, For example: public enum Unit{ KW, kV, V, Hz, %V } In this case % is a special character. So, how can I put this char in a enum? ...