I'd like to add Communicator Presence to my application (much like how Outlook and other MS apps have it), and I'm unable to find documentation about how to fetch this status.
Is there a way I can query the Live Communicator server for a person's status? If there are docs out there and I just can't find them, please give me a pointer in...
I hope this isn't a stupid question, but after searching around for quite a while, I haven't been able to find anything quite like what I'm trying to do:
We build a series of web applications that are based on a common asp.net mvc engine. I would like to write a .net web app that would allow our project managers to automatically check o...
I've read several articles and posts that say that lock(this), lock(typeof(MyType)), lock("a string") are all bad practice because another thread could lock on the same key and cause a deadlock. In order to understand this problem, I was trying to create some sample code to illustrate the deadlock but have been unable to wrap my head ar...
I have plenty experience creating ASP.NET Websites in the Visual Studio. But there is an alternative way to do the same thing that is through Web Applications, which have slightly different file structure.
Since I created my first Web Application I couldn't use classes (.cs files) in the App_Code folder anymore, they were not seen by th...
Recently I was working on a project in VB.NET, and I was encountering a mysterious problem with some of the DB connections. This was a project that I inherited from someone else and they had used something like this:
Dim reader As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection And CommandBehavior.SingleRow)
//a...
I'm using migratordotnet to manage my database migrations. I'm running them on application setup like this, but I would also like to check on application startup that the migrations are up to date, and provide the option to migrate to latest. How do I tell if there are available migrations that need to be applied? I see that I can get...
There doesn't seem to be a Peek method on the DataReader in ado.net. I would like to be able to perform some one-off processing before I loop through my reader, and it would be nice to be able to look at the data in the first row without causing it to be skipped by the subsequent iteration. What is the best way to accomplish this?
I am ...
I have a gridview and I add some buttons programmatically to this grid. I have an edit and delete button right next to eachother and I simply want to put a space between them programmatically. Any idea how to do that? Here is the code to add the buttons.
For i As Integer = 0 To GridView1.Rows.Count - 1
btnedit.ImageUrl = "\i...
I am rewriting a windows forms application (updated framework, rewrote the logic, etc.) and there is one thing that I just can't figure out how they did.
Textboxes in the original application had a thick blinking cursor like so: http://screencast.com/t/8QYUcjuh3n
For the life of me I can't figure how to do this. Please help?
...
Why does adding a web reference to a library assembly project create an app.config file for the project? it will not be used at run time, right ? - as there can only be one root config file per host process (executable), - That's why only executables get their app.configs renamed to "projectName.exe.config" and deployed to output folde...
Related question here.
With most ORMs when you run a query against an existing context it does not return data that has been changed since the objects were first returned from the database. It issues the query to the DB but any changes made to the DB aren't returned because the context doesn't want to stomp on your objects (for a discu...
Hello,
My first try to use anonymous types(test):
private void button4_Click(object sender, EventArgs e)
{
test(new { a = "asd" });
}
private void test(string a)
{
}
I get an error "cannot convert from 'AnonymousType#1' to 'string' "
Also I'd like to know how to pass an anonymous type if the paramete...
On clicking a button, a query is executed in a background worker. It is asynchronous so that I can change the button to "Cancel" so the user can cancel the process if it runs longer than expected. This all works fine.
But, I do not want the user to be able to navigate away from this location to do other things on the form. They must ...
I am writing an application in WPF and I would like to have the top of the application fade from a color to Aero glass like the new Office 2010 applications do (screen shots).
Really it will be fading the area just below the title bar from glass to a color. (I think that maybe a better way to describe it).
...
I have a base page class that inherits from Page. We'll call it SpiffyPage.
I also have a user control called SpiffyControl.
I then have an aspx page, ViewSpiffyStuff.aspx, that inherits from SpiffyPage.
On page load, the SpiffyPage class is supposed to inject a SpiffyControl into the aspx page.
The problem is that SpiffyControl is ...
How can I convert TO a Nullable from a String using reflection?
I have the following code to convert TO almost any value type given almost any value. There is quite a bit of code above this to use the IsAssignableFrom, etc. so this is the last resort.
MethodInfo parse = t.GetMethod("Parse", new Type[] { typeof(string) });
if (parse ...
In Exchange 2003 I could connect via WebDav to a public folder via a URL similar to:
https://mail.myserver.com/Public/My%20Public%20Folder/
I'm trying to do the same thing in Exchange 2007 but cannot figure out the proper URL for a public folder.
...
I am using the vs2008 debbuger for a c++ project that uses COM objects of a .NET assembly.
I am getting a 'DisconnectedContext' message from the managed debbuging assistant, but i can't figure out which of the pointer is holding a reference to a bad COM object.
Is it possible to keep track of the appartment/context in a thread with visu...
I'm using VB.NET to process a long fixed-length record. The simplest option seems to be loading the whole record into a string and using Substring to access the fields by position and length. But it seems like there will be some redundant processing within the Substring method that happens on every single invocation. That led me to wonde...
Lets say I have multiple DataGrids throughout my winform app and I want to set the BackColor on ALL of them to Purple in Visual Studio.
What is the fastest way of setting a Property for multiple items NOT located on the same Form?
Thanks!
...