Answer Questions
su45937 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 following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All
Hassan Ayoub Click on a link programmatically using WebBrowser control
How can I click on a link using C# and DOM The page is loaded within my WebBrowser control. Thanks I need to get all data from a website, so I need to walk through all the links. Your way worked, but if someone knows another way, will be also good. Another problem. My code is executed on the Document_Completed event, but it is being executed more than once. Are there any other way And how is the best way to handle progress change Is it the progress_changed event handler Thanks. The following code will "nearly click" on the first link on the document loaded in your web browser control. The "clicking" is simulated using the enter key which, when a link is focused, performs exactly as clickin ...Show All
SylvirCoder Add ActiveX component
Hello everybody, i have a problem and can't find the solution maby anybode can help me... so i want to use LakeOfSoft ActiveX AxVCProX. AxvcproMediaGateX and when i add this ActiveX component through Toolbox everything works fine, but in my situation it isn't good choice, becouse i need to use it in Windows Service based application so i have no GUI... but when i try to create ActiveX component manualy in my code in runtime i have error: 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. for clarity i put simple windows based program sample code in which i get this exception: namespace Lakeofsoft { public partial class Form1 : Form { private AxVCProX.AxvcproMediaGateX Gate; public Form1() { ...Show All
Frank Johannessen Windows Explorer Context File path??
I have a windows based application in c#. On Windows explorer context menu i added one context menu item named "MyContext" . when the user right clicks on a file or folder, i have "MyContext" menu(This is the context menu item that i have added to the windows explorer context menu). When i click "MyContext" menu, i have to execute one application. In that application page load, i want to get the file or folder path that the user right clicked. How to get that file path Please help I'm not familiar with the registry key you're using. You can add one to HKCR\* to create a context menu item. Here's a sample registry script that does this: REGEDIT4 [HKEY_CLASSES_ROOT\*\shel ...Show All
Raja Ramesh Toggle ToolStripSplitButton
Hi, How can I create a ToolStripSplitButton that I can toggle (similar behaviour to the ToolStripButton) Sample or hint would be much appreciated. Regards, Ron2464. Hi Dave, By 'toggle', I mean that I would like to have the ToolStripSplitButton to stay 'pressed in' until it is clicked again, in the same way that the ToolStripButton can. Regards, Ron. It completely depends on what you mean by "Toggle". Could you explain what exactly you want to accomplish I'm not quite sure how that can be accomplished. Maybe someone else can guide you on this one. ...Show All
sanjeevm Hosting Winform controls in IE6 crashes (only .net 2.0)
HI ! I've hosted a Winform custom control derived directly from Control (or any other Control derived from that). Put it onto a simple htm page (or aspx), and when IE starts it up, IE crashes. The event log says Faulting application iexplore.exe, version 6.0.2900.2180, faulting module user32.dll, version 5.1.2600.2622, fault address 0x00010129. If the component is used on a machine with only .net 1.1 it works. If exactly the same component is used on a machine with .net 2.0 it crashes. It doesn't matter if the component is written in 1.1 or 2.0, the same thing happens. The relevant part of the htm page is as follows: < OBJECT id ="ListEx2" height ="100" width ="100" classid ="ht ...Show All
QuantumMischief DataGridView AutoFilter whitepaper and sample
Are you spoiled by the AutoFilter feature in Excel Do you want the same functionality in the DataGridView control Then my new whitepaper and sample are for you. See: http://msdn.microsoft.com/netframework/windowsforms/default.aspx pull=/library/en-us/dnwinforms/html/DtGrdVwAF.asp The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique value in a column, and updates the filter of the bound data source when a value is selected from the list. A custom DataGridViewColumn is also provided to make using the AutoFilter header cell easier, particularly in the Windows Forms Designer. Customizing DataGridView column header cells is not as easy as customizi ...Show All
Abhayc ClickOnce Deployment Issue - File Has Different Computed Hash Than Specified In Manifest - Urgent!
Hello, originally posted this in the VB General forum - didn't get much response, so I thought I would post it here. I'm trying to deploy a ClickOnce Windows app. I have successfully installed it in the past. I made some changes to the .mdf file I have referenced in my application (I made the changes in SQL Server). When I published the app on another machine, I started receiving the error message "File ....mdf, has a different computed hash than specified in manifest". I tried a number of different suggestions that people have made on these forums, but no luck - I tried building the app twice, then deploying; I tried manually updating the revision number; I tried creating a new Test Certificate; I tried signing the assembly; I t ...Show All
Summoner Windows forms with database
How to populate data from database to windows forms and save as xml file with TABLE's AUTONUMBER as the file name. not sure I quite follow, you want to display 2 fields and display only 1 field (ID) when user selects it from the dropdown list you can fill a dataset with data from the database using a DataAdapter for your connection (SQL or OleDb) and then save the data using the dataset WriteXml() method. There are many examples on these forums on filling a dataset from a database query it would also help if you specified what language you are using to develop with as well as the framework version here is a small example. SqlCommand theSQLCommand = new SqlCommand("SELECT * FROM tableName ") ...Show All
Rich Wilson bindingsource with objects
hi, how do i go about saving to my table - + inserting records with a dgv connected to a binding source, which is connected to a list of objects. do i need to keep an original list for comparison how will i know which records changed or have been added or removed it is not quite a well defined pattern( in my mind) for now. please enlighten. hi , i saw this coding to resolve my updates. its looking good yep, BUT: do i go about manually to do my updates in the provided methods i would put my code where i highlighted in red, but i have a feeling this is not right. what would RaiseEvent PropertyChanged(Me, e) actually do, and whats the next thing i'm supposed to do from here Imports System.ComponentMo ...Show All
Simoyd How to change database source path
How to change database source path in visual c# 2005 at runtime i have a database that i wanna change its source to another one with a file open dialogue dataGridView1.DataSource=fileopendialogue1.FileName; is that correct The datagridview needs a datatable for the datasource. A path to a database will not work. You will need to create a connection to the database and use an data adapter to fill a datatable will the data. Some sample codes for ken's comment: DataSet dataset; String connection="Initial Catalog=Northwind;Data Source=localhost;Integrated Security=SSPI;"; String query="INSERT INTO Customers (CustomerID, CompanyName) Values('NWIND', 'Northwind Trade ...Show All
markep12 Newbie: How to mouse-select a ListBox item?
Hello, How do I make a mouseclick select a listbox item I mean: if clicked on a listbox item that item is selected and _Click or _MouseClick event is executed but how to avoid occuring any event when clicked anywhere inside a listbox outside the displayed listbox items Otherwise: is there some website with a survey or quicklist (not details) of behaviour/opportunities of all visual components for newbies (As I'm experienced with Borland Builder and Visual Basic each new language has it's own approach) Regards, Henk Well, Unfortunately 'SelectedItemChanged' also occurs when clicking outside any listbox item (so previous selected item was not changed) but probably I use it the wrong w ...Show All
Balambikai N P Clearing selected cells in a DataGridView
Hi, I'm using Visual Studio 2005 pro and C# language. I have a windows form with a DataGridView on it. It only has two columns and several rows. What I would like to do is allow the user to select a cell (or a group of cells) and when they press either the Delete key or the Backspace key, these selected cells are cleared (I'm not removing rows though - just allowing the user to clear the contents of the cell). Can anyone help me do this please Thanks Sean Doesn't work with integers because you're trying to populate the cell that accepts integers only with a string... It's much better to use: c.Value = DBNull.Value; instead of: c.Value = ""; ...Show All
Gr&#38;&#35;233&#59;gory Leandro Capturing MouseWheel Event - Different mouse, different behavior
Hi, I'm actually using Managed C++ within VC++ 2005. I tried to add handling of mousewheel. I've put following code: 1. EventHandler: this->WA_TbPgDrw->MouseWheel += new System::Windows::Forms::MouseEventHandler(this, &Form1::Analyse_MouseWheel); 2. Routine for Handling event: private: System::Void Analyse_MouseWheel(System::Object* sender, System::Windows::Forms::MouseEventArgs* e) { if(WA_TabCntrl->SelectedIndex == 0) // Onglet Design { if(e->Delta > 0) { if(ZoomAffVal < 100) ZoomValue = ZoomAffVal + 1; } else { if(ZoomAffVal > 50) ZoomValue = ZoomAffVal - 1; } if(Modules_Hors_Limites(S"Screen")) { ZoomValue = ZoomAffVal; // Restaurer la valeur precedente... th ...Show All
jabodaddy Sample Code: DataGridView progress bar column
I have a column that has integer data in it, I want to display it as a progress bar in the column so the user can quickly identify lagging processes. I just started with 2005 and it looks great but does anyone know a quick way to do this I would also like to change the color of the progress bar based on the cells value. I found in the data sources toolbox where I can change the column to progress bar but that does not pass through to the grid. Thanks for ANY help with this I'll ask someone on the C# team if someone can convert the source. It might take a bit. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
