lachlanj's Q&A profile
Windows Forms Popup Message on form closing
Hello all, I have a multi form application that i've developed for some health professionals and i'm running into a small issue. They have a bad habit of clicking the RED X on the form to close it instead of clicking the FILE and EXIT menu items. I need to display a YES NO messagebox to remind them to save any work before closing the form. I've done some research on this and other forums and found some posts where people are recommending that the form be hidden instead of closed. I really want to stay away from this. So, any ideas On your form find the FormClosing event. Double click this in the designer so that it auto generates the code for the event. Then you would do a C# if ...Show All
SQL Server Passing array to stored procedure
Can some one tell me the way to pass Table or Array or list of values to stored procedure [Note: I already know some ways which are not useful in my case: - By passing a list of values separting each with a delimeter like comma(,) - Using XML ] Any other way Please, its urgent Thanks in advance I think the line StrVal varchar(1000) can be changed to StrVal varchar(10) The size here depend on the size of your list item in the parameter. Size of 10 is fine for a list of integers. ...Show All
Visual Studio Team System Core Team Organized interim milestone - related workstream?
Hi, Can you please help me figure out which workstream is related to the "Core Team Organized" interim milestone of the Envisioning track (MSF v4) As far as I understand, the "Vision/Scope Baselined" interim milestone as well as the track's major milestone are directly related to the "Capture Product Vision" workstream, but I can't find any workstream that would include activities on preparing the project team. Regards, Dmytro Lapshyn You make an excellent point! It's very odd to me to think of a team being created at a single point in time. Usually, we have an existing team and create a vision and scope document or a person write the vision and scope without much of ...Show All
Windows Forms Arrow Keys don't move controls in custom forms designer
Hello, I have a custom forms designer. I've implemented a menu command service like so MenuCommandServiceImpl mcsi = new MenuCommandServiceImpl (); host.AddService( typeof ( IMenuCommandService ), mcsi); MenuCommandServiceImpl is derived from IMenuCommandService. I "think" that the controls are supposed to move when the arrow keys are pressed via the MenuCommands .KeyMoveUp etc. Commands. I've added those commands to my MenuCommand class, but nothing. In all my searching around, I think that the DesignSurface.View is stealing the key press events for the Arrow keys, and should be the one to fire the correct events or preferably move the controls. Have I added the wrong service or is it possibly ...Show All
Visual Studio Express Editions Simple ListBox question
I have a ListBox with 15 items and SelectionMode set to MultiSimple. I would like to read the idex of each selected item to an array. How do I do this When multple items are selected SelectedIndex only reflects the first item in the list. Thanks. Thanks for the help. Here is what I ended up doing (please let me know if this is the correct way to look at it): Dim var1 As Integer Dim var2 As Integer Dim var3 As Integer var1 = ListBox1.SelectedItems.Count For var3 = 0 To var1 - 1 var2 = ListBox1.SelectedIndices(var3) MsgBox( "The index of selected items are: " & var2) Next ...Show All
SQL Server Smart Client - Data Centric - SQL 2K to SSE local
Trying to develop a smart client which will have data centric approach for storage of local data. The server is SQL Server 2000 and foot print database is going to SQL Server Express 2005. Is Merge replication a vaiable option. Can somebody guide me on this approach Is there any other architecture proposed for Smart client arcjitecture where the data tranfer will be in a couple of GBs. Can somebody tell me more about SOA as well Thanks! As I read that it was possible, I have been trying to setup SQL Server 2000 as a publisher/distributor and sql server everywhere as the subscriber. I have not yet been successful. What I am thinking is that we can help each other. I would like to exchange conta ...Show All
Microsoft ISV Community Center Forums Merry Christmas and Happy New Year
This is the forum I've maybe spend the most time in, although not so much recently but that can't be helped. To everyone who posts here often enough to know my name, and to anyone else to happens to read this... have a great Christmas and New Year... and even if you don't celebrate them I hope you enjoy the holidays. Merry Christmas Derek Thanks for all your posts, here and on your Blog. Like many others I read the questions and answers on this forum to expand my knowledge of VBA. Your answers, and those of the other frequent posters have helped me enormously this year, thanks to you all. Keep posting and have a happy new year. Regards ADG ...Show All
SQL Server WSS 3.0 adding trusted accounts
Seems only a few of us are experimenting with WSS 3.0 and RSS 2005 (requires sp2 ctp). I've gotten just so far after battling several installation problems. Only Brian Welcker and Spyuta (sp ) have been active here or on their blogs about this. While the instructions are good at the RSS addin for sharepoint page, http://download.microsoft.com/download/f/2/5/f250ed72-c102-4216-8653-63189e24fa02/readme_rsaddin.htm , there are some notable word mismatches. Under the section "Install the Reporting Services Add-in and Configure the Report Server on the SharePoint Technology Instance" they refer to granting accounts access to the database, which is labelled, 'add trusted accounts'. This is as far as I can go because within that step ...Show All
Visual FoxPro Grids are from Venus, cursors are from Mars (Help!)
Hey guys, long time,<br><br>I've been recently working on grids with cursors, and doing cursor transfer stuff. After some point in time during a function, one of the product IDs changes itself. I have figured out how it happens, but not why it happens. Below I will post the original code: set exact on SCAN WITH thisform.pftransact.pInvoices.grdInvoice .column1.text1.value = crsItems.barCode .column2.text1.value = crsItems.prodName .column3.text1.value = crsItems.quantity endwith SELECT crsTransaction UPDATE crsTransaction SET crsTransaction. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. General Audio Disfunction
After about 10-15 minutes of gameplay, the audio slowly begins to become more and more distorted and fractured sounding. Both the sound FX and BGM gradually become more choppy and grainy sounding while dragging down the overall performance of the game. Any ideas Sorry the Update trick didn't help. It still sounds like an XACT starvation / over-work issue. I guess I would do the following things if I were you: 1) When the bug happens, break into the debugger and check what your code is doing. It's possible that your game is starving XACT by doing a lot of computation on other threads. 2) Try to verify that your audio engine's Update method is actually being called frequently. Maybe add a counter and print out a debug message eve ...Show All
Visual Studio Express Editions Download Progress Bar
Hello, well i made download function for my little project but it's really wierd without download progress bar, mostly evryone is thinking that applications is crashed... Anyone can help me make one My code... Hi. A solution is to write your own download mechanism, by using the .NET classes: ' Get the microsoft MSDN forum's logo. Dim request As System.Net.WebRequest = System.Net.HttpWebRequest.Create( "http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif" ) Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim stream As System.IO.Stream = response.GetResponseStream() ' Get the length of the content Dim length As Integer = response.Conten ...Show All
SQL Server email subscription to hotmail?
Hello... I have a Virtual PC running SSRS 2005. I keep getting the following error when I try to specify my hotmail account as the To line in the email subscription: "The e-mail address of one or more recipients is not valid." I am trying to set it up such that I can send email subscriptions to my hotmail account, or at least let the SMTP Service accept these emails. I don't necesarily need to have these emails delivered, but I would like them to at least be accepted by the SMTP Service. I have added the following to my rsreportserver.config file: <PermittedHosts> <HostName>hotmail.com</HostName> </PermittedHosts> I am sure I need to configure the IIS SMTP Server settings somehow, does anyo ...Show All
SQL Server MCMS Content inventory
Hi, I would like to know how does CMS stores content inventory in SQLserver. Example-If I create or migrate an application to CMS in sqlDB how does information is stored Regards T.Gunaseelan Hi, MCMS stands for Microsoft Content Management Server. The MCMS handles all the web contents using SQL2000 DataBase . I would like to know how it is handling or managing the content repsitory or inventory in the DB Regards, Guna ...Show All
SQL Server Problem with SQLBindParameter
I am developing an application, using ODBC, that needs to call a stored procedure in an SQL Server DBMS that has a mix of INPUT and INPUT_OUTPUT parameters. I have the code so that there aren't any errors returned from the function calls but I do not see the bound data change after the SQLExecute() function. Code snippets follow. CHAR szStatement[256]; CHAR szBuf[256]; SQLINTEGER irval = 0, filenum = 808042, DoNotCall = 0; SQLVARCHAR vcPhoneNumber[PHONE_LEN]; SQLVARCHAR vcInstanceCode[INSTANCE_LEN] = {0x20}; SQLVARCHAR vcReason[REASON_LEN] = {0x20}; SQLINTEGER rvalLen = 0, fileLen = 0, noCallLen = 10, phoneLen = SQL_NTS, instanceLen = SQL_NTS, reasonLen = SQL_NTS; lstrcpy( szStatement, "exec = some_proc , , , , " ...Show All
Visual C++ IMPLEMENT_DYNAMIC() error
I am creating a class object that is inherited from COleDropTarget. class CTest1 : public COleDropTarget { DECLARE_DYNAMIC(CTest1) public: CTest1(); virtual ~CTest1(); protected: DECLARE_MESSAGE_MAP() }; When I build using "Use MFC in a Shared DLL", it's work fine. but I buid using "Use MFC in a Static Libiary", it's not bulid. I get the following error messages; error C2039: 'classCOleDropTarget' : is not a member of ' COleDropTarget' see declaration of ' COleDropTarget' I use Visual Studio 7.1... help me plz.. Hello Re: IMPLEMENT_DYNAMIC() error I am going to mark this thread as answered since you have not followed up with any further information on your prob ...Show All
