all groups > dotnet windows forms > october 2007
Filter by week: 1 2 3 4 5
Activity trace
Posted by Vikram at 10/31/2007 9:41:00 PM
Hi,
I am using winforms, smart client application. I want to generate activity
trace of all the events whiich are being called and time they are taking. Is
there any config section, enabling which should generate the trace
automatically to some file or I need to write to trace listener in eac... more >>
Pasting into RichTextbox
Posted by David Anton at 10/31/2007 8:34:01 PM
If you paste from some sources, such as a post on this forum, to a
RichTextBox, all line feed information is lost (I believe they're replace by
spaces). I've noticed the same behavior with WordPad, but NotePad does not
lose the linefeed information. Does anyone know of a fix for this? Pasti... more >>
Detect a key is pressed on WinForm load?
Posted by Carlos Sosa Albert at 10/31/2007 12:40:00 PM
Hi guys,
What I'm trying to achieve is to detect if a key is pressed when I load the
app. The idea is to be able to access to some debuging information if desired.
But I don't know where to start... I found information on
keypress/keydown/keyup, but always when a control has focus...
Th... more >>
vs2008
Posted by John at 10/31/2007 12:22:37 PM
Hi
What are the advantage of vs2008 over vs2005?
Thanks
Regards
... more >>
How to sense ESC key was pressed
Posted by Girish at 10/31/2007 3:25:00 AM
I have a long running loop in a Windows Form (VB2005 code). I want to be able
to terminate this loop when the user presses the ESC key. Can someone tell me
how this can be achieved?
Thanks,... more >>
Activate a screen saver then stop it
Posted by Tedmond at 10/31/2007 12:28:02 AM
Dear all,
Is there any way to start a screen saver and then stop it? Do I need to use
Process? I tried to use Process to start a screen saver but could not stop
it even I killed the process.
Thanks for any help,
Tedmond... more >>
Error in Treeview with Checkboxes and Vista
Posted by Dieter Pelz at 10/31/2007 12:00:00 AM
Hallo,
there is an error in the TreeView control when checkboxes are enabled.
When the checkbox is double clicked the node is visibly not checked, but the
Checked property is still true;
I'm using Visual Studio 2005.
Windows Vista und Vista 64 has this error.
Windows XP works fine.
Is t... more >>
How to make a tab control handle ctrl+tab, instead of the MDI parent doing it?
Posted by Andrew Backer at 10/30/2007 10:10:34 PM
Hello,
Is there any way to make the tab control, when a control within it's bounds
has focus, respond to control+tab? I am hoping for a codeless solution,
but if one is not possible that is fine too.
This is taking place inside an MDI application, so currently it is changing
the selec... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem with .NET 2.0 MDI menu merging
Posted by Doug Harber at 10/30/2007 8:22:04 PM
I've got 2 problems trying to get an MDI child form's menus to merge with
its parent's.
First, I created a simple MDI app with 2 forms, just for testing. The parent
form contains a menu with the following items:
&File
&New
&Open
The second form contains the following menus:
&Fi... more >>
KeyPreview/KeyDown not working with ActiveX
Posted by Tim Mackey at 10/30/2007 6:33:17 PM
hi,
i have an ActiveX Html Editor control developed X-Standard.com. i'm trying
to program in keyboard shortcuts via the KeyDown event attached to the form
that contains the editor control. KeyPreview is set to on, but the KeyDown
event does not fire if the focus is inside the editor.
is t... more >>
how to avoid atomatic selection of text in textbox?
Posted by Stephan Elsner at 10/30/2007 6:17:35 PM
I want to output text in a multiline scrollable read only textbox, but
the text is always selected which look strange and is hard to read.
How can I deselect the text programatically?
... more >>
Debugging
Posted by Elmo Watson at 10/30/2007 9:53:17 AM
Is there any way to step through a Windows Service, so I can see which
events are firing and when?
... more >>
Winforms security issue
Posted by news.microsoft.com at 10/30/2007 12:35:25 AM
I have installed a winforms net 2 app on a windows 2000 server. I am just
trying to run it on the server at this point and I am getting an error as
soon as the program tries to start. I know that its a security error which
I can see from the error signature in the sendto Microsoft dialog box... more >>
Windows Service - login question
Posted by Elmo Watson at 10/29/2007 3:16:23 PM
I am messing around with Windows Services for the very first time - I'm
getting to the installation part, and when I install, it asks for a username
and password.
Is this absolutely necessary?
Also - is there any way to get around it, so that it just runs?
... more >>
Measuring the exact size of a string
Posted by EgregioSignore at 10/29/2007 12:46:38 PM
Hi all,
I want to write a function that gets the following parameters:
a string "s"
a font "f"
and returns the EXACT width and height of the font.
I tried first with MeasureString but it adds me extra space;
then I tried with MeasureCharacterRanges but I didn't manage
to get rid of an... more >>
Embedded image in a Class Library
Posted by Carlos Sosa Albert at 10/29/2007 12:45:02 PM
Hello guys,
C#, VS2005: I'm trying to send an email containing an image.
I use "new AlternateView(imgStream, Mime.MediaTypeNames.Image.Gif);" to do
so, fine.
The problem is before this, when I try to create the Strem (imgStream) from
an embedded resource (myImage) I have in a resource fi... more >>
Multi-threading forms?
Posted by Patrick at 10/29/2007 6:01:01 AM
I have a "Main" ASP.NET 2 Form that could spawn off other forms using
//e.g.
NewSubForm myNewForm = new NewSubForm();
myNewForm.Show();
myNewForm.Activate();
The other forms perform something intensive "e.g. Invoke Oracle Stored
Procedure that take more than 10 seconds to bring bac... more >>
Imaging component for viewing very large JPG's?
Posted by Ed Sonneveld at 10/28/2007 9:51:09 PM
I'm searching for a component which is able to show very large JPG images
(sometimes more than 30 MB). These are professional scans of large drawings
from an archive.
I tried DotImage from Atalasoft, but it needs to map a huge block of memory
for displaying the image, which often results in... more >>
Localization tutorial?
Posted by David Thielen at 10/26/2007 9:54:01 PM
Hi;
Is there a good url somewhere that walks through how to localize the
resources in a C# forms app?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
How do I (cleanly) dispose of a row in DataGridView DataError even
Posted by B. Chernick at 10/26/2007 8:29:01 AM
I'm writing a Winforms project in VB/Dot Net 2.0 and I'm having some trouble
handling the Data Error event.
The grid is bound to a filtered binding source. Part of the primary key is
set by one of the cells in the grid which is in combobox mode. Add is
enabled.
What I want to do in... more >>
Question about best practices when using ListView in VirtualMode
Posted by Rostislav at 10/26/2007 8:27:00 AM
Hi,
I am working on an app which - for a given period of time - frequently
receives messages in background thread (every 2-5 ms). These messages are
then translated and should be sent/added to ListView. I understand that I
should use VirtualMode here because there will for sure be a huge nu... more >>
How to limit TextBox buffer size ?
Posted by Rostislav at 10/26/2007 7:37:00 AM
Hi,
my small app listens on a channel and then writes all incoming data
(formatted in text strings) to a multiline textbox. Now I am trying to set
limit on this textbox buffer (i.e. max number of lines in textbox). It should
work similarly to screen buffer size in DosBox, once the limit is re... more >>
a .net framework bug
Posted by Shwu at 10/25/2007 3:12:12 PM
I don't know where to report a bug to MS.
Here is the bug description:
I have an activeX created by ATL/C++, which shows a tree view with multiple
state checkboxes and icons. It works fine to embed the activeX to the main
form of a C# form application. If I create another subform to host the... more >>
ErrorProvider on a UserControl
Posted by Andy at 10/25/2007 11:35:34 AM
Hi,
I have a user control, which is a bunch of textboxes and dropdowns. I
also have a bindingsource component, to which an object is bound.
Also, an ErrorProvider component as well.
The bound object correctly implements IDataErrorInfo as well. When
changing a property, the data is validat... more >>
localization - disabling the localization of control properties?
Posted by Sergei Shelukhin at 10/25/2007 7:51:25 AM
Hi. Is there any way to prevent standard .NET localization from
"lozalizing" control locations and sizes? Or, preferrably, all the
properties that are put into "other" resource type in resources.
We have an application where the changes to control positions on the
form are done very often as... more >>
Securing Windows Form Controls In VB.Net 2005
Posted by squig9 NO[at]SPAM verizon.net at 10/24/2007 6:48:37 PM
Hello,
I am am trying to come up with a way of securing controls inside of a
VB.Net 2005 application. I have searched and found information on
Window Security but it all seemed based on ASP.Net. I am looking to
have a user log in and obviously verify the username and password.
Upon successful l... more >>
Determine previously focused control in winforms
Posted by adiel_g NO[at]SPAM hotmail.com at 10/24/2007 8:20:05 AM
I have a couple of textboxes and a button. I also have other controls
in the same form. When I click on the button, I want to know the
previously selected control, specifically I want to know if it was a
textbox. If I use the .Focused method for example:
If txtBox1.Focused then
.....never ... more >>
Databinding concepts
Posted by Amb k at 10/24/2007 1:22:00 AM
I have defined a picturebox control defined
in the common class and i am loading the picturebox to a panel defined in
form1. Now when i load two form1 screens at the same time only the last
displayed form shows picturebox. How can i show the same picturebox on both
the screens of form1. Any ... more >>
Help with custom control and event.
Posted by David at 10/23/2007 8:46:40 PM
I have a custom control that I'm working on. Everything was going swimmingly
until I needed its containing control to subscribe to an event. The problem
has to do with a separate event being raised unexpectedly. This is some code
in the control:
/////////////////////////////////////////////... more >>
How to read xml file nodes (vb.net)
Posted by Elmo Watson at 10/23/2007 1:51:50 PM
Scenario - I need to open up (dynamically) an xml file - in this case I'll
use the infamous 'books.xml':
- <catalog>
- <book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01... more >>
Invoke Assembly Interface from Another Assembly.
Posted by Ibrahim. at 10/23/2007 8:33:06 AM
Hello,
I have a DLL Project with some user-controls which implements a Interface
(Exit), this is used to warn the user if any changes done when trying to
close the user-control.
the interface is defined in the DLL project it self, but
the when the 'Cancel' buton is pressed from the us... more >>
User Controls/ VS 2002
Posted by kalamantina at 10/22/2007 11:57:01 AM
Hi everyone,
I am having a problem with a user control.
I have a winform roject and I built a user control for it, the project
builds fine and I was able to drag the user control from the toolbox
and drop it on another Winform. Later on, something happened in that
project( my mistake for not ch... more >>
Getting Encoding info for HttpWebResponse
Posted by Tedmond at 10/22/2007 11:24:03 AM
Dear all,
Is there any way to get the encoding info from a HttpWebResponse? Should I
use HttpWebResponse.GetResponseHeader? If yes, what is the parameter should
I use?
Thanks for any help,
Tedmond... more >>
KeyPress Not Firing
Posted by HaySeed at 10/21/2007 11:45:00 PM
I have a series of graphical User controls on the screen which which do not
posess any user input controls so no tab stops. I need to have them respond
to key press events to move left or right (arrow keys) or Delete. My problem
is I can't get the KeyPress event to fire for any keys standard ... more >>
Downloading file using WebRequest
Posted by Tedmond at 10/21/2007 8:53:01 AM
Dear all,
Is System.Net.WebRequest the correct class that I can use for downloading
file over http? I can easily get a page contents using that class but have
no way to get a file from the web server. Can anyone give me an idea how I
can do that?
Thanks for any help,
Tedmond... more >>
ListView tooltips appearing at top-left corner of screen
Posted by Bob S at 10/20/2007 12:00:00 AM
I have a control (derived from Control class) based on SysListView32. The
LVS_EX_INFOTIPS style is ON.
I select an item and hover mouse over it to shows its infotip. Then I move
mouse outside the control and use the arrow keys to select a different item.
Now, the tooltip for the item appear... more >>
RDP disconnects, no logon screen, TermDD 50 error
Posted by kong at 10/19/2007 12:08:02 PM
A remote user is having problem with RDP randomly. She told me she was unable
to get to her office computer thru RDP, so I walked to her machine and tryed
to log on to take a look. But there was no logon window anywhere, her desktop
was a blank. I forced the machine to shut down and then retar... more >>
Tips on runtime-customized UI
Posted by Dave at 10/19/2007 11:45:33 AM
Hi,
In the past, I've designed single screen interfaces, without much need
for allowing the user to customize anything except the size/state of
the main form. However, I am redesigning the application and hope to
allow the user to both select and position elements out of a list of
possible on... more >>
Object Variable or With block variable not set.
Posted by Ross Culver at 10/19/2007 10:49:11 AM
I get this error whenever I close one particular form in my Windows
application; however, I can't find the error in the code. Setting a break
on the dispose event doesn't catch it and the error does not occur on any
other event on the form. I've unchecked the 'My Code only' debug option,
b... more >>
DATAGRID - When doc property is FILL why do headers disappear?
Posted by Darrell Wesley at 10/19/2007 8:16:01 AM
VS2005 question.
I have a form with 5 panels on it, top, bottom , each edge and in the middle
.. The middle panel's DOC property is set to FILL. Inside this middle panel is
a Datagrid, if I leave the DOC property of the Datagrid set to NONE then the
column headers and scroll bars show just ... more >>
Trimming Windows form caption bar text
Posted by PacManFan at 10/19/2007 2:12:23 AM
Hi,
In the resize event handler of my Windows form, I want to replace a portion
of the form's title with ellipsis when the form is too small to completely
fit the title. What's the easiest way to generate a trimmed, best-fit caption
title? I'm using .NET Framework 2.0.
Thx.
... more >>
no scrollbar showed for ActiveX control in a WinForm
Posted by Shwu at 10/18/2007 5:30:09 PM
Hello,
I have an activeX control created by ATL, which shows a treeview. It works
fine on my development machine for a C# form to embed the control. If the
content of the treeview beyonds the visible area of the form, the vertical
or horizontal scrollbars will be showed automatically on my ... more >>
ComboBox loads slow
Posted by 0to60 at 10/18/2007 12:29:33 PM
I am noticing that it seems to take windows a long ass time to paint a
ComboBox control that has say, 32000 items in its dropdown. Yes, I know
that's a lot. However, I have a VB6.0 application that uses DAO to access
an Access database, and it can load up a 32000 item combobox in a fraction ... more >>
Options for 'granular' Help - refresh my memory
Posted by B. Chernick at 10/18/2007 10:08:01 AM
I have a basic help system set up for my program (Winforms, VB/Dot Net 2.0).
Hit F1 and get help for each current screen. Now my boss has suddenly decided
the help needs to be more 'granular', for lack of a better term. While I can
and have set help for individual controls, what she wants is... more >>
cookie problem
Posted by D_W at 10/17/2007 2:43:30 AM
Hi.
I have a webshop that runs on .net c# and uses cookies to get the cart
id
my customer now changed web hotel and this new hotel provides a ssl
security solution that makes my customers domain subdomain to their
domain..
I.E
http://www.customer.com
and to use ssl
https://customer.webh... more >>
How to populate a treeview from a dataset
Posted by xmail123 NO[at]SPAM yahoo.com at 10/16/2007 10:50:30 PM
I am very new to C#. I need to create a Windows form that will read a
SQL table and populate a treeview. I can connect to the DB, create
the dataadapter, populate a data set. The problem is how to use the
dataset to populate a treeview.
I have looked at a few examples but none use a dat... more >>
Object Variable Error; Followed by Memory Error
Posted by Ross Culver at 10/16/2007 10:11:51 PM
I've been working on a Windows application for several weeks now. Starting
late yesterday, I started getting the dreaded "Object variable or with block
variable not set" error when I close one of the forms. By process of
elimination I determined I found that if I commented out one
datatabl... more >>
Splitting Files
Posted by Tedmond at 10/16/2007 7:54:01 PM
Dear all,
Is there any easy way to split a file into several smaller files and then
recompose it? Which namespace should I use?
Thanks for any help,
Tedmond
... more >>
Form Localization
Posted by Matt at 10/16/2007 3:48:58 AM
Hi,
I have a set of forms in a windows application which I'd like to
localize. Some of these forms contain the same strings, for instance -
"are you sure?". I would like to put this string in one place which
will still be autoselected by the CLR relevant to current language and
culture but re... more >>
Derived Combobox with Locked/Readonly Property working until Databind
Posted by aaapaul at 10/16/2007 1:04:00 AM
I have a derived combobox with locking property. The user can see,
what items are in the combobox but he can' t change them.
This is my code:
Imports System.Windows.Forms
Imports System.ComponentModel
Public Class LCombo
Inherits ComboBox
Private m_blnLocked As Boolean
Priv... more >>
|