Bob.H's Q&A profile
Windows Forms Excel in the WebBrowser control
Hello, I am using .NET 2.0 Windows Forms. There is a form with a webbrowser control. I navigate to an Excel spreadsheet and the webbrowser control opens the spreadsheet "inline". All is good until I try to close the form. The Excel process appears in the Task Manager for sometime after I close the form, so it's not possible to clean up the Excel file that I viewed in the webbrowser -- when I try to delete the file, I get The File is Used By Another Process error. Here are my questions: Is it possible to issue a Close command to the Excel instance that is hosted in the webbrowser control Something along the lines of ExecWB that was available in the ActiveX version of the WebBrowser control. Is it possible to get the ...Show All
Visual Studio Tools for Office How to figure out what my problem is...
Then maybe I can fix it! ;) Ok, I'm getting the following error when I try to open a customized document. [begin error] Value cannot be null. Parameter name: type ************** Exception Text ************** System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) at System.Xml.Serialization.XmlSerializer..ctor(Type type) at Microsoft.VisualStudio.Tools.Applications.Runtime.AppInfo.CreateCachedDataObject(IAppInfo appInfo, String id, String dataType) at Microsoft.VisualStudio.Tools.Applications.Runtime.AppInfo.CreateCachedDataObject(IAppInfo appInfo, String hostItem, String id, String dataType) at Microsoft.VisualStudio.Tools ...Show All
SQL Server How do I add 1000+ New Users to ASPNET_DB?
Ok some company has handed me this .xls file containing a 1000+ users -- their emails (which are to be their user names), and their passwords. Both are in plain text format. I want to add these users to the ASPNET_DB, with the condition that the passwords and userids are encrypted, as they are in the table. How should I do this Thanks very much. The encryption should be in a client side form. You don't want to encrypt a datatype on the DB end and attempt to decrpt it for display. Create the Table as normal with both the username and password fields as varchar's. Use the import/export wizard to dump it in. Encrypt the text box control on your form when entering. < input id ="Passwo ...Show All
.NET Development XmlDoc vs XPathDoc
I would like to know if there is a significant perfomance difference between the two objects XmlDocument and XPathDocument and if possible some sample code how to test it. Thank you very much. The XPathDocument class is optimized for XPath/XSLT processing. Always prefer XPathDocument for read-only access to XML documents. Use XmlDocument for read-write DOM operations, or if the XPath data model is not sufficient for you. (For example, you need access to CDATA sections, entity nodes, etc., which are not a part of the XPath data model.) Also you may find this article interesting for you: Improving XML Performance . Best regards, Anton ...Show All
.NET Development I need help with warning messages
VB.NET 2005 I received the following warnings when I did a rebuild. Warning 1 At least one of the arguments for 'IasHelper.Process' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. BHRmain Warning 2 At least one of the arguments for 'IRecvRequest.Process' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. BHRmain Warning 3 The type library importer could not convert the signature for the member '_IAS_OCTET_STRING.lpValue'. BHRmain When I click on one of the messages, it does not take me to a location in code. I was adding code to the form.ac ...Show All
Community Chat ideas for teh l33tn355 that is vista
hey-o!i gotta question, if you could do something to vista that would make it even cooler (if that even is possible), what would you do i'd animate the little windows pearl so that when you moused over it, it did something interesting~!!what would YOU do Yeah. Making a nice UI is tough work--it takes many person-years to get it right, especially as standards are held high (nobody wants a GUI that is no more productive than one created 10-15 years ago). That's why I asked for examples, to see whether this linux claim really is substantial. ...Show All
.NET Development UsernameTokenSecurity Exception: SecurityFault: The security token could not be authenticated or authorized
Hello, I'm trying to implement Direct Authentication with UsernameToken in WSE 3.0; I followed the sample avaible in Web Service Security pdf file (from Microsoft Pattern & Practices). I got this message when run the winform client application: Microsoft.Web.Services3.Security.SecurityFault: The security token could not be authenticated or authorized en Microsoft.Web.Services3.Security.Tokens.UsernameTokenManager.OnLogonUserFailed(UsernameToken token) en Microsoft.Web.Services3.Security.Tokens.UsernameTokenManager.AuthenticateToken(UsernameToken token) en Microsoft.Web.Services3.Security.Tokens.UsernameTokenManager.VerifyToken(SecurityToken token) en Microsoft.Web.Services3.Security.Tokens.SecurityTokenManager.LoadXmlSecurityToken ...Show All
Visual Studio Tools for Office VSTO form differences with VB.NET 2005
Hi guys, I'm struggling to understand why the forms act so differently in the VSTO 2005 add in for Visual Studio 2005... Normally in VB.NET i might have a form, which when it loads searches for users, if there isn't one it loads another form over the top, and automatically the other form is paused in effect, until the other form(s) are delt with. How come its so different in the fact that this just doesn't happen anymore can i make it the same as i want it As John pointed out, it would help us if you'd provide more information. From what you say, it seems that you want to display a form as a modal (one that would keep mantain the focus). In Windows Forms you can use the Form ...Show All
Visual Studio Express Editions upgrade from express to vs .net 2005
hey guys. just wondering if my express projects will work in vb .net 2005 thanks Yep, just install VS on your machine and continue using your express projects with all the additional IDE features etc. provided by visual studio. Absolutely no difference for you express projects. ...Show All
Software Development for Windows Vista call external method activity disappeared from my toolbox
I don't know why, but the call external method activity is no longer visible. My workaround will be to use wca, but is there something I've tripped over to make it disappear I can actually view previews flows that use the activity without a problem. ...Show All
Windows Forms ListView problem : overlapping items (c#, .net 2.0)
Hi everyone. I've encountered following problem with list view - i wrote user control that has listview and 2 buttons. ListView has next settings : this.listViewDocuments.Anchor = (System.Windows.Forms.AnchorStyles)(AnhorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.listViewDocuments.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listViewDocuments.HideSelection = false; this.listViewDocuments.Location = new System.Drawing.Point(0, 0); this.listViewDocuments.MultiSelect = false; this.listViewDocuments.Name = "listViewDocuments"; this.listViewDocuments.Scrollable = false; this.listViewDocuments.ShowGroups = false; this.listViewDocuments.Size = new System.Drawing.Size(304, 88); this.listView ...Show All
SQL Server Invalid return value from stored proc from VC++ 6.0
I have a stored procedure that takes a computer name (nvarchar) and either updates a time stamp in a matching row or adds a new row when no match is found based on the computer name (replicates a set of rows in another table as well in the case of not found). When the row is unmatched, an output param (int) is set to 1 indicating it is new. When found, a zero is placed into the output parameter. This stored procedure worked fine until we recently upgraded to SQL Server Express (2005). C++ code: _bstr_t conn_str = CONN_STR; conn_str += (LPCTSTR)_server_name; try { _ConnectionPtr epi_conn; _CommandPtr cmd("ADODB.Command"); _ParameterPtr param; long addfg; _variant_t var_addfg; // // connect to database ...Show All
Smart Device Development Does desktop support RDA?
hi, This sounds like a strange question. The reason is that, we have a project running on handheld windows mobile 2003/2005 and it is using RDA to exchange data with our SQL Server. The thing is right now, we need to convert it to a desktop program. I don't know what the best approach would be. Any suggestion will be appreciated. Thanks. Hi I assume your using SQL Mobile 2005 in your PDA application. The upcomming SQL Server 2005 Compact Edition does support RDA. This is basically SQL Mobile ported to the desktop. So porting your app should be pretty easy. Hope this helps Michael ...Show All
Smart Device Development Source example
Hi folks, i have an .net 1.0 application. It has an self updating mechanism. If there is a newer version, the user can download it and update the application. However i'd like to upgrade the application to run under .net 2.0. So what have i done I implement a "dependency checking" module to the update mechanism. The new version should be dependend on .net 2.0. Even though i can determine, whenever the user has the .net 2.0 installed yet (through the registry) i have to install the .net 2.0 in case he/she has not installed it. But, and here is the problem, when i run the CAB installation from my .net 1.1 application, it fails with the error code 2 (means that a .net application is running preventing the installer to ov ...Show All
Visual Basic How do I implement collection of objects
If we have an Order and Product CLASSES. And one oOrder object to include many oProducts objects. How do we implement that in OOP in VB or C# pls. 2/ are there many ways and any code example pls 3/ Do u know any technical article that explains the mechanism of this with examples of code Thanks a lot. You could crete a class that inherits from System.Collections - CollectionsBase or any particular inheritable collection...or you can use a simple listOf: Public Class MyOrderClass Private m_Products as New ListOf(MyProductClass) ..... ...Show All
