Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet windows forms > june 2005 > threads for june 8 - 14, 2005

Filter by week: 1 2 3 4 5

3 windows, bring all to front
Posted by Thomas Fisher at 6/14/2005 6:46:03 PM
Hi All, This should be pretty easy, and I'm sure there's a simple way to do it, but it's eluding me. The application has three windows open at all times. Needed functionality: a click on any of the three windows should bring the other two to the front as well so that they would all be above...more >>

How to impliment a wizard style SDI.....
Posted by Developer at 6/14/2005 4:33:02 PM
In VC++ using MFC I created a SDI app and in the CFormView I created a CPropertySheet added the CPropertyPage's to create a Wizard style SDI. How can I do something like this in WindowsForms? Thanks for you help?......more >>

Command button shortcut key
Posted by mf_sina at 6/14/2005 12:13:12 PM
Hi! i have a form in VB.Net with two command buttons CmdDelete and CmdAdd i need to add shortcut keys for example F8 for CmdDelete and F4 for CmdAdd but i don't have any code. could someone plz show me a sample code... Best wishes ...more >>

variable height TreeNodes in TreeView
Posted by dlyle at 6/14/2005 10:50:02 AM
Is it possible to create a TreeView with variable height TreeNodes? For example, I may want to have text in a given tree node have hard return characters that wrap that node's text to next line? There is the TreeView.ItemHeight property but that only allows setting a height for all TreeNode...more >>

Cursor "stuck" In Databound Control/Caching?
Posted by Sam Kuehn at 6/14/2005 7:32:33 AM
I am having a strange issue and cannot solve it. Basically, I have a form that edits information in a database. This form has many different controls that are bound to a business object. When I first load the form to edit the info everything works properly. The process of loading the objec...more >>

Custom Designer
Posted by Bryce Covert at 6/13/2005 6:58:13 PM
Hi, I'm writing a control called a validating submit button. Basically, you can tell it to validate a number of controls when the user hits this button. When they hit the button, it'll say, "You must enter yada yada..." and highlight the bad field. Ok, now that I've got that out of the way,...more >>

Smart Client - Update from MSI Code?
Posted by Steven Van Dyke at 6/13/2005 5:03:08 PM
What code do I have to add to my application to get it to check for updates, then re-install itself via an MSI file? Any simple examples out there? ...more >>

Sometimes clicking on a TreeView node doesn't select it
Posted by David Thielen at 6/13/2005 4:28:02 PM
Hi; I have this case where when I click on a line in my TreeView, it selects it for a second, and then moves the selection back to the previous selection. Usually I have to click 3 times to get it to stick - then it's fine from then on. The tree is not set to accept drag/drop. HideSelect...more >>



Want form on top of, but no in, non-.NET window
Posted by David Thielen at 6/13/2005 12:37:03 PM
Hi; I used the Win32:SetParent to set the parent of a Form to the Window of the app it is in (Word). This forced the form to stay within the main window of Word. How can I set a Form so it is always above the Word window - but not restricted to being within it? -- thanks - dave...more >>

Want Form.CLose to Hide()
Posted by David Thielen at 6/13/2005 12:31:08 PM
Hi; I have a modeless form (not modal). I want when the user clicks on the X that it hides instead of closes. I was going to handle this in the Closing event but I also need to be able to close the window at some time - so that won't work. So, any suggestions? Also, is there a call I ...more >>

special line feed character appear in notepad - windows form - c sharp
Posted by solo h via DotNetMonster.com at 6/13/2005 11:34:56 AM
hello members, i m using windows form c# using follwoing code StreamWriter sw = new StreamWriter(new FileStream(@"c:\anyTextFile.txt", FileMode.Append)); sw.WriteLine("this is test text \n now from here is next line"); sw.Flush(); sw.Close(); i m trying to write a simple text file, whe...more >>

use project variables throughout solution
Posted by oscar at 6/13/2005 8:10:04 AM
currently i have a solution with 8 projects. In the Client project there is a form called ListSer i would like to use in my Rpts project. Client is the startup project, so can't reference to it. Is there a way to use the ListSer form in my Rpts project? Is there a way to create global...more >>

