Groups | Blog | Home


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 > august 2006

Filter by week: 1 2 3 4 5

rtf control help
Posted by graeme g at 8/31/2006 2:47:52 PM
hi i'm using the rtf control - just wondering if there is a way in rtf to make specified words certain colors... just like a spell checker... thanks g -- i used to be indecisive but now i'm not so sure.... ...more >>


picturebox: text disappears in picturebox when written with DrawString
Posted by ray well at 8/31/2006 9:16:57 AM
i have a picturebox on a form to which i write text with Graphics.DrawString. the text gets written to, but it disappears when i switch to another form! i must be missing something but can't figure it out. what do i need to do have the written text presist when the form gets covered and...more >>

UserControl in IE that does "POST"
Posted by Jakub Gwozdz at 8/29/2006 10:26:07 PM
Hi there I need to write .Net component (UserControl) that acts like ActiveX control. This includes: - drawing form with several textboxes, listboxes, comboboxes etc. and "submit" button on web page (<object classid="">), - gaining some info from user in that form, - when user presses "Sub...more >>

UITypeEditor of IExtenderProvider properties
Posted by MuZZy at 8/29/2006 3:00:07 PM
Hi, I am developing a component implementing IExtenderProvider with a property ImagePosition. For this propery i want to create a custom type editor but the problem is that when you implement IExtenderProvider you craete properties as methods e.g instead of property [Editor(typeof(MyCust...more >>

Updating a BindingSource that uses a Join!
Posted by Rob Dob at 8/29/2006 1:36:18 PM
Hi, I have both a Customer and a Orders Table, the key field is CustomerID. I also have a DataGrid that uses a BindingSource which uses a dataset which uses a join between the Customers table and the Orders table. Everything displays correctly and when I double click on a row within the ...more >>

Easier use of ComboBox in DataGridView?
Posted by Luis Navarro at 8/28/2006 1:44:01 PM
I have a DataGridView with some ComboBox cells. However, for the user to access the ComboBox menu, they have to first select the cell, then click the arrow button that displays the menu. Having the user click twice seems a little harsh. Is there any way to set this up so that if the user ...more >>

Is it possible to add a textbox to a status bar?
Posted by Andy Jacobs at 8/28/2006 6:56:01 AM
Hello, Is it possible to add a textbox to a status bar? If so, a code example would be much appreciated in C#. Thx. Andy Jacobs...more >>

How to Change the Color of the Border Shadow on Button Controls
Posted by TCook at 8/26/2006 4:28:02 PM
Hey All, I have been requested to change the back color on various windows forms which is easy enough to do. However, the shadow border around the control buttons doesn't work well against the requested forms color. The bottom and right border in heavy black show up fine but the top and l...more >>



PLS HELP! Problem with CheckedListBox changing Parent
Posted by MuZZy at 8/26/2006 4:15:17 PM
Hi, I hope someone could help me here: I have a CheckedListBox control (i'm using .NET 2.0 + VS 2005) which is given a DataSource: clbTest.DataSource = SomeDataTable; clbTest.DisplayMember = "SomeDisplayField"; clbTest.ValueMember = "SomeValueField"; Now the control populates items from...more >>

Change border color for a control
Posted by MuZZy at 8/26/2006 2:50:23 PM
Hi, Is there a way to change border color for a control, e.g. Panel? Overriding OnPaint event and drawing a border doesn't help as you can only draw such a border within client area of that panel affecting whatever is in there, in other words it will not be a real border. I woudl assume ...more >>

systray app - help
Posted by Arvi at 8/25/2006 10:35:22 AM
Hello, Im quite new to c# windows application. i need to write a application which stays on the systray and listens to the SQL Table. (when the value is inserted as 0 - done thru Dataset and check it every2 seconds?) i need to open another application thru command prompt and pass the parame...more >>

Scrolling UserControl with mouse wheel
Posted by jens.ro at 8/25/2006 9:54:30 AM
Hello, I have a UserControl that contains some child controls (in more detail I programmatically add some labels arranged in a FlowLayoutPanel). When the content of my UserControl exceeds its height, it should be scrollable, therefore I set the AutoScroll property of my UserControl to true. T...more >>

sleep function for progress bar
Posted by reshm at 8/24/2006 11:22:05 PM
I want to use sleep function to implement the progrss bar the progress bar. ...more >>

Listbox with buttons
Posted by kiran.inbng NO[at]SPAM gmail.com at 8/24/2006 8:20:45 PM
Hi All, Iam trying to create a listbox with buttons/tree control as items in a listbox(ownerdrawvariable) and iam having some problems.Below are my questions, 1.Is there a equivavalent of DrawFrameControl(a win32 api) in C#.If not how can button be created in the item rect 2.How to a creat...more >>

Wizard interface ?
Posted by WT at 8/24/2006 7:59:58 PM
Hello, I can find any component to create a wizard interface with native vs2005 components, I am missing something ? CS ...more >>

Custom control design woes
Posted by Charles Jenkins at 8/24/2006 4:53:04 PM
If I create a new UserControl and set up its properties (color and width, for example), it looks just like I want it when I am viewing the control. If I recompile, the control appears in the Toolbox. If I drag an instance of the control onto my form, it gets added, but all the properties...more >>

syntax highlighting
Posted by graeme g at 8/24/2006 4:42:02 PM
hi i'm trying to work out the best way of developing an edit control (rich text box or whatever) that i can intergrate syntax highlighting into... whats the best way of doing this? should i parse the text with a regex or something or just wait for the space bar to pressed and then check th...more >>

treenode within a listview control
Posted by moni at 8/24/2006 11:49:56 AM
Hi, I wanted to know if there was any way by which I could make a treenode control an item on my listview control. I have tried doing that..but the listview control does not allow me to add a treenode to it. This is allowed: item1 = new ListViewItem(p1.DisplayName); This is giving erro...more >>

DataGridView, TableAdaptor or Binding Source Event?
Posted by Greg P at 8/24/2006 10:16:02 AM
Ok so I can't change the color of a button, so I want to change the color of a cell in the same row, based on the argb integer stored in that row everytime the DataGridView's data is refreshed. I'm looking to have the color displayed when the user selects the tab page, when data is saved to ...more >>

Listbox assigning default
Posted by John at 8/24/2006 12:00:00 AM
Hi How can I highlight (select) via code an item in a list box that has the value "Current"? Thanks Regards ...more >>

Checkbox list questions
Posted by John at 8/23/2006 5:59:59 PM
Hi I am new to vs2005 and have two questions re: chekbox list. 1. How can I check in code what item was clicked? 2. How can I access an item's value in code? Thanks Regards ...more >>

visual studio controls - toolbox
Posted by graeme g at 8/23/2006 11:14:50 AM
hi how do i get to use the collapsable panel like the toolbox etc is Visual Studio? thanks g ...more >>

Color Dialog Box Defaluts
Posted by Greg P at 8/23/2006 10:27:02 AM
For some reason my color Dialog Box Defaluts have changed. I think this is a windows setting but I'm not sure. I see the same screwed up box in VS2005 and in Excel. Question 1: Can I reset this to the default settings programmatically for my application? So if is a user has screwed up...more >>

DataGridViewButtonCell Backcolor
Posted by Greg P at 8/23/2006 8:23:02 AM
DataGridViewButtonCellHey Linda, I am working on a bound DGV, I want the user to choose a color for each row. This will be helpful in reporting later. To do this I have implemented the DataGridViewButtonCell. What I want to happen is when the user presses it a color dialog opens up, whe...more >>

Copy from Excel and Paste to DataGridView
Posted by infinitisound NO[at]SPAM yahoo.com at 8/23/2006 1:35:33 AM
Could someone tell me how to write the code so I can copy cells from Excel and paste them into Datagridview cells? A user should be able to to to excel, highlight some cells, hit ctrl c, then go to the windows form and paste those in a datagridview control. When I try this it pastes everything...more >>

ListBox disabled items ??
Posted by Bragadiru at 8/22/2006 4:29:37 PM
Hi all, I want to disable one or more items from a ListBox/ComboBox list. How can I ? In FoxPro, just adding "/" in front of Item.Text is enough for disabling that item. Thanks for any advice ...more >>

ListView Items ListViewItemCollection
Posted by Laurence at 8/22/2006 3:20:56 PM
In VS.2005, Does anyone know what the difference is between the Listview.Items and the Listview.ListViewItemCollection It seems that they are the same thing? I can't get anything out the VS.2005 help. Thanks in Advance, Laurence...more >>

when my C# service impersonates a secondary account does the secondary account need any special permissions? what are they?
Posted by Daniel at 8/22/2006 10:36:20 AM
when my C# service impersonates a secondary account does the secondary account need any special permissions? what are they? ...more >>

context menus
Posted by Charles Crawford at 8/21/2006 6:48:59 PM
Hello, I'm writing a windows forms application and have a custom user control built from multiple controls, including a picturebox control onto which I'm drawing a clock face. Each hour on the clock face represents a 'node' and I have the application switch cursors from the arrow to hand curso...more >>

Right Click inconsistent in MouseClick Event
Posted by Seigfried at 8/21/2006 10:21:29 AM
I need to detect a right-click in a component. I've discovered that the MouseClick event will register a right click with some components but not with others. The simple code Private Sub control_MouseClick( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.MouseE...more >>

Clearing textboxes
Posted by apostrophe27 NO[at]SPAM yahoo.com at 8/21/2006 6:33:41 AM
I want to clear some textboxes of previously written data. When I run the code below, only the txtBuffer text box is getting cleared. What am I missing? private: System::Void btnRead_Click(System::Object^ sender, System::EventArgs^ e) { clear_textboxes(); fd_rea...more >>

Treeview: Added/New Nodes not showing up during run-time
Posted by LordHog NO[at]SPAM gmail.com at 8/21/2006 1:38:55 AM
Hello, Note: I posted this message originally in the compactframework group by accident, sorry. I am having a problem with the Treeview control in Visual Studio.NET 2005. I have a treeview control which has two root trees and by default two child nodes indicating no items have been adde...more >>

Checklist box code help needed
Posted by John at 8/20/2006 12:00:00 AM
Hi I have a check list box.When user selects a specific value '(All)' I want to uncheck all other check boxes in the list. How can I achieve this in code? Thanks Regards ...more >>

TreeView Stealing Focus From New Form
Posted by franks at 8/19/2006 4:15:22 PM
I'm trying to use a TreeView as part of a menu system. When a user clicks on a TreeNode, I need to open a new form. The problem I am encountering is that after the new form is spawned the TreeView object on my menu form will steal the focus back from the newly created form. I've seen sever...more >>

Can it possible to create a combobox control which always set datasource, displaymember and valuemember peoperties?
Posted by ABC at 8/19/2006 12:00:00 AM
Can it possible to create a combobox control which always set datasource, displaymember and valuemember peoperties? For example: public partial class CurrencyCodeComboBox : ComboBox { public CurrencyCodeComboBox() { InitializeComponent(); ...more >>

Datagrid View Merging Columns Problem
Posted by Jamie Bissett at 8/18/2006 12:00:00 AM
I currently have an application that uses the Paint event to Merge Columns of the DataGridView when the data in adjacent cells are equal. I have two questions regarding this : 1) What is the easiest way to determine the last column that in in the displayable in the user area when the form i...more >>

Property in custom control, Visual Studio wont add design code even though its browsable.
Posted by Josh at 8/17/2006 7:08:59 PM
I created a complex custom control using Visual Studio 2005 in C#. The control has numerous properties, some of which Visual Studio cant seem to create designer code for when I set its value in the property browser. Below is the property that is giving me the most trouble in the designer. ...more >>

ComboBoxColumn = Slowww
Posted by Daniel Manes at 8/17/2006 4:03:36 PM
I have a DataGridView with about 450 records. There are five columns: three ComboBoxColumns and two TextBoxColumns. When loading the Form, even after all the BindingSources are filled, it still takes a long time before the data shows (and I'm running on a pretty fast machine). Also, if you try t...more >>

ListView Rows not displaying properly.
Posted by Memphis at 8/17/2006 6:31:02 AM
VB 2005 (.Net 2.0) / Win XP Pro - SP2 The ListView contains 3 columns and on load the first 7 rows are visiable. The first 7 rows are of the correct Row Height/Col Size. As you scroll down, the next rows appear to NOT be of the correct Row Height OR there is an issue with a paint event as th...more >>

PropertyGrid
Posted by a at 8/17/2006 12:00:00 AM
How does the WinForms PropertyGrid work? Do they use reflection/Reflection.emit, to get the props and their values? Can someone tell me? ...more >>

DataGrid Disable Ctr-A
Posted by Howard Swope at 8/16/2006 5:26:23 PM
Ctrl-A selects all in the System.Windows.Forms.DataGrid. I am trying to disable this functionality and am having a heck of a time. I have a control that inherits from DataGrid I have tried to catch the Ctrl-A in the OnKeyDown and ProcessKeyMessage and it seems that something is getting to it ...more >>

MenuStrip - Access ALL items programatically
Posted by Memphis at 8/16/2006 2:56:02 PM
VB 2005 (.Net 2.0) Mnu - Top Level = File / Report / Help Mnu - Under File = New / Edit / Maintenance / Inquiry / Utilities / Exit **Mnu - Under File/New = Core / Pay / Bill / Pass Programatically I can loop and find the Top Level items and then Items under File. The problem is tha...more >>

Event when a controls databinding is actually completed
Posted by Benny S. Tordrup at 8/16/2006 1:10:52 PM
Hi all I've created a control dereiving from another control. This controls has data binding ability. Is it possible to be notified in code when the databinding actually is completed? I need this in order to perform some action based on the value that the control contains when loaded. My...more >>

adding designtime support for property of usercontrol (InitializeComponents)
Posted by Robert Ludig at 8/16/2006 9:08:37 AM
I have a very simple UserControl (derived from System.Windows.Forms.UserControl) that contains several ListViews. The UserControl exposes a single public property: public ListView.ColumnHeaderCollection Columns { get {...} }; When I use VS2005 designer's proprtygrid for that UserConrol to ad...more >>

The control appereance in a Graphics or Bitmap object.
Posted by Hamed at 8/14/2006 11:49:32 PM
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed "Hamed" <hamed@raymehr.com> wrote in message news:u0zFFR7vGHA.4880@TK2MSFTNGP04.phx.gbl... >> Is it pos...more >>

User drawn custom control flickers when moved
Posted by ThunderMusic at 8/14/2006 3:26:58 PM
Hi, I'm developing a custom winforms control that uses the Graphics objects to draw itself to the default UserControl panel. The problem is, even if I draw some very basic things (like 2 rectangles), it flickers when I move it... I mean, I can see some tearing in the control's image (or what...more >>

all icons in the toolbox of VS 2005 turned into errorprovider icon
Posted by Hennie7863 at 8/14/2006 7:36:11 AM
Hi, In the toolbox of VS 2005 all of the icons of the controls like "button", "checkbox" has turned into an icon which is shown at the error provider (red O with a white ! in it). Could someone tell me what happened en how to correct this problem? Hennie7863 ...more >>

DataGridView: Move to a cell on the right after pressing Enter
Posted by William Matton at 8/13/2006 7:23:02 PM
Hi, is there a way how to move the "cursor" in a DataGridView to a cell on the right of the current cell after pressing Enter? The problem is it moves also downwards and I don't know how to tell it to move to the right only. TIA Will...more >>

Determining if a window is open
Posted by Charles A. Lackman at 8/13/2006 6:43:57 PM
Hello, When you show a Windows Form using Form1.Show, is there a way to find out if the window is currenlty open using framework 1.1? Thanks, Chuck ...more >>

listview virtual mode - how to ensure visible?
Posted by Michael.Suarez NO[at]SPAM gmail.com at 8/11/2006 9:48:50 AM
I have a form. This form has a listview with virtualmode set to true, a button, and a textbox. it has mVirtualItems, which has several hundred items. private ListViewItem[] mVirtualItems; public frmMain() { InitializeComponent(); listview1.RetrieveVirtualItem += new RetrieveVirtualIt...more >>


DevelopmentNow Blog