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 > may 2005

Filter by week: 1 2 3 4 5

View PDF Files in my windows form application
Posted by Staling Rivas at 5/30/2005 6:33:48 PM
hello Group, I'm a windows application and i need to view a pdf file inside my window. I'm using an activex but this activex give me an error when load the second pdf file... If any body knows how do that please talk me. Thanks. ...more >>


msgbox empty / blank in visual studio
Posted by nickneem NO[at]SPAM gmail.com at 5/30/2005 6:54:15 AM
I wanted to post this question, but I found the solution in: http://groups.google.com/groups?hl=nl&lr=&threadm=49FF1A46-5F36-453A-A467-CDBEFD5D6DB1%40microsoft.com&rnum=5&prev=/groups%3Fhl%3Dnl%26lr%3D%26q%3Dblank%2Bmessagebox%2Bvb.net I changed some keywords in my posting hoping this can be of ...more >>

Buffering transparent controls
Posted by Michael Powell at 5/30/2005 12:00:00 AM
I've created a container control with its own designer, but in design time they look absolutely awful if moved around. Is there a way to double buffer controls with transparent backgrounds? -- ~Mike Powell, software designer for Ramuseco ltd www.ramuseco.com ...more >>

bound Datagrid and Dataset - update??
Posted by Darryn at 5/30/2005 12:00:00 AM
Hi I am having a few problems with one of my forms... I have a data grid bound to a dataset using a currencymanager and it's all working fine. However when i edit or change any of the data in the Datagrids columns/rows i need to call update so the changes are saved back to my database, this is...more >>

Trouble with HelpNamespace
Posted by joshblair at 5/29/2005 12:57:17 PM
Hi, I'm studying for the 70-316 test. One of the questions has to do with the HelpProvider. The question states that they are going to refrain from setting the HelpNamespace property and asks what will happen when the user presses F1. The answer is apparently that the text in HelpString p...more >>

Checkbox color
Posted by Brian Burgess at 5/29/2005 12:00:00 AM
Hi all, Anyone know of a way to set the background color of the check box itself? Not the whole control .. like where the text of the box is .. but just the area where the check goes? Thx in advance.. -BB ...more >>

UserControl - TextBox with custom format
Posted by gobi via .NET 247 at 5/28/2005 1:44:49 PM
I need to create an user control which: 1. inherits TextBox control 2. Has a Format property 3. users Binding.Format and .Parse events to format the text displayed, using the public property content Does anybody know how to actually do it ? Somehow I need to do the processing when the Binding...more >>

NUmericUpDown Control
Posted by ani at 5/27/2005 3:46:33 PM
Hi Guys, I have NumericUpDown Control. OnKeyDown I want to read the text in side Control. Any Idea? Thanks ...more >>



Combobox dropdown portion not visible
Posted by blue_nirvana at 5/27/2005 2:16:01 PM
I have a combo box that is located on the right edge of a form. I've changed the dropdownwidth to a width greater than that of the combobox in order to view the contents. The problem is that in certain display settings, when the combobox is droppeddown, you can not see all of the contents be...more >>

Windows Forms Designer destroying Forms
Posted by Patrick Schlangen at 5/27/2005 12:00:00 AM
Hi, I'm developing a multi language application (VC++.NET2003). In the form's InitializeComponent() are the control creation routines. For example: this->menuButtonItem35->Icon = (__try_cast<System::Drawing::Icon * >(resources->GetObject(S"menuButtonItem35.Icon"))); this->menuButtonItem3...more >>

Reference datagrid control
Posted by blue_nirvana at 5/26/2005 8:35:22 PM
How do I get a reference to a control that I have in my datagrid? I've seen it in ASP.NET. I want to be able to do something similiar to the below: Dim txt as Textbox txt =CType( dg.Item(0, 9), Textbox) 'THen do whatever with the textbox Any ideas?...more >>

Delete text in a RichTextBox
Posted by Jeronimo Bertran at 5/26/2005 5:48:30 PM
How can I delete some text in a RichTextBox (without cutting it into the clipboard)? I am trying to delete a certain number of characters from the top of the control... I tried the following: SelectionStart = 0; SelectionLength = offset; SelectedText = "*"; And the select...more >>

