Currently, I use Path.GetTempPath() to figure out where to write my log files, but recently I came across a user's machine where the path returned was not what I expected.
Usually, the returned path is C:\Documents and Settings\[userid]\Local Settings\Temp
but in this case, it was C:\Temp
This would not normally be a problem, but for s...
From within a windows service I want to check some user preferences that are stored within each users' HKCU registry area. How can I do this?
I see that HKEY_USERS has subkeys of each user that has logged in to the machine (or something like that?), and within these are the HKCU areas for each user. However, these subkeys are the SIDs o...
How do i implement IHTMLWindow2 in my own vb.net application?
I would like to handle commands such as window.prompt with my own code and also add my own objects like the window object which can be accessed directly from javascript without using window.external.
Thanks.
...
Hi
Q1 - is ClickOnce still the way to go for winform app deployment?
I've just been looking for books that cover clickonce deployment and there don't seem to be many at all out there, and the ones that are a a few years old?
Thanks
Additional notes re what I'm doing:
an executable and one database file (sqlite)
database (sqlite)...
I want to gather some data from some tables of an Access Database, I've found some solutions online, but I haven't found ways to fill a datatable, or dataset, and get each single field properly.
Is it easier for me to get whole tables then get just the info that i want, or should I make a lot of searches in the access DB getting just wh...
It took some time to solve this and the conclusions are interesting.
Our Office (Word/Excel/PowerPoint) add-in sends a request to our custom WCF service, the hosting Office application terminates, leaving this entry in the application log:
Provider: .NET Runtime
EventID: 1023
Level: 2
Task: 0
Keywords: 0x80000000000000
Channel: Appl...
Could someone please take a look at his link; its safe but if not comfortable just look at next paragraph.
http://blog.isao.net/
When you look at the source page there is a link at the src tag
<frame src="http://track-back.net/Top.blog?userType=1" name="main">
How would I activate this link from vb.net since when you click on it all ...
Hello all
I want to make in a TreeView (winforms) that each node will have in it a checkbox and two icons and text.
How I can implement this thing ? I am really a newbie c# programmer.
I have found this two that helped me to understand.
treeNode
treeView
but how I can show my icons and check box one near another shifter little bit in ...
I get the data from the database and display that data on the label. I have to apply new line on the text of the label for every 35 charecters. Because after 35 charecters the text overflows.
Can you please let me know how to do this.
...
Everything is ok. i van see StyleSheet.css in page source.But css effect can not run my gridview. How can i do that
public class MyGridView : WebPart
{
GridView gvCustomers;
protected override void CreateChildControls()
{
gvCustomers = new GridView();
HtmlHead head = (HtmlHead)Page...
From a .NET assembly (non-web app)...
The normal response from Bit.ly is somewhat in the form of below. What is recommended way of consuming that result so that I can easily get the value of the shortUrl field? Since the original URL comes back as a "key", building a model class to deserialize it to and using LINQ does not seem to mak...
Trying to Read a string in Powershell from an email with IMAP connect:
I use the Mail.dll from http://www.lesnikowski.com/mail/
Docu: http://www.lesnikowski.com/mail/documentation/
I want to search for a specific Subject.
What i have so far:
[Reflection.Assembly]::LoadFile("c:\mail.dll")
$imap = new-object Lesnikowski.Client.IMAP.Ima...
Hello. What is the best way to achieve application authorization and entitlement in .Net. Earlier AzMan use to be the standard way. With the advent of provider model, at least roles are taken care of but I am not sure about the authorization & entitlement. I am looking at the ability to define and access operation level permissions for r...
I've recently been getting into BDD and think it holds great promise as a way to get a stakeholder's voice back in the apps we, as developers, create for them. What's your favorite BDD framework and why?
...
I am writing a method to take a DevExpress "filter" string and convert it to a useable SQL string. For the most part this is easy with simple string substitutions here or there. One thing, however, has me scratching my head because I've just not taken the time to learn Regular Expressions in C#/.NET.
When a decimal number is used, Dev...
Hi,
I have a method for validation that has many conditional statements. Basically it goes
If Check1 = false
return false
If Check2 = false
return false
etc
FxCop complains that the cyclomatic complexity is too high. I know that it is not best practice to have return statements in the middle of functions, but at the same time...
Is it possible to group rows with columns and have the remaining data merged in another column ?
Here's an image to better understand the question and see what I want to achieve:
You can see the grouping by IdPlace, IdInternship and the new column IdUsers made with details, or composition of user ids.
I don't care if I cannot work a...
Possible Duplicate:
How to disable the minimize button in C#?
Is there a way to make a c sharp program impossible to minimize ?
Is there a way to stop a program from being affected by the Show Desktop button?
...
This is just a thought for now, but I wonder how hard it would be to either use the Mono Compiler or write a new one while still outputting a Windows EXE?
The reason for this thought is that I see people "abusing" the C# language creatively to get some stuff like code contracts or aspect oriented programming up and running, and sometime...
I have an ASMX web-service which creates a file given a few paramaters, instead of serving it as Base64 encoded XML I would like IIS to serve the file to free my worker for the next job. The serialization is pretty expensive and totally unnecessary.
...