| Winfows Forms Vanish (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have been creating Windows forms for a year now in Visual Studio 2002 and occasionally when the apps are running, they just dissapear completly. No close event is fired or anything. the application just ceases to be. It happens on WinNT4, Win2k and XP. Is this a known bug or is there a workaround. Please help Ciaran |
|
| DrawString text sometimes not visible (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a problem with the e.Graphics.DrawString. I am using the code below to display text strings on a panel embedded in a tab control. The text i specify in DrawString is displayed on the screen, however, if the tab control's selected page is different from the string output page, the text doesnt appear. It seems that DrawString displays the test only when the tab page i am writing to is visible... |
|
| Re-Sizing Controls (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, If I ahve a fom with some controls such as say a DataGrid,TabControl with some TabPages etc, which looks fine in the standard size at runtime. Now if a User Maximize the form, the controls does not grow propotionately. I tried the Dock and Anchor prop but Dock gives me the desired result if it is set to Fill (eg for tab control) but often I cant have the Dock set to fill for most of the contro... |
|
| Enter key behavior (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a windows app that has a text box to enter a claim number and then a listview with buttons for what you want to do with that claim number. The first option in the list box is 'Open Claim' which is what they want to do 99% of the time. I want to be able to put a claim number in the box and hit the enter key to open the claim so that you don't have to actually click on the button to do it. An... |
|
| Creating and displaying windows form in thread (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi I've got a problem. I try to create new WindowsForm in thread and show them. Everything is ok, but new form after Show() freeze :( Maybe somebody tell me why and how to fix this error. |
|
| getting the return value of a web form. (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello all, I have a web form that enables searching for specific terms (a kind of a search engine). This form is used within another winform application, that opens a web browser, then the user search for the specific term, and the result is returned to the win form. currently, the search engine puts the result in a hidden input and the win form uses MSHTML for retrieving it. The problem is that t... |
|
| storing an xml element (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a situation , where in I had to store a bit of information about a treenode in Tag ..... like this " shorcut key "M1" startpos "33" System.Windows.MessageBox.Show(""); /shorcut " ideally i should be creating an xmlelement add attributes and store the xmlelement in Tag... but am not able to do this i tried XmlElement xle new XmlElement(); but got this exception 'System.Xml.XmlElement.XmlElem... |
|
| Vis. Inheritance broken in 2003 (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I am haviing problems with a form that i inherit messing up the layout. Here is an example I have a base form with a button anchored to the bottom right. I set the modifier property of the button to protected so that i can change its property when inherited. I create a child form of the above one. if i look in the InitializeComponent sub there is the follow code components New System.ComponentMode... |
|
| Drag and Drop and DoubleClick Event (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi there, I have a listbox which I have added code to support drag and drop. The drag and drop operation works fine, only that by adding this code in the mousedown event : lstNonCeduler.DoDragDrop (lstNonCeduler.SelectedValue.ToString & "|" & lstNonCeduler.Text, DragDropEffects.Move Or DragDropEffects.Copy) i just can catch the DoubleClick event on the listbox. Is it normal or should I add more co... |
|
| datagrid with TextBox as field.....problem in setting as password field (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| hi, i have a windows forms application with datagrid which displays some login related informeation. it displays 3 values username, password and userlevel. i want that all the password column data should be displayed in * format. i tried to use DataGridTextBoxColumn class. given below is the code i'm using to get the job done. i'm strange, its not displaying the values in *, as it usually does wit... |
|
| Locking current window (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, I want to be able to prevent the user from working on any window/form but the currently active window/form. Only when "cancel" or "submit" is pressed can the user click any other area of the screen and actually gain focus. Is there any simple window property for this? Thank you, Josh |
|
| cast datagrid.datasource to dataset (datasource is table) (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I extended a windows datagrid to some formatting and to add controls like buttons and comboboxes. To get the datagrid to accept the changes I add tablestyles. To make the datagrid use the new tablestyles and bind to the table I used the following code... this.TableStyles.Clear(); this.TableStyles.Add( tableStyle); this.DataSource ((DataSet)this.DataSource).Tables[tableName]; Everything works great... |
|
| Hash password (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I was able to implement Hash password routines (ASP.NET) by using: System.Web.Security.FormsAuthentication.HashPasswordForSto ringInConfigFile How can I accomplish the same with Windows Forms? What I am trying to do is just convert/encrypt a given string. Thanks in advance. |
|
| Event on window close (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi all, I have one form which has a dataGrid and a button, as well as some invisible labels. When I press the button, a new form is displayed, where data present in the dataGrid is to be edited (exactly, I am not editing it on the dataGrid, rather binding the data to some combos and boxes, allowing edition. When I finish editing the data, I would like the datagrid and any constraints applied to th... |
|
| HOWTO: Update a datagrid bound to a collection? (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I need some help around this problem I am having with a datagrid bound to a collection. I have a button on my form that adds a record to the collection that is bound to the datagrid. I want the grid to visibly update as items are added, so the following code executes each time I press the "add" button: myDataGrid.DataSource null; myCollection.Add(new Foo()); myDataGrid.DataSource myCollection; The... |
|
| Want a combo box as a column in a datagrid. (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I have a form that is basically a datagrid used for mapping codes. In the first column I have a list of the codes. In the second column I would like a combo box where the user can select from a list of codes from a table in the database to assign the code in the first column to. I can't find anything in the documentation for the datagrid that is what I want, so I've started working on createin... |
|
| Iterating windows controls (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi If i have a windows form with many controls on it, such as buttons, text boxes, datagrids, dropdowns, etc. How would i iterate through the controls on the form and then only work with the ones of type "textbox". Or alternatively how do i only "get" controls of type "textbox"? Thanks Jason |
|
| MSDE & Auto Increment (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hiya all, I'm not exactly sure where to be posting this question, but here goes & hopefully someone can answer it or re direct me. I'm building a windows form application in C#. I am using MSDE I've imported my Access.mdb & set up the Identity, Identity Seed, & Identity Increment. I want to be able to add a new entries (rows), but the problem arises because update won't work until I input a number... |
|
| Minimizing and Memory (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I noticed that when I Minimize the Form of a WinForms application that the memory used drops dramtically. When the Form is restored, the memory usage increases, but not to where it was. I would like to duplicate this memory purging myself. Is there a way? I don't think it's by using GC.Collect() because when I try that, I do not get the same result. What is the answer? Cheers, Evan |
|
| Only certain columns in Datagrid are allowed to edit. (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| How do I control only some of the columns in Datagrid are allowed to be editted? Should I use DataView or DataTable as the DataSource of my Datagrid? Thanks. |
|
| Back from Application.Run to place where was is called (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| In thread i've got something like this Application.Run(new Form()); But programm shows Form and waits for events. Is there any solution to back from Form()? whithout Application.Exit or Application.ExitThread ? cube |
|
| TypeConverter Question (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, Sorry for reposting, just thought to give it one more try, as this is a really annoying problem for us. I will shut up if I still don't get any replies this time g . I have a component that has a class type property. This class in turn only consists of about 20 public members which are of a certain enum type. What I did is to derive a type converter from ExpandableObjectConverter. However, as ... |
|
| PropertyGrid: show/hide properties at runtime? (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have an instance of a class I need to display properties for. I have created a wrapper class for this class solely for use with a PropertyGrid. Just before setting myPropertyGrid.SelectedObject, I create an instance of the wrapper class. I'd like to be able to show or hide certain properties of this wrapper class instance at run time based on certain run time conditions. Does anyone know if and ... |
|
| DataGrid, Highlight Row (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello All. I worked with VB DataGrid? it has a property: Split\Margue Style dbgHighlightRow. (Row was highlighted and cell was not active) Now am working with C# DataGrid and I cann't find the same property. Can you please help me? I need to find the way to get the same effect in C#. Thank You, Vitaliy |
|
| Newbie question: How to pass a click (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| How do you pass a click event from a MDI Parent to a Child form (in C#)? For instance, I have a Parent MDI form that contains the code below. On the click event that activates this code, I want it to add another tabpage to a MDI Child form. I know I cannot jut make it ChildName.tabControlSearch.etc, that gives you an error due to the level of protection (or is that what I need to change?). string ... |
|