all groups > dotnet windows forms > october 2006 > threads for october 22 - 28, 2006
Filter by week: 1 2 3 4 5
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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
width of listview
Posted by Sbroeff at 10/25/2006 12:00:00 AM
Hi,
i have a problem with a listview. I would that the width of listview's
columns are not modifiable both with doubl-click and with dragging.
thanks for help
... more >>
How to avoid automatic Designer (VS2005) rewriting InitializeCompo
Posted by MilanB at 10/24/2006 11:39:01 PM
Hello,
I wish to include one simple in InitializeComponent, that would not
compromised this function any way. But VS 2005 Designer sometimes automaticly
rewrites InitializeComponent, and remove my code.
Any suggestion how to disable VS 2005 designer to do this?
Thanks
Milan... more >>
Array of table adapters?
Posted by mordock32 NO[at]SPAM hotmail.com at 10/24/2006 2:26:21 PM
By the looks of it, the design of the table adapter makes it very hard
to deal with a bunch of them in a generic way. Let's say I have a typed
data set with 10 tables and relations between then. Am I supposed to
hard code every fill and update for each table? Ideally I would do
this:
for (int... more >>
Is is possible for the owner form to be from a different thread?
Posted by Gail Hurn at 10/24/2006 1:40:02 PM
I am working on a multi-threaded application. Say I create a Form1 on the
main thread and call form1.ShowDialog. This Form1 is only displaying status
information. There is no real user interaction going on. I do all the
background processing on a worker thread and I only update Form1 using ... more >>
Text in drop down list of combo box is not visible
Posted by Mitch Carlsen at 10/24/2006 11:42:40 AM
I am unable to read any text displayed in the drop down list of a combo box.
Once an item is selected, the text is displayed in the text box area. I
have tried changing all the text properties for the combo box to no avail.
Other (non winform apps) display fine on my system. I have also trie... more >>
DataGridView - readonly cell
Posted by Mark at 10/24/2006 9:31:38 AM
I have a DataGridView with a bound column that has a read-only property of
False. The I can't enter text into the cell. My data adapter is setup for
updates. What would prevent the cell from me typing text into the cell that
is supposedly editable?
Thanks in advance!
Mark
... more >>
Control invoking w/o creating a delegate
Posted by Steve B. at 10/24/2006 12:00:00 AM
Hi,
I'm building a smart device windows app that performs some background
operation and that requires updating a progress bar.
Since I need to use the progress bar thread, I call MyProgressBar.Invoke()
method where I pass a delegate object.
The syntax is quite painfull since I need to cre... more >>
C#, Form, ReportViewer => Print questions...
Posted by KHV at 10/23/2006 3:29:16 PM
a) with and b) without the Print dialog showing: How can I interupt the
process after a click from the ReportView Print button, access the default
printer settings, change the page orientation to landscape, set the page
margins and print the report?
Thanks in advance,
Kjartan
... more >>
Minimizing and then Maximizing my application prevents windows from appearing!
Posted by Flyte at 10/23/2006 2:54:49 PM
Hi All - I have a problem that I cannot for the life of me solve. I
hope someone can help me out.
..NET 2.0 / C#
I have an application that is a touch screen application, and as such,
I have a main window that is borderless and its initial WindowState
is set to Maximized.
On top of this ... more >>
ComboBox and column values
Posted by JD at 10/23/2006 2:52:01 PM
I have a combo box that shows 9 columns. How do I populate 9 textboxes with
the values from the 9 columns from the selected row?
... more >>
add item
Posted by John at 10/23/2006 9:07:12 AM
I know this shouldn't be that difficult, but, could someone give me the best
practice code to add an item to a database in VB when you have a dataset
containing only a subset of the full table and the item has an
autoincremented ID? It seems adding the item to the dataset and then
updatin... more >>
Question on Control.InvokeRequired and Cross UI Thread call?
Posted by Leon at 10/22/2006 9:10:01 PM
Hi,
From MSDN documentation, it implies that any cross ui thread calls will
result in InvalidOperationException when one tries to access a UI object from
a non-creation thread.
I have a situation where someone is executing some code in a thread pool
(Threading.IsThreadPoolThread is true ... more >>
Datagrid problems
Posted by daniel_westerberg_1979 NO[at]SPAM hotmail.com at 10/22/2006 6:19:43 PM
Hi
I have 2 problems with a datagrid
problem 1
I use a datatable as datasource and I don't want the last row to be
visible (the one where you can add new rows) how can I do this?
problem 2
I use the folowing code to hide some columns to the user
dataGrid_practicegrid.TableStyles[... more >>
Installer Dialog problem
Posted by cnickl at 10/22/2006 2:24:02 PM
I’m trying to create an installer for an application. The installer has a
custom dialog with two checkboxes determining if shortcuts should get created
on the desktop and in the Start menu. Regardless what I do, and what I check
the shortcuts always get created in both.
In the User interf... more >>
|