all groups > dotnet windows forms controls > january 2007
Filter by week: 1 2 3 4 5
DataGridViewColumn Textbox with button?
Posted by David Dixon at 1/31/2007 8:13:54 PM
Hi, I'm looking for a DataGridViewColumn that has a Textbox for editing with
a button so that I can use this as a prompt to open a selection form.
Seems like a simple control, and I have seen similar in the PropertyGrid,
but I am perplexed by the
DataGridViewColumn/Cell/IDataGridViewEditing... more >>
Replacement for RichTextBox?
Posted by Brad Wood at 1/31/2007 11:15:54 AM
I'm setting color on text in a RichTextBox and after considerable effort I'm
convinced there's nothing I can do to prevent the text from repositioning
(jumping up or down) after I do so.
I've searched hard, but can't find a multiline text control that will simply
allow for setting portions ... more >>
.NET property names and translation
Posted by John Allen at 1/31/2007 9:30:51 AM
Hi there,
Does anyone know if the standard "PropertyGrid" control is (foreign)
language sensitive. If I display an object in the control, and my object has
the native .NET "Size" struct as a property (which also contains its own
""Width" and "Height" members), will someone running my app o... more >>
DataGridView Cell hi-lighting issue
Posted by xanthviper NO[at]SPAM gmail.com at 1/31/2007 7:44:16 AM
Hi there,
I'm currently using the DataGridView for some data display on my
windows form. I'm looking to allow the user to hi-light a specific
row in which they are working on, and then as they move from cell to
cell within that row, the cell selection color changes. I've been
working on the... more >>
Sum of the columns' FillWeight values cannot exceed 65535.
Posted by hometoast at 1/30/2007 12:19:40 PM
This is really a two part question.
I love the DataGridView for small amounts of data. I have some tables
I'd like to load but they have many, many columns (900-1000) for some
workloads.
Running this code:
---------
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Ob... more >>
datagrid insert row
Posted by Jochen Stümpfig at 1/29/2007 9:26:00 PM
hello ng,
i have the problem to insert a row into an datatable.
using the method DataTable.Rows.InsertAt(newRow, position)
this creates an new datarow at the end of my datagrid instead of the given
position after executing acceptchanges the createdline is displayed at the
correct position.
... more >>
Creating an exception viewer control
Posted by John Pouliezos at 1/29/2007 8:59:40 PM
Hi... any ideas on how to get a grip on the winforms control used by the
..net to show the details of an exception ?... more >>
DataGridView editing bug (changing Form's font)?
Posted by Paolo Pagano at 1/29/2007 11:36:18 AM
I have a simple Form with a DataGridView; in VS2005 designer I
change the Form's font size to 9, 10 (or more) points.
When editing a text cell the TextBox editing control seems not have
sufficient height: characters like 'g' are bottom cutted and text is
not full visible!
Is DataGridView t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
datagrid set currentcell
Posted by Jochen Stümpfig at 1/28/2007 7:39:43 PM
hello,
i have the problem that my clients want to copy content from an existing
cell to an new cell
using the shortcut ctrl-enter. i know how to move the cursor with ctrl-enter
to the next cell,
but the problem is that after execution of my code the datagrid focus lost
and the focus is on... more >>
Unload Event For User Control?
Posted by Jeff Gaines at 1/27/2007 3:15:51 AM
I want to save some data when my User Control unloads but I can't find an
UnLoad event.
Is there such a thing? If not is there another way of trapping when it
unloads?
--
Jeff Gaines... more >>
Using Datagridview with virtual mode and large amounts of data
Posted by Al Christoph at 1/26/2007 6:23:43 PM
1. I apologize for the empty posting with a similar title.
2. I've long since mastered virtual mode in datagridview for doing lots of
things besides what it was designed for i.e. handling large amounts of data.
I have a couple of very clever data entry systems for engineers that make it
look... more >>
How to make a DataGridViewComboBox column more reactive?
Posted by Massimo at 1/25/2007 9:09:16 PM
I'm developing an application where there's a DataGridView and one of its
columns is of DataGridViewComboBox type. The combo box behaves as it should,
but I find it's a little too unfriendly to users, because of its very
lazy-looking behaviour.
I, as an user of the application, would like t... more >>
AJAX technology within WebBrowser control?
Posted by JezB at 1/25/2007 8:10:49 AM
Does anyone know if AJAX technology can be employed within a WebBrowser
control running in a rich client application ?
If so, what's the best way to attach AJAX libraries and tap into their
functions? And does this add any issues to deployment of the application ?
... more >>
.NET 2.0 WEBBROWSER MHT
Posted by IKEAS at 1/25/2007 3:03:50 AM
Hello
i have a MHT file in a stream
like this
using (StreamReader sr = new StreamReader(@"D:\@Visual Studio
projects\test webbrowser MHT\test webbrowser MHT\test.mht"))
{
String line;
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
... more >>
Menu like word 2003
Posted by IKEAS at 1/23/2007 11:34:43 PM
hello
i'm looking for a solution to have
a menustrip like word 2003 or
other office 2003 software
with expandable arrow in bottom
of the menu... more >>
turn off the left non data column in a datagridview
Posted by Chris at 1/23/2007 12:31:27 PM
Hi,
Does anyone know how to turn off that non data column all the way on the
left of a datagrid?
I'm talking about that thing that someone would use to resize the row
height.
TIA,
Chris
... more >>
Gigasoft Releases New Charting Version
Posted by Robert Dede at 1/23/2007 11:59:03 AM
Gigasoft, Inc. announces release of their new charting product:
ProEssentials v6. Offered in Pro ($2399), Standard ($1299), and Lite ($649)
variations. New v6 Features: Full unicode support; New core vector
rendering engine expanded to render as 1) GdiPlus with alpha-blending and
anti-al... more >>
XML Dataset not showing in Listbox
Posted by robin9876 NO[at]SPAM hotmail.com at 1/23/2007 9:10:03 AM
When a dataset is created from a XML file source the data appears is
the dataset but when binding the dataset to the listbox nothing is
displayed. The code is created in VS.Net 2005 VB.net
Below is the code used.
filePath = Application.StartupPath.ToString + "\" + "myFile.xml"
lstTextField ... more >>
ToolStripControlHost, ToolStripDateTimePicker and ApplicationSettings
Posted by Kevin at 1/23/2007 3:09:31 AM
Hi All
I have created a ToolStripDateTimePicker with the following code:
Public Class ToolStripDateTimePicker
Inherits ToolStripControlHost
Public Event ValueChanged(ByVal sender As Object, ByVal e As
EventArgs)
Sub New()
MyBase.new(New DateTimePicker)
AddHandle... more >>
How to force binding on pressing toolbar button
Posted by Andrus at 1/22/2007 10:12:45 PM
I noticed that when I change data in control bount to datatable column and
press Save button, data is not saved.
The problem is that pressing a ToolBar button does not cause the
ActiveControl to lose focus (same with menu items), thus not forcing the
control's value into it's databound obje... more >>
TextBox.Height pb
Posted by Bragadiru at 1/22/2007 12:20:51 PM
Hi all,
I want to change my TextBox.Height property in designer, BUT I cannot do it
!!!???
It somehow related to TextBox.Font property, but I set the
Form.AutoScaleMode to None and TextBox.BorderStyle = None.
The only solution I found it's to set TextBox.Multiline = true.
What should I... more >>
Selecting a value in a ComboBox
Posted by robin9876 NO[at]SPAM hotmail.com at 1/22/2007 8:53:15 AM
In Visual Studio.Net 2005 Windows Form (VB) I have a combobox which is
populated from an arraylist of a user defined object. The values appear
in the combobox.
However when I try to select an option from the combobox based on a
supplied parameter it does not select an option.
I have used th... more >>
Form / Control as part of the desktop window
Posted by Rolf Welskes at 1/22/2007 3:54:10 AM
Hello,
I have the following problem:
I have a control or form what ever.
I want that this is a part of the desktop window.
Means all other normal windows on the dektop are over my application.
I have tried to solve it with a little c++, windows sdk, but do not find a
solution.
I th... more >>
Switching from Classic to Windows XP controls look bad??
Posted by newscorrespondent NO[at]SPAM charter.net at 1/20/2007 2:33:48 PM
I have a desktop appliction currently compiling with Visual Studio 2005
written in C#. The client recently switched from Classic Windows to
WindowsXP and many of the controls and background colors are washed out and
can't be seen.
Is there a quick fix or do I just need to go through all of the... more >>
DataGrid / Context menu - HowTo
Posted by john coltrane at 1/20/2007 1:22:59 PM
Can someone direct me to a reference that describes how to create a
context menu for a selected row in a datagrid? I have come across many
threads regarding context menus and datagrids but they all seem to be
how to modify the default behavior. I've gone through a couple of books
and many thre... more >>
Charts Control
Posted by Ahmed Hashish at 1/19/2007 12:07:57 AM
I'm developing a windows application using vb.net on SQL database, my
database changes every second (like stock quotes), I need to reflect the
data changed on my application using dynamic chart. I need addivce what
chart control I could use?
... more >>
Q: Why PictureBox takes SO MUCH memory ??
Posted by Kristijan Marin at 1/18/2007 12:39:27 PM
Hi,
I have a problem with memory when trying to load more pictures .....
So what I do is , I load images into PictureBox and keep them there for
further processing ..... so user can see, select, add etc ....
For testing I'm loading 1.3MB tiff's ...
Now the problem occurs when I try to ... more >>
Winforms binding -> non-IListSource to a ListBox
Posted by Keith Patrick at 1/18/2007 12:06:42 PM
I'm trying to convert a WPF app over to WinForms 1.1, but I ran into a bit
of a problem: WPF lets applications define a DataContext plus a path to the
actual data. WF seems to do something similar, but without the robust
pathing. What I want to do is pass an non-list and a non-listsource to ... more >>
Drawing real transparent background
Posted by ThunderMusic at 1/18/2007 10:20:09 AM
Hi,
I'm currently designing a user control that will draw some graphics like
rectangles and such... The control can select the drawn rectangle and move
it. The thing is, a control is a rectangle and cannot be rotated, so if my
drawn rectangle is rotated 45 degrees, the bounding rectangle (th... more >>
StausBar not in toolbox Form Design
Posted by guxu NO[at]SPAM hotmail.com at 1/18/2007 9:44:40 AM
How come I cannot find Statusbar in toolbox for Form Design? I am using
VS.NET 2003.
... more >>
How can I tell when a control is fully created
Posted by joseph_gallagher NO[at]SPAM hotmail.com at 1/18/2007 4:56:09 AM
Hi
I'm having problems adding items to a list view, I'm getting an
occasional error and I suspect it is because items are been added
before (or while) the listview is added to the control, how can I tell
if the listview is fully created, and is there an event to catch this,
I've tried using a... more >>
Listview Control ?
Posted by JerryWEC at 1/17/2007 9:52:09 AM
Hi all.
I have an issue that maybe someone has seen before... The code below is
getting the size of the sting using the listview font and it is about 2
twice the size it needs to be so I'm dividing by 2 and adding a 20 for good
measure. Does anyone know how to convert the unit of measure ... more >>
Avoiding the Form's BackColor to Control
Posted by Luciano at 1/17/2007 9:17:01 AM
Hello all !
I'm with a problem. I've created a Form with BackColor = White.
When I drop a Button to it, the component assumes the same BackColor of
this Form parent. How do I to avoid this behavior ?
Thanx for all and sorry my english, it isn't very good ! :)
Luciano.... more >>
Efficient way of removing selected items from a (very) large ListView
Posted by Bry at 1/17/2007 7:43:46 AM
I have a large list view item containing many thousands of
ListViewItems, and I need to be able to remove all the selected items.
(The number of selected items could also be many thousands)
The following code works, but is very slow:
foreach (ListViewItem lvi in lv.SelectedItems)
lv.Items.... more >>
Form within a panel resize problem
Posted by David Hearn at 1/16/2007 3:52:58 PM
I have a parent form which contains a panel control. In that panel control,
I load another form. The problem is that when the parent form is resized,
the panel is resizing, but the form that is loaded within the panel is not.
Anyone know how to get around this and make the child form resize wh... more >>
Displaying rich text in a listbox (in 1.1)
Posted by Keith Patrick at 1/16/2007 1:32:35 PM
I have a project that unfortunately has some annoying constraint of "make
sure this runs on a bunch of laptops where the users don't bother updating
their machines", so I'm stuck with .Net 1.1 WinForms (which I'm pretty
unfamiliar with because I quit using WF as soon as there was a choice
be... more >>
Grid Efficiency Question
Posted by Joseph Geretz at 1/16/2007 2:40:57 AM
I'm running an amortization calaculation out to 360 months. I'm finding
though, that loading the Grid is unacceptably slow. The way I'm doing this
is by sequentially adding a new row and loading the data into the grid as
each month is calaculated. It takes 35 - 40 seconds! Would it be faster t... more >>
VS 2005 SP1
Posted by John at 1/14/2007 6:53:48 PM
Hi
I am almost finished with a vs 2005 (pre sp1) project which I need to
deliver in the next couple of days. I am wondering if I should deliver
project with sp1. Is it safe to install sp1 at this late stage?
Thanks
Regards
... more >>
Hide a property from a property grid at runtime.
Posted by Ray Cassick at 1/13/2007 10:22:37 PM
I am looking for a way to hide a property I created on a user control from a
property grid at runtime but allow it to be seen at design time.
Any ideas?
I tried setting the category of the property to 'Design' and that does not
do it.
I tried adding the 'DesignOnly' attribute and that d... more >>
How to iterate over a combobox's items?
Posted by Quimbly at 1/12/2007 3:46:01 PM
Say cbRoadwayType is my combobox:
for (int i = 0; i < cbRoadwayType.Items.Count; i++)
{
cbRoadwayType.SelectedIndex = i;
int val = (int)cbRoadwayType.SelectedItem // INVALID EXCEPTION cast
if (val != FILTER_ALL && val != FILTER_NOT_SET)
... more >>
UserControl and TextChanged event
Posted by Adrian Maull at 1/12/2007 2:30:54 PM
Anyone know why the TextChanged event on the UserControl object is public
but EditorBrowsable is EditorBrowsable.Never and Browsable is false? In
Intellisense you can't see the TextChanged event but I can still to
UserControl1.TextChanged += <subscribing method>. I get an error when I do
t... more >>
AutoComplete ComboBox with DroppedDown=true
Posted by aferriere at 1/12/2007 8:29:12 AM
Hi
I have create an autocomplete combobox in VS.NET 1.1 based on some
articles I found on the net. Every thing works fine except when you
turn on DroppedDown=true to make the combo behave like an IE
autocomplete combobox. The combox seems to be working fine but when you
try to get combobox.Text... more >>
Looking for an idea
Posted by Earl at 1/12/2007 6:05:43 AM
I'm modifying the form that documents an employees hours on the job. Right
now the form uses 4 textboxes to get time-in, lunch-in, lunch-out and
timeout for the day. I'm looking for an idea to replace those controls with
something better, something that would ease the pain of validation would ... more >>
Using variable as form field name
Posted by John at 1/12/2007 2:52:41 AM
Hi
I have two fields field1 and field2 on my form. Is there a way that the
field names can be accessed via variable so that choice of the actual field
to access is decided at runtime?
Thanks
Regards
... more >>
hiding columns in a datagrid maintaining the mapping
Posted by Giuseppe Vitalone at 1/11/2007 6:36:58 PM
Is it possible? I'd like to view a datagrid not showing the "id" field of my
entries... but I need that field when I select an entry! What can I do? Many
thanks, Giuseppe
... more >>
webbrowser control DocumentText not updating
Posted by dewboy3d NO[at]SPAM gmail.com at 1/11/2007 10:16:16 AM
I am creating an application to help design trouble tickets for my
work. I have a webbrowser control to show a preview of the completed
ticket. in Form1_Load, I am setting webbrowser.DocumentText to the
basic text layout I want to have. The webbrowser control shows this
text fine. Then as the us... more >>
LicenseProvider only for controls?
Posted by Boris at 1/10/2007 7:10:04 PM
Does anyone know if the attribute LicenseProvider can only be used for
controls? I wonder as in every tutorial they mention and use controls. Is
it required to derive your own class from System.Windows.Forms.Control if
you want to use LicenseProvider?
Thanks,
Boris... more >>
Proportional Resizing Controls
Posted by Brad at 1/10/2007 3:56:16 PM
Does anybody have a recommendation for proportional resizing components that
automatically resize UI components as the user changes the size of the
screen?
TIA
Brad
... more >>
Is there a way to prevent a RichTextBox from scrolling?
Posted by Brad Wood at 1/10/2007 2:29:31 PM
Problem:
Selecting / changing color of text in a subclassed RichTextBox on
TextChanged.
- Native suppress redrawing with WM_SETREDRAW
- Make selections, set colors
- Set position back to where user was using Select()
- Unsuppress redrawing
- Call Refresh()
All works fine except the text a... more >>
Command to refresh the properties window and form?
Posted by Andrew at 1/10/2007 10:06:42 AM
I have a control where the user can use smart tags at design time to update
something. This has an effect of changing a property on the parent control.
The properties window does not notice this property change and the form
design code also does not change.
Is there a command I have to use... more >>
|