custom shaped form
Posted by billy at 6/13/2005 7:25:34 AM
I want to create a small app that uses a jpg as the main form's "face" (i.e. windows media). I downloaded a sample app from codeproject and noticed that, in the main code, the developer actually went through and built up the region with a bunch of AddCurve() and AddLine() calls. Isn't there ...more >>

WinForms and COM Interop
Posted by iacoware at 6/13/2005 7:16:05 AM
I've a .NET WinForms application. The forms needs to be showed from a VB6 application. I wrote a simple class "COMWrapper" registered for COM Interop that instances the appropriate form and show it. The problems appeara when I show a MessageBox from the form. When I press OK the parent form...more >>

Error when committing the row to the original data store
Posted by Lee Gillie at 6/13/2005 5:51:52 AM
What types of issues cause DataGrid to throw up this message box when changing a cell value to some new legal cell value, and navigating away from the row?...more >>

ReadOnly
Posted by Saradhi at 6/13/2005 12:00:00 AM
Hi All, How do I make all my Controls on the C# windows Form readonly.? -SARADHI ...more >>

opening form only one time
Posted by mf_sina at 6/13/2005 12:00:00 AM
Which is the best way to prevent opening a form which is already open? my program has an mdiparent form and when the user opens frmcustomers, can edit records. now if the user again opens this form a new instance will be created and the same form opens again. what i can do to prevent this? I...more >>

DragEventArgs and GetDataPresent with abstract base class
Posted by MarkR at 6/12/2005 9:25:03 PM
Hello: I am trying to build a drag-and-drop operation with a control derived from my abstract base class. The control is either a PictureControl or a PictureGroupControl, both of which have PictureComponentControl as their superclass. When handling a DragOver event, I'd like to treat the...more >>

Creating a Simple Updater
Posted by Kenny M. at 6/12/2005 8:32:01 PM
Hi I have in each of my clients Application directory (30) several files and subfolder sometimes I need to update just a specific .mdb or .txt or .exe or only the app.config . I have tried to do something using the UpdatedApplicationBlock but because of my Directory structure and the v...more >>

Application disappears from Alt-tab task list when displaying CollectionForm
Posted by emcc at 6/12/2005 3:37:35 PM
When a CollectionEditor displays a CollectionForm (by clicking on a Collection in a PropertyGrid) the application icon is no longer shown in the task list displayed using the Alt-tab key. Any suggestions how to fix this? Do I need to modify style of CollectionForm to do this? How can I do this? ...more >>

Event Log?
Posted by Rob Meade at 6/12/2005 12:05:19 PM
Hi all, I've written a window service which needs to write to the event log from time to time based on certain events. Apart from a minor issue at the moment where the actual log isn't created and it uses the "Application" one, I always get the following: "For more information, see Help...more >>

CD-ROM suspends the application execution
Posted by Pino at 6/12/2005 10:38:17 AM
Hi to all. I'm writing an application which should read data from CD-ROM. I have the application started and I I insert the CD-ROM in the reader. Subsequently, I click the button for read the data, but the Windows Form not respond for a couple of seconds. Are there any methods to read t...more >>

IDisposable objects as fields in a Windows Form
Posted by Pino at 6/12/2005 12:00:00 AM
Hi to all. I have a Windows Form. I have a field in my form class which implements IDisposable. When I should call Dispose to that object? Is correct to call Dispose of all IDisposable objects in the OnClosed method of the form? Thanks, Pino. ...more >>

Controls layout save/load
Posted by John at 6/12/2005 12:00:00 AM
Hi Is there a way to save the layout of controls (position, size, visibility, appearance etc.) to a file (xml?) and also be able to load the layout from a file? The idea being that these file scan serve as templates for different clients who may have different preferences. Is someone has...more >>

