Archived Months
November 2003
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms controls > november 2006

Filter by week: 1 2 3 4 5

DataGridView bound to complex object?
Posted by Bradley Plett at 11/30/2006 2:33:51 PM
I have a class as follows (this is over-simplified, but representative): class cMessage { Guid UniqueID; string Subject; cActor Sender; cActor Receiver; } Using a "List" (I love generics!) of this class type works fine as the datasource for a DataGridView. However, as you'll not...more >>


How to add an item to the Designer context menu?
Posted by Franky at 11/30/2006 11:35:13 AM
I have a RichTextBox on my usercontrol In the Designer if I right click the RichTextBox the context menu includes the item "Edit Text Lines" I'd love for myuser control to have that feature. Any idea how to add an item to the context menu? Thanks in advance for any help ...more >>

how to display data in crystalreports in vb.net 2005 in windows based application?
Posted by Gurunadh at 11/30/2006 12:00:00 AM
Hi friends, we have developed a windows desktop application in vb.net 2005 with MS-Access as backend ,our problem is we have to display data from a datagridview to a crystal report,we have written the code to display in crystal reports it is working in the system in which w...more >>

UiTypeEditor for Text
Posted by Franky at 11/29/2006 6:40:42 PM
Eraly this year Jeffrey Tan helped out someone by describing <Editor(GetType(System.ComponentModel.Design.MultilineStringEditor), GetType(System.Drawing.Design.UITypeEditor))> _ I find this works on a RichTextBox if the property is named Text and overrides the Text property. However, if I...more >>

DataGridView doesn't change with new parent record
Posted by JD at 11/29/2006 3:31:20 PM
I converted my VS2003 app to 2005 and replaced the old dataGrids with the DataGridView. Now the data in the new grid does not change when I move to the next parent record. I find the 'HELP' less than helpful. How do I get them coordinated again? Is there a good VS2005 VB Programming book out ...more >>

