wyatt blake's Q&A profile
Visual C# Direct visual inheritance with richt click
If I want to inherite a WinForm, I have to add a new item, select Inherited Form, give it a Name, and select the form tho inherite. is there a shorter way to do it I think, that if I right-click a WinForm in the solution explorer, it could be a menu option to direct inherte this form... There is no feature today but that is a good use for add-ins. Add-ins aren't that difficult to write. I believe this is within the realm of possible with add-ins. If not there is the VSIP as well which can definitely do it. Maybe you could write it and then post it for everyone to share Michael Taylor - ...Show All
Visual C++ formview and dialog create fail after some time
My application is a MDI ,devloped by vc++6.0, It is behave good at beginning. after some time It fails to create formview that have activex control created by vb 6.0 .when trace into the mfc ,found the after CoCreateIntance and get the IPersistStreamInit interface ,call it's load method failed .after modify the control ,found that if have image the load from .ico file or have edit textbox control ,the ocx always fail.otherwise it succeed. and found that the dialog created with mfc domodal also fail if the dialog have edit control . I feel my application has leak some resource in on_updateUIcommand process function. but I don't know what reso ...Show All
.NET Development How distribute Configuration Manager?
Hi all, I need to distribute .Net framework 2.0 configuration manager. This tool is not included in redistributable file but only in sdk. Is it posible to distribute only Net framework 2.0 Configuration mmc Thanks. Official MS comment found here: http://msdn2.microsoft.com/en-us/library/2bc0cxhc.aspx If anyone's bored enough to figure out which CLSID's etc to register, i'd love to know two. ...Show All
Smart Device Development Forms closing despite OnClosing being overridden (usually on wake from sleep)
I've got some forms that I want to keep loaded on the PPC, and as a result, I've cancelled the OnClosing event that is caused by the WM_CLOSE message as Windows CE attempts to free apps to free memory. This seems to work well when I switch apps etc. The WM_Close is sent to the app, and the WM_Close is cancelled. The problem I am having however is when I sleep the device and power it on at a later time, some of the forms I have loaded, unload. Is it possible that a more hostile message is sent to the app when resuming the device which causes some of these forms to unload (wm_destroy) Thanks again! Appreciate any help! Well t ...Show All
Visual FoxPro how can i get a array from function/procedure as return parameter?
i wrote one function ,i put the values in a array for return,but i can't get it . for instance. function a() return arrayname endfu b= a() hi Stuart i can get the array now.but when i complie the program,it told me "Unknown LACFGSETUP - Undefined".it don't know the array i used to get the return value.So how can i fix it ...Show All
Visual Studio Team System Serious problems with merging files
We have found serious problems with working on TFS source control with few branches. Many of changes occasionaly lost after merging files. I found exact description of this problem at http://blogs.conchango.com/jamesdawson/archive/2005/12/20/2518.aspx and it looks unbeliveable that TFS have so serious problem. Could be this situation solved in some way For us could be already helpful to switch off automatic merging completely (until fixing this bug) if it is possible. Could anybody help me Thank you, Richard! BTW: When approximately RTM planned to be released ...Show All
Windows Forms Use Selected Property
I added a row to the DGV. What are the commands for moving Focus to the new row If I want to move focus to another row in the DGV what must I do I'm using vb.net primarily and I also know C#. Hi In the case of editing a cell, this will make a selection but will not focus (ie. put the cursor) on /in the cell for editing. I cannot find a .focus() method on the Cell object. It would be nice if there was one. Is there a way to set focus on a cell for editing programmatically Thanks ...Show All
.NET Development .net generic class or function parameters.
I don't understand why is this not possible to pass an integer parameter to a generic class or function as for c++ templates. It seems to me that it's far easier than allowing type parameter resolved at runtime. Could someone please explain me if there is some practical reason for this and if there's a workarround for doing the same as templates but at runtime with integer parameters. thanks, Aurelien. The CLR's generics implementation was designed to model generic programming concepts. C++'s templates enables some generic programming, plus meta-programming in some interesting ways by leveraging the f ...Show All
Visual Basic where's the VB Snippet Upgrade add-in?
it was mentioned in the free book (...upgrading VB...), but I cant find it anywhere David - I'm looking at the latest build, but the code upgrade tool should be there in the Beta 2 build as well. As noted by Dman1, you must have a code file open to see the command. Have you tried that - Steve Hoag ...Show All
Visual Basic Function CInches
Hi i was using this code in MS Excel and was working fine but i need to use it in a small application i'm making in Ms visual studio 2005, if any one can help thanx. '\ This function converts a string like 5'-6 1/4" to a decimal number '\ of inches that can be used in calculation. Function CInches(Text_string_containing_values_for____Feet_Inches) '\ These values are used to examine the input string, one character at a time Dim vVal As String '\ shorter name for input string Dim i As Integer '\ counter to step through each character in input string Dim vChar As Variant '\ temporary storage of each input string char ...Show All
.NET Development Disabling Command Window - System.Diagnostics.Process
Using the class System.Diagnostics.Process proc.StartInfo.CreateNoWindow = true ; proc is a process that runs a batch file. This "CreateNoWIndow" command DOES NOT actively disable the command shell window. Is it possible to run a batch file process in the background without having the Command Window from being displayed Using .NET, how can I run batch commands in a hidden mode without it reporting status or errors to the stdout or the command shell window Thanks! This worked for me: Dim proc As New Process proc.StartInfo.CreateNoWindow = True proc.St ...Show All
SQL Server Error 18452
Hi, If I connect to SQLServer Express via Windows Authentication it works fine. But if I use SQL Server Authentication it doesn't work with a new created user and sa (with a new password) too. I turned mixed mode on, registry key HKLM\Software\Microsoft\Microsoft Sql Server\MSSQL.1\\MSSQLServer\login has the value 2 and all ports are set to 1433 but there is still error 18452. Any suggestions Restarting the server process was not enough. I had to restart windows and now it works. Thank you. ...Show All
Visual Studio Express Editions Where's the "e-book"?
As one of my "Registration Benifits" listed, I see: E-book - Download an electronic version of MicrosoftR Visual C#R 2005 Express Edition: Build a Program Now! from Microsoft Press I've searched High and low -- Where do I find this hi, if you registered your product you can check this link https://connect.microsoft.com/downloads/downloads.aspx SiteID=40 hope this helps ...Show All
Windows Forms playing avi files on C# form
Hi, i need help on how to play an .avi file on my C# form. I have a panel on it that should be the owner (panel1) and a button that should play the movie. Please help me with the code and if it requires any References, please copy their name here. I am a C# newbie and i need some help. Thanks. You can use DirectX to do it. First you'll need to download the DirectX SDK, which you can find here http://msdn.microsoft.com/directx/sdk/ In your c# project, add a reference to Microsoft.DirectX.AudioVideoPlayback You can then use the following code to play a movie //create the video Microsoft.DirectX.AudioVideoPlayback.Video v ...Show All
Visual C# Comparing Image Fields - Access and SQL
Hi, I am writing a console app to import data from an Access database into a SQL Server 2K db. In the Access DB every row has an image file in it and so I need to compare this image to one stored in a lookup table in SQL to return an ID so the new row in the SQL Db just has an id rather than an image for every row (Often multiple duplicates too) Can anyone give me any help in what is the best way to do this I have looked at doing it in the Stored Procedure, by passing in the Access Image as a Byte Array and then comparing with the image field in SQL but cant get the syntax right. Alternatively Ive looked at doing it through code by the foll ...Show All
