Thunder2002's Q&A profile
Windows Forms error messages.
who stores error messages os / application and how can we retrieve them ...Show All
Visual Studio Team System There is a way to make the link control to be required control??
Hi, There is a way to make the link control in the WI to be required field Thanks in advance, Shmulik. In V1, you cannot make the Links or Attachments as required. But you might want to check out the SDK to see if you can subscribe to some events (like state change or work item change) and force the user to create links then. http://msdn.microsoft.com/vstudio/extend/customize/ Good luck! ...Show All
Visual Studio SubreportProcessing is not firing when the project output type is not executable
I have raised this before but I didn't get any reply. So I am trying to rephrase the problem. To duplicate the problem please follow the following steps: Download this sample code from http://gotreportviewer.com/objectdatasources/AuthorBooks.zip Open the solution and add a new Windows Form project to the solution Make this newly added project as startup project In the newly added project add a reference to AuthorBooks project Put a button in a Form1 and onclick of the button try to open the AuthorBooks.Form1 Now I am getting Subreport could not be shown error. Is this a know issue Has anybody else experiencing same problem If this is a know issue, do I have any work around. I am appologizing for reraising this ...Show All
Visual Studio 2008 (Pre-release) LocBaml Namespace
After running: msbuild /t:updateuid The x:Uid is added to my XAML file correctly, but VS Express doesn't like them. Apparently they aren't in the correct namespace. What namespace needs to be added, or how do I remove this warnings -- June CTP Visual Express C# The warning occurs in VS Express C# and reads: Warning 3 The 'http://schemas.microsoft.com/winfx/2006/xaml:Uid' attribute is not declared. This is after running: msbuild /t:updateuid projectName.csproj It has placed x:Uid="blah" in all of the XAML element like below: <Border x:Uid="Border_2" Style="{StaticResource MenuBorder}" DockPanel.Dock="Top"> <StackPanel x:Uid="S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX 9.0 Deployment via VS 2005
I have been researching this question on the net a few days and have not had much luck. I have a project that uses DirectSound to play WAV files and I want to include the DirectX redistributable files in my install. Some of my users apparently do not have DirectX installed and are having issues running my application. (These users are using Windows 2000 without the latest service packs in an environment where they do not have an internet connection.) I found a Managed DirectX 9.0c bootstrapper package that was made in 2005, but it no longer works with the latest August 2006 DirectX redistributable files. The bootstrapper package interfaces with the Visual Studio 2005 bootstrapper, and enables the author to check a box for Managed Dir ...Show All
Visual Studio Express Editions how to Creating a user control
i want to create my textbox that accept only numeric data as a user control. how can i add textbox events,methods properties in my user control All of these events have protected members whose name starts with "On". You can override them to handle the event before the base control gets it. Or you can just handle the event like you always did before. This example demonstrates both techniques: Imports System.Windows.Forms Public Class NumericTextBox Inherits TextBox Protected Overrides Sub OnGotFocus(ByVal e As System.EventArgs) '--- Select the text so that typing replaces it Me.SelectionStart = 0 Me.SelectionLength = Me.Text.Length MyBase.OnGotFocus(e) End Sub Private Sub NumericTe ...Show All
Windows Forms Mage Commandline error with .deploy files
Hi! I'm creating application manifest manually using mage.exe. If I run mage.exe with the original files (exes and dlls), everything works fine, but as soon as I change the extensions adding .deploy (i.e. xx.dll.deploy, xx.exe.deploy), it throws a bunch of warnings like: Warning MSB3110: Assembly 'xx.dll.deploy' has mismatched identity 'xx', expected file name: 'xx.deploy' The command line used is: mage -New Application -ToFile program.exe.manifest -Name "MyProgram" -Version 1.0.0.0 -FromDirectory 1.0.0.0 When I look at the generated manifest, the problem is that mage wrongly assigns the "codebase" attribute at element "dependentAssembly" Any suggestions is there another command line flag ...Show All
Software Development for Windows Vista Service With a Window
I have a service application which contains an user interface. But in Vista we can't have services with interface. So, i have separated interface and Service part. But i need to communicate between these two parts so that settings changed to Interface part gets applied in Service and Vice-versa. What should i use for the communication I have looked on WM_COPYDATA, Other Window messages which does not seem useful here. I looked in IPC mechanism of NamedPipe, Sockets, Mailslots, SharedMemory, etc but which one willbest suit for me My interface will always be running and hidden, so using switch user we can have more than one instance of my interface running at the same time. Please help me out Regards Kumar ...Show All
Visual C++ Any interest in building an FAQ?
I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All
Visual Studio Express Editions How do I into Sleep mode by VC 6.0
I would like to into sleep state after program executed 5 secs later. I know the sleep modes are include 6 states that S0~S5. The simple information of these modes are show as below. S1 (POS) ==> Stop HDD and monitor power, but CPU and memory still alive. S3 (Suspend) ==> Stop CPU and HDD. Store data to RAM. S4 (Hibernate) ==> Stop CPU, memory, HDD. Store data to HDD. Now, I can control my program into S3 and S4 by "SetSystemPowerState". But I don't know how I can into S1 mode. Could you please give me some hint If SetSystemPowerState() or any APIs does not into S1 mode, could you please help me to close monitor and stop HDD Thanks, Rabin Thank ...Show All
.NET Development How to read array returned from Web Service method
I am trying to take the output array from a web service and move it into a datatable using c#. I have a web reference to the service as well as a proxy. The WSDL is: < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetSitesForContactResponse xmlns= http://companyA.com/pms > <GetSitesForContactResult> <SiteResult> <SiteId> string </SiteId> <SiteName> string </SiteName> <Address> string </Address> <Address2> strin ...Show All
SQL Server How to render reports to Word format?
We are using SQL Server 2005 Reporting Services and looking to render our reports to Microsoft Word format. We’ve searched around and haven’t really found any useful information on how to do this. Is Microsoft planning on releasing a Word rendering extension If so, when Has anyone written a custom rendering extension for Word Or, does anyone know how to write a custom rendering extension for Word We need either a Microsoft solution that’s already built-in to Reporting Services or a solid, free solution. We are not in the market of buying a third-party product like OfficeWriter. Any help would be greatly appreciated. Thanks! Hi there- You could create your own Word custom delivery extens ...Show All
Visual C# Include Images in program
I have a picturebox and I want to use pictures I have "included" in my program (and not loading them from the hd or an url). I suppose that the resources is what I'm looking for, but I cannot find a way to use it. (Need the same for mp3 or wav files) Any suggestion Hi, add the image files to your project i.e. Add Existing Item, then change the Content type of the image (in the properties widow) to be "Embedded Resource", now you can access the resource with a few lines of code i.e. byte[] bytes; Assembly myAssembly = Assembly.GetExecutingAssembly(); Stream myStream=myAssembly.GetManifestResourceStream("MyProgramNamespace.MyImageName.jpg"); bytes=new Byte[myStream.Length]; myStream.Read(bytes,0,(int)m ...Show All
Windows Forms C# and Arrays
Hello Everyone, I have a form, which user fills and I check if that has some errors and then store it in an array.. I'm facing couple problems :- 1) Define - string[] form; // Array is fine here, if I don't know the size how should I do it.. 2) Secondly, to make my life simple what I was doing was string field; string message; form[field] = message; // The above means field can be used as location like (0) or something...but it doesn't let me do it... What would be the best way to tackle the above problem. Thanks, Harsimrat question is, DO you need to use an array if so why what are you trying to do after the user enters data from the form what you could do, is make a c ...Show All
Visual Studio Conditional Branching of Recipe Actions
OK guys, This is a bit long but a good use case I think. I'm trying to get control over which recipes get executed based on user input. I would rather not approach the problem by stashing the conditional logic in a custom Action as 1. I have no source for the Actions (using TextTemplateAction here). Containment of this Action from my own is problematic at best (was told I needed to spawn another TemplateHost instance just to pass the Dictionary values to the contained instance. PITA & heavy) 2. Subclassing from TextTemplateAction and throwing the logic in the subclass is a bad approach considering that these Actions are reusable across recipes, some of which may not be configured to work with the same Dictionary values of ...Show All
