all groups > dotnet windows forms > february 2007 > threads for february 15 - 21, 2007
Filter by week: 1 2 3 4
Data-bound DataGridView, overloaded ProcessCmdKey & CancelEdit problem
Posted by Pavel Maly at 2/21/2007 9:05:17 PM
Hello, I need some help with a DataGridView control and ProcessCmdKey method of the form. The
DGV is data-bound to an Access database table with a few NOT NULL columns. The ProcessCmdKey
method of the form is overloaded. I tried to use
return base.ProcessCmdKey(ref msg, keyData);
in the... more >>
How to clone a "Control"
Posted by Rob Stevenson at 2/21/2007 8:37:56 PM
Does anyone know how to do this accurately. I really only want to clone the
design-time properties which should make the task easier. I've searched high
and low however and still can't find a problem-free solution. Even (ad-hoc)
solutions posted by MSFT employees have problems. For instance, i... more >>
wpf book recommendation?
Posted by Paul at 2/21/2007 1:52:20 PM
Any recommendations for WPF books? I'm a little skeptical of reviews on
Amazon right now, since they might be astroturfed by the publishers.... more >>
Dataset and scalability issue
Posted by Nick nkw at 2/21/2007 10:50:04 AM
I am creating a winforms application. Drag and drop and VS 2005
automatically created Dataset based on the MDB schema. I found it seems
that all the changes are cached in the memory. Will the default way has
any scalability issue if the database tables are huge? What's the
solution if it doe... more >>
problem getting data from drag drop
Posted by Tarscher at 2/21/2007 8:27:34 AM
Hi all,
I have a 2 classes (A and B) inheriting from 1 base class (parent). I
populate a listbox with those 2 classes (A and B).
I want to implement some drag and drop ordering code on the listbox.
To get the data out of the dragged item I try:
Parent myParent = (Parent)e.Data.GetData(type... more >>
popup a form remotely
Posted by sumu at 2/21/2007 2:20:06 AM
I am doing a simple chat server using .net remoting. When client
application in my system gets a message, i call a method which creates
a new object of a form to display message..The problem is i cant call
Show method or Showdialog.
if i call Show method, the form is not being displayed.
if i c... more >>
Developing a WYSIWYG - IDE type application. How would you do it?
Posted by iKiLL at 2/21/2007 12:00:00 AM
Hi all
I have been asked to develop a solution that is customisable by our clients.
It is supposed to run on the Windows Mobile 5.0 CF2.0 environment using
Merge Replication.
I have looked into allowing the creation of Addin's but that has been
rejected as it would require t... more >>
Localization issue...
Posted by Christer at 2/20/2007 11:59:25 PM
Hi all,
I have been searching this group for an answer, but all responses
seems lead to the same conclusion as I would expect. So even if my
small resource-test is made up of code snippets from the
documentation, I'm still not getting the result I expect.
Here's the setup:
In my windows ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Enlarge the screen
Posted by Agnes at 2/20/2007 11:13:47 PM
Is possible to upgrade their workstations to Internet Explorer 7? If so,
they can then zoom what is in the browser window. Works really well.
Everything is zoomed: fonts, pictures..
... more >>
MouseLeave event not firing all the time
Posted by Paul at 2/20/2007 10:27:00 PM
Hi,
Straightforward code posted below. Problem is that the MouseLeave event
sometimes does not fire. Strangly, it seems to be more often when moving the
mouse slowly away from the label (control "lblMin" is a label). Any ideas?
Thanks
Paul
Private Sub lblMin_MouseEnter(ByVal sender As ... more >>
OnMouseMove not working while doing ListView item drag
Posted by stax at 2/20/2007 2:35:15 PM
Hello,
can anybody tell me why OnMouseMove isn't working while doing a ListView item drag operation?
thx
stax
using System.Windows.Forms;
namespace WindowsApplication1
{
public class Form1 : Form
{
private ListView listView1;
public Form1()
... more >>
How to do Listboxes with master detail and default selection
Posted by Uwe Lesta at 2/20/2007 1:51:01 PM
Hello NG,
I am despairing, please help me.
With VS2005 i drag 2 Listboxes on my form and a bindingsource.
Listbox1 is bind to a bindingSource1.DataSource = data
Listbox2 is bind to a Listbox2.DataSource = subItemsBindingSource
all work as expected. When i select a item in listBox1, listbo... more >>
Prompt if save modified data when close form?
Posted by nkw at 2/20/2007 12:09:11 PM
I have a data entry form with bindingsource and tableadapter (Access MDB).
How to detect if there is any unsaved modification when closing the form?
thanks... more >>
DataGridView Bound ComboBoxColumn cell take several seconds to show edit control
Posted by vextant NO[at]SPAM gmail.com at 2/20/2007 11:39:28 AM
I am binding a custom object list (custom collection) to a ComboBox
column inside a DataGridView to use as a typical lookup.
The list of items has up to 10,000 rows (8,000 currently) and when you
enter edit mode on the combobox cell you must wait up to 4 seconds to
see the dropdown of the list... more >>
One form, multiple panels
Posted by David W at 2/20/2007 10:45:42 AM
I have an explorer type application with navigation on the left half of the
form and a viewing/details panel on the right. The right panel can show
different content types based on what is clicked in the left side.
What is the best way to organize this code. Should each panel/content type
... more >>
Being theme-friendly
Posted by Jeff Johnson at 2/20/2007 10:13:28 AM
Does anyone have a link to a good reference on using the Theme API? Here's
what I'm trying to do:
I'm modifying a project I got off of CodeProject. It's a collapsible group
box. This control has a standard plus/minus graphic, but it's always a
simple black-and-white image. That's fine for p... more >>
Application.ExecutablePath does't work in Vista
Posted by Dani K. at 2/20/2007 8:16:02 AM
Hi.
I have a Windows Forms application developed in .NET Framework 1.1.
The Application.ExecutablePath() function does not return correctly the
application path if the path or the EXE filename contains non-english
characters (like "c:\aplicación\aplicación.exe), but only in Windows Vista... more >>
Get Dialog to look like designer
Posted by Oldman at 2/20/2007 4:50:03 AM
In the windows forms designer my buttons have rounded edges and things in
general look good. However, when I run the application the windows form has
the old looking square buttons and the text and other controls don't look
like they do in the designer. Why?... more >>
can't drag usercontrol to a form
Posted by Tarscher at 2/20/2007 2:25:16 AM
Hi all,
I have a usercontrol that doesn't contain a control. When I try to
drop the control on a form I get an error:
Failed to create component'TestcaseUserControl'. The error message
follows: 'System.NullReferenceException: Object reference not set to
an instance of an object.' at Line 20
... more >>
Copying a Record from one DataTable to Another.
Posted by Wayne Gibson at 2/20/2007 12:00:00 AM
Hi All,
Was wondering if anybody could help. I'm currently trying to copy a record
from datatable to another. I have two problems:
1) Transferring the record from one datatable to another.
2) Transferring the record from the new datatable back to the database.
Any ideas?
Thanks
Gib... more >>
problem to update control when collection changed
Posted by --== Alain ==-- at 2/19/2007 5:21:00 PM
Hi,
I have a collection property in my custom control like this one :
[Category("Behavior")]
[Browsable(true)]
[Description("Column Collection")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor(typeof(ColumnCollectionEditor),typeof(System.Drawing.Design.U... more >>
WinForms Designer Keeps Breaking... Losing work
Posted by Charlie NO[at]SPAM CBFC at 2/19/2007 4:31:32 PM
Hi:
Twice now that I have opened a control it's blank on design surface.
Designer code is there, but nothing renders on form and getting no
compilation errors. What's going on?
Thanks,
Charlie
... more >>
backgroundworker thread
Posted by Chuck P at 2/19/2007 3:49:13 PM
If I create a backgroundworker thread within a windows forms application.
What happens if somone closes the windows form while the background worker
thread is running. Is their a way to change the behavior?... more >>
How to Suppress combobox dropdown?
Posted by Bradman at 2/19/2007 1:08:03 PM
Is there a way to suppress the dropdown of a combobox. Instead of showing
the dropdown list I would like to show my own control as popup dialog when
user attempts to view the drop down?
Any code examples would be appreciated.... more >>
ReadOnlyAttribute
Posted by John Allen at 2/19/2007 10:01:57 AM
Hi there,
Given a "PropertyGrid" with one particular property that appears as =
follows:
-Size
Width 10
Height 20
where "Size" is the native .NET "Size" structure, if the property is =
marked with the "ReadOnlyAttribute" then all three lines above appear =
grayed out as ... more >>
vb.net usercontrol inheritance designer
Posted by marfi95 at 2/19/2007 8:50:02 AM
I am trying to setup a usercontrol as a base class, so that I can
derive my usercontrols from it.
the base is pretty simple:
Imports System.Xml
Public Class usrBase
Inherits System.Windows.Forms.UserControl
Public Overridable Sub MethodA()
End Sub
End Class
'derived clas... more >>
UserControl with BindingSource
Posted by bruce_pearson NO[at]SPAM hotmail.com at 2/18/2007 10:46:25 PM
I have a UserControl that inherits from BindingSource and another
control that takes a BindingSource as a Property.
When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the BindingSource property on... more >>
Windows explorer
Posted by Mike C at 2/18/2007 8:06:00 PM
How can I change the Folder that the Windows explorer openes when it starts?
Now it opens the Document folder, I would rather it open the Computer folder.
--
Mike C... more >>
HTML Help
Posted by Elmo Watson at 2/18/2007 3:38:44 PM
When I used VB6 - I used a very outdated, klunky version of HTML Help...
Is there a newer version out there today?
(I can't afford any 200 or 300 dollars for stuff on the market)
... more >>
Will Microsoft repale a bad XP disk.
Posted by cmpb54 at 2/18/2007 8:11:00 AM
I Have bad XP disk. If Isend back to MIcorsoft will they replace it.... more >>
How to force DataGridView to add the new (just filled in) row into itself manually? (C#)
Posted by nvx at 2/18/2007 2:42:20 AM
Hi,
I have a DataGridView and a toolbar with buttons. I need to force
DataGridView to validate and add the row user has just filled in
(which is still not the part of the actual DGV.Rows collection, I
guess) to itself after clicking on the toolbar button.
The situation is this:
1. I have a D... more >>
How do I convert an .exe file to work in windows mobile 5
Posted by Rick at 2/17/2007 10:16:00 PM
I have a small .exe file that I want to load on to my XDA, how do I convert
the .exe file os it will work in windows mobile 5... more >>
How do I populate a DataGridView with arrays containing strings? (I get convertion error C2664)
Posted by Fleemox at 2/17/2007 6:39:04 PM
This is my code (only the important parts of it):
int Rownumber =3D 1;
string Rowtext[8000];
DataGridView1->Rows->Add(Rowtext[Rownumber]);
This code (here simplyfied) should create a row in the grid and fill
the first cell with the text stored in the array Rowtext[1] but when... more >>
Disable a text box when it's not adding new row?
Posted by Nick nkw at 2/16/2007 5:10:57 PM
I want to enable a text box only when it's in "add new" status. The
BindingSource.Position just return a number. Any good way to do it?
Thanks,... more >>
Output parameter in Typed Dataset
Posted by Curt Gough at 2/16/2007 4:02:24 PM
I am using Typed Datasets in VS2005 based on SQL Stored Procedures. When I
do an Insert (using an Insert Procedure), I have set the SP to return a new
ID number. However, I don't know how to reference that returned value to
populate the Identity field on my Windows form. I'm pretty new to VB.N... more >>
Next File (System.IO)
Posted by ElmoWatson at 2/16/2007 10:33:12 AM
Let's say I have a file loaded, whether it be text or picture.
I want to be able to have a 'Next' button, which loads the next file in the
current directory.
I can load the files just fine, and to some extent, I understand System.IO
(deleting/path designations, etc), but how can I look at th... more >>
Windows Forms advice
Posted by abhiM at 2/16/2007 8:45:21 AM
Hi,
This is a very general question. I am about to embark on
developing a new application (Windows Forms based). All the business
logic, external interfaces etc have already been developed and are
available as ready to use libraries.
This application is going to be multi-threaded. Is it... more >>
The record cannot be deleted or changed because table
Posted by nkw at 2/16/2007 7:45:35 AM
Probably an ado.net issue.
I have two tables in Access obligor and Collateral, and collateral has
foreign key reference to obligor.
I created a winform to edit obligor. i tried to modify a none primary key
column and got the following error.
this.obligorBindingSource.En... more >>
DataGridView problem-
Posted by Ogmios at 2/16/2007 3:20:13 AM
Hi to All,
I have DataGridView control bound through databindingsource to the SQLServer
2005.
The problem is when I add or edit data, situation in the database is always
step behind form situation in the grid.
I use
exampleTableAdapter.Update(exampleDataTable);
for saving and editin... more >>
User from not behaving as expected
Posted by newscorrespondent NO[at]SPAM charter.net at 2/16/2007 12:57:41 AM
I am using Visual Studion 2005 SP1 and C#.
I have a User Control that has a single label docked at the top of the
control. This control is to be the basis for a number of inherited controls.
Many of the inherited controls will have a split container docked as fill
for the first control to be... more >>
Hosting windows form in IE browser
Posted by Toby at 2/16/2007 12:50:23 AM
Hi,
I have a specific problem hosting a windows form control in IE.
First i have created a user control and hosted it - everything worked
great.
But when a tried to host a 'Form' control instead it didn't work and i
got the following exception:
' Top-level Windows Forms control cannot be expo... more >>
Dialog owner in MDI forms
Posted by Grober Myttelson at 2/16/2007 12:00:00 AM
MyMDIChild is an MDI child to MyMainForm. When I run the following code the
MDI child gets to be the owner of the dialog.
MyDialog d = new MyDialog();
if (d.Init())
{
d.Owner = MyMDIChild;
f.ShowDialog();
}
But when I run this code MyMainForm gets to be the owner.
MyDialog d ... more >>
Textbox validation, esc key
Posted by Marko Bozikovic at 2/15/2007 4:31:03 PM
Hi all,
I have a bit of a problem...
I have a simple modal form with some textboxes. I handle Validating event for
some of them, to check data format.
Form has OK and Cancel buttons, AcceptButton and CancelButton properties set.
Cancel's CausesValidation is set to false.
When I click t... more >>
How to set tab order correct in a C# userControl hosted in an MFC
Posted by Marina Strand at 2/15/2007 12:51:03 AM
I´m hosting a C# userControl with lots of other controls on it in an MFC
dialog.
The problem is the tab order. I set it up correctly for the userControl in
the designer and it appears to be set correctly after the call to
initializeComponent() in the userControl as well, but it still does no... more >>
Windows service that listens for Instant Messaging Traffic. Suggestions please?
Posted by Charlie NO[at]SPAM CBFC at 2/15/2007 12:00:00 AM
Hi:
Looking for some ideas on how to set up Windows service that listens for
messaging traffic. I've done something similiar before for capturing
windows events. My questions...
In what namespace would I find class that raises such events?
Is the messaging traffic TCPIP or HTTP traffi... more >>
Flashing Application is task bar
Posted by mdhaman at 2/15/2007 12:00:00 AM
Hi,
I have VB.Net MDI application (.Net 2.0). This application listen for
incoming message on a Message Queue. If a new message appears in the message
queue, it opens a new MDI child window and displays data related to the that
message in a new child window.
Now what I want is that, if t... more >>
|