Transparent Label Control - Text Refresh Problem
Posted by post2prabu NO[at]SPAM hotmail.com at 6/11/2005 9:58:18 PM
I have created a class file for Transparent Label and it works. But when I placed the control in the form designer, the text inside the label is not displayed. I have to move the control or press ALT+TAB to refersh the text. Any tips to overcome this problem? My Code: Imports System Impor...more >>

URGENT: printer control from code
Posted by Serkan at 6/11/2005 11:38:02 AM
hi there.. i want to scroll down printer after printed a page can anyone help me? thanks......more >>

Property with browsable = true does not show in Properties
Posted by Nigel Barton at 6/11/2005 5:45:01 AM
This is my first attempt to create a custom control. I have set the Browsable attribute (see below)and rebuilt the application but I cannot get the property to show on the Properties form. The control and all that it inherits from Control do show. Am I missing something? Thanks, Nigel B ...more >>

Problems editing datagrid bound to altered datatable
Posted by Lee Gillie at 6/10/2005 3:18:05 PM
I have loaded a DataTable from SQL server table via SQLDataAdapter as a basis. Once filled, I add columns that are calculated, and found via other methods. This includes tooltip text specific to the row, row foreground and background colors, and data parsed from text files on disk. And even...more >>

Get Windows icons for files in a ListView?
Posted by Jeff Connelly at 6/10/2005 12:04:02 PM
Let's say I know a file extension and I want to get the Windows icon for that type of file, and put that icon in the image for an item in a list view. Would this be possible without loading all possible Windows icons into the image list at compile time? In other words, is there a way to dy...more >>

datagrid tablestyles problem
Posted by Stu at 6/10/2005 11:10:10 AM
Hi, Im Sure this is a standard question and one of those its easy if you know how. Basically I am returning a dataset from sql server with five fields but only want to display to columns in my datagrid populated from two fields from the dataset So ive a) created a grid datagridstyle b) Iv...more >>

Apply a theme to a dot net application
Posted by glenhong NO[at]SPAM hotmail.com at 6/10/2005 11:07:20 AM
Hi, I want to know if it is possible to apply a custom made skin/xp theme to an individual dot net application. What I am trying to do is create a new skin\xp theme (e.g. Different style scroll bars) and then get my dot net application to use this. This way no other applications are comprom...more >>

custom editor for TreeView nodes
Posted by Ran S at 6/10/2005 4:55:02 AM
Hello you, I need Your HELP. I have my own TreeView Nodes Editor, in order to add 'MyTreeNode'', like node which are ComboBox and so. I have two classes. one inherit from 'TreeView' and the other from 'TreeNode'. In 'MyTreeView' i override 'Nodes' (keyword- new) in order to open my custo...more >>

(Rich)TextBox, scrolling, HideSelection
Posted by a_n_d_y_bell NO[at]SPAM hotmail.co.uk at 6/10/2005 1:59:53 AM
Hi- In my application I have a RichTextBox, and I want to scroll it so that the character at a given index appears on the top line of the box. Up till now, I've used this routine, which works fine: == rtb.Focus(); rtb.SelectionStart=rtb.Text.Length-1; rtb.SelectionLength=0; rtb.SelectionSt...more >>

Information on which application has focus
Posted by sosh NO[at]SPAM nospampls.com at 6/10/2005 12:00:00 AM
Hi, Bit of a newbie question, but is it possible from the .net framework, to gather information on which application (managed or otherwise) currently has GUI focus? Thanks. ...more >>

How to create wizards?
Posted by David Thielen at 6/9/2005 2:40:03 PM
Hi; I know it's probably in the one place I didn't look but I have been over the docs and several books trying to find how to create a form that is a wizard and can't find it. How do I set up a wizard? -- thanks - dave...more >>

Forms Icon: The argument 'picture' must be a picture that can be used as a Icon.
Posted by Greg Robinson at 6/9/2005 1:58:20 PM
At designtime I can assingn a Form's Icon property to a .png file. In the generated code I see: Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) when I do this with the designer. I would like to make this assignment at runtime. I added two .png files to my Pro...more >>

