all groups > dotnet windows forms > september 2004 > threads for wednesday september 15
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
ComboBox Setting A Default Value
Posted by BobM at 9/15/2004 10:33:01 PM
I have derived from a combo box which is linked to a static list of countries
in the constructor I have used the following in the constructor to populate
the box
InitializeComponent();
_pList = new ArrayList();
_pList.Add(new CountryCodeItem("ALB","Albania"));
_pList.Add(new CountryCode... more >>
Trying to reproduce the Open/Save File Dialog
Posted by Stab at 9/15/2004 8:49:04 PM
Hello,
I have to kinda reproduce the Open/Save File Dialog.
I was wondering what class was used by these dialog to display all the
files/folders.
Would there be a way to have the same control in my application, with the
same
behaviour (double click opens a folder, rename ability, and so on..... more >>
Design/create panel control in a seperate class?
Posted by Tinus at 9/15/2004 5:11:42 PM
Hello,
I've got a question and have been looking for an answer several days now....
no luck yet :-(
Hopefully someone here can provide me with an answer.
This is what I want to do:
(Using Visual Studio 2003 and language C#)
I created a standard Windows Form with two normal buttons (btn1 an... more >>
RichTextBox EditStreamProc exception
Posted by Slide-O-Mix at 9/15/2004 4:45:08 PM
I am getting the following exception as I am using the AppendText method to
write to a RichText control. Anyone know anything about this?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text *************... more >>
Order of Columns in the Datagrid binding.
Posted by John Sun at 9/15/2004 3:50:49 PM
Hi, Dear gurus,
I want to bind my collection to a datagrid. The field names in my object
show up in a weird order, and I just wonder how I could reorder those
columns .
I find some code like the following , but I don't want to do it that way
because it won't work if I have large number of ... more >>
Windows Media Services, H.323 and Video streaming in general
Posted by Lonewolf at 9/15/2004 2:13:39 PM
Hi everyone, pls forgive me for my lack of knowledge and skills if my
question sounds very stupid. I am trying to implement a video conferencing
software and I am currently looking at a few set of technologies, among them
WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming
e... more >>
Application exception handling
Posted by George Merriman at 9/15/2004 1:25:02 PM
When my .Net WinForms application encounters an unhandled exception it
presents the dialog box that offers the user a 'Continue' option. I would
rather have the system present the error information and then quit the
application. Is there any way to do this?... more >>
Formatting a DataGrid Collumn with an typed collection
Posted by Formatting datagrid row with a typed col at 9/15/2004 1:13:51 PM
Hi,
I need to apply a custom format in certain rows off an DataGrid, so I have
created a DataGridTextBoxColumn descendent like the article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q318581
The formatting stuff works fine when I bind a DataSet into the DataGrid, but
when... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
custom border for textbox on a tranaparent form problem
Posted by Sk at 9/15/2004 12:36:07 PM
Hello,
I have a text box with custom border,
I am attaching the code for my control below.
Basically my derived control draws custom border in WM_NCPAINT message.
This control works fine when placed on a .net form. But when i change the
opacity of the form to anything other than 100%. I see... more >>
Problem with CurrencyManager.RemoveAt
Posted by Thomas C at 9/15/2004 12:34:16 PM
For some reason, the CurrencyManager will not let me remove the last item in
the collection. For example, if I have a CurrencyManager bound to a
collection with a Form and Control bound to the CurrencyManager. I can
remove any item from the CurrencyManager just fine with RemoveAt. However,
i... more >>
Load Icon from dll in .NET
Posted by Leon at 9/15/2004 12:26:56 PM
Hi.
How to load an icon from a dll in .NET? I know using API ExtractIcon()
can
do this. Does .NET framework provide some classes for this purpose?
Best Regards
Leon
... more >>
simple ListView item selection problem
Posted by Hari Rajagopal via .NET 247 at 9/15/2004 11:47:01 AM
(Type your message here)
Hi,
I am trying to get the item that is selected in List View control.
In the SelectedIndexChanged event, I do the following.
=========================================================================================
Private Sub lvSummary_SelectedIndexChanged(ByV... more >>
putting datagrid into clipboard
Posted by Christopher Koch via .NET 247 at 9/15/2004 11:46:35 AM
Hello,
First, I appologize for the length but I want to get all the=
facts down so as not to waste any time :)
I'm trying to allow the user of my C# app to copy a DataGrid full=
of double values to the clipboard=2E
They can then paste these values wherever (but in particular,=
excel)=2E
... more >>
OpenFileDialog.ShowDialog() Causes StackOverflowException
Posted by Will Chen via .NET 247 at 9/15/2004 11:45:15 AM
In C#, I kept on running into StackOverflowException in Main()=2E=
After some investigation, it looks like this happens whenever I=
call ShowDialog on an instance of OpenFileDialog=2E
So here's what I did: I started a new windows form, added one=
button, and copied the OpenFileDialog sample... more >>
Newbie: Choose Panel depending on condition
Posted by steve at 9/15/2004 11:32:53 AM
Hello,
I have the following proble:
I want to populate various textboxes, lists, etc. from a database. The
problem is that according to a user's choice (radio buttons) we access
different tables with slightly different fields.
So, i decided to create 2 panels that contain all the required con... more >>
Incorrect InitializeComponent/.RESX Code Serialization
Posted by Sean J Donovan at 9/15/2004 10:53:24 AM
When you have a control, and Localizable = FALSE, all child controls
serialize into the InitializeComponent method. There are some
exceptions, eg. Images have their value written into the .resx file.
Eg. this.label1.Location = new System.Drawing.Point(104, 64);
this.label1.Name = "label1";... more >>
Reusing a Form's Toolbar and Menu
Posted by terrymcginty2000 NO[at]SPAM yahoo.com at 9/15/2004 10:32:20 AM
I created a form with a toolbar and main menu. The form is basically
a text editor similar to WordPad. Now I have a second form that I
determined would benefit from having the toolbar and menu items (and
associated code) from the first form. The second form has additional
toolbars of its own ... more >>
VB.Net RichTextBox Question
Posted by JK-IN at 9/15/2004 8:43:07 AM
Does anybody know how to create a table in a RichTextBox? I am sure it can
be done because I can copy and paste it from Word. I have looked all over
for this and can't find anything.
Thanks.... more >>
Using Scrollbars with User Painted Controls
Posted by Alex Glass at 9/15/2004 6:29:19 AM
Im using double buffering to draw a scheduling grid on a form. The grid can
take up more space than the form can display. I would like to use a
scrollbar to control which part of the window the user can view. Does
anyone know a simple way to do this?
Any help is always greatly appreciated,
... more >>
Binding to a property
Posted by john pryor at 9/15/2004 5:39:03 AM
I'm not sure if this is the correct NG but here goes:
I want to bind my 'OK' button's Enabled property to a newly created 'Valid'
property on my derived Winform. But I get an error when running. These are my
steps:
1. Create a public property named 'Valid' in the derived WinForm class.
2... more >>
|