I have a question and I hope you can help me solve it...
I have a castle monorails application. In web.config file in httphandlers I have *.aspx maped to monorails (my hosting does not suport other extensions...)
<add verb="*" path="*.aspx" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,Castle.MonoRail.Framework"/>
The pro...
Please stick with me, this is a strange one.
Since upgrading from VS2008 to VS2010, some guys at work (and myself) found that we could no longer debug into our code. None of our breakpoints were being hit.
Without giving too much away, my work consists of writing .NET apps which run on top of a custom platform application we’ve develop...
Hi all,
I'm new to Stack Overflow, so forgive me. I've just started transititoning over to C# and I am stuck on a problem.
I am wanting to pass a generic class in and call a method from that class. So, my code looks as such:
public void UpdateRecords<T>(T sender) where T : new() //where T: new() came from Resharper
{
Type foo = Ty...
How can I make a window in WPF that looks like the attached (notice the "collapse" button to the left of the minimize/maximize buttons)? I've sifted through the documentation at length to no avail. Any insight into this matter is much appreciated :)
...
My application makes use of the RijndaelManaged class to encrypt data. As a part of this encryption, I use a SecureString object loaded with a password which get's get converted to a byte array and loaded into the RajindaelManaged object's Key at runtime.
The question I have is the storage of this SecureString. A user entered password...
I have a TreeView control in a Windows Forms application that is displaying my own subclass of TreeNode. I need to display a number along with each node's text indicating its position in the tree, like 1 for the root, 1.1 for its first child, 1.2 for its second child, etc. I'm using C# with .NET 2.0
The best that I can come up with is, ...
This MESSED ME UP hard. I thought i was setting the key but i was not. No exceptions, nothing happen except bad results. Why is there a setter if everything is ignored and no exceptions are thrown when i attempt to write? What is the point of the setter on the Keys property?
When i do the below Key value are not changed. After an hour w...
I was recently wanting to do some profiling on an ASP.Net project and was surprised to see that Visual Studio (at least seems to be) lacking a profiler.
So my question is what profiler do you use for ASP.Net? Are there any decent ones out there that are free?
I've seen a few general .Net profilers but have yet to see one that can be ...
I'm still learning C++ coding.
I'm having troubles getting say ResultsBox->Text to printer successfully.
What is the proper way to print in C++/CLI?
I think im missing something simple.
Ive tried multiple different routes/syntax's that ive read online/ in books.
All of which got me to a dead end.
Please even a rundown on the method...
I am trying to use Reflection.Emit to generate a wrapper class in a dynamic assembly. Automatic wrapper generation is part of a new open-source library I'm writing called "GoInterfaces".
The wrapper class implements IEnumerable<string> and wraps List<string>. In C# terms, all it does is this:
class List1_7931B0B4_79328AA0 : IEnumerable...
I try to develop a data processing extension for SSRS 2008 in order to access database through an entity framework. But when I copy and register the extension in BI Development Studio, it gives me an error message while loading the extension". I built it with targeting framework 4.0 by using Visual Studio 2010 because my data model class...
{rant}First I'd like to say that this IS NOT A DUPLICATE. I've asked this question previously but it got closed as a duplicate when it isn't. This question is SPECIFIC to VS 2010 and the answers to the so-called duplicate work in VS 2008 but not in VS 2010 (at least not for me or anyone I know). So before you go closing something as a du...
After adding Print Document, Dialog, and Button to my Forms app i now have
UriFormatException
and
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.Drawing.dll
Additional information: Access is denied
Is there something wrong with the strings in my Document? Preview looks fine.
but unhand...
Hi,
I want to raise the:
private void txtbox_startdate_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{}
Function from a key leave event. The leave event looks like:
private void txtbox_startdate_Leave(object sender, EventArgs e)
{}
The trouble is of course if I try and call it in this manner:
txtbox_...
I have an array, i don't know the length but i do know it will be >=48bytes. The first 48bytes are the header and i need to split the header into two.
Whats the easiest way? I am hoping something as simple as header.split(32); would work ([0] is 32 bytes [1] being 16 assuming header is an array of 48bytes)
using .NET
...
I have a tree view which has a folder icon by default and once clicked it has to be changed to a checkbox icon. And further on clicking the checkbox icon should display a folder icon.
Sample Code:
Server side code: C#
htmlSb.AppendFormat("<li><span class=\"folder\"
onclick=\"javascript:return Test.Controls.TreeView.SelectNode('"
...
Hi,
I'm a newbie to .NET. I have a class called Project, a project can have multiple forecasts.Now If I want to check if the projects has any forecasts or not should I use a readonly boolean property called HasForecast() or should I use a method named HasForecast() which basically returns a boolean value.From framework design guidelines...
The Find and Replace dialog in Visual Studio is a perfect example of what im trying to accomplish. Notice how the "Find what" text field has keyboard focus but the "Find Next" button appears bluish as if it has keyboard focus also even though it does not.
How can I accomplish this myself? I've tried messing with FocusManager and Focus...
Hello,
i'm about to start the development of a new automated-email application. The idea is that customers (or other external users) send emails to a mailbox and then an automated process will read them, extract their information and insert it into some database. It's a requirement that the emails have an standard format in order to be p...
How do I run .net code when a user unlocks their machine?
Windows versions: XP and 7
...