all groups > dotnet windows forms > october 2006
Filter by week: 1 2 3 4 5
Key down an datagridview
Posted by chris81 at 10/31/2006 5:28:42 PM
hello
can i make to captur the key down event on cell's datagridview??
thx
... more >>
Custom rows in bound DataGridView
Posted by Rickard at 10/31/2006 4:52:27 PM
I am trying to create a custom DataGridView control that displays data
from a DataSet, but with the additional functionality that it shows
"headlines" in the data. Example (pardon my lack of ASCII art skills):
---------------------------------
| Name | Age | Oranges |
---------------... more >>
Printing Help
Posted by Nathan Guill at 10/31/2006 3:01:52 PM
Not sure if this is the correct forum, but here goes.
What I am trying to do is open up a PDF file from my application, but can't
seem to figure this out. I can find the path and determine whether the file
is there, but not how to open it. I would also need help on how to
determine if acroba... more >>
Naming .NET executables: any practices?
Posted by A. Petrov at 10/31/2006 2:39:50 PM
Hi,
What MS recommends regarding naming .NET executable files?
Is it better to name my assembly as MyCompany.MyProduct.exe or
MyProduct.exe?
Is there any guidelines from MS? Specifically, if the product contains many
assemblies (exe + many dlls).
Many thanks in advance!
Alexander... more >>
Whats the use of postmessage??
Posted by Chacko at 10/31/2006 2:58:11 AM
Hi anyone and everyone,
Could anybody tell me clearly wats the use of PostMessage and sort
explain to me in simple english...Its just that i searched lot of
places and i am still not getting it right...
Regards,
Jacob
... more >>
Attach to open Excel process
Posted by Jakob Lithner at 10/31/2006 2:34:02 AM
Is it possible to attach to an open process and perform automation on it?
I have an application that needs to manipulate Excel files extensively.
Most of the manipulation goes on with Excel application hidden.
But sometimes I need the user to edit the Excel files.
Before parsing the file again, ... more >>
Application usability v.s. web usability
Posted by Matthijs at 10/31/2006 12:14:39 AM
I am looking for some references to any user interface design
standards, particularly those for .net / winforms applications.
I am developping an application for a sales company (large number of of
order entrys a day, new and experienced users). I have read several
reports of people like Jacob... more >>
Messagebox not working properly.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/30/2006 8:28:09 PM
Hi all,
I recently installed framework 1.1 and .net studio 2003.
I am facing strange problem while displaying messagebox. I created one
form and added one button control. On button click i displayed one
messagebox. But while executing this application, content which i set
in messagebox are... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Application.Idle not called when application does not have focus
Posted by dcolak NO[at]SPAM gmail.com at 10/30/2006 7:05:50 PM
I have a problem with Application.Idle event.
It's not being called when an application (Windows Forms) is without
focus.
If you pass with mouse over the application's form (without activating
it) Application.Idle *IS* being called.
No mouse over form and no focus -> no Application.Idle b... more >>
ContextMenuStrip for TopMost Form won't display over taskbar
Posted by Greg Bahns at 10/30/2006 6:11:53 PM
Hi,
I have an app with a Form whose TopMost property set to true so that it
display on top of everything else on the desktop, including the Windows
TaskBar. This form's ContextMenuStrip property is set so that when you
right-click the form, it displays this as the context menu. So far so ... more >>
Modal dialogs and forms with TopLevel = false
Posted by Clive Dixon at 10/30/2006 4:07:39 PM
We have an app which can have a number of forms launched via the main form.
We do not wish these other forms to be minimised when the main form is
minimised, so we have set TopLevel = false on these forms. However what we
find is that if we launch a modal dialog from the main form, we can stil... more >>
Resource Manager and complex objects
Posted by Mike Best at 10/30/2006 3:22:57 PM
I have a question about how well resource files and the Resource Manager
handle complex objects. Can complex objects be serialized into resource
files and consumed by applications using the Resource Manager?
Can objects such as a toolbar be serialized into resource files, rather than
storin... more >>
Wizard Construction
Posted by Bob Johnson at 10/30/2006 3:21:13 PM
I would like to provide the users of my Windows Forms (2.0) app with a
3-step wizard. What is a standard practice for building the wizard: one form
with 3 GroupBox controls (with only one visible at a time)? Multiple Forms?
Something else? I'd prefer to avoid a tabbed dialog.
Just looking f... more >>
How to change the grid color of a TableLayoutPanel
Posted by max_no_spam NO[at]SPAM orange.nl at 10/30/2006 3:12:20 PM
How to change the grid (vertical and horizontal lines) color of a
TableLayoutPanel?
Thanks for your help.... more >>
ContextMenuStrip and submenus - virtual impossibility??? huh?
Posted by Ron M. Newman at 10/30/2006 2:04:28 PM
I have a context menu strip. I can Add elements to its "Items", but there is
nothing in there to add a sub context menu strip.
Menu
Item 1
Item 2
Sub Item 1 <-- impossible to add!
How do I achieve that? There seems no API's to do that and the internet is
simply "empty"... more >>
DTS makes form lock
Posted by Marc Miller at 10/30/2006 1:45:16 PM
I'm running an SQL Server DTS job class from a windows form. However, once
the DTS class call is made, the form is inaccessible or all the controls are
gone and
the form is blank until the DTS class process completes.
I'm using Application.DoEvents(), but no go. Does this need threading?
... more >>
Build dynamic context menus for trees
Posted by Ron M. Newman at 10/30/2006 1:15:19 PM
Hi,
Just need a little advice. Id like to build *dynamic* context menus for tree
nodes. I'm pretty versed in building context menus and attaching them to
tree nodes.
My question is, what event to I "capture" in order to build the tree node
menu in real time? right click on a tree node? o... more >>
My.Settings values are incorrect?
Posted by Hank123 at 10/30/2006 11:21:01 AM
Hello, I have an application that uses my.settings to hold a boolean value if
the program has been setup (IsProgramSetup). When it is installed the value
is False, and the first time the application opens, an extra process is ran.
When the process completes it sets the my.settings.IsProgramSet... more >>
Keeping button sizes the same after a resolution change.
Posted by Flyte at 10/30/2006 7:42:26 AM
I am developing a touch screen application and as such, we have minimum
button size requirements
(for example, the touchable area of a button has to be at least 9mm^2,
etc.) Now, if the user changes
the resolution, what can I do to maintain my button sizes?
... more >>
Pause painting while data updates?
Posted by R3al1ty at 10/30/2006 6:21:00 AM
Hi folks,
I have custom painting code that renders data from a datatable. The
datatable can be refreshed with new rows being added and the old ones
being deleted. As this happens async, I frequently get the nasty red
cross on my controls.
What is a good pattern for handling this scenario? D... more >>
DrawString in XOR mode
Posted by ralph at 10/30/2006 2:24:45 AM
Hi,
I'm writing an application that uses a PictureBox. When the mouse
cursor is above the PictureBox the OnPaint-Method uses DrawString to
write some information into the PictureBox.
Since I do not know what the image will look like I do not know which
color to choose for the text. I think ... more >>
Modal windows only to their parent forms
Posted by Emmanuel at 10/30/2006 12:00:00 AM
Hi all,
I have created an MDI application.
I would like to open a windows form, from a child window of the MDI
application, that is modal only to its parent (not to the whole MDI
application).
Can I do that and how ?
If I use the Form.ShowDialog() method, then the form opened is modal ... more >>
Books for database oriented windows applications
Posted by adodotnet20 NO[at]SPAM gmail.com at 10/29/2006 8:00:10 PM
Hi,
I need to create an application in C# that will be fairly simple from a
UI prospective and that will be able to retrieve some information from
a db. The overall look and feel should be nice but not too
sophisticated. There are two areas that will need to shine though:
first a datagrid which... more >>
Connect to Master Database in SQL Server Express from Class Librar
Posted by Jon Ebersole at 10/29/2006 5:34:01 PM
I am developing a Windows Form application that uses a SQL Server Express
2005 database, which it connects to using the AttachDBFilename property.
That works well when you know where your database file is.
I would like to run some queries against the master database in my SQL
Server Expres... more >>
Windows Forms Focus
Posted by zobalee at 10/29/2006 2:43:07 PM
I have a multi-form application that uses a treeview for navigation, which
checks the NodeMouseClick event and simply issues these commands:
theNewForm.Show() : Me.Hide()
....depending on the node the user clicks, of course.
My problem is that when the form is shown it doesn't have focus. ... more >>
Exception on Application.Exit()
Posted by Armin Prosch at 10/29/2006 1:54:02 PM
Hello,
when my application shuts down via Application.Exit() I get a message box
with the text ["unknown software exception" 0x80000003 on .....]. In the
application I use DirectShow (via directshow.net) and managed DirectX.
Besides that I start a tcp listener in a seperate thread but grace... more >>
Getting the physical path of network drive.
Posted by rony_16 at 10/29/2006 2:00:21 AM
Hi ,
I am writing a program that part of than program if to add a new
network drive to the user.
The adding part i know how to do (by win api "WNetAddConnection2A") but
i want to check first if this path (network path) exist of his
computer, if it does , what is the drive name.
to do this i ne... more >>
Passing a keyboard event to an other control?
Posted by spamfilteraccount NO[at]SPAM gmail.com at 10/28/2006 10:09:01 PM
Hi,
I have a textbox and a listbox and I handle keydown events in the
textbox. I'd like to pass page up/down events to the listbox if the
focus is on the textbox, so that the default handler of the listbox
handles them.
That is I want to be able to scroll the listbox from the keyboard even
... more >>
How close down parent form after creating new form
Posted by MasterBlaster at 10/28/2006 8:40:02 AM
What I have is a menustrip and inside the click event is
dim t as new form2
t.show
'We are in form1
me.close
and while it shows form2 I want to close the form where the call is coming
from. In this instance the form1 is where the user is clicking the menu item.
But for some reason ... more >>
how to design forms that support any DPI setting
Posted by Emby at 10/28/2006 2:02:52 AM
I recently released an app that looks and works fine under any desktop
resolution setting, but have discovered that if a user's machine has a DPI
setting above the standard 96 DPI, my forms are distorted and some controls
are even clipped, that is, off-screen. This is especially painful when t... more >>
VB.Net 2.0 - Clipboard
Posted by Brendon Bezuidenhout at 10/28/2006 12:00:00 AM
Hey all,
I have a problem where I need to manipulate the data that is about to be put
into the clipboard after pressing CTRL+C - but I am unable to find anything
on the net outlining how to go about this... I know about GetData and
SetData - but am unable to fully TRAP the data being copie... more >>
SaveFileDialog inside a windows form
Posted by Zach at 10/27/2006 7:08:59 PM
I have a windows form that displays another Windows Form, which in
turns displays a SaveFileDialog when a certain menu option is selected
from the toolbar. When the SaveFileDialog opens, I can't use it. The
focus is set to another window, and when I click on the SaveFileDialog,
the focus is se... more >>
How? setting DataGridView row error text and indicator
Posted by Lee Gillie at 10/27/2006 4:03:12 PM
I am using the DataGridView in virtual mode.
I respond to data needed, RowErrorTextNeeded, and such.
I have done a number of these sorts of apps just fine.
Trying to indicate error conditions for selected rows which I am about
to perform a complex operation for, showing a different error perh... more >>
global variables
Posted by John A Grandy at 10/27/2006 12:48:29 PM
In a WinForms app, how to implement the analog of global variables in a VB6
app ?
... more >>
Overridden WndProc not working in some cases?
Posted by Chris Ashley at 10/27/2006 1:00:52 AM
I have an empty, invisible form which is just used for receiving
windows messages from other applications. I have overridden the WndProc
like so:
[System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand,
Name = "FullTrust")]
protected override void Wn... more >>
Merging two VB.NET projects
Posted by Daniel Manes at 10/26/2006 5:12:59 PM
Working w/ someone in my company. We've both developed a project in
VB.NET, and now we want to merge them into a single project/solution so
they can communicate with each other. The communication is fairly
simple stuff (e.g., if user selects a row in a DataGridView in one
form, it selects a corr... more >>
TableLayoutPanel and AutoSize...
Posted by Roemer at 10/26/2006 4:17:01 PM
Hi there
I have an TableLayoutPanel with one row and two Columns.
On the first Column is a Label with AutoSize on and Anchored to the Left.
On the 2nd Column is, let's say, a Listbox with Docking set to "Fill".
Now, if I set the Text from the Label immediately after the
InitializeComponent... more >>
Hover effects, IMessageFilter not working as expected
Posted by ThunderMusic at 10/26/2006 3:18:33 PM
Hi,
I'm developping a form that renders differently when hovered and trigger
some processing when not hovered (leaved). The thing is, when I leave my
form and another form from my application is underneath, it works fine, but
if I leave my form and anything that is not from my application is ... more >>
Make only the box clickable on a CheckBox
Posted by aaron.jackson NO[at]SPAM gmail.com at 10/26/2006 10:11:31 AM
I need to restrict ability to check/uncheck a
System.Windows.Forms.CheckBox to only the actual box and not the label
that is displayed next to the CheckBox. Any ideas?
... more >>
IE 7 and Click-Once Deployment
Posted by Franklin M. Gauer III at 10/26/2006 8:29:02 AM
Anybody doing Click-Once deployment (VS 2005 WinForms app downloading and
installing out of the browser) with IE 7 yet? Just want to know if there are
any issues because I want to give it a shot...
....I don't have any extra machines available if things go haywire...
--
Franklin M. Ga... more >>
Display Confirmation MessageBox, but only if conditions met
Posted by bay_dar NO[at]SPAM yahoo.com at 10/26/2006 6:59:18 AM
I have an ASP.NET application with VB that I would like to use a
confirmation box with, but only if certain conditions are met. In my
case I would only want this msgbox to show up if a user entered a start
and end range in a form, where the difference between the ranges is
greater then 10. Howev... more >>
Startup form, and themes.
Posted by Eric at 10/26/2006 6:35:02 AM
Hi,
In VB.NET when used forms. I usually started them within an object, like so:
Public Class Program
Private Shared _mainForm As MainForm
Public Shared ReadOnly Property MainForm() As MainForm
Get
Return _mainForm
End Get
End Property
Public Shared Sub Main()
... more >>
stop dbconnection in InitializeComponent()
Posted by jarb at 10/25/2006 7:00:13 PM
Is there any way to change the order code is generated in InitializeComponent()?
Or to keep designer generated ADO.NET code from trying to connect?
If im dropping data adapters, connections, etc.. in the designer, as soon as the
connection string is set any following code that references the ... more >>
Detach SQL Server Exress 2005 Database on Form Startup
Posted by Jon Ebersole at 10/25/2006 5:10:02 PM
I am developing a windows application that uses a SQL Server Express 2005
database back-end. I am currently connecting using user instances and I am
also using a data access layer. I am trying to implement some automatic
program fixing techniques during application startup; i.e. if the previ... more >>
Datagridviewcell keypres...
Posted by sonsuzoyku at 10/25/2006 10:43:40 AM
Hi,
There is no keypress event for datagridviewcell items... That is a
nightmare. I would like to save data to database on the grid when users
press to enter after changing value of a cell on the grid. But only
cellleave event is running on current cell. I tried to create a custom
cell and co... more >>
.NET Splash Screen Thread Problem
Posted by Gunnar Valur at 10/25/2006 9:37:01 AM
I am writing a VB.NET application that has a Splash screen.
..NET has autogenerated MyApplication Class.
In that class OnCreateSplashScreen calls a shared property to get the Splash
screen.
In this shared property I instantiate the splash screen object.
On this Splash screen I have a DevEx... more >>
Group Buttons
Posted by John at 10/25/2006 2:34:49 AM
Hi
I'm looking for a Button Control that can act as Group Button with 2
state Pressed/Unpressed.
So that when one is pressed the other are unpressed. Also i need some
advanced visual features like : Normal Image, Over Image, Pressed Image
I did not find this in C#...
Any idea...
Jonat... more >>
How to establish connection of DataGridView Control to Stock Excha
Posted by Jeet Disuja at 10/25/2006 1:11:02 AM
Dear Sir,
I m develop a application in vb.net which update a live prices of stocks by
a website named (www.nseindia.com)
i m using datagridview control for this.
Please give ur suggestion how can i bind my datagridview control to
www.nseindia.com website for live updation of stocks.
... more >>
How to establish connection of DataGridView Control to National St
Posted by Jeet Disuja at 10/25/2006 1:10:02 AM
Dear Sir,
I m develop a application in vb.net which update a live prices of stocks by
a website named (www.nseindia.com)
i m using datagridview control for this.
Please give ur suggestion how can i bind my datagridview control to
www.nseindia.com website for live updation of stocks.
... more >>
How to establish connection of DataGrid Control to Stock Exchange
Posted by Jeet Disuja at 10/25/2006 1:05:02 AM
Dear Sir,
I m develop a application in vb.net which update a live prices of stocks by
a website named (www.nseindia.com)
i m using datagridview control for this.
Please give ur suggestion how can i bind my datagridview control to
www.nseindia.com website for live updation of stocks.
... more >>
|