I tried to search for this, but I was not sure how to describe it. If it is a duplicate, please point me to the other question. Thanks.
I created a C# Windows Forms app using VS 2008. From the main form it opens a custom dialog form. When the user closes the dialog form, it does not completely disappear before the application starts int...
I want to create a mecanism in a large .net application to handle all the exceptions in the application, and to save the error messages (in db or log file) so these errors can be fixed, and so we are aware of the problems in the application.
Does anyone know a good way of creating a library to handle and process all the exceptions?. Are...
Theres a link i want to click. I also have the HtmlElement of the link. However it is /site/blah/# so i know theres some JS there. How do i simulate the click?
...
I am using Nhibernate 2.1.0 in my project.
I have the an Item class with property Path and the following named query:
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'>
<sql-query name='updateUNC'>
<query-param name='oldUNC' type='String'/>
<query-param name='newUNC' type='String'/>
<![CDATA[
update Item s s...
I have made a custom dll for my setup project. My dll is very simple, registering few services, not CLR or any 3rd party lib dependent. Have statically linked with msi.lib only.
I have removed the .net and windows installer prerequisite requirements from the setup project. My setup fails on macines not having .net framework..?
As I hav...
Should I check whether particular key is present in Dictionary if I am sure it will be added in dictionary by the time I reach the code to access it?
There are two ways I can access the value in dictionary
checking ContainsKey method. If it returns true then I access using indexer [key] of dictionary object.
or
TryGetValue which ...
If anybody has a similar story, please post details below!
I'm building an ASP.NET website which needs to support authentication against LDAP.
On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the AD and/or LDAP servers.
I've tried vario...
Hi everyone.
Is there ability to read file that is used by another process?
Thanks.
...
I am using SmartPart (http://www.codeplex.com/smartpart) to add web parts to SharePoint. When I open the *.ascx file with visual studio it doesn't display the design of the control showing the error however it runs well when it is added to share point. But I need to see the design to be able to add controls through tool box visually not ...
Hi guys!
I'm working on a WinForms application that shows standard Font dialogs to let the user select a font. Since I'm in Russia the default script is "Cyrillic". The problem is that when the application is deployed on the customer's PC in Denmark the default script is not changed - it is still "Cyrillic". The customer would prefer "W...
Context: Visual Studio : C# : Windows Forms : design time : using a custom UserControl that implements Smart Tags which you have placed in a container (Window or Panel) on a Form in your current project : .NET FrameWork >= 3.5
Hi,
Pease keep in mind everything I am describing is happening at Design Time.
I am clear how to create a Sma...
I'm looking for a standalone math equation renderer that generates a gif or png file. It should be able to take equation input from a URL. It has to work on a webserver, preferably on IIS and .NET based.
I read the previous topics here, but none of them seem to work well.
...
Hello there,
I have a server control, inheriting from PlaceHolder.
Basically, all it is, is a placeholder, with the top part having a "<div class etc...", and the bottom closing it off.
So, typical usage would be
<control:control runat="server" id="phControl">
<asp:TextBox runat="server" id="txtControl">
<asp:DropDownList runat...
when validating methods' input, I used to check if the argument is null, and if so I throw an ArgumentNullException. I do this for each and every argument in the list so I end up with code like this:
public User CreateUser(string userName, string password,
string Email, string emailAlerts,
...
hi
iam developing desktop application using c# dot net .iam using c# webbrowser to show web page .In this browser iam showing web page which display rss feed .but now i want notification when ever there is new feed ... how should i do this .
...
I see that the Finally in try .. Catch will execute allways after any parts of the execution of the try catch block.
Is it any different to just skip the Finally section and just run it after, outside the try catch block??
Example 1, Try ... Catch ... Finally ... End Try
Try
'Do something
Catch ex As Exception
...
Whats the best way to take data from a datareader and manipulate that data, say taking a salary and dividing that salary by 12 then binding that data to a grid. I was thinking maybe a datareader to a dataset then looking through that to update the data, or is there a better way?
Need to do this at the application not the database so can...
My table structure is this
Orders
------
Id int identity
OrderDate smalldatetime
OrderStatusid tinyint
Products
--------
Id int identity
Name varchar(50)
OrderDetails
------------
Id int identity
OrderId int (fkey)
ProductId int (fkey)
Amount decimal
Rate decimal
I am trying to an insert operation using Entity Framework using the c...
i want to know can we make application in c# donet in which we can show rss feed directly in a form or can we make widgets . And for every update there should be notification to user.although iam showing rss feed by just showing the web page of rss feed.
...
Maybe a stupid question, but..
In my code I use the following construction at several places.
void MyFunction()
{
DoSomething(myClass.myProperty)
myClass.PropertyChanged += (s,e ) => {
if (e.PropertyName == "myProperty") {
DoSomething(myClass.myProperty);
}
}
}
So I want to do something initially, and also do the same wh...