Answer Questions
QuinceArj Desktop and Start Menu Icon?
How do I have the Windows installer / setup in VS 2005 place an application icon on the desktop and start menu when the installer installs the application and support files. Nothing in the property pages, and can't find documentation. Unfortunately that sort of operation at install time is not supported in ClickOnce. Later perhaps... but until then you are likely stuck with going without or making your own at runtime and that wouldn’t get removed when the app is uninstalled. In the mean time I'd suggest taking a look at this thread where this was discussed in length and maybe even stopping by the Visual Studio Connect page and telling them about your need/like for it. The File System view in ...Show All
Matt Lin Seeking sample code for DataGridView
All, I am quite familiar with ASP.NET but am struggling with WindowForms.NET. I am hoping you can help. The application is very simple: I have a database with two tables that are related: TABLE 1 - tbl1_ID tbl1_col1 tbl1_col2 tbl1_tbl2_ID TABLE 2 - tbl2_ID tbl2_col1 What I would like to do is to display a DataGrid with the following columns: tbl1_col1 | tbl1_col2 | tbl2_col1 where tbl2_col1 is in a ComboBox column. The user should be able to edit any row and add new rows. If a new value is typed into the ComboBox, this should create a new row in TABLE 2. I know exactly how to do this under ASP.NET 2.0, but am really struggling with WindowForms. Would you please point me to an e ...Show All
MarkD08 Cancel install from Custom Action
Hi all How can I cancel Install of MSI pack from custom Action I have an MSI Setup from VS2005 that run custom action, if the custom action cant allow install it will do rollback, and my application should not install, but it does :( How can I stop the MSI pack from installing from custom action Can this exception be thrown from a vbscript Also would this work during an uninstall as well Thanks Throwing an InstallException will cause a rollback. ...Show All
fbecker Error Code: 0x80070643
I have tried to install Windows and Office updates utilizing the Automatic installation tool; but, the initialization takes place and none of the updates are intalled. I ran WinDoctor and I am told that I am missing file "ORUN32.exe" and it cannot access "learn32.dll" and "pctree32.dll". I have searched my computer and found the orun32 and pctree32 files but not the learn32 file. I don't know how it got deleted and not sure how to get it back in place to use the automatic update. What do I do to get my Automatic updates to run again Please help me! This worked for me - 1,000 thanks. The trouble was caused by a 'clean up' using a RegEdit software package combined with my lack of knowledge ar ...Show All
Brandon Tucker C# .net2.0 dataset problem
Hi, I'm retrieving information from an access database. I have a field in the access database that has long text in it, more then 255 characters, but i only get the first 255 characters. I use a DataSet, any ideas on how to solve this issue thanks a lot, this is a test script: [code] using System; using System.IO; using System.Text; using System.Security.Cryptography; using System.Collections.Generic; using System.Data; using System.Data.OleDb; /// <summary> /// Summary description for Class1 /// </summary> public class Tester { public static void Main() { Tester t = new Tester(); string str = t.GetEvents(); Console.WriteLine("str:\n{0}\n", str); } private string GetSelectedEvents(st ...Show All
webedc getting an error
well i m using CreateStatusWindow(); function getting error cannot find window class what may be the reason and how should i get rid of that The only CreateStatusWindow function I know is from Win32 API... This is the forum for .NET Windows Forms. Maybe you should try asking your question in the newsgroups: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US Also... that function is obsolete... ...Show All
JHagan Unable to cast COM object of type 'System.__ComObject' to class type...???
I get the error below when I call many of the HTML... components, such as mshtml.HTMLAnchorElementClass or mshtml.HTMLDivElementClass. for example: foreach (mshtml.HTMLAnchorElementClass aAnch in aItems) When I do that the program dies immediately. and this error below is posted: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLAnchorElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface. ...Show All
Bagles1 how to pass value from treeview selectednode
Hi all, I had a asp file that create the treeview as follow and my page is split into 2 view - treeview and content view: whenever I click on EqpA , it will navigate to EOW.aspx. but may I know how can I pass the selectedNode value to "EOW.aspx". In this case, if I click on EqpA, "EqpA" should be pass to EOW.aspx. Please help. Thanks <% @ Page Language ="C#" AutoEventWireup ="true" CodeFile ="MainTreeView.aspx.cs" Inherits ="MainTreeView" %> < html > < body > < form id ="frmReport" runat ="server"> < asp : TreeView id ="ReportTreeView" runat ="server"> ...Show All
Snickel65 moving rows in datagriview
Is there a way to move a row in a datagridview up or down Thanks. This text will give you an answer How about something along these lines (the first row becomes the second row .. just be careful to ensure your row remains in bounds) Dim view As DataGridView, row As DataGridViewRow = view.Rows.Item(0) view.Rows.Remove(row) : view.Rows.Insert(1, row) Hope this is what you were looking for Richard Jim... all that code does is remove the selected row. if u r binding the grid to a table in database simply keep a colum in the table of priority and give all the rows a priority when displaying the data in the grid keep that column hidden keep the selectio ...Show All
kawing0510 Filtering a datagrid view
I have two datagridviews (A & B)filled by 2 different datasets and I want to filter datagridview B based on cell X on the current row of the datagridview, any sugestions on how I can do this I read through the documentation and the properties of the datagrid but nothing poped out at me as the correct property..... Jankowiak It's a difficult question to answer directly with such limited information but have you tried looking at DataViews i.e. DefaultView is a property of a DataTable and you can set the RowFilter property which is a psudo-sql expression as a string. From this view you could then utilise the ToTable() method and bind that to a control. Any help you co ...Show All
Ankini image transparent background
I want to add an .bmp image to a label. The image has a transparent background. When I add the image the transparent part becomes white. How can I add the image to the label in a way that the background will not turn white. thanks I am not sure what I did - but I converted the image to a png with one layer, and then set the transparency afterwords. It now has a transparent background. Thanks thanks. I tried using a .png image and I still had the same issue. The transparent background of the image was painted white. When I opened the image in other applications it had a transparent background. I would rather not have to paint each image because I cou ...Show All
osamaT bad bug
Dear All I have very bad bug in my program as when i press f5 then i trayed error An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.windows.forms.dll Additional information: Class not registered in line : CType ( Me .MSHFlexGrid1, System.ComponentModel.ISupportInitialize).EndInit() i convert the visual basic project to vb.net through wizards. in windows application any one could help me please. thanks in advance Try installing the VB6 runtime components Yeah. Installing vb6 runtimes should work, but a better route would be to totally redesign your application, using only .NET framework controls. Less hassles in the future. You don't ...Show All
Karthick1020 Highlighting Visible without Focus -Find Control
I am reinventing the wheel with a find box. How do you get the highlighting to remain visible when the focus isn't on the parent form I watched what happens when I use VS's find box. The parent form momentarily gains focus, then switches back to the find box. What needs to happen in order to keep the highlighting visible when the focus reverts to the find form Guessing: you click the Find button so now the focus is on the button, not on the control that contains the search text. It depends on what control you use to display the search text. If it is a TextBox, set the HideSelection property to false, SelectionStart to 0 and SelectionLength to Text.Length. I don't catch your meaning very c ...Show All
FlemmingLaugesen contextMenu associated window shown in taskbar
I have a NotifyIcon in my app also a ContextMenuStrip when I click with the rigth button on the NotifyIcon everything works perfect. I also want to show the context menu usign the left button so I wrote this simple code private void notifyIconDailyMe_Click(object sender, EventArgs e) { contextMenuStripMain.Show(10000, 10000); } and it shows the contextmenu.. the problem is that a windows appears in the TaskBar that windows has no icon so it tell me this window represents the context menu.This behavior is not elegant at all. I want to show my Contextmenu and that's it. How can I hide this window from the taskbar thanks The NotifyIcon class has its own ContextMenuStrip property, set it to your context menu. ...Show All
Jacco Mintjes Designer error
I recieve the following set of errors in the designer tab when I try and compile my program. I am new at using Windows Forms. I know you are not supposed to write code in the automatically generated code, but I don't know where else to put it. Could this be the problem C++ CodeDOM parser error: Internal Error Hide at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationMa ...Show All
