Hal T's Q&A profile
Windows Forms Form event question please...
Is there an event that fires when a form is minimized I have a program that needs to execute code right before the minimize event occures. Thanks in advance, Devin Hi, No, there isn't an event that's intended when the form is minimized. Though some events are triggered when the form is minimized Try resize, move or leave events. To test try placing a msgbox for each event and see who fires. After that you can place a check if the current windowstate of your form is minimized: if (this.WindowState == FormWindowState.Minimized) { // do your things here... } cheers, Paul June A. Domag ...Show All
Windows Forms how to limit number of instances of a form being opened?
I have a btnAddNew on my frmMain which opens frmAddNew for adding new service record: What can I do to make sure the no matter how many times the btnAddNew is clicked, the frmAddNew will only have one instance opened. this is the code under btnAddNew_Click: //open up frmAddNew frmAddNew frmAddNew1 = new frmAddNew(); frmAddNew1.Show(); Also, I have a btnPendingServices, which opens frmPendingServices, I want to make sure user can only open no more than 3 instances of frmPendingServices. the code under btnPendingServices_Click is: //open up frmPSV frmPSV frmPSV1 = new frmPSV(); frmPSV1.Show(); Pl ...Show All
Visual FoxPro report export to excel differs from print preview and print
When using Visual Foxpro 8, I notice that my subtotals based on 2 report variables that calculate sums per group in the 4th data grouping are continuing to accumulate instead of resetting after each group when I export to excel but appear fine when I do a print or print preview. I tried deleting and re-adding the grouping only to get the same result. Strangely, I also notice some of my text labels have also shifted over to the right. Has anyone experienced this or know of any suggestions or solutions Please advise, thanks. I intend to report to the vendor this problem as my work ...Show All
SQL Server Can't connect to Report Server via Management Studio
Hi, I have a local installation of SQL Server 2005 (Developer Edition) on XP Professional SP2, with Reporting Services, Integration Services, and Analysis Server installed. I can connect to Integration Services and Analysis Server via the SQL Server Management Studio, but not to the Report Server. I can access and use the Report Server installation via http://localhost/Reports and http://localhost/ReportServer , and everything checks out on the Reporting Services Configuration tool, so the server appears to be working fine. I've uninstalled/re-formatted/reinstalled the services (with all default options, and services running a ...Show All
Visual Basic problem with the application
Hey I have recently had a problem with VB.net. I can design form, view and write code, the program works fine until compiling. An Error Message Comes up that says, "Debugging cannot be completed: Machine Debug Manager Service has been disabled" It was really close to that anway. This has never been a problem until just now. It has been able to successfully compile and run when I first installed VB. So I don't know what to do to fix this and need some help. I would appreciate any feedback. Please help! later, gamer3100 I seem to have a similar problem. When I perform a "Debug Start", the application seems to run and compile, however it ...Show All
Visual Studio Team System Source Control Problem and MSDN Problem
Hi all,, I created one new project and in solution explorer rightclick then Add solution to source control. It prompts for server name i given my servername(which is selected from the dropdown list) and in workspace column i selected the value given in dropdown list(here onlyone value that also same as the server name) Folder my project name. When i click next it shows mw the following error. Error: Object Reference not set to an instance of an object. What will be the problem kindly give solution for this problem. Important: &n ...Show All
Windows Forms How do i assign this?
let say i wanted to sum up all the price in my database and assing it to a listview table. how do i do it what i did was .... myRS.Open("Select SUM(Price) FROM Store",myDb) how do I assign it to a listview where does the value store actually I don't understand what you are trying to do... So far I've go ...Show All
Visual Studio Team System Work items menu in Excel
Hi there, I am having some problems installing the Team System Client. when i install the TS Client in Windows 2000, it show the "work items" menu in MS Project, but not in MS Excel. It works fine if i use Windows XP or Win 2003. what is the problem with Windows 2000 Thanks in advance, Guino. The # 3 was the solution! 3. Create a '1033' directory under <program files>\microsoft office\office11 (if it doesn't already exist). Copy Excel.exe into the 1033 directory and rename it to xllex.dll.3. Create a '1033' directory under <program files>\microsoft office\office11 (if it doesn't already exist). ...Show All
Visual Studio 2008 (Pre-release) A very difficult problem comes to me:ScaleTransform Problem
A very difficult problem comes to me: How to Hold the size of the control when its Parent 's ScaleTransform is changed I mean that When I change the ScaleTransform of Canvas, <Canvas.RenderTransform > <ScaleTransform CenterX="0" CenterY="0" ScaleX="{Binding Value, Mode=Default, ElementName=mSlider}" /> </Canvas.RenderTransform> How to let the controls in this Canvas not change their Scale Thank U!!! Try something along the following lines. Create a new class that derives from Slider. Implement a new read-only property, "InverseV ...Show All
Visual Basic Adding Timestamp to RichTextBox
how do i go about doing so all im looking for is the time "HH:MM AM/PM" hi, addin time stamp u can do like this: Dim time As Date = System.DateTime.Now 'first is printed in console using Format function Console.WriteLine(Format(time, "Medium Time")) Console.WriteLine(time.ToShortTimeString) I have used console, but in your case, u just write string to your's RitchTextBox. Hope this helped, if not explain a bit more your problem plz. ...Show All
Visual C++ How to use TCHAR?
What would i change this statement to in order to use TCHAR const char g_szWindowTitle[] = "RPG" ; Thanks, #include <tchar.h> const TCHAR g_szWindowTitle[] = _T( "RPG") ; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# - DirectX 9.0c - Creating a Basic Hexagon
I was wondering if someone could walk me through drawing a basic hexagon using DirectX 9.0c in C#. I've been using the Vector3 structure, and I am having problems understanding how to initialize the view transformation matrix for a hexagon, as well as what input vectors will represent the hexagon (understandably 6). Thank you in advance, Owen If I were you I would not purchase the book by Wendy Stahler. The book by Eric Lengyel is very good ( although I do only have the first edition) it provides enough of mathematics and physics to play with for a long time. ...Show All
Visual C# C# syntax?
I'm familiar with C++/MFC and I'm starting to work with C# and the new WinFX, and also the new Expression environment. But for this I'm inside VS2005. One thing I want to do is remove the chrome from the default example. I understand this could be done with NavigationWindow.ShowsNavigationUI. What I need to understand better is how entries like this are supposed to be entered. The intellesense on this comes up with options of Hidden, Visible or Auto. So I would think I could simply do something like NavigationWindow.ShowsNavigationUI.Hidden; NavigationWindow.ShowsNavigationUI.Hidden(); or maybe NavigationWindow.ShowsNavigationUI = Hidden; ...Show All
Windows Forms Please read before posting
This forum contains questions and discussions about Microsoft's .NET Windows Forms controls and features. These posts should contain programming questions only. If you have questions or problems regarding a specific piece of software or Windows itself, please use the Microsoft Newsgroups . Any posts that are off-topic, will be removed. If you have encountered a bug or you have a suggestion, please post a report on the Microsoft Product Feedback Center . Otherwise, please use one of the following forums for posts regarding Windows Forms: Windows Forms General Discuss client application development usin ...Show All
Windows Forms Anchor controls on Inherited forms
I have not seen mention of this elsewhere (yet). If I have a control on a form that is anchored and I inherit from that form, the control is not anchored on the child form. Is this by design Is there a way around it Thanks julie Hi Julia! Anchoring and visual inheritance don't work together well. Take a look at this: http://weblogs.asp.n ...Show All
