all groups > dotnet windows forms controls > recent posts
scroll DataGridView to selected row
Posted by John A Grandy at 6/23/2008 5:39:59 PM
For a DataGridView, programmatically selecting a row not currently displayed
does not cause the grid to scroll ...
How to programmatically cause the grid to scroll to display the selected row
?
... more >>
programmatically show new empty row
Posted by John A Grandy at 6/23/2008 5:01:15 PM
For DataGridView.AllowUserToAddRows = False :
how to programmatically cause the DataGridView to display a new empty row ?
( where of course the cells should not be allowed to be edited )
... more >>
RE: More Info: Notifying user of Textbox input error
Posted by brad at 6/23/2008 10:56:01 AM
I should have mentioned the solution is under the section on "Improved
Handling of Errors and Exceptions"
brad
"brad" wrote:
>
> Here's the answer:
> http://msdn.microsoft.com/en-us/library/aa480734.aspx?wt.slv=ColumnA
>
> I'm a bit disappointed with the amount of effort I had t... more >>
RE: More Info: Notifying user of Textbox input error
Posted by brad at 6/23/2008 10:49:39 AM
Here's the answer:
http://msdn.microsoft.com/en-us/library/aa480734.aspx?wt.slv=ColumnA
I'm a bit disappointed with the amount of effort I had to go through to find
and implement this, not because I mind doing my own research, but because
1) In my opinion the solution was not easy to find
... more >>
Can't derive from System.Windows.Forms.TreeView
Posted by Axel Dahmen at 6/23/2008 3:38:08 AM
Hi,
I'd like to create a specialized version of =
System.Windows.Forms.TreeView. But creating a class and deriving from =
TreeView doesn't work. I can't drag this new class onto a Form or store =
it in the Toolbox.
What am I doing wrong here? How can I derive from TreeView and have all =
t... more >>
Re: scroll DataGridView to selected row
Posted by David at 6/23/2008 12:00:00 AM
John A Grandy wrote:
> For a DataGridView, programmatically selecting a row not currently displayed
> does not cause the grid to scroll ...
>
> How to programmatically cause the grid to scroll to display the selected row
> ?
>
>
>
>
Try using the currency manager to move next for ... more >>
Re: Can't derive from System.Windows.Forms.TreeView
Posted by Axel Dahmen at 6/23/2008 12:00:00 AM
Thanks, Jack and Morten!
Going through your tips I've found the reason why it didn't work =
yesterday. I forgot to declare my class as "public"....
I found your tips - particularly the "toolbox group called <project> =
components tip - very valuable.
Thanks a lot! And best regards,
Axel ... more >>
RE: Can't derive from System.Windows.Forms.TreeView
Posted by Morten Wennevik [C# MVP] at 6/22/2008 10:46:00 PM
Hi Axel,
You can create your own TreeView easily, but it may not always pop up in the
ToolBox, especially if you have lot of third party controls already in the
ToolBox.
Make sure Tools->Windows Forms Designer->General->Autopopulate ToolBox is
set to true (remember to restart the solutio... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Re: Can't derive from System.Windows.Forms.TreeView
Posted by Jack Jackson at 6/22/2008 9:41:24 PM
On Mon, 23 Jun 2008 03:38:08 +0200, "Axel Dahmen"
<keentoknow@newsgroup.nospam> wrote:
>Hi,
>
>I'd like to create a specialized version of System.Windows.Forms.TreeView. But creating a class and deriving from TreeView doesn't work. I can't drag this new class onto a Form or store it in the Too... more >>
Incremental Search Combo
Posted by Craig at 6/22/2008 6:41:57 PM
I am after an incremental search combo that can be used for searching
through potentially thousands of records. The way it should work is
that as the user types it dynamically loads records from the db (or
list) into the combo, rather than having them all up front in the
list. This is similar to... more >>
Re: ToolStripProgressBar: Style is always Continuous
Posted by Chris Jobson at 6/21/2008 6:40:49 PM
> I don't seem to be able to change the ProgressBar Style property in Visual
> Studio 2008. No matter what value I set it to, the ProgressBar is > always
> displayed as "Continuous".
>
> Does anyone have the same experience? Or am I doing something wrong here?
Actually I find that Continuou... more >>
ToolStripProgressBar: Style is always Continuous
Posted by Axel Dahmen at 6/20/2008 11:12:46 PM
Hi,
I don't seem to be able to change the ProgressBar Style property in =
Visual Studio 2008. No matter what value I set it to, the ProgressBar is =
always displayed as "Continuous".
Does anyone have the same experience? Or am I doing something wrong =
here?
TIA,
Axel Dahmen... more >>
Re: Any free UI controls? I mean real free controls.
Posted by RealCat at 6/20/2008 9:48:04 PM
On Jun 21, 5:16=A0am, Fernando G=F3mez <fernando.a.gome...@gmail.com>
wrote:
> Patrick B. wrote:
> > The Krypton Toolkit is free, and also happens to be mind-blowingly awes=
ome:
>
> >http://www.componentfactory.com/
>
> > (The Ribbon and Navigator are not free.)
>
> As for the Ribbon, thi... more >>
Re: ToolStripStatusLabel (.NET 3.5): Can't clear text property
Posted by Axel Dahmen at 6/20/2008 7:30:20 PM
Ooops... Found the problem.... I was clearing the statusBar.Text, not =
the statusLabel.Text property... Problem solved... :)... more >>
ToolStripStatusLabel (.NET 3.5): Can't clear text property
Posted by Axel Dahmen at 6/20/2008 7:18:42 PM
Hi,
in a WinForms application I'm using a System.Windows.Forms.StatusStrip =
control. In this control I'm using a =
System.Windows.Forms.ToolStripStatusLabel control.
What's strange is that I can't clear the text of the =
ToolStripStatusLabel control once I've set it to something else but =... more >>
Re: Any free UI controls? I mean real free controls.
Posted by Fernando_Gómez at 6/20/2008 3:16:34 PM
Patrick B. wrote:
> The Krypton Toolkit is free, and also happens to be mind-blowingly awesome:
>
> http://www.componentfactory.com/
>
> (The Ribbon and Navigator are not free.)
>
As for the Ribbon, this is something nice.
http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx
Re... more >>
Re: DataGridViewImageButtonColumn, custom column for DataGridView, image with mouse-overs
Posted by Patrick B. at 6/20/2008 11:25:42 AM
If anyone else out there other than me actually needs a
"DataGridViewImageButtonColumn," here's the follow up to my last post.
I figured out the problem with my code that was causing the error
message. The function SetRowHeightFromImage() needs to be changed to the
following:
vo... more >>
Re: Any free UI controls? I mean real free controls.
Posted by Fernando_Gómez at 6/20/2008 10:57:39 AM
RealCat wrote:
> A few years ago, when the .NET version was still 1.1, there was a UI
> controls library called Magic Library. It was free, but now it's gone
> commercial.
>
> I'd like to add some UI eye candies for my freewares but don't need
> them that much to create them spending my time.... more >>
DataGridViewImageButtonColumn, custom column for DataGridView, image with mouse-overs
Posted by Patrick B. at 6/20/2008 9:47:04 AM
Dear DataGridView lovers,
I want a DataGridViewColumn that acts like a button but that shows an
image. Furthermore, when the user mouse-overs the image or clicks on it,
I want the image to change.
I've written some code the works, KINDA. Actually it works well, except
it generates error ... more >>
Re: Any free UI controls? I mean real free controls.
Posted by Patrick B. at 6/20/2008 9:23:28 AM
The Krypton Toolkit is free, and also happens to be mind-blowingly awesome:
http://www.componentfactory.com/
(The Ribbon and Navigator are not free.)
A long time ago, I bookmarked a forum thread with links to free
controls. I haven't checked it out recently. I can't vouch for any of
the... more >>
Any free UI controls? I mean real free controls.
Posted by RealCat at 6/19/2008 9:47:23 PM
A few years ago, when the .NET version was still 1.1, there was a UI
controls library called Magic Library. It was free, but now it's gone
commercial.
I'd like to add some UI eye candies for my freewares but don't need
them that much to create them spending my time. I'd rather enhance the
pro... more >>
Re: How to refresh a computed column in DataGridView before leaving the row ?
Posted by Patrice at 6/19/2008 3:28:43 PM
Forcing the row update by calling EndEdit on the underlyind DataBoundItem
from the CellEndEdit event seems to do the trick...
Thanks Patrice ;-)
--
Patrice
"Patrice" <http://www.chez.com/scribe/> a écrit dans le message de groupe de
discussion : 10052CC4-5C5E-409C-9E1B-99D2A629421B@m... more >>
How to refresh a computed column in DataGridView before leaving the row ?
Posted by Patrice at 6/19/2008 12:30:03 PM
Hi all,
I'm using a DataTable with computed columns as the source for my
DataGridView.
When I change the value used by the computed column, the computed column is
updated only when I leave the row. I would like to update the computed
column when I leave cell (moving to another cell on th... more >>
Re: Custom TabControl - hide/customize left-right buttons
Posted by Olaf Rabbachin at 6/19/2008 9:37:30 AM
Hi,
Martin M wrote:
> Would you like to try the XTabControl from SpringSys?
actually I have opted to create a TabControl from scratch. The whole
process thus took way longer than planned, but I sure learned a lot as
well.
Cheers,
Olaf... more >>
Re: Tabcontrol in Usercontrol not painting activex controls
Posted by Martin M at 6/19/2008 3:44:08 AM
Would you like to try the XTabControl from SpringSys?
>I have created a usercontrol that has a Tabcontrol with 2 tab pages. On
>each page I have placed an ActiveX control.
>
> All looks fine at design time but when I run the app - only the activex
> control on the first disaplayed ta... more >>
Re: Custom TabControl - hide/customize left-right buttons
Posted by Martin M at 6/19/2008 3:41:53 AM
Would you like to try the XTabControl from SpringSys?
> Hi *,
>
> I have created a custom TabControl (inherited from the default one). The
> only thing that's still missing is to customize the behaviour when the
> horizontal extension of the tab-strips exceeds the TabControl's width. ... more >>
Re: Recommendation for tree control?
Posted by Fernando_Gómez at 6/18/2008 3:20:20 PM
Test wrote:
> Hi All
> Could anyone recommend me a decent tree control that can have extra columns of text
> data (like how Outlook Express shows the messages), preferably in C#.
>
> Many thanks
>
> ---
> Test
Hi there,
don't have Outlook Express, but you might want something like ... more >>
Re: Drawing Over Other Controls
Posted by viplove4you@gmail.com at 6/17/2008 2:50:32 AM
Hey Hay!
I want to get rid of this splitter in my DataGridView control. That
is, when I resize the columns I don't want any line to be drawn over
the datagridview.
How can that be possible? Quick inputs would be appreciated.
Thanks,
Viplove
WinWire Technologies... more >>
Re: NotifyIcon screen coordinates
Posted by Bob Powell [MVP] at 6/16/2008 8:57:38 PM
afaik there's no way to do this and rightly so I think.
You can determine the position of a click on your icon using the static
Control.MousePosition property but i don't beleive you can get the position
at any other time.
I say "rightly so" because your program shouldn't need knowledge of... more >>
Re: Wrong size of UserControl
Posted by Bob Powell [MVP] at 6/16/2008 8:31:44 PM
A quick look with Rflector shosw the following in the UserControl.
protected override Size get_DefaultSize()
{
return new Size(150, 150);
}
Setting the DefaultValue attribute does not change this value. You should
override the property yourself to change it.
You can however set the d... more >>
|