ApellA's Q&A profile
Windows Forms LShiftKey doesn't work
Hello, Does anybody know why the following code doesn't work Keys.LShiftKey exsists but you cannot use it, isn't that strange Regards Arjen private void Form1_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .LShiftKey) { MessageBox .Show( "Left Shift pressed" ); } } You're trying to get a KeyDown for your main Form. I don't think this will work because the current control that has focus is not your Form1, but another control. This will work if your Form1 has explicit focus and no other controls are present on the form. ...Show All
Visual Studio Team System Build scripts
Hi, all. After building and deploying a simple database with TSData, I made a few changes and built the update script. I wanted to take a look at the update script before deploying it but it I did not find any option to let me review it. Using Windows Explorer, I found the script at <Project Folder>\Sql\updateDB. Did I miss such a menu item If I didn't , wouldn't it be nice to have (even if just read-only) access to the create and update scripts in Solution Explorer Thanks, Brian Hi Brian, You didn't miss any menu item. I've forwarded your suggestion to the team responsible ...Show All
SQL Server SSIS Books
Hello, do you have any suggestion for a good SSIS book (SSIS RTM based -- not beta) Thanks, Pierre Thank you Allan, I'm really interested in the SSIS development area then not from a DBA point of view. I have several complex DTS and I have to learn how to move them to SSIS as the best. Thanks, Pierre ...Show All
Visual C++ Calling constructor from another constructor
In C# you can call a contructor from another constructor like this: class Test { Test() : this(0) { } Test(int i) { } } Is there C++/CLI syntax to accomplish the same (for a managed class of course) Thanks for the reply Nishant! ...Show All
SQL Server Problem Installing SQL Express 2005
When it is checking my PC configuration, I get the error message: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine KODY Error:2147942527 (0x8007007f). For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=70342 ------------------------------ BUTTONS: OK ------------------------------ I do not know how to fix the problem. Please help! Sincerely, Kclemens Can you try wit ...Show All
Visual Studio Express Editions C# Problem
Before installing the finished version of MS C# Express 2005 I reformated my HD and reinstalled a fresh version of Window XP-Home. After first installing VB Express 2005 which works fine, I installed C# Express 2005. Projects which were created before the final version of C# Express work fine. But when I try to open a new project I get the following dialog box: "The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B. I searched Google for this exception and got 2 hits, one with a fix. It didn't work for me. SUGGESTIONS ANYONE You ...Show All
Software Development for Windows Vista Tips in debugging dependency property problem?
I've created a dependency property that's causing me some problems at runtime. First, the definition of the dependency property: public static DependencyProperty ToValueProperty = System.Workflow.ComponentModel.DependencyProperty.Register("ToValue", typeof(object), typeof(SendEmailActivity)); [Description("To Email Address")] [Category("EmailActivity")] [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public object ToValue { get { return ((object)(base.GetValue(SendEmailActivity.ToValueProperty))); } set ...Show All
SQL Server check what table are lock by application
Dear All, Sometimes the application cannot write record into SQL Server, but the source code of this application cannot be seen. Therefore, I wanna verify the MSSQL status. I have to check what table are locked by application. I wanna know the following information. locked_table, locked_by_application, locked_status Can I write some t-sql to get the information I tried using Profiler, but it generates some useless information. Could you give me some suggestions Alex Lock granularity is much wider than only a tables. That's for the first. Second is that SQL Server doesn't require any information a ...Show All
Visual C++ error LNK2019: unresolved external_ Help me please
I have Visual C++ 2005 and compil error #include "windows.h" #include <GL/gl.h> #include <GL/glu.h> #include "gl/glaux.h" /* Initialize linear fog for depth cueing */ void myinit( void ) { GLfloat fogColor[4] = {0.0, 0.0, 0.0, 1.0}; glEnable(GL_FOG); glFogi (GL_FOG_MODE, GL_LINEAR); glHint (GL_FOG_HINT, GL_NICEST); /* per pixel */ glFogf (GL_FOG_START, 3.0); glFogf (GL_FOG_END, 5.0); glFogfv (GL_FOG_COLOR, fogColor); glClearColor(0.0, 0.0, 0.0, 1.0); glDepthFunc(GL_LEQUAL); glEnable(GL_DEPTH_TEST); glShadeModel(GL_FLAT); } /* display() draws an icosahedron */ void display( void ) { glClear(GL_ ...Show All
SQL Server Ad hoc updates to system catalogs are not allowed.
in SQLServer2005 how can I allow update system catalogs (by mouseclick) sp_configure 'allow updates' , 1 - works, but I get the message Msg 259, Level 16, State 1, Line 1 Ad hoc updates to system catalogs are not allowed. Even in single user mode, catalog updates are not supported by Microsoft. For your other comments, you should post them on a related forum ( SQL Server Database Engine , for example). If you do not receive a useful suggestion or workaround for your issue, please open a request at: https://connect.microsoft.com/feedback/default.aspx SiteID=68&wa=wsignin1.0 Thanks Laurentiu ...Show All
Visual C# Context menu question
Hello Hope its the right place for this question. I have a win app that contains a treeview and a main window. When ever I click a node in the tree it displays the content of the node in the main window. I would like to add a right click menu to the tree. The problem is that the menu may change from one node to another . What is the best way to handle this subject Is there a pattern I can use On every right click I need to know which menu to load and to bind the items to the proper functions Thanks Avi I can suggest one possible design to this. It seems ...Show All
Windows Forms how do I pass data from form 1 to form 2
Greetings, I am having trouble trying to pass data from one form to another within the same application. My project is set up with a main form [Form1] and I added a second form [Form2]. What I want to do is open Form2 from Form1 and then send data from Form1 to label and RichText controls in Form 2. From Form1 I used this code to open fo ...Show All
.NET Development Invoke without dedicated Delegate
Hi, I'm using Control.Invoke(new MyDelegate(...), params, ...) but don't want to define a dedicates Delegate only for usw with Invoke() (in this case "MyDelegate"). I tried it with anonymous methods, but it doesn't work. Can anybody give me a snippet of code, where this is explained Or isn't it possible without a dedicated Delegate Thanks in advance! You can use the EventHandler or MethodInvoker delegates if they match the target signature. Otherwise you need to define the delegate type. ...Show All
Visual Studio Team System Extraction Rule
Hi, I am trying to extract an HTML response and reuse it for the subsequent request. The response contains a list of <a> tags with the following format: <a href='client_home.aspx N=1&gldx1.1=1740' target="_parent"> <a href='client_home.aspx N=1&gldx1.1=1741' target="_parent"> Basically, I would like to parse and extract the value of gldx1.1. That is, for the first <a> tag, I want to get the value of 1740; for the second tag, 1741. Is this currently possible in VS 2005 using a custom Extraction Rule Thank you Buhi Mume I believe th ...Show All
Windows Forms About the forms
Hi, Just in the forms, I've not found out a way, by which we can insert some different items, like check box, text prompt field or the buttons. I think there should be a way for doing this. Any advices to this Thks & Rgds, HuaMin You'll have to be more specific about what you are trying to do. You are trying to insert controls onto forms What is the problem you are having ...Show All
