Beast Forever's Q&A profile
Windows Forms Shell Extension Context Menu in C# strange error.
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to the context menu MENUITEMINFO mii = new MENUITEMINFO(); mii.cbSize = 48; mii.fMas ...Show All
Visual Studio Express Editions tabcontrol focus
hi everyone, im working on a new project where I have a tabcontrol and two tab pages. on tabpage1 i have a rich textbox for the user to enter whatever text they want, then on tabpage2 i have a webbrowser. in my menustrip I have code set up so that when the user clicks the homepage menuitem the webpage loads in the webbrowser on tabpage2. my trouble is im trying to get tabpage2 to focus before the site loads but it wont focus. any ideas Thanks! michael ' Button1 or your menu item click, same concept Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate( "http://www.cnn.com" ) TabContro ...Show All
Visual Studio Tools for Office starting word
hi, i need a short stand alone application, that starts word, if it isn't started. please, could anybody help me VSTO cannot be used to create standalone applications that start Word if it isn't started. VSTO is document-specific technology: the user opens the document to work with the customizations. Please follow the instructions given in my previous answer. In order to maintain organization in the forum, I'm merging this thread with your previous posting. ...Show All
Visual C# Edit a string?
I would like to edit a string but I am having a little bit of trouble doing it. For example: string Mystring = "test\r\n"; I would like the string just to read "test". how can i cut the last 4 chars off Try String's Trim() method which will remove any leading or trailing whitespace characters. MyString = MyString.Trim(); ...Show All
SQL Server Can't access SqlServer 2005 using JDBC
Hi; I can access SqlServer 2000 fine, but not SqlServer 2005. My client is on Windows XP and SqlServer 2005 (dev version) is on Windows 2003. When I run I get: Error: net.windward.datasource.DataSourceException: JdbcDataSource could not ope n jdbc:sqlserver://T1-Databases;databaseName=AdventureWorks;integratedSecurity=t rue; net.windward.datasource.DataSourceException: net.windward.datasource.DataSourceE xception: JdbcDataSource could not open jdbc:sqlserver://T1-Databases;databaseNa me=AdventureWorks;integratedSecurity=true; at net.windward.datasource.jdbc.JdbcDataSource.<init>(JdbcDataSource.jav a:1030) at net.windward.xmlreport.RunReport.main(RunReport.java:165) Caused by: com.microsoft.sq ...Show All
Windows Live Developer Forums The issue concerning the multi - people game develpement on MSN
Can we develope the gane for 3 people by MSN like the pokergame, to play in turn I need some help to slove this problem Plz~~ ...Show All
Windows Forms Uses Business Objects in Windows Forms App
Hi all, I am developing Windows Forms apps that make use of several business objects/classes that need to be alive for long periods throughout the application live. Is the best way to do this to have a static Global class that then contains sub-classes which are the business objects I can only see Global classes (statics) as the way to go as declaring the classes on teh forms means they will only be alive for the live of the form, which is not what I want. Is this the right way, or is there a more elegant way of doing this other than declaring static classes Thanks in advance. Hi, You can either have a static class which contains collections of business object or use the singleton pattern to have a unique instance of a this data ...Show All
.NET Development configuring proxy settings
Hi, im trying to add a reference to a web application in visual studio 2003, every time I try to do this i get the message about my proxies not being configured for web discovery. I 've gone to Internet explorer > connection > LAN settings, and I unselected the automatically detect settings check box. I then checked the use a proxy server for your LAN what I need to know is what do I enter for the address and port. thanks. ...Show All
Visual Studio Error
Hi, I just installed Visual Studio 2005 on Windows x64 and when I open it up it keeps coming up with the error: Class not Registered. Looking for object with CLSID: {00BB2763-6A77-11D0-A535-00C04FD7D062} I've tried doing some searching and it seems thats the AutoComplete class but I'm not sure and I dont know what to do so I'm posting here. Thanks for any help. I am having the exact same problem. I am running Win XP x64. I'm not going to reinstall windows. I would really love to find a fix for this. I find it odd that I have no problem with Visual Basic 2005 Express at all. ...Show All
SQL Server SSMS default database report error on export to excel
Hi all, Recently started using, and loving, some of the default reports provided by the SSMS. My particular favorite at the moment is on Database, Object Execution Statistics. Really nice for reviewing what is running hot on the server! Right clicking on these reports gives the option to export the report - either to PDF or to Excel. While PDf is great for the management report, I want it out to Excel, so I can do some ordering, etc. Whowever, I get and error when I try to export the excel: ERROR An Error occurred during local report processing. An Error occurred during rendering of the report. An Error occurred during rendering of the report. Destination array was not long enough. Check destIndex and length, a ...Show All
Visual C# InvalidActiveXStateException was unhandled- MSChart control 6.0
My code is, AxMSChart20Lib.AxMSChart chart = new AxMSChart20Lib.AxMSChart(); chart.Title.Text = "My first chart"; this.Controls.Add(chart); When i use this code, i get this exception, "InvalidActiveXSateException was unhandled" Exception of type: 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. Can u tell, how can this be corrected To get rid off that exception, Just add the control first with your container before using any of it's properties or methods. AxMSChart20Lib.AxMSChart m_objChart = new AxMSChart20Lib.AxMSChart(); this.Controls.Add(m_objChart); m_objChart.Title.Tex ...Show All
SQL Server How to get "Current Week" details in MDX query
We are trying to migrate TFS (RC) warehouse report to TFS (RTM) warehouse. My query in TFS (RC) is using “[Current Week]” for getting the current week details. SELECT NON EMPTY {([Measures].[Current Work Item Count]),([Measures].[tasksendedthatweek]),([Measures].[tasksactuallyendedthatweek]),([Measures].[tasksactuallystartedthatweek])} ON COLUMNS, lastperiods (5, strtomember ( ' [ HP_Apprise_PM_Task_StartDate1].[Year Week Date].[Week].[Current Week] ' )) on rows FROM [Current Work Item] where { strtoset (@TeamProjectTeamProject)} The above query is failing in TFS (RTM) reporting (its not giving any error, but am not able to get the data). When I replaced “[Current Week]” with the specific Week date, am able ...Show All
Game Technologies: DirectX, XNA, XACT, etc. your first game!
Hi, just wanted to express my views on the 'my first game' section... guys, this is a waste of time. please don't do things like this in future. it explains nothing, it teaches nothing. it just lets me copy and past a load of code and then marvel at what the program does. you may as well just give us the file and say look what we did. It's not all negative. the tutorials on visualbasic express were wonderful. I couldn't believe at how insightful they were. is this done by the same people well thats my feelings on that anyway. if your gonna do any kind of tutorial, take some tips off the visual basic ones. and if your gonna ask us to copy and paste code, make it small chunks, and describe what the commands are doing. othe ...Show All
Internet Explorer Development Caching policy in IE
How does the browser behave when the cache is full Does it delete the cache periodically Or Is it a FIFO process trigerred only when a new object(say image) has to be cached IE has a scavenger process which clears outdated items as the cache fills up. The clearing algorithm is non-trivial, but basically, it removes expired items and not-recently used items first. I wrote a bit about caching here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwebgen/html/ie_introfiddler2.asp ...Show All
Visual Basic Ctrl-C and Ctrl-V don't work...
I seem to have globally lost the Windows standard Ctrl-C (copy) and Ctrl-V (paste) functionality between the text boxes in my application. Their content is copied from, but not bound to, a database table. It's almost as if the application/solution itself has "a switch turned off" somewhere. Where should I start looking please Any ideas The textboxes are nothing clever, and their Read Only properties are left at the default "False". Thanks. (VB 2005 Express edition) Did you change the ContextMenuStrip property I believe the TextBox gets this functionality from the default ContextMenu. Tony ...Show All
