MWR's Q&A profile
Visual C# Creating alt shortcut keys in keydown
Im trying to convert this VB code to C#, it works like shotcut keys for the tab control. I have it exactly like it is in vb but nothing happens when I trigure the event. Heres the VB Code: Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown 'Triggered if Alt and S are both pressed simultaneously (Switch to Search Tab) If (e.KeyCode = Keys.S And ...Show All
Windows Forms Manually raising an existing event
I would like to automatically raise an existing event based on a value that is passed into a form. Note the following code: Private strAutomatedMenuItem As String = strMenuItem Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System ...Show All
Windows Forms SQL requirements to Set up Terrarium server
i had difficulties setting up terrarium server. i got the message "Login Failed for user '<user1>' " during server setting up. user1 's login type is under SQL server authentication. . sql server group = (LOCAL) (W ...Show All
Visual Studio When the DTE invokes the IVsWindowPane.LoadViewState and SaveViewState method?
hello all. i am creating a Editor by Implement IVsWindowPane interface,and set a break point to debug and be about to know when these methods would to be invoked.but,it never run to the brak point in LoadStateView method. anybody can Tell me when the DTE Invoke this method and what functions these method doing thanks.. thank you for answer!. if the automation model does not call these methods,but what use for these metho ...Show All
SQL Server migration to Microsoft SQL server 2005 Enterprise Edition (64-bit)
We used: Dell 7250 Quatro Itanium Processor 1596 Mhz Total Phisical memory 8184 MB Windows NT 5.2 Build 3790 CSD Service Pack 1 Sql server 2005 Community Technology Preview After migration to Microsoft SQL server 2005 Enterprise Edition (64-bit) we have a probliem. For example - next log. Whats wrong Thanks for answer.... ===================================================================== ...Show All
Visual Studio Modifying an addin's toolbar in DevStudio 6.0
I have written a small addin DevStudio 6.0 to support a large project (1200 files, 10gig of source). It uses what I believe is the expected methods of adding commands and a toolbar, specifically it uses the IApplication::AddCommand and IApplication::AddCommandBarButton to create a tool bar and add appropriate buttons. Now I want to be able to modify, in any way possible, the buttons which were added to the tool bar. ...Show All
SQL Server Droppinga a default value
Hi, I'm trying to drop a default value on a column by: ALTER TABLE [Table_A] ALTER COLUMN [Col_A] DROP DEFAULT But I just get an error: Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'DEFAULT' Doesn't Sql Server 2005 support this syntax What is the correct syntax Tomsi Take a look at this MSDN page. They warn for using DROP DEFAULT: DROP DEFAULT will be ...Show All
.NET Development Error generating a DataSet from an OracleDataAdapter
Hi, I'm trying to generate a dataset from an OracleDataAdapter but it returns an error as follows: “Retrieving the schema for oracleDataAdapter1 failed. Syntax Error: Expecting ‘.’, identifier or quoted identifier.” oracleDataAdapter1’s SelectCommand CommandText is as follows: SELECT ORDENS.COD_SEQL_ORDM, ORDENS.COD_INVT, SUB_ORDENS.DT_DATA, ORDENS.COD_OPER, SUB_ORDENS.C_PAPEL, SUB_ORDENS.N_QUANTIDADE, SUB_ ...Show All
Windows Forms Reading value from UserAccountControl
Hi everyone, I am working on a page (it's a web app, but the part I'm having trouble with is only code, nothing to with ASP) that lets a user check the status of their AD qaccount for things like being locked out, disabled, password e ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItem ...Show All
SQL Server ETL from multiple Access databases -SSIS?
Howdy Folks, I have an ETL project that I want to ask a question about. I want to loop through a folder containing several Access databases, and extract and load each one into a single SQL Server 2005 database. The table layout is the same for all the Access dbs, as well as the SQL db. The number of Access dbs in the folder, their records, and their names will change. Is there a way i can use the SSIS Foreach tool to move through the folder ...Show All
SQL Server SSIS, Execute SQL task and XML recordset
I have an SP that generates valid well formed XML. When I try to put the results of the SP into a string or object variable using the Execute SQl Task, I always get an error unless the size of the XML is 496 characters or less. Any ideas why Barry Memberg Sr. DBA Apptis, Inc. membergbj@state.gov ...Show All
Windows Forms Forcing a DataGridView to update values
I've got a datagridview (winforms) controls with a collection bound to it. Anyway, I've got a checkbox column in the grid. I need its value to be updated to the object as soon when the column value is changed. However, it only gets updated when I move focus off of that cell. Is there anyway to change the way it behaves or call a method to force the grid to update values back to the bound collection For in ...Show All
Visual C# Executing Exe
Ok i added a exe file to my solutions explorer and i wanted to know what code i needed to execute the exe in my form 1 Thanks Stefan in this code where it says exename is that where i add the name of the embedded resource ...Show All
Visual C++ finding the datatype of user input
does anyone know of a way to check the datatype of a users input to see whether it is an integer or not smtraber Shell lightweight api (if it is not renamed) 32-bit int: StrToIntEx() http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strtointex.asp 64-bit int: StrToInt64Ex() http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/shlwap ...Show All
