Maintaining the size and position of the Control in the form
I want to maintain size and position of the control relative to its container eg,size and position of the richtextbox in the form should be maintained when form resize. ...
I want to maintain size and position of the control relative to its container eg,size and position of the richtextbox in the form should be maintained when form resize. ...
Hi, I want to automatically expand Combo box on focus event. I have set the Droppeddown = True in gotfocus event, but this has a side effect. When click event gets fired, it expands dropdown and closes immediately. How can I avoid it? Here is Code: Private Sub cmbElectLoadPS_gotfocus(ByVal sender As Object, ByVal e As System.EventArgs)...
Are there any good sample UI applications which illustrate multi threading best practices in .net? The scenario I am thinking of is a graphically rich scorecard where the kpi's are being updated from several different sources and threads. Although I am interested in WPF a Winforms sample application would I believe serve just as well ...
I'm trying to override a DataGridViewCheckBox so that it takes it's boolean value from whether an object is in a collection (essentially a predicate), and when the value is set it adds/removes the object from the collection as appropriate. Furthermore, I want this value to be checked when the checkbox is displayed (but I can't set Valu...
Hello, friends Who knows, why in vb.net WinForm projects the designer by default use the Friend WithEvents attributes and in C# - private ones. By ex, in a form.designer. .cs private Label Label1; .vb Friend WithEvents Label1 as Label; For WithEvents is more or less clear(for using Handles, apparently). But why Friend in VB and ...
What's the quickest way to show a red/green light indicator on a C# form? I originally thought about using radio buttons, but not sure how to set the color of the dot, only the foreground/background text. Then I thought about drawing a circle. Couldn't find a toolbox shape for that, and didn't want to write code just to draw the cir...
I am creating setup of my project using Visula Studio 2008. I am facing problem in setup installation. If I uninstall old setup (application) and install the new one then config file (App.config) updates the attributes (surely it is new file) of config file but if I install new setup without uninstalling the old one then config file do...
I added three images to a file called Resource1.resx. I also added one string just for test purposes. I'm getting this error on either the GetString or the GetObject(image-name). {"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"Resource1.resources\" was correctly embe...
Hello. I'm developing a Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#. I have a WinForm that only has a Custom Control. I want to call a method of that custom control when the form has finished loading and display the control. Now I using Activated Event, but these event is thrown everytime when I close a mess...
Hi, Loading gif for a winform, when i click a button i need to show loading gif then after some action it should not be displayed. I can find tutorial for web form, but am struggling to do the same for winform, pls. suggest some idea. Thanks, Karthick ...
I have a form that has textboxes that display various code values. If I click within one of the textboxes that displays a code, how do i show the description value from the listview subitem into an adjacent textbox? The user clicks on a button to select a list of codes from a Listview that displays both the code and description values fr...
I have a C# winforms database application. I want to create a custom user control which will go on say an add new customer page. I have my database app all wired up. I have DataTables, and TableAdapters, and other stuff... but I don't see a way to create a custom UI which will bind the windows form controls to an object which I could ...
There is a similar question at http://stackoverflow.com/questions/202079/wpf-versus-winforms which has some good information but in my personal experience I see no reason to use WPF over Winforms. With WPF initially there was lots of talk about it's multi-threaded functionality but in use I see no benefits. I have two applications that ...
Hi All, I am developing a sample windows application. In this application, I am making use of WinForms with FormBorderStyle set to sizable. Now, when I run my application, it shows the startup form which is re sizable. This form consist of various windows controls on it. My problem is, when I resize the form, the controls on it do not ge...
What would be the best way to show the contents of a large text file to the user using Winforms? Right now I've tried a multiline Textbox, but this is rather slow for a 2MB file. ...
Hi, I have a Windows Forms user control, which (for various reasons irrelevant to this issue) are exposed in the designer, much like the panels in a split panel. Most everything works nicely, except for dragging the control. The child controls are created by the user control, and it does not accept new children. The intent is only to al...
I am sorry if it seems like I am posting the same question. The problem is similar but I find out more and more about the problem each time. So thanks in advance for all the help. Its much appreciated. :D I want to show a form/dialog given a certain condition while inside of a loop. My problem is I have created this segment of code in m...
My C# WinForms UI has some parameters that the user can adjust using sliders. Many parts of the UI can interactively update based on the slider values. However, some parts require a longer calculation that requires some overhead to set up. I would like to only initiate this update process once the user has stopped moving the sliders f...
I'd like to edit a list of key value(string, string) items using a propertygrid. When I use a Dictionary<string,string> as type the propertygrid will show a GUI, but it does not seem "enabled", ie. I can't add any items. Is the Dictionary object supported, or is there any other object with which I could solve this problem? ...
Apparently, the RichTextBox provided by Microsoft doesn't fully support the RTF specs. For some reason, it won't permit multi-lined rows, and destroys formatting instead. Forexample, here is the RTF code to generate a table: \par \trowd\trgaph108\trleft36\trqc\trrh280\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \cellx2000\cellx4000\cellx...