anders_sms's Q&A profile
Windows Forms ClickOnce Fails with "Value does not fall within the expected range."
I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The f ...Show All
Windows Forms ListView sorting
hi there, i have a ListView on my form. Its 'View' property is set to 'Details' and it has several Column items in its Column Item Collection. I want the user to be able to click on one of the Column headings and see a little arrow facing down (Sort by ascending order) or an up arrow (Sort by decending) similar to Windows Explorer. How does one make this little 'arrow' visable to the user regards, there is good article on CodeProject that describes how to do it: Based on it I implement it in my project as I have internal class for comparing items /// <summary> /// Implements the manual sorting of ...Show All
Visual Basic crt ??
Hi I got this script but I have no ID how what crt is, and vb doesnt seem to know it Sub Main crt.Screen.Synchronous = True ' Verbinding maken met de router (standaard poort 23) ' crt.Session.Connect "/TELNET 1.0.0.7 18" variabel (kan string ip) crt.Screen.Send "exit" crt.Screen.Send vbCr crt.Screen.Send vbCr crt.Sleep 1000 result = crt.Screen.WaitForString("Password:") ' result 1 = "Password:" ' If result = 1 Then crt.Screen.WaitForString "Password:" crt.Screen.Send "pa33avjj(variable wacht)" & vbCr crt.Screen.WaitForString ">" crt.Screen.Sen ...Show All
Windows Forms Updates with clickonce and myapp.exe.config
I'm trying to run an update with clickonce, when it does it seems to override my configuration file settings and copies a new version in updated app location directory. I thought that clickonce was supposed to copy the files before downloading new one Any help would be great! myapp.exe.config If I understand what you are doing correctly, you are storing some setting of your app (that are needed and modified at runtime by your application) in the app.exe.config file. On an update, on the server the .exe.config file will be still be the original(old) and you get the server copy where as you are expecting the Client settings to be a ...Show All
Visual Studio Express Editions Displaying open file name in the title bar
Hi, How can i display the open file name in the title bar for a windows field Any help will be appreciated, Thanks in Advanced, MW200675 to display just the filename... this.Text = System.IO.Path.GetFileName(""); or to display w/o the extension.. this.Text = System.IO.Path.GetFileNameWithoutExtension(""); ...Show All
SQL Server Excel 2003 and nonemptycrossjoin
I am trying to utilize an Excel 2003 pivot table as a client tool to front end a project I am developing. I have created the cube in Analysis Services 2005 and it works fine when I run MDX against it directly. The problem that I am having is that Excel is not using nonemptycrossjoin in the pivot table. I have Teo Lachev's book "Applied Microsoft Analysis Services 2005' and I was looking for tips and found a note on p. 633 referring to a workaround ( http://blogs.msdn.com/bi_systems/articles/162852.aspx ). To simplify testing, I reduced the query down to the most essential dimensions on rows and a single non-calculated measure on co ...Show All
SQL Server Linked Server and Distributed Query
I have a linked SQL Server on another machine which is created using a stored procedure that executes the following: EXEC sp_addlinkedserver @server = 'Achilles\Mixed' , @srvproduct = ' ' , @provider = 'SQLNCLI' , @datasrc = 'Archilles\Mixed', @catalog = 'DB_INTRANET' The stored procedure executes successfully and I can also succesfully DROP the linked server. H owever when I try to query tables in linked databases using: SELECT * FROM DB_INTRANET ... Employees I get the following error: OLE DB provider "SQLNCLI" for linked server "DB_Intranet" returned message "Comm ...Show All
Windows Forms Capturing and printing a portion of a form...
This might be rather complicated to explain without pictures, but I'll give it a shot. I'm developing a data plot tool where the user loads a .txt file and can select which data to plot against time. The user can "hold" and plot data on top of each other and can turn a grid off and on. If you've ever used Matlab, it's similar to that plotter. The program runs entirely on one form (Form1). If you picture a form maximized to fill the screen, the left fourth is the data selection area, the bottom fourth is the hold and grid check boxes (and a few other things), and the remaining area is the plotting area. The method I used for ...Show All
.NET Development CAO and GAC Issue
I have a .NET Remoting server application (TCP, binary) and it works fine when it loads the defined types from the private assembly, but when I put that assembly in the GAC then I get FileNotFoundException. In the MSDN doc it says: " <activated type="type,assembly" /> Specifies the full type name of the object and the name of the assembly that contains the type implementation. This includes version, culture, and public key information if the containing assembly is in the global assembly cache. " but when I put the version, ... info in the config file, then it raises a kind of parsing error "information is pre ...Show All
Windows Forms Pop-up window titled "Generating Previews" when printing and previewing
Refer to previous post "Full Screen App: Tough Print Preview Control Question" I did not see an answer to the previous question. The answer may have been posted elsewhere. Please let me know if this is the case. I am also having the same issue with a non full screen Windows application. When I print preview my document using either a standard print preview dialog box or a print preview control, this pop-up happens and is not needed in my opinion. There has to be (should be) a property that can be set to either have this happen or not. The pop-up: Title: "Generating Previews", Body text: "Page 1 of document". This also happen ...Show All
Visual Basic How can I fill a bindingList of T ?
Hi, I hope somebody can help. I dont seem to figure out how to fill a binding list of t. I would like to point out that i have no problem if I do the following in the interface Function GetList() As BindingList(Of Employee) '//BUT I CANNOT MAKE IT WORK WITH Function GetList(Of T)() As BindingList(Of T) Scenario Load ComboBox with a list of all customers IGenericInterface 'With a generic bindinglist of t Customer 'Customer Class with properties like "Name,Surname" and mostly importantly "GetList" function Imports S ...Show All
Windows Forms RemovePreviousVersions & GAC installation. Workaround
Hello everybody: I have been experiencing a problem with a MSI package installing some assemblies into the GAC. Let’s say we have: MSI Version 1 contains: (setup version 1.0.0) 5 .NET assemblies copied to an specific path and also installed in GAC. MSI Version 2. contains: (setup version 1.0.1) the same 5 .NET assemblies copied to an specific path and also installed in GAC. Changes from setup version 1 to version 2 are: -Assemblies recompiled. FileVersion and Assembly versions unchanged. - In the setup project, version changed from 1.0.0 to 1.0.1 (p ...Show All
Visual C++ cant access object methode in HTML script
i use ATL to build a project like this, [ object, uuid("0D508BA2-FBD9-4F27-B5B4-FBC88B2F1D72"), dual, helpstring("IDataSource Interface"), pointer_default(unique) ] __interface IDataSource : IDispatch { [id(1), helpstring("method Connect")] HRESULT Connect([in] BSTR ConnectString, [out,retval] VARIANT_BOOL* retVal); [id(2), helpstring("method GetSession")] HRESULT GetSession([out,retval] LONG* retVal); }; [ object, uuid("55A20CF6-A0FD-4611-992F-B72FE0FB68C2"), dual, helpstring("ISQLDataSource Interface"), pointer_default(unique) ] __interface ISQLDataSource : IDataSource & ...Show All
.NET Development wsdl.exe and xhtml in .net 2.0
If I use wsdl.exe to generate proxy code for a wsdl file that imports the xhtml1-strict schema it fails with a circular reference error. At least in 2.0 it does, the 1.1 version of wsdl.exe generates the proxy sucessfully. The wsdl file validates ok using every xml tool I can find including the .net parser and msxml 6.0. I can create documents that use the XHTML schema that validate ok. Any suggestions Is the xhtml schema broken if so why do no other parsers complain. The detailed error is Error: Unable to import binding 'HTTPBindingGet' from namespace 'http://myuri/po rtal/v1/'. - Unable to import operation 'Search'. - Gro ...Show All
Visual Basic Display data in a dataset/datagrid.
Display data in a dataset/datagrid. Using: Visual Basic 2005 Express Beta 2 Objective: to get data from a web service to display in an application. Achieved: I have managed to import the data properly and it shows up in the Data Sources window. The .xsd file that I am using is both valid and well-formed. PROBLEM: I just can't get the data to display in a dataset/datagrid. Question: Do you know of a good tutorial/demo which explains how to do this Thanks. If you have it displayed in the dateset designer you should be able to drag and drop it onto the form. You can change the drop down in the dataset d ...Show All