Some TrackBar settings use excessive CPU and RAM
Posted by Jeroen X. Pluimers at 11/29/2006 2:16:32 PM
Some TrackBar settings use excessive CPU and RAM. How to reproduce: 1. In VS 2005 or VS 2003, Create a new WinForms app (the code below is C#, but it works in any .NET language) 2. Drop a button and a trackbar component on the form. 3. Double click on the button, and enter this code: ...more >>

Thread Problem
Posted by JC at 11/29/2006 12:39:35 PM
Hi People, Please I need your help. This code run a thread ok but Not close later. thanks... private void RunServer(int aPortNumber) { _listener = new TcpListener(IPAddress.Any, aPortNumber); _listener.Start(); _ServerThread = new Thread...more >>

TextBox - Select Text
Posted by Dave Londeck at 11/29/2006 10:56:30 AM
Is there a way to select columns of text spanning multiple rows for deletion. I need to read a file into a text box and delete the first 3 columns. The goal is to simulate the feature offered by Word and Visual Studio using the ALT + MouseClick + Drag to highlight multiple columns which sp...more >>



DataGrid and Relationships
Posted by Charles A. Lackman at 11/28/2006 11:44:22 AM
Hello, I have a View that has a relationship between two tables. It works well for what I am doing, but I want to hide the child rows in my datagrid. I only want the data from table1 to show in the grid without the "+" sign. Is there a way to accomplish this? Thanks, Chuck ...more >>

Control.Remove() increases CPU usage and hangs application
Posted by kamlesh at 11/28/2006 11:01:50 AM
Hey guys, I have an app where i create a text box dynamically on a control and user enters something and once looses focus (leave event) i remove it from the user control. Once i try to focus another control in the app, Control.Remove() hangs the app and when i see the stacktrace Control...more >>

How to persistent DataGrid settings
Posted by Andrus at 11/27/2006 7:51:11 PM
I have a C# .NET 1.1 Winforms application. My users can customize its datagrids: change column width, height, font, colors etc. I want that DataGrid automatically saves and restores changed settings to/from isolated storage when form is running next time. Where to find sample code which...more >>

DataGrid Shift-Space problem -- official workaround?
Posted by Jeffrey at 11/27/2006 10:39:01 AM
I'm writing an application in VB.NET 2003. I ran into the issue that when editing information in a DataGrid bound to a DataTable, if you hit the Space key while holding down Shift, it selects all of the contents of the current cell instead of creating a space. Is there an official workaro...more >>

DataGrid Sort Event
Posted by Jason at 11/27/2006 8:02:01 AM
I have a dialog in a VB.NET windows application where I am using a DataGrid to show records in a database, where a user can select one to view. When the user clicks the OK button, it checks which record is selected and retrieves that from the database using its key. The problem I have is wh...more >>

ListView Behaviour In Vista RTM
Posted by Jeff Gaines at 11/27/2006 3:06:38 AM
I have just installed Vista RTM and I'm working through my VS apps to see what works and what doesn't! I have noticed a change of behaviour in Windows Explorer in Vista. When switching from details view in the ListView to any other view the column headers are still displayed, in XP the colu...more >>

winform, button right-click event?
Posted by Keith R at 11/26/2006 8:45:23 PM
newbie here, with first project on vb.net 2005 express edition. I've created a default "blank" button (my app will have a few dozen of these) and I want to enable them so that when the user right-clicks on them, it will bring up an inputbox and allow the user to rename the button. After so...more >>

Extending Panel (noob question)
Posted by David McCallum at 11/26/2006 1:59:07 PM
I want to extend Panel to implement my interface (IDataPanel) I know how to extend the panel, but how do I make it appear in the toolbox? TIA David McCallum ...more >>

Radio button data binding...
Posted by sonsuzoyku at 11/24/2006 3:50:03 AM
Hi, I have got three radio buttons o Yes (Db Value= 1) o No (Db Value= 2) o Maybe (Db Value= 3) The data is stored on DB on one field as tinyint. I would like to bind the data row to windows form. how can I bind that data to the radios? I think It must not be so diffucult :). But I am b...more >>

Overriding or inheriting from Control
Posted by Jose Fernandez at 11/24/2006 2:25:50 AM
Hello, we are creating a functionality in our controls, let's say, a button, where depend on the security level we enable or disable the button. Ok. I don't want to repeat the same code for every control like checkbox, textbox... etc . is there a way to override the Control object? is there...more >>

How to manually raise a DrawItem event?
Posted by dotNeter at 11/23/2006 5:51:17 PM
In general, this event should be managed by ListControls. But in a special case, I don't know who ate this event, then caused wrong repaint behavior. So I wanna raise it by myself, how to do? Thx. ...more >>

Treeview node and litsview item forecolor not drawing
Posted by Mark at 11/22/2006 5:12:44 PM
Hi Appollogies in advance as this may be down to my hardware setup. Using VS2005, VB I have a form with a treeview and listview where items can be dragged and dropped from the tree to the list. When I create the new list item I just set it's properties from the node being dropped. Th...more >>

Context sensitive menu on control derived from toolstripbutton
Posted by Steve A at 11/22/2006 2:31:02 PM
This follows on from my other post today ("Smart Tags on control derived from toolstripbutton"). I'm creating a custom Control derived from Toolstrip. The new control allows a new component ("NewToolStripButton" which is derived from ToolStripButton) to be added to the custom ToolStrip contr...more >>

Smart Tags on control derived from toolstripbutton
Posted by Steve A at 11/22/2006 2:21:01 PM
I'm creating a custom Control derived from Toolstrip. The new control allows a new component ("NewToolStripButton" which is derived from ToolStripButton) to be added to the custom ToolStrip control. I have a custom designer for the custom ToolStrip and also a custom designer set up for the "Ne...more >>

MouseLeave fired on childs controls, This does not have thus to be.
Posted by Alvaro E. Gonzalez at 11/22/2006 1:52:29 PM
Hi; A UserControl named ContainerInfo has children controls; ContainerInfo also has the MouseLeave event. But one goes off when the cursor of the mouse is in a children control . This does not have thus to be, by a contracted being in ContainerInfo mouse has not left this. What I must do...more >>

using WebControl as preview window
Posted by Manny Silva at 11/22/2006 1:28:02 PM
Hi, Is there any way to simply generate Html and then display it in the WebControl that is available in the Windows.Forms namespace in the .Net 2.0 framework? It seems like it should be a fairly straight-forward operation... but I can't figure it out for the life of me... any pointers ...more >>

TreeView Controls
Posted by A_Republican at 11/22/2006 11:30:01 AM
Hello I'm trying to create a tree view of my directory structure, and in my research all I can find is how to do it with recursion. Which works okay, but it is extremely sloooww! Is there a built in .Net tree view control that is available or is my only option recursion? -- Regards, S...more >>

ListBox ListItem FocusRectangel...
Posted by Martin Madreza at 11/22/2006 3:25:42 AM
hi, is there an easy way to remove the listboxitem-focusrectangel? an api or whatever... i slowly went wild, cause there are so many events that painted the focus rectangel new, and i cant catch that event maybe someone got an idea... i used paint, mouse over, selectedinex-changed... and ma...more >>

Image Viewer on Website
Posted by Milan at 11/21/2006 9:07:05 AM
Hi, Creating web application on .net. On one page need to show jpg image to the user and user shloud be able to zoom in and zoom out. Does any one know free image viewer control which can do this Thanks you Milan ...more >>

An interesting problem for Assembly sages
Posted by Ron M. Newman at 11/20/2006 9:42:25 PM
Hi, I can load an assembly using the Assembly.Load(....) However, I'd like dynamic loading of assemblies to be identical to putting an assembly reference in your VS2005 project. and yes, I know about the unloading problems. Let's say I don't care for the moment. If I have an assemlbly f...more >>

Connect Windows Forms GUI to a C code which is serving as a back end
Posted by moni at 11/20/2006 1:29:13 PM
Hi, I was hoping to be able to connect a C code to a .Net application which is serving as the GUI through TCP/IP. In this the C code is going to act as a server and the GUI the client which should be able to send commands and data to the C code which is alraedy running and then the Executin...more >>

Control position
Posted by David Bell at 11/20/2006 12:00:00 AM
Hi Group, How can i find the postion of an image button on my page? thanks David Bell ...more >>

Listview for realtime applications
Posted by Anthony Williams at 11/17/2006 11:26:57 AM
I am trying to develop a piece of software that will be used to display data on a network in realtime. The problem I am having is that the listivew control I am using to display the data (in detail mode) flickers even after I have overridden the control and enabled double buffering. I've tried...more >>

How can I develep a drop-down control???
Posted by Melisa at 11/16/2006 7:55:51 PM
Hi, I am trying to list all font families in a combo box control. But all font families does not support all font styles . How can i get the list of all font style and font size supported by a specific font family like in font dialog window control ??? Please help me and reply as soon as...more >>

More PropertyGrid Agony
Posted by Ron M. Newman at 11/16/2006 4:34:03 PM
Hi, Can the native PropertyGrid accept dynamic properties? ones that are not pre-compiled into a class and don't have those [TAGS] thingies attached to properties? Can I just instantiate a property grid and put a dynamic "Name" property in there without having a class with a name property "...more >>

Custom ToolTip on ToolStrip
Posted by Peter Larsen [] at 11/16/2006 11:36:15 AM
Hi, Is it possible to change the ToolTip control associated to a ToolStrip - to a custom ToolTip component of my own ?? BR Peter ...more >>

ComboBox
Posted by Dmitry Nogin at 11/15/2006 5:31:12 PM
Hi, I inherited from ComboBox: class MyCombo : ComboBox { public event EventHandler Changed; } How to raise "Changed" event when one calls my Items.Remove(...) method? myCombo.Items.Remove("Jim"); Is there anyth...more >>

Placing a common control across all tabs on a TabControl?
Posted by Earl at 11/14/2006 10:36:21 PM
Any way to put a common control, say a listbox applicable to ALL tabs, on one tabcontrol? Similar to the old Infragistics "common area" where you could place controls visible on all tabs. ...more >>

a property that must be propagated to sub-controls
Posted by ThunderMusic at 11/14/2006 2:05:47 PM
Hi, I have a property I want to propagate to sub-controls but I don't want the property to be available to the developers (users)... I want the property to be set on the parent control and then the parent will propagate the property value using an internal property of the sub-controls... If I...more >>

Clear DataGridview
Posted by archuleta37 at 11/14/2006 9:05:02 AM
how can I clear out all of the data in a datagridview? I need to repopulate the data in a datagridview in a button click event so that all of the values get recalculated, but by default the datagridview just adds new data to the data that got populated the last time I triggered the event. I...more >>

parental controls
Posted by vcantu at 11/10/2006 4:07:01 PM
I want to know how to set up parental controls. I have a niece and nephew that get on my computer and download stuff. I want to know if there is a way to block them from doing that? I have already set up the guest account on the main log in but I want to block some of the stuff they do on that...more >>

DataGridView with ComboBox column - Pre-select a value.
Posted by Andy at 11/10/2006 5:30:14 AM
Hi, I have a simple form with a DataGridView which contains a ComboBox column. The ComboBox is successfully filled at run time from a DataTable. The DataTable contains about 6 text values which are displayed as a drop-down list //Fill the combobox with the different method...more >>

PDF Viewer
Posted by MBS at 11/9/2006 10:11:09 PM
Does anyone know of a good, inexpensive PDF viewer .net control? mbs ...more >>

restrictions of Filedialog Control
Posted by sameer at 11/9/2006 2:06:01 PM
Hi, vb.net with winforms 1.1, VS 2003 I am using a FileDialog1 controls in my vb.net application, works like at charm but there are two things that i want to do that it almost seems i can not 1. this application is gong to run over Terminal services( remote desktop) and i dont want to u...more >>

ABout opacity control
Posted by Ravindra at 11/9/2006 12:00:00 AM
hi all, can we make buttons and listboxes transaprent as we do it for forms..please tell me..urgent -- Regards, Ravindra P.N Jr. Software Engineer Nanna Computers (Vizag) Tel: 9849216706 ravindra@nannacomputers.com (This electronic message contains information from Nanna Computers, w...more >>

ToolTip
Posted by Peter Larsen [] at 11/8/2006 10:06:18 PM
Hi, I want to get better access to all properties behind the ToolTip component. One of the properties i'm missing is to control how often it (the tooltip) should be updated before it is closed. I only remember the properties from Delphi as named "ReshowTimeout" and "HideTimeout". To upda...more >>

How to avoid a designer creates a Size line for a derived control
Posted by Mario Vasquez at 11/8/2006 2:28:30 PM
I am creating a custom button, derived from System.Windows.Forms.Button. In this new control I assign in the constructor a size for itself, because I need that to be a fixed one: e.g., public CustomButton() { .... this.Size = new Size(32, 23); .... } since this prope...more >>

ControlPaint and textboxes
Posted by Brendon Bezuidenhout at 11/8/2006 12:49:32 AM
All, Does anyone know how to paint a TextBox like using the TextBoxRenderer (.NET 2.0) namespace - BUT by using the ControlPaint class Brendon ...more >>

Listview and ContextMenuStrip - doesn't work...
Posted by Ron M. Newman at 11/7/2006 11:20:42 AM
Hi, I'm attaching a ContextMenuStrip to a listview. Debugging shows the menu is healthy with one item in it and that it's referred to by the "listview.ContextMenuStrip". However, right clicking the list view or elements doesn't bring up the menu. Any ideas? Thanks, Ron ...more >>

How can I still be able to scroll the scrollbar even when I set ListBox.Enabled = false?
Posted by dotNeter at 11/7/2006 6:23:12 AM
The ListBox can't scroll anymore when we set ListBox.Enabled = false. But now I still wanna scroll it at that moment. Is it possible to do so? Thx in advance. ...more >>

PropertyGrid and the TypeDescriptionProvider class
Posted by Jeff Johnson at 11/6/2006 12:03:41 PM
I have a class that is set up to be expandable so that it displays with the plus sign in the property grid. I want the properties that this class exposes to be displayed in a particular order which is not alphabetical, specifically I want them to look like this: -Contact Name Addres...more >>

Help need with datagridview
Posted by Saravanan at 11/5/2006 7:15:02 PM
Hi, I am using DataGridView for displaying data I want to some idea about the following 1. How to split and merge cells in DataGridView 2. How to place column header in the bottom of the cell because by default it is coming as top of the cell, how to change the behaviour of the datagridvie...more >>


DevelopmentNow Blog