Chris D Jones's Q&A profile
Visual Studio Clean Reinstall Of VS
hi there. i just recently reinstalled VS2005 to try and fix a random error. the error was still occurring after the reinstall. ive since fixed the error which was registry related. i would like to uninstall VS again and this time do a completely clean reinstall. this means that i must uninstall VS and remove all the registry entries as well i guess. can anyone give me instructions on how to do a completely clean reinstall of VS thanks I guess removing the registry values you would have to do manually although when you uninstall VS 2005 (not the beta's) it will remove the registry keys appropriately. you may also wish to take a look at this: http://support.microsoft.com/ kbid=907965 ...Show All
Visual Studio Express Editions Visual basic printing question
Hi! I am a big noob at Visual Basic programming (started one day ago). Basicly what i need to to is a really small program which prints 12 different textboxes textbox_1 to textbox_12. What i have done is to manage to get a hang off how to print textbox_1 with the following code: Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds ...Show All
Visual Studio Express Editions Sql Database adding/updating/removing
Hi I know how to make an sql connection to a remote server and how to read data out of it, but know I want to know how to add, update or remove data from the database. Can anyone give me some examples of this please or give some basiscode of how to do it Thanks in advance. Tnx for the info. I found what I was looking for in your last link( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=728535&SiteID=1 ). Going to try it know and if I get an error or something I'm going to post it here. ...Show All
Smart Device Development hook Keyboard , to AlexY and any helper
Hi, Could anybody tell me please how to use Alex Yakhnin hookkeys class. http://blog.opennetcf.org/ayakhnin/PermaLink.aspx guid=84b95802-76d7-499c-b266-e2251ab15706 i want my application to detect any key pressed in the keyboard, even if the application was in the background. thanks in advance. A few things to note. This keyboard hook catches only the hardware keys, i.e. the SIP presses will not be catched. The vkCode member of the KeyBoardInfo structure that is returned as a parameter of the HookEvent contains an ASCII code of the key that could be converted to the char. But you will need to add a few more checks. Take a look at this link for ideas: http://www.experts-exchange.com/Programming/Programming_Languages/Vis ...Show All
.NET Development InfoTip Help!
I am attempting to create an InfoTip extension in C#. I have looked in many different places and have come up realtively emptyhanded. First off I am wondering if I have it registered correctly (.usc is the extension I want the tooltip to show under) the Default value of HKCR\.usc\shellex\{00021500-0000-0000-C000-000000000046}is the GUID of my class. From the documentation in MSDN I think this is correct. Second I wanted to know if my interface definitions are correct: [ComImport, Guid("0000010b-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IPersistFile { void GetClassID(out Guid pClassID); [PreserveSig] int IsDirty(); [PreserveSig] void Load([In, M ...Show All
Visual Studio 2008 (Pre-release) Animating Speed Ratio
I have a RepeatForever animation and I want to pause and resume (not stop and restart) it with a mouse click. I'd like some semblance of smooth easing on the pause and resume. I have achieved this by altering the SpeedRatio in the CurrentTimeInvalidated by using SetSpeedRatio. But I shouldn't have to do this. What I have is a second animation that animates the SpeedRatio of the RepeatForever animation when I need this operation. But the speed doesn't change. So in the CTI hook I looked at the SpeedRatio of the RF animation and it is animating, but the speed does not change (DP precedence thing ). So I read the value and then set it right back with SetSpeedRatio. It works. So, my question, is this a bug or as I stated a DP thing or so ...Show All
Windows Forms Invoke Design Time Editor from own code.
How to show default property editor from your own code. Problem is IWindowsFormsEditorService is provided only by property grid, so is there any other solution then to override EditValue sub and show your own form. Ok, let's make it more clear. Let's concive we have a button (some element that can recieve events) in design time. When we press it we want to get standart (not overloaded) component editor being opened (in design time) for some component present on the current form. ...Show All
SQL Server Regex oddness in Management Studio
Running 2005SP1 Development edition, Mgt Studio 9.00.2047.00. Regex replacements at beginning or ending of line does odd things. With the following lines: a b c d e f g h i j k l Putting the cursor to the left of the 'a' on the first line, then selecting to the end (including the l; the above blue reflects what is highlighted), then doing a replace of ^ with ' (replace BOL with quote) results in a 'b 'c 'd 'e 'f 'g 'h 'i 'j 'k 'l That is, it skipped the first line, even though it was highlighted and the cursor was at the beginning of that line. But the odder thing, and the one that's more annoying, is trying to replace end-of-line with something. That is, selecting all lines above again (after the first replacement has added th ...Show All
.NET Development Dataset and winodws application
Hi all i am doing a windows application for which i have taken a new dataset file in to the solution and i opened it in the designer view and added tables to the dataset .What i observed is in the backend it's generating huge amount of code. And i also did in the other way like taking a normal class file and create a dataset and add as many tables as possible which i can finish it in less code compared to above. What i studied is taking dataset and adding the tables directly results in "2-Tier Architeciture" and writing each table manually in our own class file results in "3 -Tier Architecture". My doubt is which would be better Dataset file or manually writing tables in the class file. It's quite ...Show All
Visual C++ reading output from command line
Hi Everybody, I'm writing a test monitor tool in VC++ using windows forms. My aim is to execute a command line tool and then read the output and display it as it goes in a text box in my form. I wanted to get your thoughts on what might be the best possible way to accomplish this goal. I was thinking of redirecting the cmd line output to a text file using ">" and then reading off the file. Any other ideas Thanks!! This is off topic for the Visual C++ General forum and has actually been addressed already in the .NET Base Class Library forum in the thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=63370&SiteID=1 ...Show All
Software Development for Windows Vista Drive letter access for DVD in Vista
I'm a software developer, and have an app that currently uses Roxio Drag-to-Disc on XP for drive letter access to DVD and CD media for write and read. It appears that Vista now contains this type of functionality built-in. Windows Explorer for instance can format a DVD with a UDF file system, and when ejecting a DVD, the user may close the file system, etc. How is this functionality accessed from a user mode app I've searched the SDK docs, but can find no mention of this. Hi BobN77, Vista does indeed contain support for the UDF file system (aka "Live UDF" aka "Packet Writing"). From a command prompt, you can use format.com to format the drive, and then the normal file APIs ca ...Show All
SQL Server the attributes of Fact Table could not be displayed when drill through?
I have a question about cube drill through. In BIDS (Business Intelligence Development Studio), I set drill through in the tab "Actions" And I add a new drill through action. "Drillthrough columns" is setting the displayed columns when I use drill through. I found that only attributes in the dimension could be displayed. How do the columns in the Fact table could be displayed thank Vladimir, The data type of Measure usually is numeric, right I have no idea What "text measure" is, Please give me more information about "text measure" . thank, ...Show All
SQL Server SA account (DBA System account) Granting Priveleges but SQL Server 2000 not applying them
I have been running a script in SQL Server 2000 as sa also as a Active Directory user who has administrator rights (I tested both approaches SQL Server then Windows Authentication) in Query Analyser which grants execute rights to the stored procedures within the database instance and Query Analyser does not give any errors when I run the script. I have made sure that each transaction has a go after it. I then return to Enterprise Manager, check the rights (I apply them to roles so that when we create another SQL Server user we just grant him/her rights to the role) and discover that the role has not been granted the rights. I seems to be occurring only with 2 of the procedures. Is there a known bug that might be causing this yours since ...Show All
Visual Studio 2008 (Pre-release) NavigationWindow - Memory/Perf Advantages?
When navigating between pages what are the pros and cons of using navWindow.Navigate(...) vs. navWindow.Source vs. navWindow.Content. Are there signifcant memory/performance advantages with any particular method I read that when navigating the following events occur... -Page2.Initialized <-- Are the GUI objects reinstaniated -Page1.Unloaded <-- What happens to the GUI objects Do they still exist -Navigated -LoadCompleted -Page2.Loaded It is the same with respect to journaling. But the navigation process as a whole is different--obviously, we need to go through resource loading to obtain the element tree for the page referenced by URI. ...Show All
Smart Device Development UPnP: problem with QueryStateVariable
Hello! I have a problem with the UPnP API on Windows Mobile 5.0 Pocket PC Emulator (Microsoft Visual Studio 2005)... My software is able to find devices and invoke their actions but some things don't work: 1) InvokeAction of an action with one (or more) output parameter: it returns an array with one (or more) elements but the type of these (VARIANT) element is VT_ERROR. 2) Same happens if I use QueryStateVariable (returned VARIANT has type VT_ERROR). void CMyProject::QueryStatusVariable(IUPnPService *pUPnPService, CString VariableName) { HRESULT hr=S_OK; TCHAR tszMessage[2048]; CString strVariable; BSTR bstrVariableName = NULL; bstrVariableName=VariableName.AllocSysString(); if (bstrVariableName! ...Show All
