Answer Questions
Boise83716 Deployment Problem with VS 2003 VB .NET
I have a stand alone Windows application written in VB .NET that installs fine and works great on my machine but when you try to on another machine it installs but when I try to run the application it gives me the following error. SalesTax 1.08.exe Common Language Runtime Debugging Service Application has generated an exception that could not be handled Process id = 0xbf0 (3056), Thread id = 0xb48 (2888) Click OK to ter ...Show All
Dennis Vysotskiy monitor
Hi, I would like to write a little program which monitors a specified Service, and if it isn't running, starts it how is this possible please Thanks Hi What operating system are you using If it is XP or Windows 2000 or later then you can right click on "My Computer" and from the context menu select "Management". You will then be presented with the MMC (Microsoft Management Console) ...Show All
Brock Taylor XSD.exe
I'm trying to use XSD.exe on a XSD to create C# objects. 1) My XSD has external include XSD's which XSD.exe builds fine. My problem that I am having is that XSD.exe is generating the C# class in one file that includes all the external XSD.files. Now if run XSD.exe on another XSD file that includes the SAME external XSD file I get a duplicate object created in the new C# file. This causes 2 problems, it won't compile since the same object i ...Show All
Joe B How Often To Open/Close Connections w/ Datareader
I've read about the importance of immediately closing connections when using ADO.NET especially with a Dataset. Would this still hold up with the following scenario, or should I leave my connections open all the time ... I'm going to have a C# application (service) with a connection manager logged into a source SQL Server. From the same service I'll have a second connection manager logged into a second target SQL Server. Aprox every 20-3 ...Show All
Cof139 VS 2005 Time delay in calling subroutine (Office Interop)
Hi to the group, I wrote a program originally in VB.NET 2003 to retrieve some outlook items. The program runs just fine. I have recently converted it to VB.NET 2005 and here is the issue: Program loads and runs up to the point of calling a subroutine - 'GetSomeOutlookItems'. The program has thus far taken about 1/2 second or so. The subroutine is in its own module and imports Microsoft.Office.Interop. The program now takes about 6 to 8 seconds ...Show All
!Jonathan Problem with localization and images
I'm just diving into localization and I'm having a problem with images. I have multiple versions of a PNG image (say en-US and fr-CA versions). I haven't been able to figure out how to have separate images in both the default .resx and the fr-CA.resx and have the same resource name. Is this possible in VS2005, or do I need to take a different approach I would prefer (if possible) to have the same name because then I don't ha ...Show All
Jason Yip XML Schema - Trimming
I'm using an XML schema in SQL Server 2005 that has 'include' directives in it, and because SQL 2005 doesn't support 'include' directives, i've had to merge all the schemas into one to overcome this. The schema itself works fine, but my problem stems from the fact that the schema itself ends up about 2MB (50,000+lines) and includes far too many elements/types that I don't need, but were in the included schemas. Stripping them out by hand tak ...Show All
johnfrost Is there any replacement or equivalent to XML User-interface Language(XUL).
Hi to all, Is there any equivalent or replacement of XUL, XML User-interface Language. I written a code using XUL and JavaScript for creating a toolbar, for FireFox. I want to create a toolbar using JavaScript/VBScript and XML(or any other stuff) for Internet Explorer. Is it possible, to implement it If any one has idea on it, please reply to this. Thanks and Regards, Mahesh. umahesh, ...Show All
robboonline Type.EmptyTypes and its empty object array equivalent?
I have found the Type.EmpyTypes convenient (and readable) for invocating parameterless methods or constructors. In such case, something like Object.EmptyObjects (instead of new object[0]) would be nice to have since its required by the invocation. Does such shorthand exists in .Net 2.0 Thanks in advance, Joannes Hello Joannes, Great suggestion. I am not aware of any helpers in the .NET Framework 2.0 that cre ...Show All
XaiterRetiax Using Configuration Classes
Hi, Does anyone has a little peace of code, how to write any key value pair or a value of a control used in a form application into a users roaming profile. All microsoft documentations and news groups threads I read, speach about easy to use configuration classes I have studied hundrets of documents and discussions but I have not found any usable example to simpliy store the windows location in a user based <apps>.config file in t ...Show All
roastSpud Drawing on a button...
Hello! How can I draw some lines on a ASP.NET Server Control Button or on a HtmlButton .How can I block the postback of an ASP.NET Server Control Button Thanks! For drawing lines you can have it as an image and use the image button. And for avoiding the postback use a client side code. Button1.Attributes.Add( "onclick" , "return false" ); Regards, Jimmy By adding "onclick" ...Show All
KayKay1027 Adding custom metadata to DataColumn
We need to add custom metadata to DataColumns, retrieved from a typed dataset. Examples of such metadata is "Description", "ValidationRule", "ExpirationDate", etc. DataColumn.ExtendedProperties is one way of adding custom data to a DataColumn. However, this has several limitations. Firstly, it is String-only, meaning we can't store numeric data in a type-safe manner. Secondly, and more importantly, it is no ...Show All
cyx Using .Net Framework 1.1 & 2 in the same assembly.
Let's assume that you have a control developed by VS2003 (.Net Framework 1.1) and you want to use it in a VS2005 project (.Net Framework 2.0 beta 2). What would happen (the default behavior) is that control would be executed by .Net Framework 2.0 along the other controls. Now the question is how to redirect the execution of that control to .Net Framework 1.1 Bijan Is there a specific reason why you'd want fo ...Show All
Gecko2648 XML: how to change encoding
Hi, I am new in C++ but I have been worked XML from java. Now I am trying to change xml encoding to UTF-16. Does anyone to help this Thanks in advance, Renee I don't know why do you need it, but you can do it by reading XML using XmlReader and writing it as is but in required encoding using XmlWriter. Here is C# sample: XmlReader r = XmlReader .Create( "foo.xml" ); XmlWriterSettings settings = ...Show All
_zulu_ Complex Windows Forms application performance optimization
I need some ideas for enhancing performance of a HUGE WinForms app that we're writing in C#. The application is a financial reporting application, and as such has a number of screens that display LOTS of data. The best example I can provide is one of our screens that has a tab control on it with four tabs, each of which contains a tab control with three child tabs as well. Each of the main tabs contains a child tab that displays financial "histo ...Show All
