| Web Deployment (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi all, I built a Windows Form App. Put it in wwwroot from MachineA dir. Then from another machine open the browser and typed the URL http://MachineA/MyForm.Exe. The application downloaded and started Ok! But then I make some corrections and generated another version. Put the new version in wwwroot dir and called it again from the browser. I supposed that the new version will be loaded, but the ol... |
|
| Setting DefaultValue for ForColor Atribute (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi All, I'm building a component inherited from a Label. I overrided the ForeColor, and I'd like to set a DefaultValue to that attribute... The code I'm using is: [DefaultValue(Color.Navy)] public override System.Drawing.Color ForeColor { get { return base.ForeColor; } set { base.ForeColor value; } } But I got the following error: "An attribute argument must be a constant expression, typeof expres... |
|
| What's the use of the PropertyGrid.BrowsableAttributes property? (3 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi! I'm trying to hide some properties in a propertygrid. I can't simply set the BrowsableAttribute to false for the properties in my class, since I normally want to display this property to the user. Therefore I need to change this dynamically... After trying to implement ICustomTypeConverter for my class with no luck, I saw the PropertyGrid.BrowsableAttributes property. This is an AttributeColle... |
|
| ListViewItem (3 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hello again, I have an inherited ListView class, and I am overriding the OnMouseUp and OnMouseDown events. I would like to find the selected ListViewItem by using GetItemAt(e.X,e.Y), but this only works if I click on text within the first column of any ListViewItem. Is there any method that will get the selected ListViewItem no matter where in a given row I click? Thanks, Ryan |
|
| ComboBox databinding, and selection of null value (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| I've got a ComboBox that binds to a DataRow[]. This DataRow[] is formed by navigating a DataRelation. This is no problem, except I want the user to be able to select a blank value (ie: a DBNull). I see a few ways of addressing this: 1. Build up an array from the DataRow[] containing an additional, blank entry. 2. Include extra values in the database which are returned when navigating the DataRelat... |
|
| Common SQLConnection (7 replies, VIP) |
| ASPFriends.com 'winforms-cs' list |
| I am creating a c# WinForms App. I want to use one common SqlConnection component that is accessible from any form in the app. I don't want it to be a web service. What is the best way to accomplish this. |
|
| Assembly Icon (2 replies, VIP) |
| ASPFriends.com 'winforms-cs' list |
| Hi all, How do you add an assembly icon to a windows forms exe, without the use of vs.net? Is it part of the manifest file? Thanks, Ryan |
|
| Global Member Variables (9 replies) |
| ASPFriends.com 'winforms-cs' list |
| I am using VS.NET (C#) to make a winforms app. I have several forms that need to access the same String (called m strServerIP). I need to declare this variable as "GLOBAL" so I can access it from all forms and classes In the OLD VB I then if you delclare something in Module.bas you can create globals that way I hope there is a EASY way to do this in VS.NET. Please HELP! |
|
| Modifying form controls from another class? (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| I am having difficulty modifying the value of my form controls from another class in my app. Here's an example of what I'm trying to do (I've simplified the scenario, but should be sufficient for answering my question) I have three classes: Init Form1 Legwork Init contains my main() method which instantiates my Form1 class and launches it. Form1 contains a richTextBox named richTextBox1 Init also ... |
|
| Forms/Dispose (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| MessageHey all, When one calls the .Close() method of a Form, does the GC automatically dispose of all the components in that Form? For example, in my application I have a typical "about box", called AboutDialog. Every time I show the AboutDialog, more resources are allocated, and the memory usage for my application increases; but when the AboutDialog is closed, the memory usage remains at this le... |
|