I'm trying to create a fairly simple label printer to complement the services offered on our website (processing PayPal payments using IPN and outputting a CSV file containing customizable transaction information).
I've got the printer module mostly sorted, but I wanted users of the software to be able to adjust the positioning of piec...
Hi all,
Is there a way in managed code to list the Modem/Telephony devices installed on the system?
If .Net does not have a way, could you point me in a direction?
Thanks!
...
I currently have a .NET class library written in C# that exposes its functionaility via COM to a C++ program (pre-.NET).
We now want to move the library out-of-process to free up address space in the main application (it is an image-processing application, and large images eat up address space). I remember from my VB6 days that one coul...
Hello
I have created the ATL COM Server C++ project using Visual Studio 2005 wizard. I added a new COM class using the ATL Simple Object wizard. Now when I try to create this COM class instance from my server (calling CoCreateInstance within the ATL server) I get CO_E_SERVER_EXEC_FAILURE error from CoCreateInstance. When I try to create...
I need to display a toolstrip directly beneath a menustrip in my application, but setting RenderMode = Professional for each does not give identical results. They both show a background gradient, but not the same one.
Is there some way to use menustrip rendering for the toolstrip, or vice versa?
Or can someone advise how best to impleme...
Doesn't configuring WCF in code require more coupling with the model and service libraries?
If I'm understanding it correctly, you configure the host in code in the same project as the utilized services. Then configure the channel on the client, but the client then has to know about the model which means if I have several client apps u...
I have written the following code to perform some simultaneous HTTP posting and file archiving:
Dim t1 As New Threading.Thread(New Threading.ThreadStart(AddressOf ProcessNTSMessageQueue))
Dim t2 As New Threading.Thread(New Threading.ThreadStart(AddressOf ProcessNTSMessageQueue))
Dim t3 As New Threading.Thread(New Threading.ThreadStart(A...
I'm developing an application that makes heavy use of plugins. The app is in C# and I'm thinking about building the configuration GUI in WPF. I got the plugin architecture down in terms of how to manage the actual plugins themselves. However, each plugin has its own configuration, and that's where I'm looking for help.
The plugin arc...
I have a project in VB.NET 1.1 and was wondering if there are any equivalent approaches to build events that will allow me to manipulate a project while being built?
...
I needed to "pivot" or "rotate" a collection of objects. The example will clear up what I needed to do:
var people = new List<Person>(new[] {
new Person{ Name="Ronnie",Age=25, HairColor="Brown",EyeColor="Blue"},
new Person{ Name="Tina",Age=25, HairColor="Brown",EyeColor="Green"},
new Perso...
I was wondering which of the two code samples would be more efficient (or is the difference between the two negligible)?
For Each apple in AppleController.GetRedApples().Where(Function(a) PriceController.OnSale(a))
'do something
Next
or
For Each apple in AppleController.GetRedApples()
If PriceController.OnSale(apple) Then
...
I have a set of controls inside a WindowsFormsHost and I would like to capture the current view and just save it as an image, I however only get some Panel visible in the Image.
Is it possible to use the WindowsFormsHost as a "Visual" and capture the wrapped controls?
See my example:
<WindowsFormsHost x:Name="windowHost">
<wf:Pane...
Is there a way to specify a WSE3 proxy in the config file instead of code.
I figured out how to get it working in code as follows:
valservice.Proxy = new System.Net.WebProxy("http://10.192.xx.xx:8080", true);
Details: I have a WCF wrapper web service that is calling a WSE3 external vendor web service. The WSE3 code was working fine...
Hi,
it seems that since I have installed Internet Explorer 8 my .Net C# project WebSetup MSI has tripled in size to 6.5 megs. We also get an error message saying that ieframe.dll could not be registered when running the MSI. Has anyone else experienced this?
Cheers, Jamie
...
I want to store per-thread data in an ADO.NET Data Service. Is it safe to use the ThreadStatic attribute on my thread-specific static variable, or will I run into problems? My concern is that my ThreadStatic variable(s) won't be garbage collected after the request is completed and the thread dies.
If there's a better way to do what I'm...
Hi,
I've a winforms with some controls and an ErrorProvider. The control's Validating events are used to validate the data and report the error to the ErrorProvider if there is any. This work great when the user enter wrong informations into the control and leaves the control.
However, the validation does not happen if the user click o...
I am working on a windows form that has a TabControl named tabDocuments. I came across this piece of code that removes all pages from the TabControl.
for (int i = tabDocuments.TabPages.Count - 1; i > -1; i--) {
tabDocuments.TabPages[i].Dispose();
}
tabDocuments.TabPages.Clear();
The person who wrote this code has already left ...
Is there any incomparability between Visual Studio and SharpDevelop projects?
P.S. For Windows Forms applications.
...
How would you create a new DropDownList (or any asp server control) and then render the html to a string in C#?
...
i created a website which contain 'name' label which has a textbox for entering name.And along with this one i have one more label 'password' which contain a textbox for entering password..Can any one give me a code for a webservice which need to check whether this value is existing in database or not
...