all groups > dotnet windows forms > march 2006 > threads for tuesday march 28
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Fast Searches of a Thread Safe Collection of Structs
Posted by Jeff S. at 3/28/2006 9:35:05 PM
In a Windows Forms application I plan to have a collection of structs - each
of which contains a bunch of properties describing a person (e.g., LastName,
FirstName, EmployeeID, HomeAddress, ZipCode, etc). So each instance of the
struct will describe a person - and about 900 instances (people) ... more >>
Store multi-choice groupbox selection in a field
Posted by dbuchanan at 3/28/2006 6:25:43 PM
I am designing a table to contain a field to stores a value that must
indicate none, one, or many choices. The form will have a group box
with checkboxes (multi-choice)
You see the records in this table contain partially pre-configured
records. The records serve as "master" data that will late... more >>
ConfigurationManager
Posted by Magnus at 3/28/2006 6:20:15 PM
Hello!
I have found some code saying that the correct way to get application
settings is to use the ConfigurationManager that is in namespace
System.Configuration, but in my VS2005 enviroment this doesn't exists.
What am I doing worng?!?!?! How should I do it?
Regards Magnus
... more >>
NET permissions, user objects and IE
Posted by Carlos Lozano at 3/28/2006 4:31:01 PM
Hi,
I will appreciate any insights to set the right permissions to a Windows
Forms Control that is embedded in an html document. The control will be
downloaded by the html doc to the local system to do its job. It requires
file system and registry access rights (read/write).
One of the ... more >>
Fill collection property from a property grid
Posted by Vlado at 3/28/2006 3:35:58 PM
VS2005 C#
I have something like this:
public class MyControl : Panel
{
private SomeCollection myCollectionProp = new SomeCollection();
public SomeCollection MyCollectionProp
{
get
{
return this.myCollectionP... more >>
BackgroundWorker and Business Logic Coupling
Posted by pearsons_11114 at 3/28/2006 2:48:03 PM
All of the BackgroundWorker examples I've seen so far are toy in the sense
that the worker logic is embedded in the form. Normally business logic is
decoupled from presentation. However, I can't see any direct way to implement
the business logic without out a dependency on BackgroundWorker. ... more >>
Perform a LIKE filter on DataView Integer column?
Posted by Chris Botha at 3/28/2006 1:02:06 PM
Don't know if this can be done, but if I have a DataTable/DataView that has
an integer column.
Is there a way to do a "LIKE '123%'" kind of a filter on the column, which
obviously works for text a text column.
Thanks.
... more >>
tabbing within a group
Posted by news.microsoft.com at 3/28/2006 12:42:54 PM
I have couple of group boxes on my windows form. How can I tab on controls
only inside a group which I have focus on. Somehow it tabs across all the
group boxes on all the controls.
I did use the visual studio tab order property to set tabindex for each
control and group.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Databind to a single instance of a class
Posted by moondaddy at 3/28/2006 8:57:46 AM
I've seen plenty of examples where you can databind to a list of objects,
but in this case I want to bind to a single instance and have no use for a
list. Can anyone refer a good example of how to do this in .net 2.0?
Thanks.
--
moondaddy@nospam.nospam
... more >>
WM_ERASEBKGND problem
Posted by jh at 3/28/2006 7:00:02 AM
I've encountered a strange problem with GDI/GDI+ and windows forms/win32. To
explain it shortly: I've a user control with a NC area. When painting the NC
area I ask for a window DC using GetDCEx with parameters DCX_WINDOW |
DCX_CACHE. I also use the wParam of the WM_NCPAINT message which conta... more >>
How to Determine if Windows Form is hidden?
Posted by JD at 3/28/2006 3:41:05 AM
At run time I want to know if my form is "hidden" behind another window.
The "Visible" property of the form returns true even when the form is NOT
Visible!
My application updates the form at intervals - I only want this to occur if
the user can actually see the form.
Anyone know how I... more >>
MDI Child, incorrect maximize of forms
Posted by Tore at 3/28/2006 3:41:04 AM
I have a MDI windows client written in C#. I try to control maximize and
normal size of forms by using:
this.WindowState = FormWindowState.Normal;
If I have a maximized MDI child form and open another child form containing
the line of code above both child forms end up in Normal state. It ... more >>
User settings and splitcontainer issue
Posted by Jeff at 3/28/2006 2:46:01 AM
I'm having a problem when using multiple splitcontainers on a form and saving
user settings for the SplitterDistance. Here's a description:
I place one splitcontainer in my bare form, add a project setting called,
e.g., splitDist1 which is an int user setting, and attach it to the
SplitterD... more >>
Bind a button's enabled property to a custom object
Posted by moondaddy at 3/28/2006 1:46:10 AM
I have a group of buttons which I want to bind thier enabled properties to
properties of a custom object (all of which will be boolean value types).
How do I do this?
--
moondaddy@nospam.nospam
... more >>
System.Threading.ThreadStateException while instantiating WebBrowser control
Posted by Duncan Bayne at 3/28/2006 12:00:00 AM
Hi All,
I have an WinForms 2.0 application that creates a user control, which
contains a System.Windows.Forms.WebBrowser control.
This works fine until I refactor the application to only create the user
control upon an event being fired. Then, this line in the
designer-generated Initia... more >>
|