I'm using reflection to examine the following method declaration and am wondering if it is possible to determine that the method's sole parameter is a function pointer.
public ref class T
{
public:
void foo(Int32 (*)(String^, array<TimeSpan>^)) { }
};
When inspecting the ParameterInfo object for foo's parameter, it shows that the ...
I am printing a custom generated image to 2 different color printers and the colors are off. If I save that same image out to a png, it looks fine and even prints fine via the photo viewer. I have set the PageSettings.PrinterResolution to the PrinterResolution on the PrinterSettings with a kind of "High" and nothing. Thanks.
[EDIT] also...
While the intention of my solution isn't necessary, I have run into a situation where I need to write a web service as an intermediate step in between the client and another web service.
[client] => [my web service] => [3rd party web service]
I am looking to see if anyone has any experience with this situation who could offer any advi...
Hi,
I want to create an installer to put a Deployed ClickOnce application on an IIS Virtual Directory in order to have the application available for download. (In other words I want an installer that publishes my application on IIS.)
What I'm planing to do is:
Deploy (manually) the app on a local folder;
A web installer project gets t...
I am using the Send Mail Task in SSIS 2008 to send out an email.
I am using SMTP. I have SMTP set up in the IIS manager.
I have set it to use windows authentication.
The From and To mail address both exist.
When i configure the task to send an email, i get an error
"[Send Mail Task] Error: An error occurred with the following error ...
I've updated an existing WCF application to add protobuf-net support.
Basically, I've :
added protobuf-net.dll (.net 3.0) as a reference in the assembly containing all my data objects. This assembly is referenced by both my server and my client
replaced [DataMember] by [DataMember(Order = x)] (using increasing ints as x)
Updated all my...
I have a webservice that's not exposed thru the web. How can I access the webservice thru .net?
Do I need to put the path to the server? I have three options in my solution? Which is the way that I have to go to access the service?
Add Reference
Add web reference
Add Service Reference
...
I have 8 or more Image controls each inside HyperLink and PlaceHolder I need to change parameters of each. It's for a Sitefinity gallery control. Right now I do this times 8:
if (String.IsNullOrEmpty(Image_1_File_Name) == true) {
Image1_ph.Visible = false;
}
else {
productImageLink1.NavigateUrl = Folder_URL + Image_1_File_Nam...
I already have KeyPreview set to true in the form properties
I'm working on a small program, and I'm having a problem where it seems that some of the controls on it inside groupboxes are not triggering the KeyDown event on my form when I press and release any arrow key, just the KeyUp event. Is there something wrong with my code that m...
I am curious as to which Process Template in Visual Studio's Team Foundation Server people tend to use and why.
I am a Solo Developer in a .Net shop that makes in-house apps only. I make all kinds of applications for our company. Many are critical and used daily by a majority of our 300 employee's. These app's will be around for awhi...
is it possible to access SAPI from a WCF app ?
...
I'm working the open source library EasyHook.
What I'm trying to do, is hook into when a VB6 app calls CoCreateInstance from ole32.dll on a particular CLSID, return my own C# implementation for the object rather than the true COM object. My C# implementation derives from the same interface that tlbimp.exe spits out for the COM object I...
I am an old time Visual SourceSafe developer but now I want to change the route. I heard about GitHub. Does anybody use GitHub on Windows for ASP.NET applications? What is your take? What are all the bug tracking systems we can use with GitHub?
...
Hello,
I am looking for an SDK or API that I could utilize to simply grab a Bitmap or Byte[] from the fingerprint reader. Most of the SDKs out there do much more than this and require expensive licensing which I don't want. I will be integrating this into a .NET windows application.
One requirement, it needs to work with a Futronics ...
I am trying to update a record in my database using Linq to Sql. I'd like to update all fields, which will come from a new object, however if I try this:
originalObject = newObject
db.submitChanges()
It doesn't save the changes because it thinks the primary key has been changed (Or something along those lines.. it gives no error but ...
I have a .NET client app that intermittently loses connection to a UNC share where the user is either on a domain or has a local account with the same credentials on the server. Both SO and Google have plenty of examples using LogonUser and WNetAddConnection via P-Invoke, but both require the user's password. All our app needs to do is ...
I am looking for a month selector control for a .net 2 winform.
...
I have Two tables.
1.Users table (Username , Name)
2.Picture table( ID , Username , IsPrimary)
Each user can have zero to many pictures.
I'm Trying to write a query that will return all users (with or without pictures) and a single picture Id (of the picture with IsPrimary = true).
I wrote this Linq query :
var v = from u in Users
...
I'm binding to a dropdown. It works on the initial load. On subsequent loads (postbacks) it doesn't refresh the items in the dropdown.
using (DataView dv = dtProductGroup.DefaultView)
{
dv.ApplyDefaultSort = false;
dv.Sort = "KVIGroupName ASC";
ddlGroup.ClearSelection();
ddlGroup.Items.Clear();
...
hello
I want to set the days of a datetimepicker in english
but unfortunatly, the datetime picker don't support culture
so I think I can inherit the control, and set the days and months name by myself
but I don't know how
anybody has an idea for that ?
thanks in advance
Sam
...