-
- odd data binding/notification problem
by Anjo Gasa
- 4 Replies
- Last post
by Ken Tucker
- I have a managed object, Schedule, which consists of a StartDate. The Schedule objects implements INotifyProperty, and StartDate issues the appropriate event for changing "StartDate". A DateTimePicker control (the Value property specifically) on the form is bound to the StartDate property. I set the bounds for the DateTimePicker control in the form's constructor. I am seeing some very od
-
- C#: Can't Get a Form to Scale
by DennisV
- 6 Replies
- Last post
by DennisV
- I cannot get my forms to scale.
Form1 is too small on the PC the program is going to run on.
I have AutoScaleMode set to "Font."
I put this .Font = new Font ( this .Font.FontFamily, 9); in Form1_Load, and this did enough in some areas (went from 8.25 to 9 font size).
I looped through the child controls but not all child controls scaled properly.
I
-
- Quick Launch tool bar
by goinsr
- 2 Replies
- Last post
by goinsr
- Does anyone know how to enable the quick launch tool bar for default user profiles
-
- Flicker-free painting
by nobugz
- 14 Replies
- Last post
by Pavel Tratavin (mr_robot)
- A frequently heard complaint at this forum is Windows Forms' tendency to cause "flicker" on forms with a lot of controls. There are two causes for this kind of flicker: 1. Windows sends a control two messages when a control needs to be painted. The first one (WM_ERASEBKGND) causes the background to be painted (OnPaintBackground), the second causes the foreground to be painted (WM_PAINT,
-
- ToolStripButton's ContextMenu
by Eitan Burcat
- 2 Replies
- Last post
by Eitan Burcat
- I need to know in a ContextMenu's Click-Event - which ToolStripButton was responsible for the ContextMenu's popping.
The (sender as ContextMenu)'s SourceControl gives me the entire ToolStrip on which the spesific button resides. I need to know which specific button was pressed. Is there an easy way to do this
The directions I thought of so far are:
1) Assigning a tag to the ToolStripButto
-
- MessageBox from worker (Non-GUI) thread
by scptech
- 8 Replies
- Last post
by Keith Rome
- In a C# (.Net 1.x) application, when a user clicks on the "Run Update" button, I launch a function DoRun() in a worker thread
Question 1:
I need to bring up a confirm dialog while the function is running based on some condition. That cannot be asynchronous. Is it generally Ok to bring up the Dialog (MesageBox.Show.....) from the worker thread If not, what is the way to do this sync
-
- Telerik or Infragistics
by Evgueni
- 5 Replies
- Last post
by JRQ
- Hello,
I am about to decide on the suite of controls to use in an application. Infragistics seems be a defacto in the industry, but Telerik offers their controls at a lower price.
Has anybody had any experience with using Telerik in the Windows Forms world Do they have a lot of bugs How is performance Is functionality of Telerik controls up to par with the functionality of Infragistics Windo
-
- Can't databind to an object using a TextBox and DataGridView
by KitWest
- 3 Replies
- Last post
by KitWest
- The following example shows an issue we have with binding TextBoxes as well as a DataGridView to the contents of a single object. This example won't run past the DataBindings.Add call, where I get an ArgumentException: "Cannot bind to the property or column MyStringProperty on the DataSource. Parameter name: dataMember".
What am I doing wrong
Thanks in advance.
using Syste
-
- Adding a property to underlying bound object does not add corresponding column to bound datagridview
by stratoblue
- 3 Replies
- Last post
by OlivierV
- I have a datagridview. Using the wizard, I create a new binding source with Object as its datasource type. As soon as this is done, columns corresponding to the properties of the underlying object are displayed in the datagridview. This is all happening at design time which is excellent.
However, if I add a new property to the underlying object, I can never get that new property added to t
-
- How to make buttons, controls look like Vista?
by Brad R
- 2 Replies
- Last post
by Ðãv? S. Â??????
- have been searching a while now to see if or how the standard UI buttons or misc controls for VS2005 C# can be overridden to appear as the neat new Vista style
I downloaded WTL 80 but couldnt get Aero to compile because of a missing .h file
found a sample at gotdotnet for one "button" but how to find or make or buy rounded edge buttons, add colors like hot neon, etc
-
- Installation Package using Install Shield
by reeya
- 1 Replies
- Last post
by PhilWilson
- I have developed a desktop application using Visual Studio 2003. i want to create a setup for the application using Install Shield's latest version. Can any one plz giude me in the same.. please... Its urgent.....!!!
-
- Form.CausesValidation?
by Ejan
- 11 Replies
- Last post
by DBass63
- In .NET, the Form object also has the CausesValidation property which, in my experience, is really annoying . Here's why:
Suppose that I've a TextBox control, txtFiscalYear , which I want the user to fill before she can move to any other control on the Form except the Cancel Button . For this, I left CausesValidation property of all controls on the Form set to true and set it to false for the
-
- Application Resizing Slooowwly
by xr280xr
- 1 Replies
- Last post
by xr280xr
- Hi,
I've got an application that contains quite a few controls. For some reason it resizes very slowly and paints all different parts at different rates so you see elements being repositioned seperately which looks pretty bad. There are a few user controls overlayed but only one is set to visible at a time. I've made sure that there is nothing happening on the resize event using up processing p
-
- multible columns into a combo box c# 2.0
by Tharmapalan
- 2 Replies
- Last post
by Tharmapalan
- Hi all
I need a solution for bind multible columns into a combo box in c# 2.0 ,I thing it is possible but couldn't get sucessfully if anybody know solution pls help me
Thanks & Regards
k.palan
-
- Binding a textbox to the primary Data Connection server name
by krussellm
- 5 Replies
- Last post
by Damiaan
- Is there a way to bind a textbox to update the value of the server name of a Data Connection I would like a non-technical user to be able to specify what server to connect to within the client application. So instead of connecting to the locahost SQL server instance, a user is prompted for a server name at the start of the client applicaiton. That user types in the server name and the entire appli
-
- Determining the path to a certain directory
by smtraber
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- part of the project i'm writing is dependant upon a couple files that get installed alongside another program. Is there a way to do a search for the .exe file of the other program, and save the path to that folder in a variable so I know where to tell my program where to look for the files it needs.
Thanks,
smtraber
-
- How to add shorcuts to the SEND to folder
by Abith
- 2 Replies
- Last post
by Abith
- Hi All This is my first post in this forum. I have created setup project. I want to place a shortcut in the send to folder so that it will come in the sent to option Can any one guide me Regards Abith K
-
- Could not show window form after upgrading from VB 6
by Lixing
- 1 Replies
- Last post
by nobugz
- I upgraded VB 6 prject into Visual Basic .NET. One of the original forms has a couple of OTX controls. After upgrading to .NET, the form view desinger can not be shown. The first error message I got is "The OT/X Command Manager Control must be placed on the MDI form window. Please remove it from this form and place it on the proper window. I understand the error message. Unfortunately, since
-
- Problem with using the CollectionEditor class for component class in C#.
by Biju557566
- 2 Replies
- Last post
by Biju
- Hi,
I have created a Windows Component class(in C#) which will be used by the other developers in their application during the design time. The developers will add the component into the tool box by adding the reference to it. Later they drag and drop the copmponent on the Windows form.
I needed the component in such a way that the developer could add the collection item
-
- DataGridView RowValidating IndexOutOfRangeException
by imran.a
- 2 Replies
- Last post
by imran.a
- Hi all, I am having a problem with inserting rows in to my datagridview control. The datagridview is bound to a bindingsource with a filter set. If i try and add a row to the datagridview while the filter is set i get an IndexOutOfRangeException specifying that the index of the row i have just added does not exist. I have managed to narrow down the conditions that cause the error and it seems to s
-
- How do i retrieve the multiple selected values in a List Box ??
by Kodavati
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I would like to know how to retrive multiple selected values in a List Box.
Here is the code that i had written :
For counter = 0 To upperbound - 1 If ListBox1.Select Then mystring = mystring & "," & ListBox1.SelectedItem Else MessageBox.Show("Select an Item") End If Next counter
please let me know abt th
-
- Winform architecture, comments please
by Marlun
- 1 Replies
- Last post
by Marlun
- Hello!
I've looked at the first webcasts in the architecture series and created this architecture:
I'm using MVC with the Command and Adapter patterns. Right now the MainForm creates adapters which takes a control and a command in their constructor (some adapters take more). They hook up an event from that control to the command, for example the ToolStripExitClickAdapter might hookup
-
- Vista TreeView does not cancel user check
by LorMee
- 5 Replies
- Last post
by Crazy Monkey
- I have some treenodes which i want to make it uncheckable.
This is achievable by hooking to the BeforeCheck event and set the Cancel to true for TreeViewCancelEventArgs.
However under Vista, when user doubleclicked the treenode, the check box still get toggled even though the Cancel member of TreeViewCancelEventArgs parameter had been set to true.
Does anybody know how to work around th
-
- Cannot Access File
by DanDare
- 6 Replies
- Last post
by DanDare
- My program firsts reads a file then writes to the file. The program used to work fine on my old XP Home OS and using Visual Studio 2003. I've since changed to XP Pro and installed Visual Studio 2005. I now get the following error: "The process cannot access the file "C:\Haven.dat" because it is being used by another process." It's got something to do with Haven.dat still being
-
- databind a datagrid to an XmlDataSource?
by MikeroSft
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Is it possible to databind a datagrid to an XmlDataSource