DataGrid ComboBox and the New Row
Posted by Peter D. Dunlap at 5/26/2005 10:19:24 AM
(Sounds like a Harry Potter title or something...) After much searching and fiddling, I have finally got a working DataGridComboBoxColumn and the associated DataGridComboBox control, and they seem to work well, except for two odd things: (1) If you are entering a value in the combo box on th...more >>

Win control with web image
Posted by Gary Rynearson at 5/26/2005 12:00:00 AM
Does anyone know if their is a windows form control that can display an image generated from the web? I am looking for either existing controls that can do this, or ideas on how I may develop such a control on my own. Gary ...more >>

Scrolling and OnPaint (oops)
Posted by Shawn B. at 5/25/2005 3:06:26 PM
Sorry for the double post, the other went got sent before I completed it (stupid OE and shift-enter)... In my OnPaint, in a custom UserControl, I have the following code: protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); ControlPaint.DrawBorder3D(pe.Graphics,...more >>

Set focus to a UserControl added on a Form
Posted by Ruslan at 5/25/2005 12:00:00 AM
Hello I have a form with a panel. In this panel a new UserControl is added: UserControl1 c = new UserControl1(); c.Location = new Point(10, 10) ; panel1.Controls.Add(c); This UserControl1 has some textboxes. I want to set focus to the first textbox from the UserContro...more >>

ListView threading issue
Posted by Yeghia Dolbakyan at 5/25/2005 12:00:00 AM
Hi Guys I have a problem which I can't solve and hope you can give right direction. I have a form with listview and slider control. That form runs another thread (background) which do some operation based on slider current value and modifies some item in listview. I've read that WinForm con...more >>

all controls are diabled - what have i done!!?
Posted by brian at 5/24/2005 9:18:58 AM
Though fairly new, I'm *not* a complete novice at Windows Forms app development - nevertheless - I have managed to do something that really baffles me. My nice little C# application has been coming along quite nicely over the past month (in Visual Studio.NET 2003). All of the sudden during...more >>

Custom DataGridTableStyle with new property defaults
Posted by Ivor at 5/24/2005 2:40:36 AM
Hi, I'm trying to add some custimisation to the standard WinForms DataGrid. Nothing out of the ordinary - just some new column styles initially. I want to allow the user to use the new column styles in the designers when creating a new TabelStyle, so I've created my own TableStyleColleciton...more >>

AxShDocVw and DragOver
Posted by Roy Soltoff at 5/24/2005 12:00:00 AM
I'm porting a VB project to DotNet that used the Web Browser control. I had it wrapped in a User Control where I was making use of the UserControl's DragOver and DragDrop events in the parent form. Even though the WebBrowser control completely filled the User Control, the user control's drag even...more >>

Freeware Tabbed Interface Control
Posted by C# Learner at 5/23/2005 1:36:58 AM
Where can I get a freeware tabbed interface control (like the one used in VS.NET)? Can't seem to find any freeware ones, with Google....more >>

Datagrid selected TextBox
Posted by VR at 5/23/2005 12:00:00 AM
Hi, Is there any way to prevent a DataGridTextBox's text from being selected? I put the DataGrid, DataGridTableStyle, (all) dataGridColumnStyle and also each dataGridTextBox's Enabled property to False, but even with this configuration, if you Double-click on a cell on the grid, the text o...more >>

OnDropDown
Posted by Patrick Schlangen at 5/23/2005 12:00:00 AM
Hi, the combobox class has a OnDropDown event, but I need to do something when the DropDown part of the ComboBox disappears. So I need an event that is going to be fired when comboBox->DroppedDown turns to false. Is there such an event or is there an other solution? Thanks. Patrick ...more >>

Missing Horizontal Scrollbar in DataGrid
Posted by Bill S. at 5/22/2005 11:25:18 PM
Hi, When I add a DataGridTableStyle to my DataGrid the columns are formatted etc. However, the horizontal scrollbar disappears. How do I get it back? Thanks. ...more >>

GUI and worker deadlocking due to lock and Control.Invoke...
Posted by User N at 5/22/2005 5:36:06 AM
I have a log class with static methods that grab and release a mutex as required. The log class is designed to be called from both GUI and thread pool threads, and dump output to a logfile and a RichEditBox. To give you some idea of the approach I took... private static RichTextBox rtb; priv...more >>

Tab key event in RichTextBox
Posted by Smugsboy at 5/22/2005 1:50:18 AM
Need some help here, I cannot seem to catch the Tab keydown event in RichTextBox. I've tried to handle it in the KeyDown and KeyPressed events but it did not reach those events. (I think it reaches only the Leave event which is not good enough since many can trigger this event). Help anyon...more >>

CombBox Event
Posted by Patrick Schlangen at 5/22/2005 12:00:00 AM
Hi, I'm using VisualC++.NET 2003 Standard and have a windows forms.net application with a combobox in it. Is there a way to register an event when the user moves his mouse over an item in the dropped-down list and find out which item that is? My combo box contains font names and I'd like to...more >>

Scrollbars and onPaint
Posted by Shawn B. at 5/21/2005 2:33:07 PM
Greetings, I'm new to Winforms controls, so forgive me if this sounds basic. I created a UserControl (I would prefer to use Control as base, but UserControl provides scrollbars for me). In the onPaint override, I call Draw3DBorder(...) to create me a border. But the scrollbars are painted...more >>

Scrolling
Posted by ayende NO[at]SPAM gmail.com at 5/21/2005 12:11:06 PM
Hi all, I'm having a problem using a scrollable control. I'm drawing on the control taking into account the deviation, but the problem that I've is that when I scroll, it seems like it remeber the last pixels that were there, and that result in a very bad image, with pieces missing from it. It ...more >>

Block studio to referenc dll
Posted by guyWITHproblem at 5/21/2005 7:18:17 AM
I have my dll that i ship with my app. I wont block visual studio 2 put referenc on it so no one can use my dll. How? ...more >>

Making Form w/ options like VS.Net Options
Posted by Ed West at 5/20/2005 9:56:04 PM
Hello... I want to make a form for my application settings like the options for Visual Studio .Net (2003) ... meaning, on the left side are different 'categories', on the right side are the settings for that category. Is there a control for that? Or, should I make it myself with a listbox...more >>

Syntax-Editor: Basics
Posted by Peter at 5/20/2005 3:58:02 PM
Hi, Is there anybody, who can tell me, how to write an Texteditor. I would be interested in generally concepts. The control should support the following features: - Undo/Redo - Copy/Paste - Keyword Colouring - Tabulators It's not necessary to support more than one font. It should be used a...more >>

AxWebBrowser: TargetInvocationException during Dispose()
Posted by Andy at 5/20/2005 11:27:18 AM
I have a UserControl that has an embedded AxWebBrowser, and the user control is placed on a tab page of a tab control. If this tab has not been made visible before the app exits, I get the TargetInvocationException when it tries to dispose the AxWebBrowser (the browser control's window has no...more >>

Text Alignment in a DataGrid
Posted by Chris Mayers at 5/20/2005 12:00:00 AM
Hi, Anyone know if it is possible to control the horizontal alignment of the Header of a DataGrid independently to its data rows? I have a grid with a column containg decimal numbers. In order to get these aligning correctly, I have set the 'Alignment' property of the column to 'HorizontalA...more >>

Web Page Content
Posted by JezB at 5/20/2005 12:00:00 AM
I'm writing a windows forms application that accesses web pages. I've used the web browser control and this works nicely. Now I'm wondering if I can push the content (html) of a web page (as you see from IE when you "View/Source") to a string variable (or whatever) so that I can process it....more >>

Dynamic web controls
Posted by Seelan at 5/19/2005 9:24:19 PM
Hey Guys, Im trying to make a DYNAMIC web application. 1st page should have a drop down menu with 2 options.(this can be done). When the 1st option is selected it should build a website with a couple of web controls (dDlist preferred) in proper positions. Can some one please guide me throug...more >>

Misbehaving Datagrid
Posted by Paul Cheetham at 5/19/2005 12:04:23 PM
Hi, I have derived a new class from the datagrid, and I am trying to prevent it from showing the last row, in order to prevent the user from adding a new one. I have over-ridden the DataSourceChanged event as shown below: Protected Overrides Sub OnDataSourceChanged(ByVal e As Even...more >>

Print preview control
Posted by andrew bourne at 5/18/2005 12:00:00 AM
Hi all im using the print preview control, but i need to get the last page number from the document that i assign to the print preview control. I cant seem to find a method in either the printpreview control or the document objects thanks Andrew ...more >>

DoubleClick in DataGrid ColumnHeader
Posted by Aurin at 5/17/2005 1:56:02 PM
I want to use the DataGrid DoubleClick event to perform some processing. However, I only want to do it if the user has doubleclicked in a RowHeader, not a ColumnHeader. How can I tell the difference? ...more >>

Design Time Behaviour Of A Constituent Control
Posted by Alex at 5/17/2005 10:24:05 AM
I created a constituent control witch consists of a User Control containing a Button, a Label, and an OpenDialog. I would like the user of my User Control to be able to move and/or resize the Button and the Label at design-time. Does anybody have any sample code on how to accomplish this? I...more >>

Does DataGridView Control support Footer
Posted by Miao Chen at 5/17/2005 9:48:25 AM
Does DataGridView control support footer. I mean the DataGridView control support the frozen row, but it is not on the bottom of the control which I hope it is. Does anyone know if this control has this ability or I need to customize painting, or what else? ...more >>

CheckedListBox problem (NOT related to DataBinding)
Posted by Damien at 5/17/2005 5:40:17 AM
I have a number of forms within my application (using framework 1.1), where the CheckedListBox controls seem to have a refresh problem. The controls are being manually populated (via Items.Add), not DataBound. The population usually (but not always) happens before the form is displayed. The...more >>

Select Control - DateTimePicker
Posted by Claudio Grazioli at 5/17/2005 12:00:00 AM
Hi I have a DateTimePicker with "ShowUpDown = true". It's a custom nullable DateTimePicker inherited from .NETs DateTimePicker control. Now I have the following problem: When I set the DateTimePicker to empty (implemented by using the DELETE key) and afterwards click the up/down button of t...more >>

HTML renderer control?
Posted by Dr. Proctor at 5/17/2005 12:00:00 AM
Hello all Does anyone know where I could find a simple WinForms HTML renderer control? The control should be read-only, ie. it's used only for outputting information to the user, not for editing. Preferably it should not have editing functionality at all. I've tried google and newsgroup archi...more >>

VBAccess ComboBox -> DotNET ComboBox
Posted by GarthK at 5/16/2005 6:22:57 PM
First, I'm not trying to start a rant or a flame war. This is an honest question about using ComboBoxes in the new environment. I've also read numerous postings/blogs/threads/... about this but have not found the answer. I am porting/migrating an app from VBA2000 to VS2003/PGSQL and I'm loo...more >>

groupBox
Posted by SteveB NO[at]SPAM lakefront.com at 5/16/2005 5:22:02 PM
hi: is there a way to trigger a contextMenu when right-clicking on the groupBox text title?...more >>

Problem with DataView rowindex and ComboBox
Posted by GarthK at 5/16/2005 4:27:58 PM
I have a ComboBox bound to a sorted dataview attached to a two-column datatable (partnumber, rcdid) using the following code snippet: vwVP.Sort = "partnumber"; this.cbVendorPN.DataSource = vwVP; this.cbVendorPN.ValueMember = "partnumber"; this.cbVendorPN.DisplayMember = "partnumber"; this.c...more >>

a realy FRUSTRATE problem ....HELP me :O
Posted by guyWITHproblem at 5/16/2005 4:27:37 PM
I am building User Control. I override onpaint event and put this in it e.graphic.drawimage(etc.....) I want my control 2 have watermark on it. Onpaint done the job but when i scroll my control, picture is all over the place and its pissin me off i dont know how 2 fix this. HELP !!! ...more >>

Question about 3rd Party Menu/Toolbar Controls
Posted by Shawn B. at 5/16/2005 10:05:01 AM
Greetings, I'm hoping this is the *most* correct newsgroup for this question. I'm new to WinForms programming but I'm seasoned in all things ASP.NET/C# since the originaly beta 1 (back in 2001). I've been reviewing some 3rd party menu/toolbar and general UI look-and-feel components for Win...more >>

Rowheaderwith of datagrid changes unexpectedly on rowerror-sets/re
Posted by Slow Arrow at 5/16/2005 4:37:01 AM
Setting / resetting the rowerror changes the rowheader by displaying error icon correctly. But occasionally, without changing the RowheaderWidth property of the datagrid the width of the rowheader changes, and i think, its disturbing for the user. Adding a RowHeaderWidthChanged event handler t...more >>


DevelopmentNow Blog