all groups > dotnet windows forms > september 2006 > threads for september 22 - 28, 2006
Filter by week: 1 2 3 4 5
Load Form on Startup with Folder Dialog
Posted by daokfella at 9/28/2006 9:55:08 PM
When I load the main form of my MDI application and it doesn't find a
specific registry value, I want to show the Folder dialog box. However,
I want this dialog to be ON TOP of my main form. Performing my checks
and showing the dialog in Form_Load displays the dialog before the main
form is visi... more >>
DataGridView columns being reordered
Posted by JFendors at 9/28/2006 11:41:02 AM
I have a DataGridView which I have configured a set of columns and their fill
weights in the designer. Also, I have specified a DataPropertyName for each
column. I programmatically create a BindingSource to hold a set of objects
that I want to display in the DataGridView. I then assign the ... more >>
How can o run a commanline app in C #
Posted by Alvis at 9/28/2006 7:56:02 AM
when i run this code i get an error message cant find the specified file, But
if i paste the command into the command prompt it works fine could someone
tell me why this is happening
i uses a break point and quick watch to get the command string.
System.Diagnostics.Process ... more >>
Opacity flickering problem
Posted by UdiBenSenior NO[at]SPAM gmail.com at 9/28/2006 6:20:10 AM
Non of the advises I've found here helped me.
Anyone knows a simple solution for that problem?
Thanks!
... more >>
Spell Check
Posted by Newish at 9/28/2006 5:21:39 AM
Hi
Is it possible to use a spell check in a windows and/or asp
application.
Say, there is some text in a textbox. How can we run a spell check on
the contents.
If there are any resources available on internet please let me know.
thanks
Newish
... more >>
DataGridView and DataRow[]
Posted by probashi at 9/27/2006 4:03:48 PM
Is it possible to bind a DataGridView control to an DataRow[] (array of
DataRow )?
... more >>
DataGridView line number
Posted by probashi at 9/27/2006 3:14:25 PM
How to display line number into a DataGridView control?
... more >>
FormClosing Event And Cancelling The Close
Posted by RSienkiewicz at 9/27/2006 11:25:01 AM
In a WinForm, in the FormClosing event, there is an opportunity to cancel the
close by setting the Cancel property of the FormClosingEventArgs to true.
This is typically done when there is unsaved data on the form and the user,
when asked if they want to close the form and lose data or not, sa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ComboBox not repainted properly in windows form
Posted by lucyh3h NO[at]SPAM gmail.com at 9/27/2006 11:01:46 AM
I have a ComboBox in Form1 which is bound to an ArrayList. When I show
Form2, Form1 is hidden. In Form2, I updated the ArrayList and an event
is fired, so the event handler in Form1 will rebind the ComboBox to the
ArrayList. I do this by resetting the DataSource, DisplayMember and
ValueMember of... more >>
ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox
Posted by Nomasnd at 9/27/2006 10:10:28 AM
As the subject says, when I call Items.Clear() for a ComboBox the text
inside the edit of the ComboBox is selected with absolutely no reason.
Is there a way to avoid this (bug)? thanks
... more >>
data.gz C#
Posted by Alvis at 9/27/2006 9:41:03 AM
Hi i have a application that unzip zips files.
it works fine with files with a .zip extention.
how can i use C# to unzip a file with a .gz extention?
i am useing a J sharp dll to unzip the files.
... more >>
Finding a control on a form with a text reference
Posted by lisa NO[at]SPAM starways.net at 9/27/2006 8:08:46 AM
This is incredibly frustrating.
I have a VB6 app at work that we're upgrading to .NET. In the VB6
code, I'm able to get a reference to txtText by using
frm.Controls(txtText). In ASP.NET, we have Page.FindControl(txtText).
But in WindowsForms, there doesn't seem to be any equivalent.
Now, ... more >>
Opening multiple MDI children maximized.
Posted by Al Christoph at 9/27/2006 7:58:02 AM
--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
... more >>
On achieving super smooth refreshes...
Posted by R3al1ty at 9/27/2006 4:36:33 AM
Hi folks, I have a small modal form in front of a big form. How do i
cleanly hide the small modal form? Currently, when i do
smallForm.Hide(), the bigForm area that was under the smallForm
refreshes in bits and pieces.
mainForm.Show()
smallForm.ShowDialog()
smallForm.Hide()
// ugly ... more >>
Form that is already displayed modally cannot be displayed as a modal dialog box. Close the form before calling showDialog.
Posted by Jared at 9/27/2006 12:00:00 AM
Hi,
How can I even show same form twice if modal forces stop of execution.
Poor error, Microsoft.
Error is .
Form that is already displayed modally cannot be displayed as a modal dialog
box. Close the form before calling showDialog.
... more >>
Error when I try to open cdrom programmatically
Posted by Victor at 9/27/2006 12:00:00 AM
Hi guys
when i try to open my cdrom with "mciSendString" API Call. i get exception.
but i have no idea how this happen. Can you guys give me some idea? Thanks
My code likes:
[DllImport("winmm.dll", EntryPoint = "mciSendStringA")]
private static extern long mciSendString(strin... more >>
Forms width < 123
Posted by Jared at 9/27/2006 12:00:00 AM
What is the deal with not being able to make forms width smaller that 123?
... more >>
DataGridView - Sort Multiple Columns
Posted by Robert Robinson at 9/26/2006 9:53:26 PM
I am using the following code to sort two columns; for example,
lastName, firstName.
Public Class ARowComparer
Implements System.Collections.IComparer
Private sortOrderModifier As Integer = 1
Public Sub New(ByVal sortOrder As SortOrder)
If sortOrder = sortOrder.Des... more >>
newbee form layout
Posted by tony leake at 9/26/2006 8:30:14 PM
Hi,
I want to create an app with several different 'pages'
A tab control would be perfect if i could turn off the tabs and change
the pages programaticaly. It doesn't look like this can be done, so what
would be the usual way to achieve this kind of interface.
Thanks for your help.
... more >>
How does windows forms message routing work?
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 9/26/2006 8:01:16 PM
These day, I got a problem when I'm writing a mixed program - there
seemed to be some events missed in message routing!
In my case, when I clicked into a native window, WM_LBUTTONDOWN and
WM_LBUTTONUP should get handled in this window's wndproc. But the
WM_LBUTTONUP events seemed disappered.
... more >>
Custom User Controls do not show up in toolbox (VS2005 pro)
Posted by Shea Martin at 9/26/2006 5:55:25 PM
In my C# winform project (MyProject), I added a new 'User Control' item.
I can't (visually) add it to any forms because it does not show up in
my Toolbox.
If I open the project using Visual C# Express, the top grouping in my
tool box is 'MyProject', and my custom control appears in there.... more >>
What does this error mean?
Posted by Steve Barnett at 9/26/2006 4:07:41 PM
I copied and paste a form in my solution and renamed the copy (all done in
the solution explorer) and now, when I compile the app, I get the following
error:
-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified more
than once in the "Resources" parameter. Dupl... more >>
Infragistics UltraGrid Right-click Selection in Grid?
Posted by Ayron at 9/26/2006 7:09:24 AM
Ok. I give. How can you select a row in the UltraGrid upon mouse
right-click?
Thx.
-ak
... more >>
How to list all ActiveX controls registered on system using C#?
Posted by Melisa at 9/26/2006 7:06:18 AM
Hi,
I want to list down all ActiveX controls which are registered on my
system.
How can it possible through C# ?
Please help me and reply ASAP.
Thanks
Melisa
... more >>
C++ Win Forms DLL
Posted by David++ at 9/26/2006 5:56:02 AM
Dear List,
I am writing to ask your advice on whether you think this is possible -
I use a SDK written in C++ to create DLL audio 'plugins'. I am able to
succesfully build these DLL's in VS2005. I was wondering if you think it
would be possible to incorporate .NET 2.0 functionality within... more >>
Improving Paint performance while Scrolling
Posted by R3al1ty at 9/26/2006 5:29:34 AM
I have a pretty large UserControl (2000 pixels high) on which around
1000 smaller controls are embedded. When I scroll this whole thing
using the mouse wheel, everything gets rendered nice and clean. On the
other hand, if I scroll by moving the scrollbar, the display kinda
waits until I let go b... more >>
Threading and WndProc - basic question
Posted by Chris Ashley at 9/26/2006 4:09:23 AM
Hi,
I'm overriding WndProc to process some custom messages like so:
protected override void WndProc(ref Message m)
{
if (m.Msg == ImageFileMsg.MSG_IF_NEW_DATA)
{
ProcessNewDataMessage(m);
}
base.WndProc(ref m)... more >>
How to get the system drive info?
Posted by Victor at 9/26/2006 12:00:00 AM
Hi guys
I want to get the system drive info programmatically. like which one is hard
disk, which one is a DVD-Rom. But I don't know how to start. Can you guys
please give me some idea how to get these info.
Cheers
... more >>
Installer question
Posted by BVM at 9/26/2006 12:00:00 AM
Hi:
i am creating a setup file. I want it to copy CDO.dll into C:\Program =
Files\Common Files\System\Mapi\1033\NT and register it. Do you know how =
to do it? I cannot find any property that let me copy files to =
C:\Program Files\Common Files\System\Mapi\1033\NT.=20
Thanks,
Dennis Huan... more >>
problem to unload usercontrol on a winforms
Posted by Max3vil at 9/26/2006 12:00:00 AM
I Had realized a user contro ctrlContro and i load it in this way:
ctrlControl c1=new ctrlControl
c1.Partent=this;
c1.Show();
this is right, how do i unload this controls ?
c1.dispose();
c1=null
is wrong
tnx
... more >>
RichTextBox Class
Posted by Thomas Bodell at 9/25/2006 3:50:30 PM
Hi All,
I have a strange problem i my app. using the RichTextBox Class. I am setting
the text proprty in my control with some text, this text includes "\r\n"
line breakes, and it looks fine. Then I access the control by using some
method e.g. GetLineFormCharIndex() or Select() and then when... more >>
A client application with all logic accessed via web services?
Posted by Simon Harvey at 9/25/2006 1:39:10 PM
Hi everyone,
We have a need to make a Windows Forms (2.0) client application that
will be installed on our clients site.
The data that the application uses needs to be centrally available to a
potentially large number of other sites, which would seem to leave us
with our traditional appr... more >>
ListView in framework 1.1 paints a lasr blank column
Posted by Roy at 9/25/2006 1:39:02 PM
The standard .NET ListView control paints a last blank column to fill-up the
extra-space in the ListView. Is there any workaround? My listview has only
one column, and I don't want users to see that extra blank column.
Roy.... more >>
Winform open WebService dime pdf attachment
Posted by Steve at 9/25/2006 12:03:19 PM
I have a C#.net windows form project that connects to a webservice that
returns a dime attachment (pdf document). I need the winform to open and
load the pdf document into acrobat reader. I do not want to write the file
to the hard drive to create a path so that I can call
System.Diagnostics.P... more >>
Which event handler used when scroll changes when you tab controls
Posted by illegal.prime NO[at]SPAM gmail.com at 9/25/2006 11:42:59 AM
Hi all, I want to hook into the event handler that is used when the
scroll changes when you tab through controls.
I expected this event to get sent through:
protected override void WndProc(ref Message msg)
But, this method is not triggered when the user is just tabbing through
controls.
... more >>
Actions i WinForms (C#) ?
Posted by eramfelt NO[at]SPAM gmail.com at 9/25/2006 9:23:27 AM
I have a question on what the "proper" way is to link Controls and
logic? At my current project, which is a C# .NET 2.0 GUI application,
they use events to listen on buttons/lists/menu items. Ie. the code for
linking an action/logic to a button it looks like btn_Clicked(), and so
on (list_DblCli... more >>
Developer CV
Posted by Berkshire Freddo at 9/25/2006 8:24:01 AM
I have been developing for about three years now, i am now looking forward to
getting a new job. I am MCAD.net certified. I am looking forward to have some
one who could send me a sample of a mature CV that can attract an employer.
Can anyone help? my email address is federick.ade@comic.com... more >>
How to display ToolTip for disabled Controls
Posted by andersch at 9/25/2006 5:35:02 AM
Hi
How can I display a ToolTip for a disabled (Enabled = false) Control
(Button, CheckBox, ...) with C# 2005?
Thanks a lot
andersch... more >>
Thread question
Posted by BVM at 9/25/2006 12:00:00 AM
Hi:
I am doing databinding on a datagrid with a big table. It takes very =
long time to finish it. I wonder if it's possible to use thread to =
divide databinding into several phases in the background. so user don't =
have to wait so long. for example, I display first 50 records to users, =
t... more >>
Changes to DataGridView on Form in Shown event don't appear
Posted by Dan Cooperstock at 9/23/2006 6:42:15 PM
I have a form with a DataGridView on it. It's not data bound - I custom
designed the columns, and create rows and fill in column values
programatically.
I'm in the Shown event handler for the form, and I am doing processing that
takes a bit of time, and updating the DataGridView as the proc... more >>
Detecting the mouse cursor in a PictureBox?
Posted by Jim Bancroft at 9/23/2006 3:35:08 PM
Hi everyone,
I have an assignment where I have to load an image into a picture box (no
problem), then loop over it, from left to right, playing a different sound
based on the RGB value of the pixel.
I could use a suggestion on a good way to load and play sounds in .Net, but
my larger que... more >>
How to put a form feed in a file
Posted by aarepasky NO[at]SPAM yahoo.com at 9/23/2006 6:52:46 AM
I write output to a file to produce a report. Then the user prints
this file.
Someone else wrote this program and I have taken it over. He has
written it using VB.NET, but wrote it like it is VB6. The program is
like a report writer. The user wants some page breaks. I tried it put
in a f... more >>
How to Finish the Program
Posted by Martijn Mulder at 9/22/2006 11:12:05 PM
What method can I call to terminate my Forms-based application and give
control back to the system?
... more >>
How to display data on a Windows form (without using a datagrid)?..
Posted by Peter Demeyer at 9/22/2006 7:05:53 PM
I want to display data from a database as labels on a form without using =
a datagrid.
My problem is that I can't make the labels at design time because the =
amount of data is variable.
It should look a bit like this:
John 1/8/1970 Edit Remove
Peter 8/2/1972 Edit Remove
... more >>
Memory Leak in SolidBrush
Posted by breeve at 9/22/2006 1:22:01 PM
I have tracked this down in reflector and SOS (Son of Strike) and know what
is going on but wanted an explanation. Copy this code into a windows forms
app and enable the timer with a Interval set to 10.
public partial class Form1 : Form
{
SolidBrush _brush;
public For... more >>
UserControl not getting keypress
Posted by Andy at 9/22/2006 11:27:22 AM
Hi,
I have a user control which has a text box and button on it. I'm
trying to have the same code fire when the user presses Enter in the
text box as would have if the user clicked the button.
The control is on a form which has acceptButton defined. The problem
is that when I press enter,... more >>
Using variables as Objects Name
Posted by Rotciv at 9/22/2006 9:33:01 AM
Hi all,
I am trying to use a variable which retrieves an object name, such as
string objObject = databaseobject("Fieldname")
and using the objObject to refer to a object, such as a button, textbox
or form within the current form and changing stuffs like objObject.text =
"b... more >>
Convert MDI to SDI
Posted by Jon at 9/22/2006 8:16:34 AM
We have an application written in VB6 which performs a lot of different
functionality for a helpdesk (create orders, create invoices, manage
employees, etc). It's written as an MDI application. Nearly everything I see
says MDI is really not a great design choice and I somewhat agree with that.... more >>
Enjoying using Win Forms
Posted by David++ at 9/22/2006 6:30:02 AM
Really like using Win Forms with C#. C# is nice to use. I also like C++ but
found MFC and Dialog based apps a bit more tricky to use. C# + Win Forms is a
nice combo I think.... more >>
Problem in changing the custom icon for a Windows form using C#.NE
Posted by CodeKracker at 9/22/2006 3:07:01 AM
I am trying to change the form icon of a C# windows application.I am using
the Visual Studio .NET 2003 IDE. I have modified the icon using the icon
editor available in Visual Studio .NET IDE. After saving my changes, when I
try to update the Icon property of the main form , the icon image appe... more >>
Force a WinForms User Control to unload, removing its delegate event handler from the invocation list of another class
Posted by ewolfman at 9/22/2006 12:31:14 AM
Here's a scenario:
A Business class raises an event, which is handled by a custom WinForms
UserControl. When the control is removed from the containing
Form/Panel, it is not GCed because the Business class retains a pointer
to the event handler delegate in the UserControl.
Is there anyway, ... more >>
Best practice to display data received through event from external source.
Posted by Rajat at 9/22/2006 12:00:00 AM
Hi,
I am receiving objects in form of eventArguments through very frequent
events from some external source. Better to say that we need to handle the
flood of events, and process the object received from each event as soon as
possible and wait for the new events.
Right now I keep on addi... more >>
Key Press Event Never Get Fired!!
Posted by Victor at 9/22/2006 12:00:00 AM
Hi
I have a very strange problem about my Key Press event never get fired in
the VS2005.
I have a parent form and a user control. In my user control, I add two text
box. I also set two hot key for this two textbox. What I want to do is when
the user press the hot key(eg, Alt+E) then the spec... more >>
|