I have recently upgraded a .net1.1 solution to .net2.0.
AS this is a very heavy GUI appilcation with loads of controls and many multithreaded operations that update the GUI.
While these operations worked seamlessly in .net1.1 it is throwing up Cross Threaded Illegal operations after the upgrade.
Considering the fact that tehre are numer...
Here's what I'm trying to do:
I want to get a list of all users and groups that belong to a specific department (entered by the user) from Active Directory using VB.Net and DirectoryServices.
Any suggestions?
...
I've inherited code where BeginInvoke is called from the main thread (not a background thread, which is usually the pattern). I am trying to understand what it actually does in this scenario.
Does the method being called in the BeginInvoke get in line of messages that come down to the window? The docs say asynchronously, so that is m...
I have a class that implements the Begin/End Invocation pattern where I initially used ThreadPool.QueueUserWorkItem() to thread my work. The work done on the thread doesn't loop but does takes a bit of time to process so the work itself is not easily stopped.
I now have the side effect where someone using my class is calling the Begin (...
Is there any way to disable keyboard tabStop for a ButtonColumn inside a dataGrid?
I want the buttons there to be only enabled through mouse-clicks, because sometimes the grid can be large and I want that pressing "tabs" will skip the grid and move to the other controls on the page.
...
How can I detect if .Net 2.0 SP1 is installed from my installer msi, and abort the install if it is not present?
I know how to do this in code, but it seems cleaner do it in the vdproj. It feels more declarative.
...
Hi,
I'm using VS 2005 and .NET framework 2.0 SP2 to build an application with a datagridview in it. I'm using Microsoft Word 11.0 Object Library to do the spelling checker on one of the field in datagridview. When it detected a spelling and grammar window would pop-up open on top of the datagridview.
The problem I got was when I moved ...
I have a list of user's security identifiers and I need to get a list of userPrincipalName's... is there any way that I can get it without loading up the users DirectoryEntry and pulling in the userPrincipalName property?
I need the most efficient method possible because this is done a lot
...
This issue has come up 3 times in our environment. After installing the clickonce application, I expected it to startup automatically (as I have it set to do after install completes) but it did not. I try running the app from the shortcut and it brings up the "Launching Application" dialog but then immediately closes and the applicatio...
I am wondering the best way to store an object in memory that is used in a lot of classes throughout an application.
Let me set up my problem for you:
We have multiple databases, 1 per customer. We also have a master table and each row is detailed information about the databases such as database name, server IP it's located and a few ...
I have a "plain" XmlDocument loaded like so:
<root>
<element1 />
<element2></element2>
</root>
and want to qualify the elements with namespaces like so while the object model is loaded
<abc:root xmlns:abc="urn:something">
<abc:element1 />
<abc:element2></abc:element2>
</abc:root>
before writing it out.
...
Under a timeline, therefore the salient point is "quickly" and willing to throw some $ at it too (not meaning I'll pay the correct answer, but rather for a commercial product :) ).
Looking for an RSS feed generator usuable in .NET framework 2.0. Ideally it would be easy to use (inferred quick) but flexible enough to support the multiple...
I am optimizing the startup of a WinForms app. One issue I identified is the loading of the splash screen form. It takes about half a second to a second.
I know that multi-threading is a no-no on UI pieces, however, seeing how the splash screen is a fairly autonomous piece of the application, is it possible to somehow mitigate its p...
Hi,
I have a Dictionary<> which I want to sort based on value so I've done this by putting the dictionary into a List<> then using the .Sort method.
I've then added this back into a Dictionary<>. Is it possible to lookup the new index/order by using the Dictionary key??
Dictionary<int, MyObject> toCompare = new Dictionary<int, MyObje...
I have a simple SQL query (using SqlCommand, SqlTransaction) in .NET 2.0 that returns a table of integer-string pairs (ID, Name). I want to get this data into a dictionary like Dictionary<int, string>.
I can get the result into a DataTable, but even iterating over it, I'm not sure how to do the typing and all that stuff. I feel like t...
I'm using a Dictionary<int, MyType> in a class. That class implements a interface that requires an IList<MyType> to be returned. Is there a simple way to to cast the one to the other (without copying the entire thing)?
My current solution follows:
private IList<MyType> ConvertToList(Dictionary<int, MyType>.ValueCollection valueCollec...
I have an Outlook style app. So basically I have a sidebar on the left and on the right I have a panel control (pnlMainBody) that hosts content.
The content is typically a user control that I add to the panel when user clicks appropriate button in the side bar. The way I add the user control to the panel is as follows:
// _pnlEmail...
I have a XML file as shown below
<NewDataSet>
- <T>
<P />
<C>1</C>
<M />
</T>
- <T>
<P />
<C>1</C>
<M />
</T>
- <T>
<P />
<C>1</C>
<M />
</T>
- <T>
<P />
<C>1</C>
<M />
</T>
- <T>
<P />
<C>2</C>
<M>44</M>
</T>
- <T>
<P />
<C>2</C>
<M>45</M>
</T>
- <T>
<P />
<C>2</C> ...
I apologize in advance for this likely being asked before. I have an asp.net 2.0 web application and am trying to set the session timeout.
My first attempt was to add this to the web.config.
< sessionState mode="InProc" timeout="300" >
Users would tell me though that after about 20 minutes of being idle and then trying to do something...
I have to do an export from DB to CSV. (.NET 2)
field; fileld; field... etc
Have 3 types of fields: Alpha, Numeric and Bool respresented as "alphaValue",intValue and True/False.
I try to encapsulate this in a fields collection, in order to export if alpha then set "", if Bool=>True/False if numeric let as is.
and try to build a CsvF...