Hi,
I hestitate to post this question as it's surely a pretty simple one, but it's the first time for me to use radio buttons with mshtml and I can't figure out why it's not working. Here's the code I'm using:
IHTMLElementCollection inputElements = (IHTMLElementCollection)doc.all.tags("input");
foreach (IHTMLElement el in inputElements...
In Winforms or WPF
Is there a standard way to deploy an application with SQL Server express?
Is there a standard way to create a local SQL Server express database and also update the app.config connectionStrings settings during an application install?
...
I am porting a Delphi application to C# and I've run into a problem. The Delphi app records the time into a log file, which then gets read back into the program. But the format of the time it records confuses me. I can find no .Net library to convert it properly.
Delphi recorded time in log file: 976129709
(this gets converted to 1/14/...
I have a timer that needs to not process its elapsed event handler at the same time. But processing one Elapsed event may interfere with others. I implemented the below solution, but something feels wrong; it seems like either I should be using the timer differently or using another object within the threading space. The timer seemed ...
Hi,
i already have a project with TreeNode class which creates a hierachy of nodes like treeview. Now i want to add a XML node to that treenode.
In a simple way i can do it by using windows forms Treeview widget, But i don't want to use that.
Is there any other way through which i can add nodes to the treenode?
Thanks..
...
A list of every update and hotfix that has been installed on my computer, coming from either Microsoft Windows Update or from the knowledge base. I need the ID of each in the form of KBxxxxxx or some similar representation...
Currently I have:
const string query = "SELECT HotFixID FROM Win32_QuickFixEngineering";
var search = new Manag...
I know that one of the differences between classes and structs is that struct instances get stored on stack and class instances(objects) are stored on the heap.
Since classes and structs are very similar. Does anybody know the difference for this particular distinction?
...
is there a way to run mstests inside my application ?
these how it should work i should put the project in a folder point my appliaton to it and run the tests
thx for your time
...
How to create a WPF application that can be deployed as either a XBAP or as a native Windows application with as little overhead as possible? XBAPs are binary compatible with WPF Windows applications and run on top of the same CLR (Unlike Silverlight). They still differ in some ways.
From deployment point of view their largest differenc...
I am a novice .Net 2.0 and 3.5 developer. I want to create an application that creates a context menu when a file is right clicked on in Vista. After the right click--I think I can figure out the rest, but I don't know the technique to get access to the Vista API.
FOLLOW-UP:
As I have been reading some of the info that folks have r...
Hello,
Q1 - Forms authentication module encrypts its authentication information ( ticket ) before placing it in a cookie.
Now, little I know of encryption algorithms is that they usually use some randomly generated value to encrypt and decrypt a piece of data. Thus if same algorithm uses value A to encrypt some data, then it will als...
I am trying to modify the DirectShow.NET BitmapMixer sample app to use a surface that is rendered with Direct3D. Instead of creating a Surface based on a GDI rendered bitmap, I am creating my surface like this:
surface = new Surface(device, new Bitmap(1024, 768, PixelFormat.Format32bppArgb), Pool.SystemMemory);
sprite = new Sprite(dev...
The .NET security model throws security errors whenever a .NET exe is run from a file share. The error does not appear when ran from a local drive. Does anyone know of a way around this without requiring the code to be signed?
...
I'm currently investigating the possibility to use custom attributes derived from ActionFilterAttribute. I want to accomplish a couple of things with a couple of attributes. The thing is I want to make sure one of the attributes comes into play first, and not in any random sequence.
Example:
public class Feature1Attrubute : ActionFilte...
I was recently asking someone why he preferred to return a strongly-typed array over an IList. I had always thought that programming against an interface was the most flexible and best way program when faced with a project having a long life. So it struck me as odd when he replied:
We typically prefer immutable types
over mutable o...
I have a simple question, but I'm about 80% sure that the answer to the question will be accompanied by "you're doing it wrong," so I'm going to ask the not-simple question too.
The simple question: I have a public method of a public class. I want it to throw an exception if it's called on the UI thread. How can I do this?
The much-...
I've been designing an application, based on .NET/Mono framework, which should make an heavy use of the shortest-path in a graph theories and I would like to use a native solution to traverse the nodes of the graph, instead of implementing surrogate solutions which would be hardly maintainable and would massively affect performances.
I'...
I have an xml string which is very long in one line. I would like to save the xml string to a text file in a nice indent format:
<root><app>myApp</app><logFile>myApp.log</logFile><SQLdb><connection>...</connection>...</root>
The format I prefer:
<root>
<app>myApp</app>
<logFile>myApp.log</logFile>
<SQLdb>
<connection>....
Is there any implications of loading types dynamically from a .NET assembly that is executable (.exe) compared to loading types from an .NET assembly compiled into a .dll?
What is the best and quickest way to test .exe and .dll if it is a .NET executable or
not (just not a big fan of the BadImageFormatException)?
Thank you.
...
I have a site that is taking around 20 seconds to load every page (no matter what it does)
So i put in a /scripts/test.html that isn't part of a route and it still takes this long... no db hit nothing.
I renamed the web.config to _web.config and it loads instantly, rename it back... back to around 20-30 second load times.
Running the ...