The .NET Framework 3.5 installation fails for me. Right after the
"Downloading components" stage, it sits for a few seconds on "Setup
has finished downloading components, you can now disconnect from the
Internet" and then it starts to roll back. I'm using XP SP2. A glance
in the log files shows that it seems related to MSI error code...
I have followed some tutorials on how to create custem event accessors. This is the code I have:
event ControlNameChangeHandler IProcessBlock.OnControlNameChanged
{
add
{
lock (ControlNameChanged)
{
ControlNameChanged += value;
}
}
remove
{
lock (ControlNameChanged)
...
Is it possible to throw exceptions in an unmanaged DLL and handle it in a managed application?
My unmanaged C++ DLL throws exceptions in case of errors, and they should be handled in the calling executable application.
CMyFileException *x = new CMyFileException;
throw(x);
This previously worked, but now the application is compiled w...
I have one toolstrip and I want to get its location related to desktop, what should I do ?
I have tried Location.Y for its Y, but it gives 0 (zero) and that is related to form but I want y location related to its desktop.
...
When a form is closed, it gets a useful argument in its FormClosed event, CloseReason. However our app runs with only a tray icon and no windows open most of the time. When it exits, I'd like to log the reason it exited - in particular, knowing CloseReason.WindowsShutDown and CloseReason.TaskManagerClosing would be useful.
Is there any ...
I remember an addon for VS.NET which allows you to see the styled preview of an XML code comment when you mouse over. This is quite useful when typing XML comments to ensure that style is correct.
I googled but couldn't find it, can anyone remind me what was that addon? Or am I just imagining things? :)
...
If I have an absolute DirectoryInfo path and a relative FileInfo path, how can I combine them into an absolute FileInfo path?
For example:
var absoluteDir = new DirectoryInfo(@"c:\dir");
var relativeFile = new FileInfo(@"subdir\file");
var absoluteFile = new FileInfo(absoluteDir, relativeFile); //-> How to get this done?
...
I'm trying to use the Enterprise Library RangeValidator attribute to validate that a decimal value is greater than zero:
<RangeValidator(GetType(Decimal), "0.00", RangeBoundaryType.Exclusive, "1", RangeBoundaryType.Ignore, "MyMessage", "", Nothing, False, "", "")> _
Public Property Holding() As Decimal
Get
Return...
Hi guys,
An application I'm writing needs to use .Net Remoting (I'm aware that WCF is the 'new thing', but it is unfortunately not an option available to us at this time).
Anyway, everything works fine if I don't try to use the application through a proxy. However, the application needs to be able to function through proxy web servers....
Is it possible in VB.NET doing a = b = 5? (I know that = is a comparison operator too)
I mean do not result (if b = 2 by e.g.)
a = false
b = 2
HOW to do it, however, in situations like bellow?
The inconvenient caused this question in my code: some objects a, b, .. z are passed by ref in a method, if I don't initialize them compile...
Hi!
I trying to display image in picture box. The application have two part.
First part is windows application, and second part is web service (asmx).
This is the code for windows application:
Public Sub PrikazSlike()
Dim p As localhost.Service1 = New localhost.Service1()
PictureBox1.Image = Image.FromStream(p.Pic...
We are evaluation Linq2Sql for internal applications, and our development guidelines mean that we must always use stored procedures for all CRUD operations, from various blogs i have got together an application that does much of what we want.
However, what i would like to do is when we have a relationship between two entities the relati...
I have a .exe file, which should be executed as soon as the installation of the main application is finished.
I understand this can be achieved using Custom action. I need a little assistance in creating a Custom action. I'm using VS2008, .NET 3.5,
As I'm new to c#, if the suggetions are in detail, would help me understand better.
...
I'm trying to get around an issue for a customer that have a site developed by a previous developer. The following is the line of code causing the issue:
args.AddParam("REFERER","",Request.UrlReferrer.ToString());
Therefore if you navigate directly to this page using the URL, it returns a null exception error. I know that to fix thi...
I am trying to build a little tool for our messaging (WCF) component. The idea is to give responses based on previous trace logs for testing purposes. As the SOAP messages are very big we tend to have huge trace files. What i want to do is read the traces from end to start line by line (newest to oldest) in order to build my responses. A...
Hi,
I find that whenever I create a layer/tier, I have to translate between one layer to the other, does that mean it is a tightly coupled system? If I was to change a business logic, remove a field in the database, etc, I would have to change ALL layers from the database layer to the client front end?
E.g. A web service that exposes...
I am brand-new to Infragistics grids (used DevExpress before) and need to set an overall Band override on my grid to stop the '+' expansion indicator when there are no child rows( Override.ExpansionIndicator = ShowExpansionIndicator.CheckOnDisplay).
My grid is bound to an object that implements IBindingList, so I gather that any perform...
Some background
One of my current clients runs a chain of Internet points where customers an access the net through PC:s set up as "kiosks" (a custom-built application "locks" the computer until a user has signed in, and the running account is heavily restricted through the Windows group policy). Currently, each computer is running Wind...
I have a WPF window that goes fullscreen, and I have made every attempt to make it truly fullscreen. WindowStyle is None, WindowState is Maximized, Topmost is true, etc. I even used p/invoke to hide the taskbar when the window is loaded and make it appear again on exit. The problem I have is when, for example, I play a video that replays...
I am developing a Desktop application which we install on client machines but it requires .NET framework 3.5, is there any process that does not require framework installation and lets the installer install the application?
...