FindForm() returns nothing
Posted by Mark Peters at 6/9/2005 8:43:44 AM
I have a control class that inherits from ComboBox. The intention of = the constructor is to grab a reference to the BaseForm class of the form = containing the custom control and populate its members using cached data = from a "ClientCache" dataset in the base form. The constructor: Public ...more >>

Does click event handler need to marshal onto main thread?
Posted by jjkboswell NO[at]SPAM yahoo.com at 6/9/2005 8:32:26 AM
If I have a form with a button and add a button_Click event handler, and within that handler I update the form's GUI, do I need to marshal onto the main thread? i.e. Do I need to do this: private void button1_Click(object sender, System.EventArgs e) { if (InvokeRequired) { Invoke...more >>

how to access control property on MDI parent form
Posted by Setsuna at 6/9/2005 12:00:00 AM
Hi... i have created a MDI form and a MDI child form. i am supposed to enable or disable certain menu in the MDI parent form based on certain condition that occur. is there anyway of doing it like the old VB6 ways of direct manipulation . such as frmMDIParent.mnuAdd.Enabled = True if no...more >>

Transparent background image
Posted by Perico via .NET 247 at 6/8/2005 11:57:17 PM
Hello, I've got a form witch has an image as background this image is transparent, when I open the application, I can see the transparency but if I open another applicaction (i.e. explorer) the transparency disappear, somebody can help me? Regards -------------------------------- --------...more >>

Creating a Shape Manipulation App in C#
Posted by Alejandro Serrano at 6/8/2005 8:56:10 PM
Hi, I need to create an app that would make possible to manipulate shapes and lines as you can do in PowerPoint. Everything that it should do would be: - Create lines and be able to modify it - Create curves / splines and then being able to change their control points and/or create new con...more >>

Memory usage
Posted by Sgt. Sausage at 6/8/2005 1:40:22 PM
How can I get the amount of memory an arbitrary instance is consuming? The typeof() operator is not good for what I'm looking for -- I need to pass in any arbitrary instance of any arbitrary class. It needs to be recursive -- if that's the word. It needs to follow the references to any child o...more >>

Textbox and databinding update issue
Posted by dch at 6/8/2005 9:21:16 AM
I am using VS 2003. I created a C#.NET window form and added a textbox to the form. I set the databindings Text property to the dataset.table.field. I am using Access database. When I ran the form, the textbox displayed the value correctly. I changed the textbox vale and in the texbox TextC...more >>

Change System Cursor
Posted by ariel754 at 6/8/2005 8:54:52 AM
Hello I want to change the Hand system cursor, with the hand with shadow I used this code in Delphi some years ago: <delphi> IDC_HAND = MakeIntResource(32649); Screen.Cursors[crHandPoint] := LoadCursor(0, IDC_HAND); </delphi> But in C# it doesn't work, the cursor doesn't change <c#> int...more >>

NULL Values in DataGrid
Posted by Shariq at 6/8/2005 7:22:09 AM
How do I handle Null values in a DataGrid so the grid won't display 'null' if the field data is empty/null? The following SQL statement returns an error message "Invalid number of arguments..." SELECT MyField1, IsNull(MyField2, 'na') as MyField2 from MyTable ...more >>

strange problem about PropertyGrid
Posted by wyghf at 6/8/2005 12:01:02 AM
I write a Vector Draw program.In my custom control,I override OnMouseMove(...) in which I call PropertyGrid 's Refresh().Once OnMouseMove invoke,even if I don't move mouse.It'll generate WM_MouseMove continously(using spy to monitor it). for example,there is a PropertyGrid in the form,and I...more >>

ToolTip.Draw
Posted by JezB at 6/8/2005 12:00:00 AM
I have an owner drawn ToolTip control for which I handle the Draw event. This works very nicely but I'm sharing the same tooltip component among many different controls (it's actually an array of user controls of the same type). I'm finding that once I hover the mouse over one of these control...more >>


DevelopmentNow Blog