all groups > dotnet windows forms controls > june 2006
Filter by week: 1 2 3 4 5
Help with DataGridViewCheckBoxColumn
Posted by SPS Developer at 6/30/2006 7:19:02 AM
Does anyone have an example of a DataGridView that uses a
DataGridViewCheckBoxColumn (or DataGridViewCheckBoxCell?) that allows
multiple rows to be checked?
I can't seem to get the check box to stay checked. It seems to 'uncheck'
itself as soon as you click anywhere else in the datagridvie... more >>
UserControl activation from MFC does not call Paint for children
Posted by jbolach at 6/29/2006 4:38:00 PM
I have an unmanged MFC app that is using CWnd::CreateControl to activate ATL
Composite controls. This is an existing production app that is working fine
with the ATL controls. I am building a new C# Composite control on the CLR
using UserControl as the base class and activating it with the exi... more >>
ColumnRightClick event for ListView almost working correctly
Posted by sergio.rolanski NO[at]SPAM gmail.com at 6/29/2006 11:43:49 AM
I have made the folllowing code:
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Collections;
using System.Drawing;
namespace SVR.ListViewEx {
public class ListViewEx : ListView {
private const int WM_NOTIFY =3D 0x004E;
private const int... more >>
Question about design a class inherit from Control
Posted by cok at 6/29/2006 12:00:00 AM
Hi, all
I'm newbie on .Net, I want to develope a control based on NOT UserControl
BUT Control
In Design Window, I drag a button from toolbox and drop it on my class,
but when I look at InitializeComponent() in myclass.designer.cs ,
I Cann't find "this.Controls.Add(button1)", and
When... more >>
auto dropdown
Posted by jazper manto at 6/28/2006 4:58:45 PM
hi
i'm using a DataGridViewComboBoxCell on the DataGridView-control. now i want
that the DataGridViewComboBoxCell drops down when a user clicks into the
cell...
which method of the DataGridViewComboBoxCell does i have to call for such
action?
thanx for every hint.
jazper manto
... more >>
How to use System.Windows.Forms.Control.AutoScrollOffset
Posted by Guido Kraus at 6/27/2006 3:43:02 PM
I have a user control (inherited from System.Windows.Forms.UserControl) which
shows some kind of interactive graphic to the user. The user control is
placed in a System.Windows.Forms.Panel with AutoScroll set to True.
If my user control is larger than the container panel the panel shows scrol... more >>
ToolStripProgressBar 'Marquee' Style conflicts with BackGroundWork
Posted by Guido Kraus at 6/27/2006 3:14:01 PM
I have a Windows form with a ToolStrip control. The ToolStrip has a
ToolStripProgressBar with Style set to 'Marquee'. I want to show the animated
progress bar during a background operation which I implemented using a
System.ComponentModel.BackGroundWorker
Everything works fine, except the T... more >>
ComboBox binding, best approach?
Posted by Sam Carleton at 6/27/2006 9:26:30 AM
Here is a simple question:
There is a list of objects in a collection that need to be displayed in
a ComboBox. The text that should be displayed is NOT the ToString(),
but the property LongDisplayName. What is the best way to display this
collection?
Should I be using a BindingSource or s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Hide in IntelliSence
Posted by Peter Larsen at 6/26/2006 12:22:38 PM
Hi,
I'm using Visual Studio 2005.
I want to hide a public property from IntelliSence. To do that i tried
EditorBrowsable, but it doesn't seem to change anything on IntelliSence -
the property it's still visible.
private Log.TraceLevel applicationTraceLevel = Log.TraceLevel.Error;
... more >>
GradientBrush, Transparency and ContainerControl!
Posted by Ă–zden Irmak at 6/25/2006 3:58:36 PM
Hello,
I've several controls which I fill with a GradientBrush. That Brush has an
endcolor as Transparent. I also fill it using a GraphicsPath. This container
control does also support transaprentbackground, set via SetStyle.
In non-container controls, this works well. But in Container con... more >>
Concurreny Error
Posted by Greg P at 6/23/2006 3:28:01 PM
I am getting a concurrency error when doing an update with my table adaptor.
I can fix this by making my table pessimistic concurrency but I'm wondering
if there is another way. I am updating Auditing fields everytime I update
any field (EditUser, EditTime). This causes concurrency issues b... more >>
Custom Button
Posted by Arka at 6/23/2006 2:59:19 PM
Hi,
I tried to re-create the standard winform button to learn how to build
a custom control.
I have problems with the transparent background (around the rouded
edges of the button) ...
Can someone tell me what I am doing wrong ?
Thanks,
Arkam
This is my code ... just paste is in ... more >>
ListBox.UseCustomTabOffsets has no effect
Posted by H.Leeb at 6/23/2006 12:56:26 PM
In the following sample:
ListBox.IntegerCollection tabStops = new
ListBox.IntegerCollection(listBox1);
tabStops.Add(50);
listBox1.UseCustomTabOffsets = true;
shows no effect! .
Maybe I missed something?
Thanks in advance.
H. Leeb
------------------------------------------------... more >>
Chemical symbols in ListView
Posted by daniel NO[at]SPAM nospam.nospam at 6/23/2006 8:10:11 AM
Hi,
I'd like to put some rich text that will represent chemical formula etc
in a ListViewItem. Can someone outline the steps I need to follow to
create a custom control that inherits from ListViewItem to achieve
this?
Thanks,
Daniel
... more >>
DataGridView Column Format
Posted by Mike at 6/23/2006 4:07:01 AM
Hi All,
I have been having difficulty formatting a column in a datagridview
The default display for a datetime shows the time with I don't want in this
case
So I thought easy just change the column format
The column is setup unbound such as this
this.TransDate.DataPropertyName = "TransD... more >>
statusstrip vs StatusBar in 2.0
Posted by flagrant99 at 6/22/2006 2:07:02 PM
How come when I set the text propert on a statusbar it paints the text
immediately (so I can give status updates during lengthy operations). But
with a label in a statusstrip it does not get painted until the operation is
completed. Is there a way to force .NET to paint the status strip now, a... more >>
Arrow keys on custom controls
Posted by David at 6/22/2006 8:38:02 AM
I have a custom control I developed, and it has a little arrow on it. I want
the user to be able to move the arrow by pressing the left and right arrow
keys when the control is selected.
However, when I put the control on the form, and select it, when the user
presses the arrow key, the fo... more >>
About Control.OnEnter
Posted by cok119 at 6/21/2006 10:44:38 PM
Hi, all
I have a user control like text editor,
which be add to a test form, I want the control
CreateCaret,SetCaretPos,ShowCaret when the control GetFocus.
which event of the control should be handle?
when I add a OnEnter event handle to the control and active the form,
the event fire ... more >>
How connect image list and toolstrip?
Posted by Larry at 6/21/2006 6:08:45 PM
In VS.2005, in a Windows project, how can I connect a toolstrip to an
inmagelist control?
I can't find the imagelist property on the toolstrip control anywhere,
Thanks in Advance,
Laurence Nuttall
Programmer Analyst III
UCLA - Division of Continuing Education... more >>
Why does the ToolStrip show up in the component tray
Posted by Bill Rust at 6/21/2006 8:28:03 AM
I was under the impression that components that do not have a visual presence
on a form show up in the component tray of the designer but controls do not.
However, the ToolStrip is a control that does have a visual presence, but it
also shows up in the component tray. Why is that, and in gen... more >>
VS2005 Tabcontrol showing Classic look rather than XP style
Posted by Dominic via DotNetMonster.com at 6/21/2006 12:00:00 AM
Hi all,
I am using VS2005 and I am having issues with the 2.0 tabcontrol on a form.
In the designer it shows with the XP style tabs however when I run the
application the tab control is appearing with the classic style, as it did
under the 1.1 framework.
Does anybody have any ideas why this... more >>
DataGridView AutoSize to parent tableLayoutPanel row
Posted by Bob Eaton at 6/20/2006 5:56:14 PM
My DataGridView, after being populated, is correctly sizing the rows and
columns to fit the data (thanks to "AutoSizeColumnsMode" and
"AutoSizeRowsMode" being set to AllCellsExceptHeader and
AllCellsExceptHeaders respectively).
However I'd like to have the grid itself trigger a resize of th... more >>
Report Viewer control overrides print driver settings for Zebra label printer
Posted by Phil Doucette at 6/20/2006 12:46:19 PM
The .Net report viewer control is overriding the print driver settings and
putting them back to factory defaults on a Zebra label printer. The
darkness setting is the problem, as the factory default is too light.
In Microsoft Office:
When printing to a Zebra label printer TLP 2844-Z, Micr... more >>
Text.Length vs TextLength
Posted by NO[at]SPAM at 6/20/2006 9:41:01 AM
Ok I've just got to assume that there's a good reason for you guys at MS
having added the .TextLength property off of TextBoxBase but I can't seem to
fathom how it could do anything different than .Text.Length!
Anybody have some insight into this?
Thanks,
Brandon
--
KMG Software, Inc.
... more >>
Owner drawn listbox
Posted by Jakanapes at 6/20/2006 9:31:15 AM
Hi all,
I'm very new to using the windows forms controls and I have a few
questions.
I am trying to create an app with 2 listboxes, the Top and the Bottom.
I need to put several lines of data in Top so that when the user
selects the lines, additional info is given on Bottom. However, I'v... more >>
ContextMenuStrip
Posted by James Wong at 6/20/2006 12:00:00 AM
Hi,
I want to write a dynamic program to find ContextMenuStrip in the form,
but I cannot find this control see the code below.
How can I solve it?
------------------------------------------------
For i = 0 To Me.Controls.Count - 1
MessageBox.Show(CStr(Me.Controls(i).Name))
Next
-----... more >>
Nonclient Area
Posted by Techno_Dex at 6/19/2006 2:27:05 PM
What is the best way for my control to be painted in the NonClient area? I
have a control, that when it's visible to be painted outside of the client
area (so I think). The functionality I am trying to duplicate is similar to
moving a ToolStrip into a ToolStripPanel, (say on the left of a fo... more >>
WebBrowser control
Posted by JezB at 6/19/2006 12:00:00 AM
Loading a WebBrowser control with a URL produces an annoying "click" noise,
presumably because this is the default noise on loading a new page in IE,
but regardless of the IE settings is there a way to direct the WebBrowser
control to be silent ?
... more >>
DataGridView stay in Cell after key "Enter"
Posted by GW at 6/17/2006 6:13:37 PM
Need to do some processing after entry in unbound grid.
Pressing the Enter key moves the cursor to the next row.
Ctrl Enter prevents it from moving to the next row but that is not
desirable.
How does one prevent moving to the next row.
Tried setting StandardTab to True/False. No luck.
... more >>
HELP LISTBOX NOT REFRESHING
Posted by TWACSIng at 6/16/2006 1:34:19 PM
All,
I have a DataGrid that when I scroll down it does not refresh and
the lines get all messed up, I need to capture the scroll events in the
listbox. I am using C# and winforms.
Any ideas how to capture the scroll events?
Bryan
... more >>
SCROLLBARS PLEASE HELP ME
Posted by TWACSIng at 6/16/2006 1:27:47 PM
Hi everybody
I need to change the listview scrollbars style to the windows default. my
problem is that if I apply an xp theme, this scrollbars change to the theme
applied and I need them to remain with the same look and feel of the
Application.
I hope I explained myself
Thanks in advance... more >>
DataGridView scrolling problem
Posted by Florin at 6/16/2006 4:51:40 AM
Hello!
I have a problem: I use a datagridview control to display data coming
from a server application. The data is taken from a "generic" on the
client side (that has in each element a cell from my table) and put in a
dataset table (I've tried puttting it directly to the datagridview and ... more >>
how to communicate between 2 chlld forms in c#.net
Posted by Yoshitha at 6/16/2006 12:00:00 AM
Hi
I've MDI form and to child forms (c#.net) and i open the 2 child opens and
in first child form what i ever i do that will be recognized in 2nd child
form.
for eg. if i clicked a button in first child form then in 2 nd child form at
that instance only it has to disply the button name which i'... more >>
how to resize controls at runtime
Posted by Yoshitha at 6/15/2006 6:10:48 PM
How do I manually resize a control on a form at run time without a
splitter? let's imaginge I have textbox, I want to be able to resize it at
runtime, just like one would at design time.
Hi
Can anyone tell me how to resize the controls on a form at run time?
assume that i've a textbox control... more >>
Flicker problem with ListView 2.0
Posted by Coder at 6/15/2006 12:18:48 PM
The ListView control under 2.0 does not behave exactly the same way as
it was in 1.1. We are noticing that the same code running with 1.1 was
flicker free, but with 2.0 has massive flickering. I am wondering if
anyone else is having this problem, and if there is a solution.
Thanks.
... more >>
how to create my own tool box control
Posted by Yoshitha at 6/15/2006 12:00:00 AM
Hi
Is it possible to create my own tool box control on which i can place the
controls i've creaetd or some other controls which already exisits?
Can anyone tell me how to do this? or if you know any third party control
which act as a tool box control please let me know.
Thanx in advance
Yo... more >>
Capturing scoll events
Posted by TWACSIng at 6/14/2006 8:41:16 AM
All,
I have a DataGrid that when I scroll down it does not refresh and
the lines get all messed up, I need to capture the scroll events in the
listbox. I am using C# and winforms.
Any ideas how to capture the scroll events?
Bryan
... more >>
Compiler error on DataGrid.TableStyles.GridColumnStyles property.
Posted by Tim at 6/14/2006 7:42:31 AM
Trying to compile a form with a DataGrid named dgView that contains the
following line:
foreach(DataGridColumnStyle dgcs in
dgView.TableStyles.GridColumnStyles){...}
This line throws a compiler error in Visual Studio:
System.Windows.Forms.GridTableStylesCollection does not contain a
defi... more >>
Datagridview, Drag Drop - sorting, ordering, rearranging
Posted by Mike Edgewood at 6/13/2006 2:58:49 PM
Is it possible to change the order of rows within a datagridview via
drag drop? Is it even possible to drag and drop within the same
datagridview? I've seen this done with listviews, but never
datagridview and can't seem to mimic the behavior, ie, cannot override
OnItemDrag if it doesn't exist... more >>
DataGridView, How to display grids in all rows?
Posted by romancoelho NO[at]SPAM gmail.com at 6/13/2006 12:46:46 PM
Hey everyone, I know this has to be simple, but can't figure out how to
do it. How can I display the grid lines in all rows in the gird. The
default behavior of the DataGridView seems to be that it only shows
grid lines around rows that have data in it. If there are not enough
rows to fill the h... more >>
Control.BackColor Transparency, Control.BackColor = Color.Transparent
Posted by ray well at 6/12/2006 12:00:00 AM
in my app i need to make a RichTextbox control transparent.
i need it to be a like a pane of glass lying on a sheet of paper, where u
can see everything on the sheet of paper not covered by text written on the
glass pane. i need to be able to see the control or form that is underneath
the Rich... more >>
inherited KeyPress event
Posted by Paul at 6/11/2006 1:53:01 PM
Recently, I subscribed to a keypress event on a regular text box. It seems
to work great allowing only digits and one decimal point. However, when I
promote the code to a superclass of the ui it doesn't seem to get invoked
although there are no compiler errors and runtime seems ok except for... more >>
Double Lines in ListView
Posted by Jeff Gaines at 6/10/2006 4:03:00 AM
There was a post about this a few days back but no response to data, I
hope you don't mind a re-post.
Using a ListView which has enough items in it for the vertical scroll bar
to show. In the lower part, which scrolls into view when you scroll down,
the grid-lines are drawn at what looks li... more >>
Localizing datetimepicker
Posted by Bob at 6/9/2006 10:25:31 PM
I've been playing around with the datetime picker control and I can't seem
to get it to show the calendar and the text in french. My users need to see
the french names for the month and the french names for the days of the
week. How can I get this result? I can set the localized Ui culture for... more >>
Custom User Controls and BackgroundWorker
Posted by Jason Allred at 6/9/2006 3:55:33 PM
I developed a class in VB.NET 2003 that connects and listens to an IP
Endpoint. It must also to some housekeeping by sending "keep alive"
messages as well. There are a whole bunch of tedious rules which I won't go
into here. Since 2003 let's you do cross-threaded calls, it wasn't a
proble... more >>
how to access a control property from a control collection
Posted by Fanor at 6/9/2006 11:31:01 AM
HI all,
I have many panels in a form, each panel contains 3 labels and 2 comboboxes.
The panels are linked to the same Enter event, and i want to use the text
property of any labels when the event is triggered.
How can I acces the text property of any label in the panel??
TIA
... more >>
Program stuck when removing row from DataTable
Posted by Dagan at 6/8/2006 3:46:57 PM
Hello
I have built a DataGridView that its data source is binded to a DataTable
after adding it 200 rows I try to remove the first row and the program
stuck, What could it be????
Thanks.
... more >>
problem with drawing a control in a class
Posted by Fanor at 6/8/2006 2:22:55 PM
Hi all,
I have a class with a panel and a combobox defined in it.
In a form i'm using that class
........
private myclass Mc = new myclass();
however, I can't see the panel or the combobox drawed in the form!!, What
am I missing??
I have defined for the panel the size, locatio... more >>
Check box in a Combo Box
Posted by Bharathi Kumar at 6/8/2006 5:04:43 AM
Hi,
Iam working on a window application using .NET framework 2.0.
I want a check box + some text in a combobox.
User can select multiple items in combo box by using the check
box.
My requirement is : I have a report page. User selects some data
and click on 'S... more >>
Datagridview and datetimepicker
Posted by Bob at 6/7/2006 11:34:52 PM
How can I make a column in a datagridview control contain a datetimepicker
control to enter or edit a date in a cell?
If its not asking too much I would appreciate an almost click by click
desvription or a snippet of code needed to do that. The datagridview I use
is bound.
Thanks in adva... more >>
|