mycall's Q&A profile
Windows Forms Running System Tray Application Prevents Computer Shutdown
I have created a system tray application that functions as expected, but the computer will not shutdown while the application is running. In another post, it says to look at SystemEvents.SessionEnded; however, I'm still not sure what to do with this. Can someone please provide an example of how to automatically exit the application if the user attempts to  ...Show All
Visual Studio Help still broken
Just installed the release version of VS2005 standard. Alas, F1 help is still broken. If I position the cursor over a word (for example HANDLE) and hit F1, the following happens: 1. If MSDN is set to use local help only, it always displays the topic-not-found page, even though on the left hand side, the topic is not only present, but selected. A single click on the highlighted item displays the correct information. 2. If MSDN is set to use online help first, then pressing F1 takes up to a minute (looks like multiple redirections happening), then either displays the topic-not-found page or displays something only vaguely related to the select ...Show All
Visual C# Compiling my source file with VStudio 2005
Hi guys i'm an new VStudio user and i've an doubt about as i can it compile my source file using the VStudio 2005. I created an simple source code for it test, but i not find the option for compiling the file. Someone can help me Hi! It can compile, run and debug. Check Debug menu and look here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=304751&SiteID=1 ...Show All
Visual Studio loading language package fail!
hello all. after installing vs2005 SDK. i get a message ,loading language package fail. the package guid is "{e444c1dd-7c8e-4126-81c8-392c63bfebe3}" anybody can help me! thanks. I have the same problem! I try do reinstall it all, but the problem is still there! What should i do ...Show All
SQL Server Unit Testing
Well was wondering this weekend. How do you do unit testing with SSIS Is anyone trying it What are you doing and do you have any suggestions Yeah, this is on my wishlist as well. It's sort of nerve-wracking writing a script and just hoping it works correctly when I test it for the first time (as often running the package may have side-effects). Also, since packages will often be run regularly, it would be nice to have "assertions". For example, I could test that each column conforms to certain constraints. If not, it would fail and pop up a message box indicating the problem. Withou ...Show All
Visual Basic SetPrinter
I am trying to use SetPrinter to set a printer offline/pause/resume and its throwing an error 87 from the Marshal.GetLastWin32Error(). I am using the following declaration for SetPrinter <DllImport("WinSpool.drv", SetLastError:= True )> _ Public Function SetPrinter( ByVal hPrinter As Int64, ByVal Level As Long , _ ByRef buffer As Long , ByVal Command As Long ) As Boolean End Function and following call If Not SetPrinter(hPrinter, 0, 0, PRINTER_CONTROL_PAUSE) Then Throw New ApplicationException("Cannot pause printer " & Marshal.GetLastWin32Error()) End If to PAUSE the printer. Any suggestions ...Show All
Software Development for Windows Vista Unable to write to reg key
I am installing Workstation components for sqlserver 2005. When it gets to the sqlxml4 portion, the following dialog popsup: --------------------------- Microsoft SQL Server 2005 Setup --------------------------- Could not delete key \Software\Classes\CLSID\{E3E1D966-0829-48AC-B3AD-C5AE4CA171C4}. Verify that you have sufficient access to that key, or contact your support personnel. --------------------------- Abort Retry Ignore --------------------------- funny. . . I go into regedit and it appears that the key is there with permissions assigned to some unknown sid and I am unable to give ...Show All
Visual C# ~ operator
hi, i don't understand the bitwise operator at all particulary this ~ i know if i used it as a prefex for a method carry the same name as the class it will be the destractor but what does those operator mean in this code if (oldFont.Bold) { newFont = new Font (oldFont, oldFont.Style & ~ FontStyle .Bold); } else { newFont = new Font (oldFont, oldFont.Style | FontStyle .Bold); } this code simply format the selected font in a richtextbox controls if its bold it will make the font normal or if its normal it will make it bold like B button in any text editor , it works well but i simply don't understan ...Show All
Windows Forms Control Suites
I'm a GUI designer working in the planning stages of a project to be written in C#. One of the requirements for the look of the GUI is that it should not look dated after the move to Vista. We are trying to get a suite of controls/components that will help with this. Does anyone have suggestions Regards... If you're worried about your app looking up to date, perhaps you should look into the Windows Presentation Foundation rather than using straight winforms. ...Show All
.NET Development Storing Data in Application Scope
I am planning to place a set of name,value pair of data which would be used very frequently in application. These set of name values will be used to populate the select boxes across the asp pages. My application is a ASP application residing on a IIS server. I was planning of using a Dictionary object to store the data in the Application Object and then thought of using it in my asp pages. But IIS doesnt accept a Dictionary object on the Application Scope giving error because of some threading issue. Pls give me a solution to store these name value pair sets in application Scope. Any help is greatly appreci ...Show All
Windows Forms Encrypting passwords
using the following code I get error that namespace name FormsAuthentication not found. Has anyone any ideas. I'm using a windows form. Thanks <code> using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; using System.Security; using System.Security.Cryptography; using System.Collections.Specialized; string hashedPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "MD5"); </code> the FormsAuthentication class is part of the System.Web. ...Show All
Visual C++ activex dialog bars events
i try to fire events in a flexgrid control but from dialog bar, nothing happens. how could i make this thanks juan carlos Hi, This forum is primarily focused on receiving feedback on VS2005. VC MVPs and devs on newsgroups msdn.micrsoft.com/newsgroups would be happy to help you figure out what is wrong with your code. Thanks for understanding. Thanks, Nikola VC++ ...Show All
Windows Forms BindingSource.ResetBindings()
I am developing an app with one function being tracking student attendance to classes my company teaches. I want to be able to add new students in a child-form, and then select the student in a combo-box column of the datagridview on the parent-form. On save of the child form I am using: ActivityForm.AttendeeBindingSource.ResetBindings() But it is not successfully updating the parent form with new attendees added. Any advice on how I can refresh the control on the parent-form would be much appreciated. If anybody could help me with this, I'd really appreciate it. If my description is unclear p ...Show All
.NET Development How to register a dll remotely
Hi, Can anyone tell me how to register a dll remotely.That is from machine A i want to register some dll on Machine B.Is there any .net class to do this or is it possible through some other method like wmi. Thanks Harinder Hi, You do not need to register assemblies in .NET. To use assemblies in other machines you can do the following things: If you want to compile using remote libraries you just add a reference and look for the network location of your dll, your library will be copied on your local folder if you have the option to do so (you can disable it if you want) Now, if your DLL ...Show All
SQL Server June CTP - Passing NULL value to a Sub-Report Parameter
Passing NULL value to a Sub-Report Parameter fails with this message - "A parameter or data source credential is missing a value. Prompting for this value has been disabled. Supply a value or enable prompting." Anyone else seen this Thanks Paas the parameter to subreport . Syntax is paramField.ReportName="Transferee"; paramField--> ParameterField Transferee--> Sub report name Total Syntax is paramField = new ParameterField(); discreteVal= new ParameterDiscreteValue(); paramField.ParameterFieldName = "@CustId"; discreteVal.Value = 2463; ...Show All
