all groups > dotnet windows forms controls > march 2007
Filter by week: 1 2 3 4 5
DataGridView Scrolling Advanced Issue
Posted by shsixman at 3/30/2007 8:19:56 PM
I am working with the DataGridView in vb.net... I have a dataset with 100+
rows and 20 rows are visible. What I am having trouble doing is on enter
making the "cursor" move down the page in a column until it gets about mid
way though (10th line from top) and then at that point it needs to maintai... more >>
Question on Clipboard
Posted by John Lane at 3/30/2007 12:34:01 PM
I copied the line of code from Mictosoft:
MsgBox (My.Computer.Clipboard.GetText())
and of course it doesn't work becasue the is no object (error message). I
made a reference to MyComput 1.0 Type Library, but that didn't work. Does
anyone know what library to reference to get My.Computer ... more >>
ColumnWidthChanged Event for ListView
Posted by SudhirK at 3/29/2007 9:18:10 PM
How to setup ColumnWidthChanged Event for ListView? I don't see it in the list.
From http://www.developmentnow.com/g/30_2006_9_0_0_0/dotnet-framework-windowsforms-controls.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
Can TextBox.Text ever be null?
Posted by Jeff Johnson at 3/29/2007 4:09:12 PM
Subject pretty much says it all. I was wondering if it was EVER necessary
for me to do this:
string myString = TextBox1.Text;
if (myString == null)
{
// Will this code EVER execute?
[...]
}
... more >>
How do I use DataTable.ImportRow with a DataView
Posted by Rob Dob at 3/29/2007 9:17:58 AM
Hi,
I'm trying to archive orginal records, so what I am trying to do is upon
saving the changed record also writing the orginal record version to a
different table. The problem I'm having is that the DataTable.ImportRow
does not accept a datarowview as a parameter. My code is below, can s... more >>
BindingSource determine changes before calling EndEdit()
Posted by Rob Dob at 3/28/2007 10:53:28 PM
How do I determine if there are any rows within the BindingSource that have
changed prior to calling the EndEdit(). I need to do this in order to
archive some records and if I call the EndEdit() then it also wipes out the
orginal version of the dataset record with the proposed changes., Howe... more >>
Rich Text Box control SelectionColor??
Posted by Brian McCullough at 3/28/2007 5:53:30 PM
Hello,
I am creating a form with Rich Text Box control on it (using .NET 1.1). The
form will be used to iterate through a list of spelling errors and allow the
user to determine what to do with each error. I am displaying the source
text in a rich text box and highlighting the current mis... more >>
Text property og UserControl visible in the designer?
Posted by Ole at 3/28/2007 3:57:53 PM
This question is actually for the Compact Framework but is about controls. I
have created a control that inherits the UserControl (I need the border).
The control overrides the Text Property and I draws the Text in the Onpaint
event - works fine, but the Text property doesn't show up in the de... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ScrollBars and UserControl
Posted by Peter Larsen [] at 3/28/2007 12:00:00 AM
Hi,
Is there a way to hide the scrollbars in a UserControl ??
If i'm setting AutoScrollMinSize to a size larger than the ClientRectangle,
the scrollbars will automatically appear within the bounds of the
UserControl.
But if i don't want the scrollbars to appear - how do i prevent that fro... more >>
Contextmenu CloneMenu?
Posted by Per Rollvang at 3/27/2007 5:41:20 PM
Hi All!
I have tried for a few hours to create a contextmenu based on a clone off
one of the menus on my mainmenu..
No result!
Anybody that have a code-example / url?
I use:
Microsoft Visual Studio 2005
Version 8.0.50727.51 (QFE.050727-5100)
Microsoft .NET Framework
Version 2.0.50... more >>
ListView double click question
Posted by Nick at 3/27/2007 4:05:37 PM
Hello,
I've got a list view in details view. Two questions. I've got four columns.
I want to be able to update either column 1 or column 3 by double clicking on
one of the items. Is it possible to determine what column is double clicked
on? Also, if an item in column 3 is double clicked wou... more >>
Designer doesn't update the window/form region based on subclassing
Posted by Liviu Balan at 3/27/2007 4:02:04 PM
Hello,
Given a form(Form1) that defines it's active region on load with the
following code:
private void Form1_Load(object sender, EventArgs e)
{
//compute the mask region to create rounded window corners
this.Region = new Region(Drawing.GetRoundedRectangle(new Rectangle(0, 0,
this.... more >>
DataGridView: equivalent to RowData
Posted by Jeff Johnson at 3/26/2007 2:07:50 PM
The VB6 MSFlexGrid had a property called RowData which associated an integer
with each row. It was crude, but you could use this integer as, say, the
index into an array of objects which would provide more data about the row.
It was handy for storing info that was global to each row. I cannot ... more >>
Help Required
Posted by Darth at 3/26/2007 6:55:31 AM
Hi,
I have added a textbox (richtextbox) to a form. I keep on appending
text to this textbox. How can I cause this textbox to automatically
scroll down to the text that has been added recently ?
TIA,
Darth
... more >>
Print datagridview How to...
Posted by Scotty at 3/26/2007 12:00:00 AM
Hi,
Hope someone can help me
I have a datagridview I want to print
Code below works fine if I print the data if there is only 1 page (without
using hasmore pages
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
If intRowPos <= 10 Then
e.HasMorePages = False
Else
e.HasMorePages = True
End If
'!!!... more >>
DataGridView adding row problem
Posted by Fabio at 3/22/2007 11:43:53 PM
Hi all
I got a strange behavior of the DataGridView.
Try this code on a new Form with a DataGridView:
DataTable t;
DataView v;
private void Form1_Load(object sender, EventArgs e)
{
t = new DataTable("T");
t.Columns.Add("test");
v = new DataView(t);
dataG... more >>
How to create a panel which acts like a form at design-time
Posted by Joanna Carter [TeamB] at 3/22/2007 7:06:59 PM
Hi folks
I need to create a visual control that can accept IExtenderProvider based
components at design-time, so that certain controls, dropped onto the visual
control, can support an extra property.
The visual control needs to appear to be a panel, possibly derived from an
existing Pane... more >>
[VS2005/.NET 2.0] DataGridView and deleting rows
Posted by Jeff Johnson at 3/22/2007 5:29:04 PM
I have a DataGridView on a form that users will be adding data to. One
column must be unique, so if they try to add a new row with a duplicate
value in this column I want to grouse at them (MessageBox) and then delete
the row they just entered. I can't call myGrid.Rows.Remove(xxx) during the
... more >>
Datagridview - selected row in visible area.
Posted by Dahab at 3/21/2007 3:41:48 PM
Hi,
If a row is selected via code for a DatagridView, anyone know how to get
this row in the visible area of the Datagridview?
Tanks.
Regards
D.
... more >>
How to make ComboBox look like FixedSingle BorderStyle?
Posted by Dave Leach at 3/20/2007 2:08:05 PM
Sorry about previous post with incorrect Subject. I meant FixedSingle, not
Fixed2D.
I am developing a Windows Forms-based application using VS 2003 in C#.
I have several TextBox and ComboBox controls on a form. For a particular
scenario, I need both control types to have the same appeara... more >>
How to make ComboBox look like Fixed2D BorderStyle?
Posted by Dave Leach at 3/20/2007 2:05:11 PM
I am developing a Windows Forms-based application using VS 2003 in C#.
I have several TextBox and ComboBox controls on a form. For a particular
scenario, I need both control types to have the same appearance. The desired
appearance is like that of a TextBox whose BorderStyle is set to Fixed... more >>
Panel scollbars doesn't show
Posted by barbumiha via DotNetMonster.com at 3/20/2007 11:52:33 AM
I have a Panel in which I put a few userControls. I use AutoScroll but from
time to time the scrollbars don't appear or appear in a wrong position.
Can anyone help me, please?
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/winform-controls/200703/1
... more >>
double click event on Forms.MonthCalendar
Posted by Philipp_Pätzold at 3/20/2007 1:07:31 AM
Hello,
the MonthCalendar control does not seem to implement a double click
mouse event. For my application however I want to double click on a
specific day in the control and open a modal dialog window.
I tried to catch a double click event on the main form and check if the
mouse cursor wa... more >>
ReadOnly property
Posted by Fabio at 3/19/2007 4:15:23 PM
Hi all
I'd like to implement a ReadOnly property for controls like combobox or
datetimepicker that don't have it.
Is it possible to block the user from changing the data but letting it copy
the data into clipboard?
Thanks.
... more >>
Build a multi-coloured Data bound Grid.
Posted by iKiLL at 3/19/2007 11:28:25 AM
Hi all
I am currently using a Bound Read Only data grid.
What I am looking to do is have different colour rows depending on the data
in the row.
EG. If the status = Closed then that row should be Red, If the Status = Open
then That row should be Green.
I am trying not to loop through... more >>
How to suppress Shift-Insert keypress in a custom control?
Posted by nvx at 3/19/2007 3:03:41 AM
Hello,
how should I suppress the Shift-Insert keypress in a custom
DataGridView column or in a custom TextBox? I tried to catch it in the
overriden OnKeyPress, but it didn't work (this method didn't even know
something had happened).
Or, maybe a better question:
In fact, I need to control wh... more >>
How to "disable" a TabPage of a TabControl?
Posted by nvx at 3/19/2007 2:56:48 AM
Hi,
is there a possibility to "disable" a TabPage of a TabControl? By
"disable" I mean to achieve something like a control.Enabled = false,
i.e. the control becomes grey and does not react to anything user is
trying to do with it.
Any help would be much appreciated...
With regards
nvx
... more >>
DataGrid ComboBox
Posted by Doug Bell at 3/19/2007 12:00:00 AM
Hi I am still having problems with Tabbing through a DataGrid with a
DataGridComboBox Column.
I need to allow the User to Type the value into the ComboBox so consequently
its ComboBoxStyle is set to DropDown. This causes the Tabbing to work
incorrectly. Even though I am consuming the Windows M... more >>
RichTextBox, current written Word
Posted by lil J at 3/19/2007 12:00:00 AM
How can i get the last written word, after pressing space in a RichTextBox?
... more >>
DataGrid Tabbing
Posted by Doug Bell at 3/18/2007 12:00:00 AM
Hi
I have a DataGrid with some hidden columns and also some read Only and some
ComboBox Columns.
Sandard Tabbing through the Datagrid sees the focus go to the hidden columns
requiring further Tabbing to get to the desired column but it works fine
stopping correctly on the ComboBox column.
... more >>
Tab Page Visibility
Posted by Arlyn_L at 3/17/2007 9:53:00 AM
When using a TabControl, if I select Allignment = Bottom and Appearence =
Button or Flat Button, the TabPages and their contents are no longer visible.
This does not occur with Allignment set to top, right, or left. How do I
correct this as I desire flat buttons at the bottom for my applicat... more >>
TreeView does not gain focus
Posted by jens.ro at 3/16/2007 11:01:01 AM
Hello,
I have a form with a TreeView control in it. The TreeView is located
together with other controls inside a ToolStripContainer. Now it
appears that the TreeView never gets the focus even though I can
control it: I can select nodes and everything works fine, but the
Enter event is not fi... more >>
DataGridViewTextBoxColumn RightToLeft property?
Posted by mtczx232 NO[at]SPAM yahoo.com at 3/16/2007 7:14:32 AM
where RightToLeft property for DataGridViewTextBoxColumn. I need to
set one column opposite that DataGridView set. How I can do that?
... more >>
Convert KeyChar to Unicode in KeyPress event?
Posted by Joergen Bech NO[at]SPAM at 3/16/2007 12:00:00 AM
Scenario:
I have a usercontrol that accepts keypress events.
I have a form with an instance of this usercontrol as
well as a normal textbox control.
I want whatever is typed in the textbox to be reflected
in the usercontrol and vice versa.
Copying from the textbox to the usercontrol ... more >>
Need help with DataGrid Navigation / Cancelling Keystroke in PreviewKeyDown Event
Posted by Joseph Geretz at 3/15/2007 5:22:48 PM
I'm noticing that when my DataGrid has focus, it handles the Enter key by
advancing to the next row in the grid. This neutralizes Forms's current
defined AcceptButton.
My primary question: is there any quick way to configure the Grid not to
handle the Enter key? I do not see any property co... more >>
Controls with accelerator keys steal focus from my usercontrol?!?
Posted by Joergen Bech NO[at]SPAM at 3/15/2007 4:10:31 PM
See tiny test project at
http://home1.inet.tele.dk/jbech/binaries/AcceleratorTest.zip
Problem: I have a usercontrol with no child controls, but
still able to receive focus. If an instance of this control is
placed on a form with another control which has an accelerator
key, the usercontrol ... more >>
Pop up security box
Posted by JIM at 3/15/2007 6:33:28 AM
When going from page to page I have a box that pops up and says, "This page
contains secure and non secure information. Do you want to proceed?"
Any help would be greatly appreciated.
--
Thank you,
Jim... more >>
Code generation for property 'Controls' failed. Error was: 'Object reference not set to an instance of an object.'
Posted by Don at 3/14/2007 2:39:05 PM
I'm getting the following exception displayed in the task list at design
time for my project:
"Code generation for property 'Controls' failed. Error was: 'Object
reference not set to an instance of an object.'"
I've traced the problem to a custom control I created that inherits from
I... more >>
Save the state of a SplitContainer
Posted by newscorrespondent NO[at]SPAM charter.net at 3/14/2007 12:20:18 AM
I want to save the state of a splitcontainer when an application ends. I
also save the form state. The SplitContainer does not seem to have a well
defined place to put intiialization and termination code.
I have tried to use my first splitter moved event to set the splitter
position but I am... more >>
Anyone know how to prevent the repaint in a DataGridView?
Posted by roybrew NO[at]SPAM att.net at 3/13/2007 7:34:39 AM
We want to prevent some flickering when a DataGridView is being
updated. There doesn't appear to be a set of BeginUpdate/EndUpdate
methods for the DataGridView. We've tried the hammer approach of
using a Win32 API call to prevent updates by sending a WM_SETREDRAW to
the control with no luck.
... more >>
Looking for a webserver control
Posted by gusse.net at 3/12/2007 2:26:26 PM
anyone knows where i can find such ??
... more >>
Error Handling. How is this done??
Posted by iKiLL at 3/12/2007 2:18:13 PM
Hi all
What is the best way to handel an error when developing Forms controls.
I have a try catch and then display a Message box but my control is still
crashing my entier program.
Am i missing something.
Thanks,
ink
... more >>
Tab Order in Tool Strip
Posted by Arlyn_L at 3/12/2007 9:15:00 AM
The documentation for the ToolStrip control under the TabOrder property
indicates that the tab order for items in the ToolStrip items collection can
be controled. Quoting:
"When the user presses the TAB key, the input focus is set to the next
ToolStripItem in the tab order. Controls with a ... more >>
DataGrid Hex entry
Posted by tonyapf at 3/12/2007 8:18:31 AM
I have a DataGrid bound to a DataTable. The DataTable contains an (int)
column. I'm using GridColumnStyles to format the (int) column as decimal or
hex based on a user selection. The DataGrid properly displays the current
hex or decimal value but only accepts decimal entries when editing. ... more >>
How to hide a ToolTip after cancelling edit in a DataGridView cell? (.NET 2.0)
Posted by nvx at 3/12/2007 2:06:56 AM
Hi,
I have a DataGridView with some custom columns. In case user tries to
insert a specified character into a cell, a ToolTip is shown saying
that this character may not be inserted and the insertion is
suppressed. Where should I put the ToolTip.Hide() method into a code
of this custom DataGrid... more >>
Freezing Update during Dynamic Layout
Posted by Chuck Bowling at 3/11/2007 12:05:06 PM
I've got a UserControl that needs to change the locations of several of it's
child controls at runtime. Is there any way to freeze the control during
updates so that it only redraws itself once after all the child controls
have been relocated?
... more >>
RibbonX Without Office 2007
Posted by Flavio MIANO at 3/10/2007 3:08:26 PM
Hi all
Can i use Ribbonx control in vb.net
on a computer where is not installed Office 2007 ?
if yes where i can find the control ???
thanks in advance
FLAVIO
... more >>
Checkstate of a datagridview checkbox column
Posted by IDM at 3/10/2007 12:00:00 AM
Hi,
What i really wants is when some one change the state of the checkbox in a
datagridview , i need to trap the event.
Best Regards
... more >>
updating datagridview textbox column
Posted by IDM at 3/10/2007 12:00:00 AM
hi,
when the user enters some data in the DataGridView TextBox Column , i am
doing some calculation in order set the value in another DataGridView
TextBox Column .
Can any one tell me how can i immediatly force the change the value in the
datagridview to reflect the change.
Regards
... more >>
Stop a Windows Control from getting to Small?
Posted by iKiLL at 3/9/2007 4:33:40 PM
Hi All
i am developing a Windows Mobile User Controll and i need to make sure that
it is not sized to small.
i am developing in C# with CF2 for Windows Mobile 5.
How is this done?
i am hoping there is like a Min width and height propertiy.
Thnaks
ink
... more >>
|