TommieJ's Q&A profile
Visual Studio Express Editions Question in outputing a file
I would like to output file to My Documents on any machine. What location should be used after output.open(" "); Thank You in Advance This is not a Visual C++ issue, You need to look at Windows APIs ...Show All
Visual Basic AccessKey for Custom Button Control in VB 2005
Hi all, I have a custom button Control converted from VB 6.0 to VB 2005. I need to know how to set accesskeys property for the custom button control. This is the error i get in the converted project. 'UPGRADE_ISSUE: UserControl property UserControl.AccessKeys was not upgraded. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm keyword="CC4C7EC0-C903-48FC-ACCC-81861D12DA4A"' Thanks, Yes, you can use MyBase.OnClick() instead of Me.OnClick() and in fact it is preferable if you have not overridden the OnClick() method. If your custom button Inherits Control, then the Click event should be fired. Where did you place the code It should have been placed in the Buttons class. The following i ...Show All
Windows Forms Text Size
How would you set the size of the text becuase I have this: RtextboxUC thisrichtextbox = GetCurrentTextBox(); thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); but I get 2 erros with the thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); 1:The best overloaded method match for 'System.Drawing.Font.Font(System.Drawing.Font, System.Drawing.FontStyle)' has some invalid arguments2:cannot convert from 'object' to 'System.Drawing.FontStyle' Thanks :) thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, Convert . ToSingle ( TextSizeCombo.SelectedItem)); ...Show All
Visual C++ convert type String^ or char * to double vc++ 2005
hello re: convert type String^ or char * to double vc++ 2005 how about use istringstream #include <iostream> #include <sstream> #include <string> #include <stdexcept> inline double convertToDouble( const std::string& s) { std::istringstream i(s); double x; if ( !(i >> x) ) std::cout << "Bad conversion" << std::endl; // throw something out here return x; } int main(void ) { std::string s( "5.5226802238731452E+000" ); double x = convertToDouble(s); std::cout << x << std::endl; return 0; } Bite ...Show All
Silverlight (formerly WPF/E) the path mini language
Create a Path Object with the path mini language. like this: Path.Data = "M0,0 100,0 100,100 0,100z"; Is there a method to acquire Data value "Path.Data" return "PathGeometry" Object. Can I get value of Points Not in the December CTP you can't enumerate the points. We are looking to enable this in a future CTP. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Windows Forms Windows Forms UserControl in classic ASP page
Hi Can I create a Windows Form Control to use in a classic ASP page Thanks ...Show All
Software Development for Windows Vista Function Discovery
Where can I find a working sample of using Vista Function Discovery The sample in the latest SDK does not build. Thanks, Kevin Here are the modification in aim to use FD samples : In FunDiscovery.h : Replace all instances of the line __RPC__in_opt IUnknown *pIUnknownForQuery, with RPC__in_opt FDQUERYCONTEXT fdqcQueryContext, In the original version of FunDiscovery.h, there are three instances of this statement; one at line 61, one at line 69, and one at line 79. In FunDiscovery.cpp :Replace all instances of the line IUnknown *pIUnknownForQuery, with FDQUERYCONTEXT fdqcQueryContext, In the original version of FunDiscovery.cpp ...Show All
Windows Forms problems with the webBrowser control and focus
Hi, I have a form which consists of a webBrowser control (over the whole form) and a listBox and a button, but those 2 are hidden on start. I'm using them for debugging and I want to toggle their visibility with a keyboard shortcut (alt+ctrl+X in my case). So I'm using the keyDown event of the form and keyPreview is set to true. Everything works as intended until I click somewhere into the webBrowser control (i.e. it gains the focus). I've tried alot of things, like using the gotFocus event on the webBrowser and then using this.Focus() to give the focus back to the form, but nothing work. It seems like the webBrowser control doesn't want to give the focus back.. I already did alot of googleing and also searched here but I haven't found any ...Show All
Windows Live Developer Forums Exception while sending QueryString
Hello, i am facing a problem while passing queryString as coordinates to MapCrunch page. i am getting an exception about object null in my xml. whereas if i don't pass querystring it works perfect. function LoadPage() { var x=getQueryVariable( "x" ); var y=getQueryVariable( "y" ); var zoom = getQueryVariable( "zoom" ); SetMapSize(); window.onresize = SetMapSize; map = new VEMap( 'Map' ); map.LoadMap(); map.SetMapStyle( 'h' ); layerList = MSR.CVE.ImportLayersFromAnchorHRef( "CrunchedLayers" ); ////////////////////////////// ERROR ///////////////////////// MSR.CVE.StartAutomaticLegends(map, layerList); var permalinkProv ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to get XNA Game Studio for VS2005 Team Suite Edition????
Where to download it If you want to develope XNA games/apps for Windows, you can install XGSE to get the XNA stuff onto your system. You can then add the XNA as references in your own C# projects. You can uninstall XGSE afterwards and continue to dev XNA games for Windows. If you want to develope XNA games/apps for Xbox, you *have* to use XGSE. If you want MS to support using XNA Game Studio with other versions of Visual Studio 2005, please cast your vote here: https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=190037&SiteID=226 ...Show All
Visual Basic How do I launch my program on windows startup ?
hey, How do I launch my program on windows startup Please provide the code You can either add a shortcut to your program to the "Startup" folder on the start menu or add an entry to one of the following registry keys: HKEY_CURRENT_USER\Software\Microsoft\CurrentVersion\Run HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\Run -Scott ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this error, and changed the connection string for the database file that had worked before to User Instance ...Show All
Software Development for Windows Vista IPrintCoreHelper Interfacing - Help needed
Hi, Our team was trying to use the IPrintCoreHelper Interface in our filter pipeline code. Our code is unidriver based.We tried to use it in the similar way as shown in the SimplePipelineFilter example in WDK6000. On debugging the StreamFilter code using WinDBG in the SimplePipelineFilter we found that it failed when it called the QueryInterface in InitializeFilter. The error code returned was hr = 0x80004002 : _E _NOINTERFACE : no such interface supported . Also we noticed that there does not exist any symbolic name for IPrintCoreHelper property in the Print Pipeline PropertyBag and the GetProperty method passed it as a string. Has anybody come across the same observation Help needed on resolving this issue. The version ...Show All
Visual Studio Express Editions Treeview and Imagelist Problem
I am trying to use a treeview and imagelist. I added 3 images to the imagelist. I have set the treeview's imagelist property to the imagelist I added to the form. Here is some sample code for when I programmatically add nodes to the treeview. nd = TreeView1.TopNode.Nodes.Add("", reader.ReadString, 0) Then I tried: nd.SelectedImageIndex = 1 I keep getting the following error, and it never points to the offending line of code. "An error occurred creating the form. See Exception.InnerException for details. The error is: Index was outside the bounds of the array." Nope. This isn't working either. This one completely stumps me. I've researched it and I have done everything right. Can some ...Show All
Visual Studio Express Editions SQL querry between two dates
Hi, I need some help with this please. I have a database table which contains customer orders. I am trying to code my SQL select statement to: 1) Only return records where the record orderdate is within the last 30 days 2) Between two dates, selected from the datepicker control. With regards to issue 1, I could fill a table with all the records for the account in question and then for each record do a datediff between the records order date and the current date to determine if the number of days is within 30 days. If yes then add this record to a temp table and then set this table as the datasource for the datagridview. There must be a more efficient way With regards to issue 2) ...Show All
