all groups > dotnet windows forms > july 2006 > threads for july 22 - 28, 2006
Filter by week: 1 2 3 4 5
Using the mousewheel
Posted by Jean Paul Mertens at 7/28/2006 4:10:21 PM
Hello,
I try to use the mousewheel in a user control to to scroll in a pannel where
I draw with GDI+ .
due to the fact that a pannel don't has focus, I have no mousewheel event at
my dispositon. Is there a work around?
Someone has an idee?
tnx in advance.
Jean Paul
... more >>
How do I focus on this cell in a winforms Datagrid control?????
Posted by rhaazy at 7/28/2006 11:48:55 AM
why doesnt this work????
DataGridCell newrowcell = new
DataGridCell(dataGrid1.CurrentRowIndex,0);
dataGrid1.CurrentCell = newrowcell;
If I use the integer 1 instead of 0, it works, but that is the second
column, I want the focus to be on the first column, however this piece
of code app... more >>
Creating instances of a control
Posted by Robe at 7/28/2006 9:43:01 AM
Hi,
Creating instances of a control
I have a panel with some controls inside and I need to create a Stack to
push into some instances of the panel. I mean, there is a button where the
user creates a new instance of the panel each time it push the button.
Any idea?
Thanks,
... more >>
Anyone reading the bug reports over there?
Posted by Earl at 7/28/2006 1:04:34 AM
For all of the good work that was put into VS2005, I find it utterly
astonishing that the 2.0 DataGrid has exactly the same right-alignment
header bug in it that the 2003 version had. Wow.
... more >>
Application.SetUnhandledExceptionMode()
Posted by Grant Morgan at 7/28/2006 12:00:00 AM
Hi
I'm relatively competent at windows forms programming in net 2.0 (VS 2005),
however, I've never really gotten my hands dirty with exception handling
until now...
My application is using a startup form (not a sub main) for a windows forms
project, with application framework enabled.
... more >>
multiple program icons problem - VS converts some 32bit icons to 24bit
Posted by SharpCoderMP at 7/27/2006 6:19:13 PM
i'm trying to embed multiple program icons in my executable. the only
way so far i managed to do that is to embed native win32 resource file
with multiple icons. it works, but... when i create a native win32
resource file with the VS 2005 and put there my icons, VS always
converts some of the 32... more >>
How to detect complex keypress (STRG+N, P)?
Posted by Roland_Müller at 7/27/2006 2:57:18 PM
Hello,
i know how to get a simple keyboard combination, but how to detect a
combination of keyboard combination, pressing STRG+N and P?
This does not work:
private void MdiParentForm_KeyDown(object sender, KeyEventArgs e) {
Debug.WriteLine(e.KeyData);
switch(e.KeyData) {
... more >>
text box format
Posted by John at 7/27/2006 2:48:52 PM
What method is considered the best way to ensure users enter the correct
data in a text box if you want an integer or decimal?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
User Controls - Web vs. WinForms
Posted by Mark at 7/27/2006 1:50:28 PM
What is the difference between a "user control" for Web Forms vs. Windows
Forms? I have extensive use of user controls (.NET 1.1) in Web forms. Just
wondering how they differ for Windows Forms.
Thanks.
... more >>
Display adapter
Posted by Søe at 7/27/2006 1:16:02 PM
Hi,
I'm trying to create an project running in a dual display environment. My
application instantiate a Windows Form on each monitor, and that works great.
However, I need to use DirectX and thereby I need to figure out, which
display adapter the form is running on. Until now that hasn't be... more >>
How to show an auto hidden window
Posted by Ramesh at 7/27/2006 6:59:02 AM
In my application, we have some windows that are auto hidden at start up. My
intention is to use a menu item to show them, just like that way Visual
Studio does with Toolbox, Solution Explorer etc. How can I programmatically
show an auto hidden window ?. Any help is highly appreciated.
Than... more >>
Button Click Event Fires When Disabled
Posted by rmacias at 7/27/2006 6:33:03 AM
While testing one of our applications, I found some interesting behavior with
the Button click event using .NET 2.0.
Let's say we have a windows form with a button on it. When the user clicks
on the button, the button disables itself (to prevent the user from clicking
again), does some pro... more >>
Windows Form Level Exception
Posted by Angelina at 7/27/2006 12:00:00 AM
Is there anything similar to "Error" event of System.Web.UI.Page of Webforms
in a Windows Forms?? I want to catch all errors occured in a windows form? I
already know there is Application.ThreadException but that is on application
level.
- angi
... more >>
Question about windowsforms.datagrid control
Posted by rhaazy at 7/26/2006 7:05:54 AM
Using C#
I want to be able to select the last VISIBLE row in the datagrid.
When I try to do this using the datagrid.select method it tells me my
index is out of range.
How can I programatically select the last VISIBLE row (which has no
data in it) to allow the user to add it leading to th... more >>
Strange behaviour - arrays or treeview?
Posted by hayrob at 7/26/2006 6:50:02 AM
In hunting down a problem I created a simple form.
Public Class Form1
Private mOne As TreeNode
Private mTwo As TreeNode
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
LoadNodesA()
'LoadNodesB()
... more >>
DataGridView Column header Color - vs 2005
Posted by sudhaoncyberworld NO[at]SPAM gmail.com at 7/26/2006 6:35:52 AM
Hi Techies,
I have added datagridview in my windows application, i have set the
Column header color to some color, but it is not reflecting the color
whatever
i set there.Its just showing the color "Control".I am using Win XP OS,
But the samething is working perfectly in Win 2000 Prof, ... more >>
.NET running on network
Posted by Roy at 7/26/2006 6:31:02 AM
Hi all,
Can .NET applications run on Windows 98?
My other question is how a .NET application runs from a network. Is this
statement correct? When a .NET application is run from a network, Microsoft’s
..net framework software running on the user’s machine will copy the software
into the... more >>
Setting MdiParent property on a form created by another non-Mdi form
Posted by Earl at 7/26/2006 12:00:00 AM
How do I set a form's MdiParent property to the MdiParent when it is NOT
created by the MDIParent?
For example, frmMain creates frmA, frmA creates frmB .. how to make frmMain
the MdiParent of frmB?
private void btnAddNew_Click(object sender, EventArgs e)
{
frmB frmB = new frmB();
// thi... more >>
Auto update smart client
Posted by Angelina at 7/26/2006 12:00:00 AM
How I can add auto online update feature to my windows application which
basically is a smart client. I already had a web service which will tell the
latest version and download URL. Now how can I make my application to do
that? I am using .NET 1.1 C#.
- angi
... more >>
Windows App connection error
Posted by Mr. Murad Jamal at 7/25/2006 10:35:01 PM
There's a vb.net 2005 windows app that sends out emails, it works fine, but
sometimes it gives these errors:
1)System.Runtime.InteropServices.COMException (0x80040212): The transport
lost its connection to the server.
2) System.Runtime.InteropServices.COMException (0x80040213): The transp... more >>
Tabs, Bound Controls & UserControls
Posted by Brian P. Hammer at 7/25/2006 3:53:50 PM
All - I have a form with a tab control. There are 9 tab pages with various
data bound controls on each. I was thinking of moving theses to seperate
usercontrols and then adding the control to each tab page.
I haven't conceptually grasped how to handle the data part though. Should I
pass a... more >>
How to suppress displaying DropDownItems of a MenuItem
Posted by Paul Jones at 7/25/2006 3:17:15 PM
Hi,
I need to suppress displaying DropDownItems of a MenuItem. I thought
MenuItem.Enabled=false might do also this except disabling the MenuItem,
but it didn't.
Any ideas?
With regards
Paul Jones... more >>
Custom DataGridView Columns and Cells
Posted by Guy Thornton at 7/25/2006 1:18:01 PM
Hi,
I have an application with a DataGridView that displays a Questionnaires
questions and allows a user to fill in answers to these questions in the
gridview.
Each question knows its questionType (Date, Text, or Yes/No/Na). I have
created a custom column that inherits from datagridview... more >>
How to catch "new-row-editing-cancelled" event in DataGridView (is there any similar event?)
Posted by Paul Jones at 7/25/2006 1:11:17 PM
Hi,
I need to know when user cancelled adding a new row to the DataGridView.
Is there a way how to do it? I explored the DataGridView events but
failed to find any usable one.
The thing is I need to do something when user adds a row to the DGV.
This is done in the DGV_UserAddedRow. In case us... more >>
DataGridView - in a real bind
Posted by Daniel Manes at 7/25/2006 12:37:20 PM
Take one DataGridView, add one column that contains cities, add another
that contains countries, add another that contains locales (states,
provinces, territories, etc.).
Now, make the Country and Locale columns ComboBox columns, and bind the
Country column to a Country BindingSource and the L... more >>
Multithread and UI again ! :)
Posted by maxima at 7/25/2006 12:12:02 PM
Hi,
I have done some coding with UI being accessed from different threads before.
But now I stuck. Need your help guys! :)
My application run not the form but some ApplicationContext class (in
function Main - Application.Run(new MyAppContext());)
That class creates 2 children. Model1 a... more >>
Focus visualization on XP
Posted by Carlo Folini at 7/25/2006 8:53:01 AM
With vs2005 I created a simple form.
New Project->Windows application(c#)->added a button on it-> set
FlatStyle="System"
Running this simple program on windows 2003 the button is selected and I see
the dotted line around the button.
The same program under windows xp pro (italian) selects th... more >>
Comobox Default
Posted by Baren at 7/25/2006 8:14:01 AM
In windows application, I am binding a dataset to a combo box. How do I add a
default “-Select-†value at the top. ... more >>
Keypress and function keys?
Posted by Kevin Burton at 7/25/2006 7:32:02 AM
I am trying to detect if F3 is pressed to mimic the typical "find next"
scenario in a RichTextBox. The function keys do not seem to cause a key press
event to occur. How can I detect that a function key has been pressed?
Thank you.
Kevin... more >>
How to reflect inputs of one form to another?
Posted by paradox81 at 7/25/2006 7:00:03 AM
Hi all,
i am currently writing a small application which involves two forms. Form A
is used primarily for display purposes while form B is used to gather user
input via a number of textboxes and numeric updowns.
The situation now is that when the user keys in his/her input to form B and
... more >>
ICustomTypeDescriptor vs Remoting
Posted by Robert Ludig at 7/25/2006 5:58:52 AM
I am using System.Windows.Forms.PropertyGrid to display the properties
of some custom objects. To enable dynamic modification of those
properties (and its attributes) this class hast to derive from
ICustomTypeDescriptor. Now I want those objects to be marshalled (by
reference) across process bou... more >>
Datagrid not working properly with storedprocedure
Posted by Amol at 7/25/2006 4:54:56 AM
Hello,
I am developing an apllication in which i want to change the values of
datagrid checkbox column according to parameter passed to the query.
But the problem is that, at first time when i usedto send the
parameter values it shows me the result ok for first time.But as i
change the value ... more >>
How to Create Combobox with Multi-Columns
Posted by Long Saroeurn at 7/25/2006 12:00:00 AM
I'd to create combobox that can display multi-columns when user click it.
Thx,
Saroeurn
... more >>
How to raise an event of button (click event) from textbox's onkeydown event?
Posted by ABC at 7/25/2006 12:00:00 AM
How to raise an event of button (click event) from textbox's onkeydown
event?
I have a button which have or not a click event and a textbox which have
onkeydown event.
I want add some feature on textbox such process input '*' character will
raise click event of a button.
which function ... more >>
Customized installation screen
Posted by Angelina at 7/25/2006 12:00:00 AM
Hi All,
I am creating a setup for a windows application in VS 2005. Now I want to
customise look and feel of all the installation steps screens. But VS 2005
seems not to provide this feature. This only allows to change the baaner
bitamp and some selected text strings. How can this be achiev... more >>
TextBox inheritance
Posted by Stephen Ahn at 7/24/2006 5:03:52 PM
Using dotnet 1.1.
Say I have assembly "A" with a drived textbox like this :
public class MyTextBox: TextBox
{
public MyTextBox(): base()
{
this.BackColor = System.Drawing.Color.AliceBlue; // XXX
}
}
Assembly "A" is compiled.
Say I have a windows form in application "B"... more >>
passing the file associated with an app into a Windows Forms app
Posted by Darren Mar-Elia (MVP) at 7/24/2006 4:18:04 PM
I have a Windows Forms app that let's a user type the path to a file into a
inputbox. What I'd like to be able to do is, if the user sets an association
between a particular file type and my application in Explorer, I'd like to
be able to pre-populate the inputbox on Form Load with the name of... more >>
WndProc -- msg value for Uninstall?
Posted by Rob R. Ainscough at 7/24/2006 2:00:36 PM
I'm using WM_QUERYENDSESSION (&H11) but need to also close my app when the
Uninstall is initiated -- what message value do I need to check?
Thanks, Rob.
... more >>
Listview items in place tool tip
Posted by Angelina at 7/24/2006 12:12:39 PM
Can any one please help me out. I need to add a in place tool tip on a list
view items. Do any one knows how to achieve this?
- Angelina
... more >>
Unable to hide form? in .NET 2.0
Posted by Rob R. Ainscough at 7/24/2006 10:55:08 AM
Any suggestions on how to make a form not visible when displayed via
Form1.ShowDialog() ?
If I put a button on the form called "Close" and in the click event I put
Me.visible = false, the form closes and my application terminates. I don't
want this, I just want it to hide (Me.Hide is the s... more >>
Rich Text Box Search.
Posted by Kevin Burton at 7/24/2006 8:20:02 AM
I would like to implement some general search capabilities within a rich text
box. First I was wondering if there is available a dialog like you get from
Ctrl-F (find, find next, etc.) Do I have to code my own dialog or is this
search dialog available for reuse?
Thank you.
Kevin... more >>
Flipping tabs on TabControl
Posted by scarleton NO[at]SPAM gmail.com at 7/24/2006 8:18:02 AM
The alignment on my tab control is set to Bottom (so the tabs are on
the bottom) but the default painting of the tabs is still as if they
where on top. I am assuming that it is already pretty well document on
how to override the OnPaint to flip things around. Can someone point
me to it?
Sam... more >>
SerialPort DataReceived Event Doesn't Fire
Posted by Otis Mukinfus at 7/23/2006 6:31:04 PM
I have been unable to get the DataReceived event of the SerialPort component to
fire.
Here is a sample of the code I found on the web that is said to work around a
bug in this control, but if the event doesn't fire, I don't see how it can do
anything.
private void DoUpdate(object s, Event... more >>
dynamically adding controls and slow speed!!
Posted by ike at 7/23/2006 1:23:01 PM
Hello,
I'm developing an application where the user gets the ability to choose how
the form looks like. What is shown, wich controls to use and all available
properties of those controls.
The data gets pulled from a database.
The only problem I have is the speed. When having a form with 5... more >>
How to access a public method from another class?
Posted by RickL at 7/22/2006 5:47:35 PM
Hi,
Suppose I create a Windows Form app and then add a public method
like this:
class Form1 : Form
{
// Constructors, etc.
public void DoSomethng()
{
}
}
Now I add a UserControl to the form, add a button to the UserControl
and a Click handler for the bu... more >>
|