Answer Questions
WondeRu DataGridViewButtonCell Change Backcolor
If Visual Styles are enabled, can this be done If so how Thanks Simmy The button is drawn based on the current Windows theme running. I don't think there's a way to overrride this unless you create a custom DataGridViewColumn with a custom button cell style That changes the cells backcolor, not the buttons. choose the DefaultCellStyle prop ...Show All
Sijmen ClickOnce updates all assemblys!
Hi, I am now trying to deploy with Click Once, and have run into 2 problems/questions. I have 6 projects 1 win and 5 class libs. I seem to think that with Click Once I should be able to make a change to library X and redeploy, in turn the user would only need to download that one assembly. The problem I am having is, a change to 1 library forces the user to download the entire application again. I must just be missing something, what is the wa ...Show All
keram SelectedIndexChanged event with ComboBox - How to know previous selection?
Quick question here... I have a ComboBox (DropDownList style) and handling the SelectedIndexChanged event. The problem is that this event is after the fact and there is no way to know what was the previous selection. The event parameters (object s ...Show All
NicolasP Binding to collection of objects
I have problems binding controls to collections of objects: public class A { private string labelA; public string LabelA { get { return labelA; } } private B itemB; public B ItemB { get { return itemB;  ...Show All
ChrisNickel TreeView HitTest while in DragOver
I am using the HitTests method on a TreeView object within its DragOver method. While generally HitTest seems to work when used in other methods (like MouseDown), in DragOver, the Node method of the TreeViewHitTestInfo object continually returns Nothing even though the mouse is plainly over a valid node. I've made sure the Treeview has "AllowDrop = True", but is there any other properties I need to set to get this going Has a ...Show All
Beaver01 open an application from a windows service
Does anyone know how to open an application from a windows service I have an application that I have to run while passing command line parameters. I figured I could open up this application from a windows service while passing the parameters ...Show All
Sven V Stop Multiple Instances of Child Form
Hi, i want to stop multiple instances of child forms in a MDI application, can anyone suggest what can i do my code is like this. Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem5.Click & ...Show All
Daniel Schlößer CustomColumn as displayMember inside a user control - Designer error , bug ?
Hi everybody. i have created a custom control that implements a combobox bounded to Customers Table in my database. I created the control cause i wanted to reuse it in different Windows forms of my application. In the Load event of the control i add a Custom column , which i use as the displayMember for the combobox Bounding. When i run my program the control works perfectly. The problem is that when i try to open in the designer a form that con ...Show All
Dralt Passing Checkbox.Text if checked
im entering data into textboxes. If the checkbox is checked i wanna pass the data in the textbox and the checkbox.text to form2. Here i need to show what was entered as a review stage and submit back to form1 whether or not to submit the data or edit it again. Form1 Code namespace bankaccount { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load( object sen ...Show All
CrowleyM Statrt Up for Smart Client Projects
I have been reading the articles and overviews on Smart Clients. But have been unable to find some simple/example solution/projects to get started. Where can I find some sample apps to get started Also is the a Smart Client forums somewhere, havent been able to find smart client forums This forum seemed most relavent place to post. TIA Have a look at the following page: http://www.windowsforms.net/Default.aspx tabindex=8&tabid=3 Th ...Show All
Archana G Control Custom Properties
Hi, I work in Winform (C#) I create a Custom DataGriwViewColumn named DataGriwViewNumericColumn. This new colum shows numeric data in monetary format (in the datagrid). I want to create 2 new properties for DataGriwViewNumericColumn class. This new properties are : NegativeColor and PositiveColor. When I use EditColumn panel for my datagrid, I see my 2 news properties. BUT when a change the value of my properties, (for ex ...Show All
Juliau How to make a panel have all the controls of an existing form?
I have done many forms in my project. Now I need to add some new features, in which I need to display the forms (read only this time) to compare inside tab pages or panels. In .NET, we can have a form inherit from another f ...Show All
gm001 Prerequisites??
Thanks in advance for listening to this dumb question. When I try to publish with the prerequisites set to "Create setup program" and "Download prerequisites from the same location as my application" I get the error message: "Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located o ...Show All
AndyC12345 Ambient Properties Question
I'm trying to make a property of my control act just like BackColor does. Here's the code that I have that's not quite working. Private _AlternateBackColor As Color = Color.FromKnownColor(KnownColor.Control) <Category("Appearance"), AmbientValue(GetType(KnownColor), "Control")>&nbs ...Show All
shanky How to get the index of a row?
Hi, I want to find a specified row (I already achieved that with the find method) and then set the BindingContext to it. But the BindingContext[...].Position needs an int value (Position of my row in the table). But I don't know how to get  ...Show All
