IanW's Q&A profile
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
SQL Server Unable to connect to the remote server
Hi, I use SQL Server 2005 has no SP1 and work well. But one day I enter the report manger to browse the report, the report manager response "Unable to connect to the remote server" Every report all response this message. But I can browse the report from report viewer on WSS site. Any idea about this Thanks! ...Show All
Smart Device Development Visual Studio not working with Compact framework projects
I have previously been able to develop Compact Framework exe's using Visual Studio 2004 Enterprise architect version but after installing 2005 and subsequently uninstalling both then reinstalling 2003 I can no longer open/edit/compile compact projects. The designer wont work, references arent found and compiling comes up with errors like error CS0518: The predefined type 'System.Byte' is not defined or imported. Standard .net projects are fine. I have uninstalled/reinstalled everything including the frameworks. Any clues as to what might be wrong or better yet a solution I am thinking its reinstall windows XP time possibly.. ...Show All
SQL Server SQL table properties reporting
This is a very simple question to which I haven't yet found an answer. I've just started working with SQL Server, and would like to print out a report listing the properties (Ie. field types, length, description, etc.) of all of my tables. How do I do this Thanks in advance. There are probably far better ways to do this, and (disclaimer) I don't think MS would recommend querying the systems tables because they may be subject to change (which would break your code); but here it is: SELECT [sysobjects] . name , [syscolumns] . name , [systypes] . [name] , [syscolumns] . [length] FROM ...Show All
Visual Studio Team System Visual Studio and Share Point
Hi there! How can I view documents history in Visual Studio IDE. If I've created a project based on MSF Agile and configured Requirements Folder to create versions for each document each time it is saved, how can I make versions visible in Visual Studio Best Regards, Rui Dias You can't from within Visual Studio (Team Explorer). You can only view SharePoint document history on the SharePoint site, which you can view using Visual Studio internal browser; that's about as close as you can get, AFAIK. ...Show All
Visual Basic format string...
I'm trying to get a string output in milliseconds. I have a process that I need to capture the beginning and ending time of how long something takes and keep a tally of it. I have the following code: <code> Private dteBegin As DateTime Private dteEnd As DateTime dteBegin = Now.ToString("hh:mm:ss.fffffff") dteEnd = Now.ToString("hh:mm:ss.fffffff") Dim tsDiff As TimeSpan = dteEnd - dteBegin </code> While debugging (see below), it only displays the "hh:mm:ss: am/pm" value and the time difference is subsequently 0 (tsdiff), because the dteEnd and dteBegin values are the same sinec ...Show All
Microsoft ISV Community Center Forums What's your experience with the buddy program?
Started by admin at 03-28-2005 5:11 PM. Topic has 2 replies. 03-28-2005, 5:11 PM admin Joined on 12-16-2004 Posts 14 What's your experience with the buddy program We've already received a couple of posts on buddy experiences (thank you!) and would love to see more of them, so feel free to jump in and reply to this post and share yours! Thanks, Brenda [msdn/isv] 05-09-2005, 6:08 AM thomas woelfer Joined on 02-14-2005 Posts 5 Re: What's your experience with the buddy program i introduced myself and never h ...Show All
Windows Forms Changing Parent Items From Child
How can I change parent items such as menu items from a child First of all, the menu items aren't going to be hidden, right They're disabled. And, they will be disabled if there aren't any children. That's the point. You update the availability of the menu items each time you pull down the menu, so that if there aren't any&nbs ...Show All
Smart Device Development Working with Menu Resources
When I add a new Top Level Menu item in the Resource Editor, the modifications show up in the Resource Editor and I can see the addition in IDM_MAIN_MENU MENU in the .rc file. However, it does not regenerate the data under IDM_MAIN_MENU RCDATA so it doesn't add the new top level item when I run the program. I find that i can hand edit the IDM_MAIN_MENU RCDATA data, but I am wondering if there is something I need to do to get it to regenerate the IDM_MAIN_MENU data As an aside, I notice that the data is now stored in hex f ...Show All
Visual C++ Making xdc files into html?
It's good news that you can produce docs from C++ code. Once you have a few xdc files one can merge them together and get an xml file. Is it possible to make this file into html I recall from earlier versions of visual studio there was a way to generate some kind of code report in C#. Can you do that from commandline Thanks in advance. Yes Sandcastle for documenting managed APIs is availble for download. The September CTP technical refresh version for Sandcastle is now available for download at http://www.microsoft.com/downloads/details.aspx FamilyId=E82EA71D-DA89-42EE-A715-696E3A4873B2&displayla ...Show All
Software Development for Windows Vista At Last Got it !! [The Book Presenting Windows Workflow Foundation, Beta Edition in .chm ]
Hi to all group members At last i finally got the Presenting Windows Workflow Foundation, Beta Edition in chm . This is a result of constant struggle to find that book and finally i got it . So any of you who wants it just leave a Messge Here. WWF Rocks! I would not reccomend getting it. It is compliant with version 1.2 of WWF and so a number of chapters are out of date with the current 2.2 version. ...Show All
Visual Studio Tools for Office Unable to Delete Name Ranges in Excel
i'm creating Named ranges in excel with following code :- ObjExcel.Names.Add(Name:=RangeName, RefersToR1C1:=MyExcelRange) But when i give following code objexcel.Names(RangeName).Delete it's giving a compile time error. Whereas when i create macro, it gives me this line only to delete Named Ranges. ActiveWorkbook.Names("Range1").Delete Pls help. Try selecting before deleting.... objExcel.Range("RangeName").Select objExcel.Selection.Delete ...Show All
Windows Forms ListView scrollbar
Hi, I use a ListView in View == List. I have a problem with a scrollbar. When it appears, it appears as HORIZONTAL scrollbar, but I need VERTICAL scrollbar. Is there any way to solve this problem Thanks. ...Show All
.NET Development ODBC can't connect to SQL Express
Hello there, I'm trying to use the SQL Express via ODBC but the system keeps failing... and the SQL server is local. In SQL Server ODBC Source Test: [Microsoft] [SQL Native Client] TCP Provider: No connection cloub be made because the target machine actively refuse it. Thanks Ricardo Ricardo, With SQL Server (9.0) Express edition, TCP is disabled by default. You will need to enable it, to use it using SQL Server Surface Area Configuration (which can be found at Start - All Programs - Microsoft SQL Server - Configuration Tools - SQL Server Surface Area Configuration) Thanks, Sushil. ...Show All
Visual Studio Express Editions Unable to get MSDN Library. How can I?
I downloaded 2005 a few months ago. I find it great. I did not get the MSDN Library, but it said I could get it "at a later time". I bought a book the other day with the MS VB 2005 Express Ed Disk. But with trying it I can only get to a message that says, "Unable to locate the product. Pleases enter the location of Microsoft Visual Studio 2005 Express Edition - ENU." I've tried and tried but to no avail. Are there any comments on this, please I did have some trouble with dotNET around Easter Time when MS tried to help out. But I got weary with 'doing this and doing that' going on for a long while so I abandoned d ...Show All
