Richard Hein's Q&A profile
Visual C# Communication Between Froms...
I currently have a form that I am using to store variables/arrays/etc. I have just created a second form. The form is launched when the user selects a button. I have launched the form by simply instantiating the object, like this: Form2 f = new Form2(); f.Show(); However, there is data that I need to retrieve and display from the first form (Form1). Would anyone know how I could go about doing this Thanks, I'm receiving the following error with that code: 'System.Windows.Forms.Application' does not contain a definition for 'OpenForms' ...Show All
Windows Forms Language in ClickOnce dialogs
Hi! Just a little question on the dialogs used by Click-Once.. What decides the lanugage in the dialogs displayed by Click-Once Is these dialogs only in english I have tried Click-Once on a Swedish OS with publish Lanugage set to swedish, but it still displays english texts in the dialogs :( --Rune Rune, The ClickOnce install time dialogs are parts of the .NET FX. So, what version of the .NET FX (and language packs) the machine has determines the language of the ClickOnce install time dialogs. The Publish Language property determines which resource files will be depl ...Show All
Visual Studio Can't download GAT, GAX?
<editing post because HTML embedded in the post made it impossible to reply to the thread> I'm sorry, but this isn't the right place to ask questions about Passport/Live, and the funky HTML in your post kept anyone from replying to it. Check out the Microsoft newsgroups and see if you can find a more appropriate place to ask your question there: http://www.microsoft.com/communities/newsgroups/default.mspx ...Show All
Visual Studio Tools for Office Excel Toolbars
I currently have a VSTO Excel application, which adds a custom toolbar to Excel. However, the user must first open MySpecialApplication.xls file in order to get this toolbar. I would like a way to have this toolbar available in Excel even when my .xls file is not opened. For example, I installed Microsoft Team System, and that installed a custom toolbar in Excel (called Team). Similarly, when I installed Adobe Acrobat, I got a custom toolbar in Excel called PDFMaker. I want to install a custom toolbar in Excel, where the functionality behind the toolbar is coded in VSTO. Is there a way to do this Thanks in advance! ...Show All
Windows Forms Validating a user control when closing a form with the 'X' button
Hello World. I'm trying to use validation with user controls. Everything works fine except the following problem. Let's have a user control containing two text boxes. Each text box uses the Validating event to check its content and keep the focus if the content is invalid. The Validating event of the user control uses the Validate() method to check the content of the current textbox. This user control is contained on a form together with another textbox and a button. If one of the text boxes in the user control has the focus and you click the 'X' button to close the form, first the Validating event of the user control is fired and execu ...Show All
SQL Server Howto suppress FETCH output
Hello, I'm opening a cursor with the sole purpose to select rows for deletion DECLARE test_cursor CURSOR FOR SELECT ... OPEN test_cursor ; FETCH NEXT FROM test_cursor WHILE @@FETCH_STATUS = 0 BEGIN IF -- check some condition DELETE FROM .. WHERE CURRENT OF test_cursor ; FETCH NEXT FROM test_cursor END For each row that is deleted sqlserver prints several lines of text with the contents of that row. How can I suppress this Thank you Eckard I think the problem is with trying to use WHERE CURRENT OF in combination with Delete. ...Show All
Windows Forms cleared bound textbox reverts to original value
I've got textboxes bound to number columns in a dataset that is _not_ strongly typed. When I want to clear a bound control of its value, I highlight the contents of the control and press the delete key (which doesn't seem to trigger the KeyPress event of the control). When I tab out of the control, it reverts back to its original value w ...Show All
Windows Forms Performance issues in writing records in a text file.
Hi! I wrote a program that writes to a text file in a format that all insurance company can integrate to there database(834 format). The problem I was having is that it runs very slow. I'm trying to retrieve Employee's information, Employee's benefits, dependents information, and dependents benefits. On this company there's about 600 - 700 participants&n ...Show All
Windows Forms Error: no mdi child free
Hi, I have strange problem: when I close the mdi child in mdi form the child is closed but when I open another mdi child window I see the toolbars (close, minimize and maximize) of previous mdi childrens that I have closed before. Why How can I solve it Does it take the memory Thank's Alexei ...Show All
SQL Server Confused as to which SQL Server version the Express languages work with
I have SQL Server 2005 Developer Edition installed on my PC. I also have the Express Editions of VB and C# installed. Is there any purpose served in my installing SQL Express, also I've read comments that the Express languages can only connect to SQL Express databases and not SQL Server 2005 databases; however, I'm not sure how that is enforced. The 'connect to database' wizard does seem to be different in the Express IDE than it is in Visual Studio. I've read other Express language references that say that they can only connect to SQL Server databases via something called User Instances; however, it's not clear to me if that infers ...Show All
Windows Forms Wallpaper ?
I have got the following code which sets the desktops wallpaper. Problem is it seems to only work with BMPs and not JPGs. My question; Is it possible to convert a image to BMP from JPG and then assign this image to the code '### Below is for WallPaper setting Private Const SPI_SETDESKWALLPAPER As Integer = &H14 Private Const SPI ...Show All
SQL Server surface area configuration won't run
Just completed new install of SQL 2005 Std, replacing a working default instance of SQL 2000 on a Windows 2003 Server. All maintenance applied. Things seem to work alright until I attempt to launch the SAC tool: Message is "specified aregument was out of range of valid values. parameter name: index(system.windows.forms.TreenodeCollection.get_item(int32 index) at Microsoft.SQLSAC.Mainpanel.form services and protocols". Should also mention that upgrade advisor warned that hardware didn't meet prerequisites but no hints about what's imperfect. I don't think I can go far without using SAC to turn on TCP/IP ...Show All
Visual Studio Express Editions Can not register: IE does not aunch.
Hi, after installing and using the Visual C++ Express Edition I wanted to register it. I clicked on the provided link "Microsoft Visual Studio registration website" and... nothing happens. Then I searched the forum and did the following: - signed in at passport.net - updated my profile at profile.microsoft.com and verified my email address at hotmail - made IE the standard webbrowser - setted the security options of IE to 'low' - restarted afterwards the browser Again I clicked on the provided link "Microsoft Visual Studio registration website" and... nothing happens. Do you have any suggestions to solve my problem (except trying Eclipse ...Show All
SQL Server Grant Showplan to <user>
I was trying to review some query statistics and received the following message: SHOWPLAN permission denied in database Test I gave the user permission by the following command: Grant showplan to user. I am curious as to how much perfomance does this effect Is there an alternative regards The SHOWPLAN permission only governs who can run the various SET SHOWPLAN statements. It doesn't impact performance of the server per se. And with some of the SHOWPLAN statement in effect, the statement(s) is not executed and goes through compilation phase only. There is no other alterna ...Show All
Visual Studio Team System TF single-server installation failed on a virtual pc
My installation steps are: 1. Install a Windows Server 2003 with SP1 virtual pc. OK! 2. Config the virtual pc as an application server, enable asp.net. OK! 3. Install the SQL server 2005 April CTP, config the application pools. OK! 4. Install the SharePoint Service, exclude the Reporting Services. OK! 5. Logon as tfssetup and install the Team Foundation. Hang!!! The ADAM installation seems good but the installation stops at the last step. I follow every instruction in the "visual Studio Team Foundation Installation Guide" but the installation just fails. I've tried twice but got the same results. Why Bruce Sorry, the VPC has been drop ...Show All
