all groups > dotnet windows forms controls > february 2006
Filter by week: 1 2 3 4
DateTimePicker in datagrid
Posted by dgk at 2/28/2006 2:09:55 PM
So I'm dragging a table from the datasources window onto a grid. I use
the dropdown arrow on a date field in the table and select
DateTimePicker as the type of control to use. Then I drop the table on
the form - and get a text box.
Is there a way to have a datetimepicker or similar control in ... more >>
Passing variables through form
Posted by Jason Mohan at 2/28/2006 1:21:28 PM
I need some help. I've been trying to get my form to work properly using .NET
2.0 with Visual Studio 2005. Here's my problem. I used to program in classic
asp, and recently started moving into the .NET framework. I used to send my
db id number through the form post method in ASP and it worked.... more >>
need a control for good scrolling status output
Posted by djc at 2/28/2006 10:57:06 AM
I'm looking for a way to display text information on a windows forms app in
a way that as new information is added the newest info is always visible.
The best way to explain is this:
A regular textbox control would work perfectly fine for me if only as I
append text to it, it scrolled to the b... more >>
Problem with IDE when overriding Text property
Posted by Jason Barnett at 2/28/2006 10:05:55 AM
I noticed when overriding the Text property of the
System.Windows.Forms.UserControl that the Form.Designer file does not
reflect changes made via the property browser. In other words, when you
override the Text property and then try to change it's value at design-time,
the value is not seri... more >>
unbelievable - accelerator key not working in VB.net?
Posted by chanvb at 2/28/2006 3:57:29 AM
hi
I am VB6 programmer, working on VB.net now, came across this. To my surprise
this didnt work as it used to work in VB6...
I am making a form with 2 buttons - BONE and BTWO, given its labels as B&ONE
and B&TWO so that I could access (have focus) on that button via keyboard by
pressing an ... more >>
How to Dock subclassed TreeView in Panel?
Posted by deko at 2/27/2006 4:59:13 PM
How do I get two subclassed TreeViews to share a panel with a splitter?
I have 2 derived TreeView controls:
internal class TreeConfiguration : TreeView
internal class TreeProject : TreeView
How do I get them docked in a panel?
In the constructor of my Form I have this:
public... more >>
viewing mhtml page in webbrowser control
Posted by Darren at 2/27/2006 9:33:17 AM
Can an mhtml page be viewed using the System.Windows.Forms.WebBrowser control?
When I use the Navigate method it works but if I try to use the DocumentStream property it
doesn't render any of the images. The source is a web page saved in IE6 using SaveAs mht
I want to be able to store an mht... more >>
Move focus between controls with Enter key
Posted by Antoni Gomez at 2/27/2006 12:00:00 AM
Hello, I want move the focus between controls with enter key, like (TAB).
Can you help me?
Thanks.
Antoni Gomez
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to set ListView scroll info?
Posted by Michael J. Salamone at 2/26/2006 1:58:04 PM
I have a listview whose contents are constantly being refreshed. When a
refresh occurs, I delete all the items and add back. I want to maintain the
scroll position before deleting all the items, and then want to restore it
once the items are added back.
I'm using P/Invoke Get/SetScrollInf... more >>
DataGrid selection and KeyDown event
Posted by vandg NO[at]SPAM vandg.d2g.com at 2/26/2006 5:35:34 AM
I'm selecting the whole data in DataGrid (Ctrl+A) and going to handle
copying operation (Ctrl+C). But I can't handle this key combination.
Where is event fired?
... more >>
Why is a custom control always wrapped by a user control
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 2/25/2006 10:11:15 PM
Hi guys, here is a question about a custom control.
When I wanted to create a custrom control from scratch, I followed the
steps as bellow,
1. Create a new contorl liabrary project.
- but why does VS2005 create a UserControl derived class at first?
2. Add a newItem (custom control) to the... more >>
Merge datagridview cells
Posted by Derek at 2/25/2006 6:13:27 AM
Hi there,
With datagridview, is there a way to merge adjacent cells as we can do with
Excel or even MSFlexgrid in VB6?
Thanks.
Derek... more >>
Receiving Keyboard Events in Custom Control
Posted by Greensombrero at 2/24/2006 2:28:22 PM
Okay I seem to be missing something. I have a custom control written in C#.
I want it to receive keyboard input which I can then process. I've
overridden the OnKeyDown and OnKeyPress methods to add my code to them. I've
also added a call to SetStyle to set the control as selectable so it c... more >>
C# User Control Sample WITH Property Persistance Code
Posted by Alex Maghen at 2/24/2006 12:33:27 PM
Hi - Back in VB 6.0, creating a control was pretty straight-forward. You used
the Property Bag thing to store persistent data during design-time, etc. I
have to admit that in C#, I'm lost! I need a sample C# User Control that
demonstrates not only the run-time functtionality of properties, etc... more >>
how to forcfully kill a running process by executable name with a .net application?
Posted by Daniel at 2/24/2006 11:07:33 AM
how to forcfully kill a running process by executable name with a .net
application?
... more >>
Timer control
Posted by Carl Tribble at 2/24/2006 7:53:27 AM
If the code in the tick event of a windows forms timer control takes so long
to run that it is still running when the next tick event occurs, what
happens? Is the second tick event ignored?
Thanks,
Carl
... more >>
How to use selectedindexchanged event from combobox in datagridvie
Posted by Ludo Nagels at 2/24/2006 3:53:27 AM
I want to update cells in the same row where a DataGridViewComboBoxColumn
exists
I would like to use the Slectedindexchanged event but can't locate this for
the DataGridViewComboBoxColumn control
thank you in advance
--
Ludo Nagels... more >>
DataGridViewComboBoxCell
Posted by kh at 2/24/2006 12:56:29 AM
As previously noted I am implementing "AutoFilter" functionality in the
DataGridView, similar to that seen in Excel. This is done by inserting a row
of DataGridViewComboBoxCell objects at position zero in the grid and filling
each combo with a list of possible values for the Column in which it... more >>
Cannot delete file It is in use by another person or program
Posted by steve at 2/24/2006 12:00:00 AM
Hi All
I have a VB2005 program which stores photos of members as bitmap files
On a form a picture box (picCapture) loads the picture from file
When a new photo is required the user clicks on a button and my code
captures a new photo and saves it
50% of the time the code works fine, the... more >>
Width of textbox on a FlowLayoutPanel
Posted by Tristan at 2/23/2006 9:45:35 AM
Hi,
I have three textboxes on the same row on a FlowLayoutPanel. I want the
one on the left and right to have a fixed width but for the one in the
middle to fill any remaining space depending on the width of the
FlowLayoutPanel. Is this possible? (The widths of the left and right
boxes aren't... more >>
Opacity for windows forms controls?
Posted by Chris at 2/23/2006 7:51:29 AM
Is there a way to control the opacity for windows forms controls in .NET 2.0?
Thank you.... more >>
ListView: howto permanently highlight an item
Posted by Florian Pürsch at 2/23/2006 12:00:00 AM
Hi group,
does someone know how to permanently highlight an ListView Item, even if
focus is set to something else (say a textbox for editing this item's name)?
Any help would be appreciate,
Florian
... more >>
WebBrowser in .NET 2.0: loading HTML via DocumentStream and CSS
Posted by Jan_Weingärtner at 2/22/2006 11:26:29 PM
Hi,
i'm loading a stream with HTML data via the property DocumentStream
into the WeBrowser Control. The HTML code is displayed, but the
CSS information seems to be ignored.
If i save the same data to a file and if i load this file via
webBroser.Navigate(...) the CSS information is applied.... more >>
Desinger view error with simple inheritance: Constructor on type '' not found.
Posted by tribbles at 2/22/2006 6:14:46 PM
I have a class that inherits user control:
public partial class ValidationSubDesigner : UserControl {
It works jsut fine, the problem occurs when I try to inherit it:
public partial class FieldCompareFieldDesigner : ParamDesigner {
//public partial class FieldCompareFieldDesign... more >>
How to cast Array to TreeNode[] array?
Posted by deko at 2/22/2006 2:55:39 PM
I create an Array from a database query that is a property of an object I
use in my C# WinForms .NET 2.0 app.
When I instantiate a custom TreeView control, I want to populate that
TreeView with this Array.
Can I cast the Array to a TreeNode[] array?
I tried this:
Array configArray = ... more >>
Populating unbound DataGridView
Posted by kh at 2/22/2006 9:26:28 AM
Adding rows to an unbound grid can be pretty slow and can leave the UI in an
intermediate state before the grid has been fully redrawn. Is there anything
I can do about this. ISupportInitialize.BeginInit/EndInit and
Suspend/ResumeLayout do't appear to help much.
Admittedly I am displaying a... more >>
Row provided already belongs to a DataGridView control
Posted by kh at 2/22/2006 8:40:20 AM
Hi. I am adding a row to a DataGridView to provide "quick filter"
functionality (i.e. a row of combo boxes to allow easy filtering of column
values). If I am clearing rows from the grid I want to preserve the filter
row rather than recreate it. I use code similar to the following:
// filter... more >>
Can't customize columns in datagrid (winform)
Posted by Zeep at 2/22/2006 5:05:09 AM
hi,
For some reason i cannot customize the columns of a DataGrid. I don't
want the grid to display every column of my dataset and also change the
width of certain columns. Scenario:
Designer:
- Put a Datagrid control on my form.
Code - behind:
- Retrieved data from my DB and stored it i... more >>
Exception on a Debug.Fail
Posted by Bragadiru at 2/22/2006 12:00:00 AM
Hi,
From time to time, I'm getting the following exception :
Message "Object reference not set to an instance of an object."
StackTrace " at System.Windows.Forms.ToolTip.CreateHandle()\r\n at
System.Windows.Forms.ToolTip.get_Handle()\r\n at
System.Windows.Forms.ToolTip.WmWindo... more >>
Selecting items from DropDownList by typing the first first characters
Posted by Rob Nicholson at 2/21/2006 10:24:58 PM
Consider an Access 2000 drop down list containing the following:
Internal
Wibble
Wobble
Pressing the W key and then the I key selects the Wibble entry
Pressing the W key and then the O key selects the Wobble entry
How do you configure the Windows.Forms.DropDownList to do the same? It onl... more >>
Events from control in dynamically loaded assembly
Posted by Jeppe Jespersen at 2/21/2006 4:30:04 PM
I have loaded an assembly using Reflection.Loadfrom and created an object of
the control type defined in the assembly.
The control in the loaded assembly has a button. In the assembly, clicking a
button raises as heyLookAtMe event.
How do i trap that event in the code that loads the assemb... more >>
abstract UserControl class and graphics
Posted by Brian Cobb at 2/21/2006 2:27:04 PM
Greetings;
While working on a project, I created a user control that displays an icon
and text. I called the control Marker. The Control works as expected.
Just for grins, I then modified Marker so that it is an abstract class, i.e.,
public abstract class Marker : System.Windows.Forms... more >>
Windows Forms 2.0 Horizontal Rule
Posted by Josh Crosby at 2/21/2006 10:25:29 AM
I have searched high and low, tryed a picture box, 3D border, etc... doesn't
appear right, can someone help me with this, i'm sure it's really simple. How
do you put a horizontal rule, or seperator bar on a windows form, i.e. those
that are most commonly seen on dialog boxes.
Thanks in adva... more >>
.Net 2.0 Rich Text Editor
Posted by Jay Douglas at 2/21/2006 9:22:20 AM
Is anybody aware of a component or sample application using a RichTextBox
with a formatting toolbar using the .Net 2.0 framework. (Much like WordPad)
... I found one control, http://www.textcontrol.com/products/dotnet/,
however this control is using the 1.1 framework and would cause deployme... more >>
ToolTip for a DataGridViewCell
Posted by cPetru at 2/21/2006 8:03:02 AM
Hello all,
I am interested in displaying a tooltip for a particular DataGridViewCell,
if certan conditions happen, regardless of mouse hover.
So the cells tooltiptext is out of the question, because it shows up only on
mouse over, and ToolTip class seems impossible to be used because a
Da... more >>
Using Rich Textbox .Lines property
Posted by GY2 at 2/20/2006 4:31:48 PM
I want to step through the rows returned by my DataView, extract some values
from some of the columns and append them to the text of various rich textbox
controls while possibly changing the color of each new line.
It seems as though I should use the Lines property but can't find a good
ex... more >>
RichText Formatting Urls
Posted by Michael South at 2/19/2006 3:00:43 PM
Hi,
I can display a link in the rich text control which the user can click on
which then opens explorer and takes them to that page. I need to go a step
further and display the link as a name hiding the URL behind it but when
clicked on opens up explorer in the same way. Is there some ric... more >>
tabontrol scroll buttons
Posted by at 2/17/2006 5:00:57 PM
Hi NG!
Is there any way to get a hand on the scroll buttons of the TabControl,
those that appear at the right of the TabPage headers when there is not
enough room and the Multiline property is set to false? How to change the
aspect of these buttons?
Thanks in advance.
pax ... more >>
Autoscroll panel bug?
Posted by Igor at 2/17/2006 3:00:39 PM
Hi all!
Here is the thing:
I have a panel with autoscroll set to true, and have controls that are outside the viewing area (thus the autoscroll:).
Now, I know that the autoscroll panel scrolls the focused control into view which is ok, but it also happens on paint event - when anything changes ... more >>
Merging DropDownItems to ContextMenuStrip
Posted by Jeronimo Bertran at 2/17/2006 12:58:04 PM
Hello,
I am trying to merge all of the ToolStripItems in a DropDownItems
collection to a ContextMenuStrip.
private MenuStrip menuStrip1;
private ToolStripMenuItem fileToolStripMenuItem;
private ToolStripMenuItem newToolStripMenuItem;
private ToolStripMenuItem copyToolStripMenuItem;
pri... more >>
Bound Object Frame
Posted by Rob Nicholson at 2/17/2006 11:53:36 AM
Access has the Bound Object Frame control which allows you to support a very
neat drag and drop container into which almost any file can be dropped
including pictures in the clipboard.
Does Windows Forms have anything similar?
Thanks, Rob.
... more >>
TextBox TextChanged event.
Posted by Maxwell2006 at 2/16/2006 3:27:00 PM
Hi,
I need to change the text of my textbox within TextChanged event handler.
The problem is that the textbox keeps triggering the TextChanged event
recursively.
Is there any way to prevent the text changed event when I change the text of
my text box inside the text changed even... more >>
Treeview Vb .net question (newbie)
Posted by Marc R. at 2/16/2006 2:47:29 PM
Hi all,
I got A node that is selected,
but went the treeview loose focus, It become Grey but not enough to see that
it is still selected
I would like it to remain selectedDarkBlue as it was when the tree has
focus.
how can I achieve that ?
thanks,
(By the Way Sorry for My poor En... more >>
Load event called in Design mode
Posted by escristian NO[at]SPAM hotmail.com at 2/16/2006 2:45:05 PM
Here is the situation: I have a base class (BaseUserControl) which
inherits from UserControl. Now I created a bunch of controls that
inherit from this base class and that I add to different Forms.
The load event is being called in design mode. And i know this is by
design because the Form need... more >>
[repost] NotifyIcon.ShowBalloonTip under Win2K?
Posted by Merit at 2/16/2006 1:20:27 PM
It seems that the behavior of NotifyIcon.ShowBalloonTip is different under XP
and Windows 2000. If I call it twice in a row on XP the second balloon
replaces the first (as the MSDN documentation explains) but on Win2K it
creates a new balloon over top of the first, such that when I click to
... more >>
hiding events
Posted by SharpCoderMP at 2/16/2006 1:15:17 AM
hi,
what's the most convinient way of hiding events in inherited controls?
I've created my own button control which derive from
System.Windows.Forms.Control, which provides DoubleClick event. Normal
button does not need this event, what's more i have to override
OnDoubleClick to perform two... more >>
Get SelectedText from WebBrowser control
Posted by Pana56 at 2/16/2006 12:00:00 AM
Hello
How would I go about getting the selected text out of a WebBrowser control?
I have searched the net and found some code which uses the mshtml interface
but I couldn't cast my webBrowser1.Document to IHTMLDocument2 using Visual
Studio 2005.
Thanks
Mark
... more >>
Enable "AddNew" with custom collection and datagrid
Posted by Brian Link at 2/14/2006 9:34:29 PM
I have a custom collection, inherited from collectionbase, which
contains a collection of custom objects.
I can set datagrid.datasource to the collection, and it displays in
the datagrid, but I don't have an asterisk row below the last row
which would allow me to add a new row.
What should ... more >>
Custom Control toolbox problem
Posted by Frederik Vanderhaegen at 2/14/2006 7:29:17 PM
Hi,
I've created a Custom Control which looks like this:
[Designer(typeof(myNamespace.FixedSizeControlDesigner), =
typeof(IDesigner))]
public class MyControl : UserControl
{
public MyControl ()
{
....
}
}
The ControlDesigner is just a designer that ... more >>
Toolbars lose focus, require two clicks to regain focus
Posted by NFXBeats NO[at]SPAM gmail.com at 2/14/2006 3:11:22 PM
When I run a winform app (.NET 2.0) with some toolstrips on it, I find
that if the winform loses focus, and I rteturn to the winform, I need
to click on the tool button twice in order for it to fire the click
event. The first click seems to give the winform focus and the second
click fires the e... more >>
|