Where can I find the ARPCOMMENTS through the Visual
Studio GUI in a .NET solution with a setup project?
The value of ARPCOMMENTS shows up when "Click here for
support information." is clicked in Control Panel "Add or
Remove Programs". I have changed it once, but I forgot where
it is.
...
I need to convert from string that contains data to object of some type that is passed using reflection. I have an not serializable object that contains properties of any type and I want to load data to that object, for example that object has a property Color BgColor when I am trying to set "Red" value to that property I get that conver...
When the formal argument of a method is of type 'object' it is possible, through inheritance, for the actual argument to be any object type. Once in the method the object can be cast to the type expected. All's fine.
If, however, the signature of the method has a formal argument of 'object', using the ref keyword i.e. methodname(ref obj...
So I'm working on a basic subclass of Label that supports editing. The editing part works fine--I insert a text box with no background color or border on click, commit changes on enter or loss of focus.
The little thing that's giving me trouble is related to some basic font styling. The label is to underline with the MouseHover event (...
How can I read notifyIcon.Text from another application? I found Shell_NotifyIcon Function [http://msdn.microsoft.com/en-us/library/bb762159%28VS.85%29.aspx%5D but I don't know how to use it this way.
...
We've just moved to a new server and everything's being going well. However earlier I ran into a .NET error when it was trying to convert a string in the format "dd/mm/yyyy" to a date, now I changed the culture setting in the local web.config but we require this to be global.
Where do I change this? I assumed the machine.config but I co...
I had asked this question:
http://stackoverflow.com/questions/1491129/auto-validation-in-winforms-in-a-dedicated-label
The answer was right, and I got thinking more: How to do this, using DataSets?
I stumbled upon this link:
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/2367f061-4124-4050-8318-55193193c2d...
Hi,
I would like to change the styling of the first row (only) in a WPF Datagrid but haven't found how to do it. I wondered about creating a trigger, something like this:
<Style TargetType="{x:Type dg:DataGridRow}">
<Style.Triggers>
<Trigger Property="SelectedIndex" Value="0">
<Setter Property="Background" Value...
For a long time now, I've largely developed using open source languages, toolkits, etc. on Linux and Mac. A new project, though, is about to shove me into the .NET world. Moreover, a .NET world whose products will be deployed to a Windows infrastructure.
In my mind, I made the assumption that I wouldn't be able to develop for this platf...
I have a class in vb.net like
Public Class Customer
Private _Name As String
Public Overridable Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
_Name = value
End Set
End Property
End Class
and a class deriving from it
Public Class Proxy...
Code:
[DllImport("AYGShell.dll")]
static extern Int32 SHFullScreen(IntPtr hwndRequester, UInt32 dwState);
public const UInt32 SHFS_SHOWSIPBUTTON = 0x0004;
public const UInt32 SHFS_HIDESIPBUTTON = 0x0008;
public Form1()
{
InitializeComponent();
}
private void OnPaint(object sender, PaintEventArg...
I want to be able to securely logon to a system without having to type in username password from a windows pc on active directory. The idea is that I (the client software, running on a logged on windows machine) have some sort of token that will prove to the server that I am who I say I am (the server talks to AD to verify the token and ...
In my ASP.NET MVC app, I have most controllers decorated with
[Authorize(Roles="SomeGroup")]
When a user is not authorized to access something, they are sent to "~/Login" which is the Login action on my Account controller.
How can I determine that a user has reached the login page because of not being authorized so that I can show a...
I checked the rest of the remoting questions, and this specific case did not seem to be addressed.
I have a .NET Remoting server/client set up. On the server side I have an object with a method that can throw an exception, and a client which will try to call that method.
Server:
public bool MyEquals(Guid myGuid, string a, string b)
{
...
If you have a System.Drawing.Bitmap instance that contains a greyscale image, is there a built in way to "colourize" it with the influence of another colour?
For example, if you had a black and white (greyscale) picture of a coffee mug and you wanted to create separate images of red, green and purple versions programmatically.
...
I have a simple program which loops through a resultset when a button is pressed and performs actions against this resultset (stored in a DataTable). During the loop I update the text of a RichTextBox, 2 labels, and a ToolStripStatusLabel. These are not refreshing during the loop so after each item is processed in the loop I do a this.Re...
I have a file from source control that has been auto-generated by another person. As such, it has a comment at the top along the lines of:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3074
//
// Changes ...
I am having an issue using a .NET/ComVisible assembly in Excel/VBA. I defined several parameters as "object" in .NET so they will be translated to Variant in VBA since optional parameters in VBA need to use Variant types.
The problem is when I try to use the object in Excel/VBA, I get a "Run-time error '424': Object required". I think I...
Hi all
This is a duplicate question, but the other one didn't get any answers, so I'll have another go.
I have SQL Server 2008 Client Tools installed, and would like to use SQL Server's query designer(s) in my application, for working with queries, views, SPs and functions. I'm pretty sure Access ADP does this, can I?
I guess what I a...
I am building a .Net solution using MSBuild v3.5 targeting .Net 2.0.
We are upgrading to use Crystal 11.5 so I have updated the binaries in our source control tree to contain the 11.5 version DLLs instead of the 10.0 DLLs.
In the project I reference some Crystal Reports DLLs. Here is a small example of the project file:
<Reference Inc...