RobGibbens's Q&A profile
Visual Studio Express Editions Getting AdventureWorks sample database to work
What a pain getting started. Many of the samples use the above mentioned database for sample apps. I installed the sql sample for seeing functionality, but the apps don't work. I installed the SQL2000SampleDb.msi but I can't open it in the Database Explorer nor the SMSSE (Microsoft SQL Server Management Studio Express) utility. Any help - video especially - would be appreciated to simplify this process and get started using the sample database examples for 101 samples. Thanks in advance. Have you tried the databases and samples from here http://www.microsoft.com/downloads/details.aspx familyid=9697AAAA-AD4B-416E-87A4-A8B154F92787& ...Show All
SQL Server MSBUILD (or something) for command line deployment of CLR Assemblies in SQL 2005
VS2005 has a deployment feature that uses a database connection string to automatically connect to SQL2005 and create the assembly and procedures within the IDE. I am unable to access this feature from MSBUILD or any other command prompt utility so far which is a requirement for our internal build procedures. I am looking for the ability perform a command line deployment of a SQL CLR project and pass in the proper server and database name also on the command line (or config file if necessary). Does this functionality exist out of the box If not, any suggestions on how to accomplish this -Ben Have a look at SQLCLRProject . Thi ...Show All
Visual Studio Express Editions Searching for Text
How can I search for Text in TextBox or in Rich TextBox like that Find button in notepad and Wordpad Please help in this and tell me if it just code or if there is a tool to do that. Thanks. Use the 'Contains' or the 'IndexOf' methods of the Text property of the textbox or rich textbox to search for strings. 'Contains' will return a boolean value indicating whether a string contains a particular substring. 'IndexOf' is more versatile & returns the index of the substring. ...Show All
Visual C++ CTabCtrl question!
I got MFC CTab control in the dialog. It is inserted using resource editor, and bunch of other controls are pasted onto it. In the OnInitDialog() function tab is extended like this: This notification is well documented: http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/tab/notifications/tcn_selchange.asp frame=true I directly see no problem.But why do you delete the last item. Just use SetItem and change the text of the last item and add a new one. ...Show All
.NET Development <msxsl:script> issue
Hello, I'm using the Data view web part for SharePoint where it randomly takes one quote from a list and displays that quote. I'm recently realized that microsoft extends script usage for xslt using the <msxsl:script> tag to incorporate JScript. This is the code that I've created: <xsl:stylesheet xmlns:x=" http://www.w3.org/2001/XMLSchema " xmlns:d=" http://schemas.microsoft.com/sharepoint/dsp " version="1.0" exclude-result-prefixes="xsl ddwrt msxsl" xmlns:ddwrt=" http://schemas.microsoft.com/WebParts/v2/DataView/runtime " &nb ...Show All
Smart Device Development Label Events - Need to trigger something when a Pen touches a Label
Hi all, I need to have the ability to be able to open up Form's on my application when a user presses a Label with a Pen (is this possible - is there an event in the Label properties to do this ) I know I can use a button, but I have designed my app with Labels now. Thanks Tryst I don't believe Label implements click events ... why not just replace your labels with the appropriate control how many Labels could you possibly have that need replacing you're dealing with a 320x320 or less screen I would imagine ... ...Show All
Visual Basic Emergency need of a script
My company has recently decided to change their ip scheme completely. Normally this wouldn't be too bad for a desktop tech, however, our initial policy was to set every user up with a local tcp/ip based printer. We are now configuring all of our printers on a print server, but for the 100's (and I mean 100's) of users that have locally configured tcp/ip printers this ip changeover is going to be a support nightmare. I've seen many scripts to add/delete printers with a .vbs file, but here's my problem. I need a script that will read a specified host machine and find it's locally configured tcp/ip printers. Then take that information and co ...Show All
Windows Forms Disabling visual styles for a specific form/control
Hello! Is it possible to disable XP themes for a specific form or control in .NET Framework 1.1 I am developing a custom control and I have no control over the user (if he calls Application.EnableVisualStyles() or not) but I'd still like to be sure that my control is displayed properly. Best regards! Marcin With a little Interop it's no problem. VB example follows: Friend Declare Unicode Function SetWindowTheme Lib "UxTheme.dll" _ ( ByVal hwnd As IntPtr, _ ByVal pszSubAppName As String , _ ByVal pszSubIdList A ...Show All
Windows Forms DataGridView with Unbound Columns
My DataGridView has a couple of unbound columns in it. When I call EndCurrentEdit on the Master table, it causes a refresh of the data in my DGV which means that I lose all of the data in my Unbound columns. Some of this data comes from my database so that means a bunch of unnecessary calls to my database every time EndCurrentEdit is called. Right now, I call EndCurrentEdit in the following places: - DGV_Enter - Save - Cancel Is there a way to stop the DGV from updating itself when EndCurrentEdit is called How are others handling this type of situation Thanks in advance!! ...Show All
Visual Basic How to show a filename without showing filepath
I want to display a filename without displaying the path that it is on. Example: Instead of: C:\Program Files\somefile.txt Show: somefile.txt System.IO.Path has a few handy methods for retriving bits of paths. Dim filePath As String = "C:\Program Files\somefile.txt" Console.WriteLine(IO.Path.GetFileName(filePath)) ...Show All
Visual Studio 2008 (Pre-release) WPF and DirectX and what's possible
I'm curious if anyone has a link detailing exactly what you can and cannot do in WPF vs DirectX. For example: If WPF is a thin wrapper over DirectX and I don't find what I'm looking for, will I be able to access the DirectX COM interface and get access to what I need and: I assume shaders aren't supported in WPF, so again, will I be able to hook up the plumbing for shaders, or will WPF have the same fate as the fixed-function pipeline (Where the shading algorithms are fixed making it difficult to create unique looking 3D.) Is 3D in WPF going to be restricted to diffuse/specular lighting Regards. MS has st ...Show All
SQL Server Cannot connect to a named instance of SQL 2000 or 2005
Hi, I am struggling connection to a named instance of SQL 2000 (SP4) from another machine but without any success. I get an error message saying that the server does not exist or access is denied . The security configuration in this named instance is the same as the default instance (also 2000) and the remote machine can connect to it successfully. I also configured the aliases in Client Network Utility in the client machine and set the server (machine) name and the port number used by the instance - but no help. I use osql and Query Analyzer to connect to it, but I cannot connect by any o ...Show All
Visual Studio Team System Team System Terminal Server Session
Dear Team system Team, I am really interested in try to test the VSTS, however my 512 MB PC doe snot match the requirements for the database tier(with its warehouse) and the application tier. So It would be a good idea that you do what you did during the alpha of VSTS, you provide us with some terminal server user account so we can fully use and debug VSTS, I remember that it was for 30 testers and it was like a queue, the one that did not use the product enough just lost it place. Diwik <BetaID=460332 /> We will have a Hosted Experience available, certainly by the time we ship the product. It's unclear if we'll be able ...Show All
SQL Server using string[] as a data type in table definition
Hi, How can I use a data type like : string[ ] to define a column in my database that is connected to my C# project Thanks, Aya. You can't. First of all, string is a .NET type, not a SQL Server type. The equivalent SQL Server type is VARCHAR. But now you have another problem, as SQL Server does not support arrays; there is no such thing as VARCHAR[]. What you need to do is model your data properly using data modeling rather than object oriented modeling techniques. 'Has-a' relationships are modeled using foreign keys ...Show All
Visual C++ Visual Studio 2005 MFC Applications on Windows 98
Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message. Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to terminate it in an unusual way. Please contact the application's support team for more information. I tried with Express Edition and Windows Forms it works in windows 98. Thanks, ...Show All
