| Opening an existing form (6 replies) |
| ASPFriends.com 'winforms-cs' list |
| I feel like an idiot, I've just started playing with C# winforms and I don't have VS.Net so I'm using a compiler from SharpDevelop. The only winform info I've got bookwise is the 2 chapters that cover the basics in Sams Teach Yourself C# in 21 days. I cannot find any tutorials that explain clearly how to open an existing form, for example what I'm trying to do is open an about dialog box from my h... |
|
| TextBoxes (6 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi All I have this small requirment for a Windows Application. I have a Form with 2 textBoxes on it databinded to 2 columns of a dataset. I need to implement a rule where data in the textBox2 should be (100 Value in textBox1). I used the Leave/Validated/Validating events on the textBox1 to get the correct data into textBox2. The problem is when I try to update the data back to the datastore, data ... |
|
| ComboBox clears when setting selected index? (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi, Still using .NET Beta 2 so this may have been fixed already. I populate a combobox and then select an item [i.e. combobox.SelectedIndex 2]. This causes the items list in my combobox to be cleared. I drop down the list and there are no items. Pretty strange. Am I wrong somehow? Thanks. benson |
|
| Unknown Exception in Winforms (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| HI All I am developing this WinForms app using C#. I came across this exception regularly. "An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in system.drawing.dll Additional information: Internal error: GDI is not properly initialized." I've tried many ways to find out which part of my code is causing this exception to be thrown. The form which throws this... |
|
| TabControl sucks (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi All Using the following doesnt do any good!! 1. this.tabControl1.TabPages[0].Hide(); The above statement doesnt remove the particular tab Page from the Tab Pages Collection. 2. There is no way you could cancel the Leave event from executing, something like what you have in Closing event where you can choose whether to close or not using CloseEventArgs Parameter. Here I am tryin to re focus the ... |
|
| ListBox SelectItem on right mouse click (2 replies, VIP) |
| ASPFriends.com 'winforms-cs' list |
| I'm looking for the easiest way to mimic the behaviour of a left button mouse click when pressing the right button in a ListBox control. Thanks. Dan Green [ http://dotnetdan.com putting the dan in .net ] |
|
| Winform Datagrid and Template Column (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| I am using a datagrid control and want to use a custom format on one of the columns. In APS.NET I can use Template Column in Datagrid on WebFrom. Does WinForm allows me to add custom column to datagrid too ? Thanks, Peter Wang peterwangemail@yahoo.com Do You Yahoo!? Yahoo! Auctions Great stuff seeking new owners! Bid now! |
|
| Refresh, Update or Invalidate - Which one when? (2 replies, VIP) |
| ASPFriends.com 'winforms-cs' list |
| I'm programmatically changing the text of a label and want the control to display the new value. Testing has shown that calling the Refresh, Update and Invalidate methods on the textbox all achieve the right outcome. So which one should I use and why? Dan Green [ http://dotnetdan.com putting the dan in .net ] |
|
| Menu Disabling? (8 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi All I have a SP which takes a UserID as parameter and returns me a resultset of the names of the Menus that are to be disabled for that User. I use the DataReader to loop thru the resultset and get each of the menuItems Names(strings). While getting each of the MenuItem names, my job is to make that equivalent MenuItem enabled false. I already have all these MenuItems generated on my Applicatio... |
|
| ListView Leave event not fired (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Two questions: I can't get my ListView to fire a Leave event when it loses focus. I thought all Windows Forms controls were meant to fire it? Secondly, I've got round this by using the LostFocus event is there any reason why this event isn't listed in the designer and therefore has to be wired up by hand? Thanks, James |
|
| Does .NET provide a Browse For Folder common dialog? (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Moved from [aspngfreeforall] to [winforms cs] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi Guys, Okay, I think I've figured out that System.Windows.Forms.OpenFileDialog will NOT let me configure it to return a user selected folder, only files. That makes sense given it's name. So, is there a Browse for Folder common dialog and I'm just not finding it? Like the ones you get on buttons in S... |
|
| ActiveForm.Text exception (8 replies) |
| ASPFriends.com 'winforms-cs' list |
| Why does the line (C#)... Form1.ActiveForm.Text "Some text"; Cause the following exception... An unhandled exception of type 'System.NullReferenceException' occurred in FormApp.exe Additional information: Object reference not set to an instance of an object. When in debug mode and stepped over and cause no error when 'start without debugging is used? Gary p.s. the proper text is displayed. |
|
| Autosize columns (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi all, We are building a web application using an embedded WinForms control. The WinForm control uses a third party WinForm control internally. When running this in the browser we run into security issues, e.g. Our control needs to interact with browser. This requires privileges to access unmanaged code. This is not granted in the Intranet zone by default. The third party control need some securi... |
|