Answer Questions
Ashish Yadav Overriding Container Controls - Design Time Problem
Hello, I have created my own SplitContainer control by overriding the Windows.Forms.SplitContainer control. In the constructor I call base() and then programmatically add a ToolStripContainer to SplitContainer.Panel1. This works fine, but I cannot click on the ToolStripContainer, or drag ToolStrips etc onto it at design tiime. When I drag a control from the toolbox onto the ToolStripContainer, the new control is added to SplitContainer.Pane ...Show All
El Bruno DataGridView BUG!
Hi, I think I have found a bug of DataGridView. I have a datagridview and two textboxes binded to a bindingsource. This bindingsource is binded to a dataset with a datatable. In CurrentChanged event of bindingsource, I'm using SetInputControlEnabled( myBindingSource.Current != null) and in SetInputControlEnabled(bool enabled) method, I'm setting myTextBox1.Enabled = enabled; myTextBox2.Enabled = enabled; The BUG is: when I run th ...Show All
Adam Tyler How to implement copy and paste with DAtagridview
Hello, Can anyone help me how to implement a copy (of rows) in datagridview that of course goes to the clipboard which later I would like to paste in Excel Thanks in advance for help Cesar I spent 2 days to do the same & came up with the following. This may not be the best solution but works. Hope this helps. 1. First of all, you need to add to Excel Object Library reference to your project. 2. Used ...Show All
bluemoon2181 How to change color of control's border ?
Dear all, As you knew, the BorderStyle property of controls (Ex: panel, textbox...) is : None, FixedSingle and Fixed3D. With FixedSingle, the border of control's color is black. I want to customize border of control is another colors, so what i should do Thanks for your help. Steven Hi Chris, Let me see if I understand. Would you paint the NC area from within the WM_PAINT message Wouldn't that ...Show All
Amy T Another DataGridView Bug in VS.NET 2005
Hello there, I think I've run into another bug within the DataGridView control. I've got some kind of bigger project here where I use DataGridView in several forms. But everywhere I use it, I can't get access to its properties. They simply aren't displayed. The property explorer remains empty when I select one of those DataGridViews. It seems to be a bug 'cos VS.NET crashes when I select the DataGridView via the DropDown list right above the pro ...Show All
Oster What's the purpose of 'PreviewKeyDown ' event?
What's the purpose of new 'PreviewKeyDown' event The doc doesn't say much. Is the only difference that it occurs before the 'KeyDown' event If everyone start using this instead, won't it simply replace 'KeyDown' When should I use one or the other I found this excellent answer: http://blogs.msdn.com/jfoscoding/archive/2006/01/26/518181.aspx " If you've struggled before with having to override a class in order to set IsI ...Show All
sbadams Binding DataGrid columns to members of a collection.
I am binding a windows form datagrid to a collection of objects. This works fine and I can see the public properties of the objects. One of these public properties of each object is a custom collection inherited from DictionaryBase. How can I bind my datagrid to members of the dictionary Thank you! That is the closest thing you can do. The problem is that your business object is a "one" and your co ...Show All
excittor Datagrid column heading
In datagrid one of my column heading is big. I want to wrap it to the next row how should I do in VB.net Have you checked: http://www.syncfusion.com/FAQ/WinForms/default.asp#44 Yes I had checked this also ...Show All
Rogermon Creating msi installer
I have configured Taskvision to work for my needs, but how do I create an installer Robert. When I attempted to create a client installer I included everything I thought could be a reference or dependency and still got "System.NullRe ...Show All
Peter Macej Winforms with Access DataBase ( it doesn't SAVE , modify records )
Hello. I'm developing an application using vb. NET and an Access DataBase ( the application is not big ). I ADD a DataSource, ( Menu/Data/Add new datasource) i select an Access Database, and i select the table i need ( dataset ).. everything seems to be fine. I go to the dataSource Windows to see my DataSets with its table, i drag and drop it into a blank winform, it creates a datagrid with its navigator, every seems to be cool. I run t ...Show All
Eze BUG: Application.EnableVisualStyles() breaks ToolBar control
Create a windows forms application, add an image list and load some random images. Now add a toolbar, set the imagelist to the image list previously added and then add a couple of buttons. Set the pictures for the buttons to any of the loa ...Show All
Coding_Freak How can I transfer data between two forms like Visual Basic ?
I'm writing an application by C# but I don't know how to transfer data between two forms or more. Example : I want to get data from a textbox on another form to display on this form. Please tell me about that. Thanks in advandce ! One way to do that : make one form as instance (make it class member) in another form. That way, you can access member of member form, including it's textbox and use it in your main form. I think you should make ...Show All
Jeroen Vos Default Properties
I am creating custom controls for a project and I want to set default values for background color, fonts, etc.. I want to change these values in the controls AND I want the IDE to reflect any changes. I'm new to VB.NET and can' ...Show All
charleste datarowview.isedit always returns true?
Hi I have a win form with a couple of databound textboxes. it's set up as follows: 'fill the ds 'bind the textboxes txtUsername.DataBindings.Clear() txtUsername.DataBindings.Add( "Text" , _TheDS.Tables( "Users" ), "Username" ) _TheCM = DirectCast ( Me .BindingContext(_TheDS.Tables( "Users" )), CurrencyManager) -------------- Dim dr As DataRowView dr = CType (_TheCM.Current, DataRowView) ...Show All
java1974 property Index of a control in VB6 vs .NET
Hi, in VB6, you can group controls together and call them just by the index property. Example : Private Sub Text1_Change(Index As Integer) Text1(Index).Text = "Something" End Sub Do you know if it exists in .Net and if yes, how to do it&nbs ...Show All
