Are there libraries that would provide for formatting the content of a text box (or richtextbox) based on the content, assuming the content conforms to a pattern (in essence syntax highlighting)? It would be nice if this were possible in both the web world as well as winform, though I'd prefer winform (or WPF for that matter).
...
Components which have no value assigned to any child property will also be set to null when being retrieved from the database.
I don't mind this, it's simply an additional check to see if the component is null or not. However when I try to then update or insert that object into the database with the null component I get the error:
"no...
I want to update an entity without loading the entity from the database first.
I've accomplished this but only by knowing all of the entities properties and then using the "attachto" method.
My issues is i don't want my app to need to remember all of the properties. Example:
Dim customerEntitiy As New shopper
customerEntitiy.shopp...
Hello. I'd like for debugging purposes to be able to log what functions are called and in what order. So I've been just putting Debug.WriteLine("myFunctionName(args)") all over my functions, logging it in the end to a file. Isn't there a better approach to do this? I'd hope so.
...
I have a ASP.Net (.net 3.5/c#) and I want to display a version number / build number and date. What is the best way in controling this and is it possible to auto incriment the numbers on build?
What is the standard for version numbers & build number?
Im using VS 2008 how would I get the data and assign to a string value so I can show i...
Assuming I have an instance of an object that I know belongs to a subclass of a certain subtype passed to me through a reference of a supertype in C#, I'm used to seeing typecasting done this Java-like way (Assuming "reference" is of the supertype):
if (reference is subtype){
subtype t = (subtype)reference;
}
But recently I've come ac...
I have a created a UserControl with a combobox in it. This combobox is populated from a xml, when this is not present, it is loaded from resource file.
It works fine in the program, but it can't be displayed in designer - it says: "Object reference not set to an instance of an object."
In the class responsible for loading the list from ...
Shifting bits left and right is apparently faster than multiplication and division operations on most (all?) CPUs if you happen to be using a power of 2. However, it can reduce the clarity of code for some readers and some algorithms. Is bit-shifting really necessary for performance, or can I expect the compiler/VM to notice the case and...
When is it run? Does it run for each object to which I apply it, or just once? Can it do anything, or its actions are restricted?
...
I know there are lots of Visual Basic vs. C# threads out there, but I think this is important.
Are there more professional Visual Basic.NET or C# jobs?
...
I would like trigger the drag target control to redraw itself (via either invalidate or refresh) during the DragEnter and DragLeave events. The code looks something like:
protected override void OnDragEnter (DragEventArgs drgargs)
{
//-- Set a property that affects drawing of control, then redraw
this.MyProperty = true;
this.Refr...
I am binding a textbox's text value setting to my a variable in my configuration file. I only consider the input from this textbox to be valid if it's an integer number bigger than 1. Right now what I was doing is letting the user write whatever he wanted in the box, and I'd only let him save the settings after calling a validation funct...
I want to access some .NET assemblies written in C# from Python code.
A little research showed I have two choices:
IronPython with .NET interface capability/support built-in
Python with the Python .NET package
What are the trade-offs between both solutions?
...
Hi,
Trying to set up an extension method in .Net 3.0 using generics and I get an error message, details above on the line:
foreach(Control childControl in parent.Controls)
Am I missing a using directive or assembly reference?
Thanks
What I am trying to do is set this up (below) as an extender function:
using System;
using System.C...
I have the following in my IE extension to handle when a tab is switched in IE, etc.
[ATL project, VS2008, C++ using IDispEventImpl]
SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2, DISPID_WINDOWSTATECHANGED,WindowStateChanged)
.
.
.
void WindowStateChanged (DWORD dwFlags, DWORD dwValidFlagsMask);
.
.
.
.
void CHelloWorld::WindowStateChang...
I’m looking for a bit of feedback on the practice of requesting users to authenticate to an intranet based web app by entering their AD credentials directly in form fields. For example, using domain\username and password fields as opposed to using the native browser based challenge window for integrated authentication. In the form based ...
Why won't the following code work?
class parent {}
class kid:parent {}
List<parent> parents=new List<kid>;
It seems obvious to me. What's going on here?
...
I can't really seem to find any good .NET Micro Framework Tutorials on google. Does anyone know of any?
...
In .Net I have an Entitydatasource (EDS) that populates a gridview. The EDS is bound to the "one" side of a one to many relationship because these are the fields I need to update. I am Eval'ing information from the "Many" side to be displayed in the gridview as well.
If a record exists in the "Many" side but the matching record does no...
So we have an XML file with a very simple implementation of XLink:
<root xmlns:xlink="http://www.w3.org/1999/xlink">
<firstChild id="ID1" />
...
<ref xlink:href="#ID1" />
</root>
Let's assume the XLink implementation won't get any more complicated than that. However the important point is that the element referred to (in this...