all groups > dotnet windows forms controls > october 2007
Initial value in a combobox in a datagridview
Posted by Paul S at 10/30/2007 2:45:00 AM
Hi
I have a datagrid that I have filled with data from a dataset with more
tables and the proper relationships between the tables. One of the cells in
the grid is a combo that contains a list of possible values for that cell.
When I entered the cell it's shows a drop down list with the firs... more >>
Databinding to Listcontrol shows the name of the class and not the property
Posted by Rahul at 10/29/2007 2:10:14 PM
I have a list Control to which I am binding an array of custom objects. Say
the custom object is ClassA. ClassA has a property XYZ. The property XYZ is
of type ClassB. ClassB has a member called "Name". Now I want the "Name" to
appear in the display of the List Control. If I set the DisplayMember... more >>
Extended Rich Text Box Control
Posted by Jeff Gaines at 10/29/2007 11:29:39 AM
I have down-loaded some source from the Code Project which contains a file
called ExtendedRichTextBox.dll which is supposed to be issued by MSFT and
to be an extended version of the RichText Box.
I am suspicious of the file - the company shown in its properties is BXSW
and there is no men... more >>
Caret Position in Text box
Posted by David Davidson at 10/24/2007 2:22:04 PM
Is there a way to always get the actual caret position in a multi-line text
box? Using SelectionStart will not work when pressing Shift+Down or
Shift+Right - in that case the caret position is SelectionStart +
SelectionLength. When pressing Shift+Up or Shift+Left, the caret position is
sim... more >>
When loaded into a browser, what kind of "control" is Acrobat?
Posted by michael at 10/24/2007 10:25:01 AM
So, I'm not really sure where to post this, but I'll start here. If you open
a pdf file from a browser, and you have Adobe's Acrobat on your machine, the
file is opened within an instance of Acrobat loaded into the browser. Now I
assume that the browser actually uses a control (ActiveX? .NET?)... more >>
User Control - capturing Enter Key
Posted by Simon Verona at 10/24/2007 12:00:00 AM
I have a usercontrol, which contains a textbox (as well as other controls).
The textbox is set for multiline, so it *should* accept an Enter Key to move
down to the next line.
However, I'm finding that if I put the control onto a form which has a
default Accept button set, then pressing ent... more >>
Question About Converting WinFormControls To XAML
Posted by Stuart Blavatnik at 10/23/2007 4:40:27 PM
Hello,
My group is investigating the conversion of our WinForm 2.0 development to
3.X with XAML. Within our legacy development we have created many
sub-classed UserControls. Some are derived from Nevron Chart Controls and
some are derived from standard windows 2.0 components. I'm wonderin... more >>
Develop web update for application
Posted by Dzemal Tipura at 10/23/2007 2:54:03 PM
Hi,
is there any way to develop automatic check for new release of my
application. So when i start my application i want to check for new
version on server and if there is one i want to download that version
and run it.
Thank you... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Control.Focus() vs Select()
Posted by Jack Jackson at 10/22/2007 11:22:52 AM
Can anyone explain the differences between a control's Focus() and
Select() methods?
The documentation says that Focus:
"is a low-level method intended primarily for custom control authors.
Instead, application programmers should use the Select method or the
ActiveControl property for child c... more >>
combobox dropdown header
Posted by Jason at 10/19/2007 10:49:02 AM
I have written a owner-drawn combo box, but I'm having trouble with the
column headers. I have inserted a dummy object to use to draw my header, but
this has caused side effects such as valid index starts now at 1 instead of
0, also, if the user chooses to not use the header, I end up with a ... more >>
How to show the user only a part of the PropertyGrid property label?
Posted by Arto Viitanen at 10/18/2007 4:05:43 PM
I have inherited a program that edits XML on PropertyGrid. It uses
element or attribute names as propertynames. It lets user add, remove
and move XML elements (based on the XML schema). Problem is, if there
are several elements of same name (i.e., the schema has
maxOccurs="unbounded"), adding... more >>
ComboBox loads slow
Posted by 0to60 at 10/18/2007 12:29:33 PM
I am noticing that it seems to take windows a long ass time to paint a
ComboBox control that has say, 32000 items in its dropdown. Yes, I know
that's a lot. However, I have a VB6.0 application that uses DAO to access
an Access database, and it can load up a 32000 item combobox in a fraction ... more >>
How to populate a Windows Form treeview from a SQL 2005 table?
Posted by xmail123 NO[at]SPAM yahoo.com at 10/17/2007 10:23:19 PM
I am very new to C#. I need to create a Windows Form that will read a
SQL 2005 table and populate a treeview. I can connect to the DB,
create the dataadapter, populate a data set. The problem is how to
use the dataset to populate a treeview.
I have not found a Windows Forms C# example t... more >>
Auto generated context menu for TextBox
Posted by Patrik at 10/17/2007 4:06:31 PM
Hi,
I have a problem with the paste option in the auto generated context menu
for a TextBox. When the textbox is readonly I do not want the option Paste
to be enabled. Copy should be the only choice active. This happens with XP.
When I test it with Vista the Paste option is disabled when th... more >>
DateTimePicker Background Color in Vista
Posted by Bob Dankert at 10/16/2007 7:20:01 PM
I have previously used this fix for making the background color of a
DateTimePicker work:
http://dotnet.mvps.org/dotnet/faqs/?id=datetimepickerbackcolor&lang=en
This fix does not work in Windows Vista and this is causing me problems.
Does anyone have any suggestions what I can do to make t... more >>
WebBrowser Control doesn't resize automatically
Posted by Sanjaya_Lasitha at 10/16/2007 3:19:03 AM
WebBrowser control in VS 2005 doesn't resize automatically when JavaScript or
Web page code tries to resize the browser. I could not at least find an
event to be notified that the browser needs to resize.
If I add Microsoft Web Browser control via tool box using COM components
tab(shdocvw... more >>
Please Help!!- Background image in report pixelated when printing
Posted by Rob Dob at 10/10/2007 4:05:49 PM
Hi,
I have a background image I'm using as a form within my report. the problem
is that I needed to reduce the resolution of the image to 96 dpi in order to
work with it and line things up within the ssrs/vs2005 report editor.
However because the image is only 96 dpi, it looks awful wh... more >>
Using background worker to fill TreeView control
Posted by Gerry Schatte at 10/10/2007 11:42:03 AM
I am populating a TreeView control in the Load event of a form. The form
appears to hang on startup (startup form for the application) because the
fill process takes a few seconds to complete. Because I've used the
BackgroundWorker object a few times in the past, I decided to use it to fill ... more >>
Highlighting a control on selection
Posted by raj at 10/10/2007 5:37:48 AM
HI,
Could any body please help me in highlighting a control(Even it may be
windows form) present over a Panel or Tab control or groub box control
which in turn present inside a windows form.
any help in this is greatly appreciated.
Thanks
Raja
... more >>
animated xp style tree control
Posted by Rupa at 10/9/2007 5:43:01 PM
Hi all
I need to code tree control on windows forms which has an appearance as
given in the link.
http://deluxe-tree.com/data-samples/tree-menuxp2.html
There is a slight variation that I need to add in the tree control. The
child items should not be in the form of +/- ( standard tree like )... more >>
DataGridView Combobox
Posted by Laz at 10/9/2007 12:42:05 PM
I purchased Visual C# 2005 Step by Step on the hopes that it would help me
learn how to use the DataGridView control among other things, but the
instruction I looked at is very diluted. I've been sifting through the web
and the help menu to help me learn this control for weeks.
This is my ... more >>
KeyDown and KeyPress Events
Posted by Jack Jackson at 10/9/2007 12:07:10 PM
I noticed that if I subscribe to a DataGridView's KeyDown event and
press the Enter key when focus is on the DataGridView, at the time my
event handler is entered the DataGridView has already processed the
Enter key and advanced the current row.
I found this surprising because the event arg fo... more >>
UserControl hosting RichTextBox control doesn't work correctly in MFC dialog
Posted by Mark Thomas at 10/3/2007 3:34:36 PM
BlankAll
I have created a UserControl that hosts a RichTextBox control. The =
RichTextBox control has the multiline property set to true. When I run =
this and use the TestContainer, I am able to type and using the enter =
key allows the multiline feature to work correctly. I use the =
CWi... more >>
List & tree-view questions.
Posted by Lloyd Harold at 10/2/2007 10:14:54 PM
Hello,
Has anyone dealt with these situations:
How do I set the text to align to the left on a
list view's column headers but display a sort-
indicator-graphic (eg: triangle) on the right edge
of the column header when the column is sorted?
Also, how do I set selection check-boxes fo... more >>
System Colors of my controls
Posted by Futronics Developer at 10/2/2007 6:21:02 AM
Is it possible to specify the Theam or set of system colors that my
application will use?
I am writing an application and I want to use the different system colors
for buttons etc but I don't want to change the rest of Windows.
Also does anyone know of the best way to create a new theme? C... more >>
cancel change of row in listbox
Posted by LosManos at 10/1/2007 7:56:02 AM
hejdig.
I want an event _before_ the row is changed in a Windows.Forms.Listbox
to be able to cancel the change of row.
When the user changes row in the listbox, I check if some other controls are
updated. If so I tell the user and want to cancel the change of row.
( With a grid one can ... more >>
|