GregMaxey's Q&A profile
Microsoft ISV Community Center Forums VBA registry interface
I would like to be able to write to and read from the registry given a specific address in the registry to write to. Ultimately, I want to be able to distribute a ms excel program with the understanding that it is a 2 week trial and I would like to enforce that in some way where it is not easily gotten around. I would also like to put a check so that the customer does not distribute the spreadsheet to other people. If there are other ways of doing this other than interfacing with the registry that would work well, I would be more than open to suggestions. To answer your first question, yes, it would be possible, but it's going to be a hassle. You'll need to create a separate "installer" program which installs the worksheet a ...Show All
.NET Development Compatibility problem using Microsoft.mshtml with .NET Framework 2.0
Hello everybody, I have an application that runs with no problem using the .NET Framework 1.1, in this application I'm using the Microsoft.mshtml component to host a browser in my Windows Forms. If you run the same application in a machine only with .NET Framework 2.0 (.NET 1.1 not installed), the following error message appears: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLInputElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the under ...Show All
Visual Studio Express Editions ComboBox: How to NOT display "Thumbs.db"
Hi! I'm a newbie to VB, so please excuse any stupid questions :-) I'm currently writing a program that needs to read a list of files in a directory, and then add it to a ComboBox (for selection by the user). My problem: The directory contains a "Thumbs.db" file. How do I NOT display that in the ComboBox Here's my code: ' Get list of files for the selection Dim files() As System.IO.FileInfo files = My .Computer.FileSystem.GetDirectoryInfo( directory ).GetFiles() For Each f As System.IO.FileInfo In files Me .ComboBox1.Items.Add(f.Name) Next Thanks Johannes Dim files() As System.IO.FileInfo files = My .Computer.FileSystem.GetDirectoryInfo( directory ).GetFiles() ...Show All
.NET Development get data from access and save it into a new excel file using vb 2005
Can some1 give me a small sample of how to do this My method is to automate it when i click a button, but upon clicking, i find that the new excel book does not appear in c:\temp. ...Show All
Windows Live Developer Forums zooming out Virtual earth
Having a small problem, trying to find a location using the code below function FindLoc() { map.FindLocation(document.getElementById('txtWhere').value, onFoundResults); } function onFoundResults(e) { var results="More than one location was retruned. Please select the location you were looking for:<br>"; for (x=0; x<e.length; x++) { results+="<a href='javascript:map.FindLocation(\""+e[x].ID+"\");'>"+e[x].ID+"</a><br>"; } document.getElementById('resultDiv').innerHTML=results; } when I locate it, it zooms it in far, I do not want it to zoom in. i tried the map.zoomout, but for some reason it will on ...Show All
Visual Studio Express Editions Spreadsheet in webBrowser access
I have a problem that I can think of two soultions for. I haven't got a clue how to do either of them though. I'm writing a program that gets a list of transactions from a website. The website saves the transaction in a CSV file. Solution 1 Directly download the file and read from it using StreamReader - I have used the WebClient method to do this but when it goes to the server, it is returned with the html code that diverts you to the login page. Obviously doesn't support direct linking. - I don't know how to auto download a file using the webBrowser control. If I navigate to it, I'm presented with the message box that asks if you want to Save or Open. If I save, it leaves the possibilty of the file ending up in the wrong directory so I'd ...Show All
SQL Server Is lineage more trouble than it's worth?
Very often during dev. I add processes that don't change the metadata of a data item (for example a new sort) yet the linieage id is changed. This causes lots of headaches down the pipe. If metadata of a data item is not changed in the pipe, why is the lineage id changed If lineage is not smart enough to figure out when some metadata was actually changed, should it be made smart enough Or optional Ken kenambrose wrote: Sort with "remove duplicates" unchecked. Wouldn't that be syncronous One row in, and guaranteed one row out No. SORT is always aynchronous. it has to be. It needs to know about all the data in order to sort it. Synchronous components work on a buffer at a ...Show All
Windows Forms Button to Form Communication
I have an array of buttons shown on my form. My buttons are of a custom type that inherits from Button. As is supposed to be, when I click the buttons, their OnClick method is called. I need to keep track of every two buttons that are clicked, such as a this button was clicked first, this one second kind of thing. How can I go about that Your button should not have behavior associated with it. It should behve like a standard control and good design dictates that the view must be separated from the behavior. Charles ...Show All
Visual C# decompress entire directory
Is there a way, using DeflateStream or GZipStream, to decompress an entire folder (hopefully all at once) Do I need to use a different zipping class that doesn't come with .Net 2.0 Hi, Alex Decompress Zip files: http://www.codeproject.com/csharp/decompresswinshellapics.asp Zip files within a folder: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1136953&SiteID=1 File decompress: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1069499&SiteID=1 Hope you can find the answer. Thank you ...Show All
Visual C# How to use methods from other class
I am trying to create object of class that i have in my project. But its giving me error saying namespace not found. if its complaining about a different namespace or namespace not found then this means that the class in question has a different namespace than your current namespace, so either: change the namespace of the class to be the same namespace as the project import the other namespace in your using declerations at the top of your current class file (the one you are trying to call the other class from with a different namespace) or use the full path, something like: namespace . Class theClass = new namespace.Class (); ...Show All
Commerce Server Commerce Server 2007 Performance Guide is now available online!
At long last, the performance guide for CS2007 is up on Microsoft.com for download at http://www.microsoft.com/downloads/details.aspx FamilyId=E79691F0-BE0F-40A6-940C-5D3A679C5526&displaylang=en . Enjoy! Hey Caesar, It looks like the tests were done with VSTS web test functionality. It would be really handy to have the web tests released for others to use. Is this something that can be done Thanks, Colin ...Show All
Smart Device Development Connecting PPC to Internet via Desktop PC
Hi, I have a pocket PC connected to a desktop PC(connected to Internet) through USB. Now, if I want to connect the PPC to Internet through the desktop PC, how can I establish it If the Desktop PC has internet connection the PPC should get it automatically. If you're using a proxy to connect thru the Desktop PC you will probably have to configure the PPC with the proxy settings. ...Show All
SQL Server SQL2005 database mailer problem
Hi there, Got a 2005 SP1 SQL box, with database mailer giving problems. In the sysmail_event_log is has 1) Exception Information =================== Exception Type: System.NullReferenceException Message: Object reference not set to an instance of an object. Data: System.Collections.ListDictionaryInternal TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32) HelpLink: NULL Source: DatabaseMailEngine StackTrace Information =================== at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID) at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.SessionManager.GetAccount(Int32 accountID) at Microsoft.SqlServer.Management.SqlIMai ...Show All
Audio and Video Development Playing sounds from markup
How would one go about playing sounds in markup Specifically, I want to trigger audio from a focused state without passing an event to script. I understand that I can create a wav object, but how is the object sent to Player.audio.effect in markup Thanks! Is the player unabled to play sound effects if the disc isn't AACS protected I'm accessing the .wav file from the script it works good in the emulators but not on the real player. Using 1536kbps 16bit 2ch 48khz PCM wav's and no luck also not with a the mono version. ...Show All
.NET Development passing string to my stored procedure
i have the following function in my vb.net application and im passing 2 variables as strings Function SLP_RPT_GetDistricts1( ByVal p_tsDate_ch As Date , ByVal P_bc_ch As String ) As IDataReader where tsDate_ch = 1/1/2007 & P-bc_ch= 21 and my stored procedure is CREATE PROCEDURE SLP_RPT_GetDistricts1 @p_Date CHAR(25), @p_BC_ch CHAR(2) AS BEGIN SELECT DISTINCT District_ch from SL_RPT_Geography where (start_sd >= @p_date) and (bc_ch = @p_bc_ch) and (isnull(end_sd,getdate() )< getdate()+1) order by district_ch END GO but it's not working and i keep getting that tsDate is not a parameter of the procedure.... but when i insert the actual values in my procedure it works and ...Show All
