Nep23's Q&A profile
Visual Studio 2008 (Pre-release) Perforator
Where can I find Perfarator tool I install full version of the new WinSDK & I don't see perfarator in "\Program Files\Microsoft SDKs\Windows\v6.0\Bin". Perforator is now part of a collection of performance profiling tools in the executable WpfPerf.exe. After starting the application, you can add the Perforator module to the tool. You can find documentation on all the tools in the article titled "Performance Profiling Tools for WPF" or on MSDN . ...Show All
Visual Studio Change default from VB to C#
When I installed VS 2005 I chose Visual Basic as my default language. I would now like to Change it to C#. I remember somewhere in the install process it was stated that this was possible, but I can't find how it is done. Can someone help me One thing in particular is the news feed on the startup page. I know where in the options to make the change, but I don't know the valid value for the c# feed. Thank you very much for your help. I tried to search for an answer to this question, but must not have used the proper keywords. Anyway, thanks again, that solution worked. ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre I think the only option is to use GDI Calls if you wish to use those functions (wrappered by the graphics object GetHdc and ReleaseHdc methods). There doesn't seem tto be the ability to do what you want directly. However, the new drawing techniques available don't really require the old VB6 methods (drawing 'rubber bands' and such). ...Show All
Smart Device Development How do I manually deploy the CF2 to my PPC?
I tried running the Microsoft installer and although it starts the installation on my PPC (running Windows Mobile 5.0), it never actually installs the Framework. Is there a way to manually install the CF 2.0 There is a file created in the root partition called MS .NET CF 2.0 LOG.TXT. Here are its contents (sorry this is long): 10/05/2005 00:40:57: PocketPC 5.01 10/05/2005 00:40:57: Processing alternative file: '\Program Files\.NET CF 2.0\cgacutil.exe.-410~-410~ARMV4'. 10/05/2005 00:40:57: Special file extension: '.-410~-410~ARMV4'. 10/05/2005 00:40:57: File is intended for OS: -410 to -410, CPU: ARMV4 10/05/2005 00:40:57: Device CPU: 'ARMV4I', 05020000 (84017152) 10/05/2005 00:40:57: Delete file '\Program Files\.NET CF 2.0\cgacutil.exe.-4 ...Show All
.NET Development How can I parse an SQL statement into a canonical form ?
Is there any class available (either in the framework or external and in that case preferably open source) that can be used to test whether two sql statements are equivalent or not (equivalent regarding irrelevant white space, parentheses, and upper/lowercase for keywords) Basically, what I would like to do is to find a class (below called SqlParser)that I can use like this: string sql1 = SqlParser.getSqlStatementInCanonicalForm("SELECT mycol1 FROM mytable where mycol2=1 and mycol3='abc'"); string sql2 = SqlParser.getSqlStatementInCanonicalForm(" sEleCT mycol1 frOM mytable where ( mycol2 = 1 ) and ( mycol3 = 'abc' ) "); NUnit.Framework.Assert.AreEqual(sql1, sql2); / Tomas To ...Show All
SQL Server UNIQUE/PRIMARY KEY confusion.
I wrote this stored procedure and it works fine, it seems. The questions I have are as follows: (1) What is the difference between PRIMARY KEY and UNIQUE. They seem to pertain to the same behavior. When I used only UNIQUE as qualifier I did not see that the column was marked as primary in the SQL Management Studio. What I need is for a column to be unique in the sense that it would not allow duplicate values and it must have an INDEX on it. I need it to be descending . (2) Did I do it right or there are aspects in here I do not quite see set ANSI_NULLS ON set QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[CreateTableDailyClose] @symbol varchar (10) = null AS BEGIN SET NOCOUNT ON; DECLARE @SQL VARCHAR(500) SET @SQL = 'CREATE TABLE dbo. ...Show All
.NET Development Go to element in xml file
I would like to go to an element in an xml file obtained by BoxIterator.get_Text(). How can I do that tweetys wrote: I would like to go to an element in an xml file obtained by BoxIterator.get_Text(). How can I do that I am using j# ...Show All
SQL Server WMI HELP!
I am trying to install microsoft sql server 2005 express. I am getting an error that I am unable to find here in the forums. I have windows xp pro sp2, just downloaded the sqlexpr.exe file from microsoft.com. I am getting: Server System Configuration Checker cannot be executed due to WMI configuration on the machine DESKTOP Error: 2147942699 (0x8007012b). I click on the info and see: Event ID: 70342 Source: setup.rll We're Sorry No additional information I have tried the following script to repair WMI: @echo on cd /d c:\temp if not exist %windir%\system32\wbem goto TryInstall cd /d %windir%\system32\wbem net stop winmgmt winmgmt /kill if exist Rep_bak rd Rep_bak /s /q rename Repository Rep_bak for %%i in (*.dll) do RegS ...Show All
Visual Studio Express Editions Re-useable Components
Hi Can someone tell me the steps to create a reuseable component The info for C# Express says it can be done but I can not find any info on how to do this. Sandy If you like to create a component that can be dragged to the form in design view, create class that is inherited from Component class. You can do this by hand, and writing for example: public class MyComponent : Component { . . . Or you can create it by adding new file to your project and selecting it type to be Component instead of class. When you build you project that has Component in it, the components should be visible in design toolbox. ...Show All
Visual Studio How to display a custom context menu in a custom node of the Team Explorer
I'm trying to display a context menu in a custom node of the team explorer but I can't manage it to work. I couldn't find any documentation neither examples regarding this particular condition. If I don't override the ContextMenu property nothing happens, but when I do, I got a COM Exception (Error HRESULT E_FAIL has been returned from a call to a COM component). Below follows some relevant code: ############################################################# CTC File ############################################################# CMDS_SECTION guidVsPkg MENUS_BEGIN guidCmdSet:MyMenu, guidCmdSet:0, 0x0000, ToolWindowToolbar, "NossoMenu", "NossoMenu2"; MENUS_END NEWGROUPS_BEGIN guidCmdSet:MyMenuGroup, guidCmdSe ...Show All
Internet Explorer Development Internet Explorer Toolbar (Menu Bar) disappeared after installing IE 7
I use yahoo as my homepage, when the "Get IE7 now!" appeared in the toolbar, I clicked on it and installed it. Big Mistake so far...Here's the problem, after installing my IE menu bar (toolbar) containing "File, Edit, View, tools, help" vanished and I can't figure out how to retrieve it or get it back. I have checked and it is not hidden behind another toolbar. Along with that, The IE blue bar at the top & small bars at the bottom contain no information of the URL (webpage) when pages are loaded. In the Yahoo toolbar, under the pencil icon- there is no standard toolbar listed anymore. Also my tabs disappeared from yahoo and under the toolbar options there no longer is a check box to "Enable Tabbed Browsin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Textured box not showing textures
Iv been through the "How to: Apply textures to 3D Primitives" tutorial but can seem to get textures on my box. Its simply renderet in a single color (seems to be a color from the texture). Any idears code: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace WindowsGame1 { /// <summary> /// This is the main type for your game /// </summary> partial class Game1 : Microsoft.Xna.Framework. Game { Effect ...Show All
SQL Server How to list all table without a primary key within SQL Server 2005 database?
Hi, All, Would please any expert give me any advice and guidance for how can we list all tables without any primary key within a SQL Server 2005 database Thanks a lot in advance for that. With best regards, Yours sincerelyd, You can also run USE <database_name>; GO SELECT SCHEMA_NAME(schema_id) AS schema_name,name AS table_name FROM sys.tables WHERE OBJECTPROPERTY(object_id,'TableHasPrimaryKey') = 0 ORDER BY schema_name, table_name; Please take a look at the FAQ in msdn2 for catalog views. The FAQ is at http://msdn2.microsoft.com/en-us/library/ms345522.aspx . It answers a lot of catalog view related queries. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you pronounce XNA?
Is it X-N-A or is it Xee-na I think the answer depends on how badly one wants to get punched in the head by his or her fellow developers... :P Since I value my cranium, I tend to stick with X-N-A. But if you're looking to raise the ire of your buddies, don't hesitate to go with Xena occasionally. :) ...Show All
.NET Development Custom settings types
I was wondering if it was possible to add custom objects the Type list on the Settings tab in the project properties dialog In other words, besides the built-in String, Int, Color, StringCollection, etc. classes, can I also add say an Employee object so I can access it via My.MySettings I have looked around but cannot find any examples or references that would point me in the right direction. Thanks. - Jason Johan, I apologize if I keep harping on this. Your help has been great. It seems that you response to point 1 and point 3 contradict each other. Point 1 says that the custom object will not show up in the designer. But then in point 3 you recommend putting the custom class in its own li ...Show All
