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 > october 2004

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Difference between KeyCode and KeyData
Posted by Dotnetjunky at 10/31/2004 11:33:01 PM
Hi, In the event handlers of KeyUp and KeyDown events, the passed-in event argument has two properties named KeyCode and KeyData. Could anybody tell me the difference between the two ? The documentation is very vague on this. And one more question. I'm creating a textbox to let users enter...more >>


rotate control
Posted by Chris at 10/31/2004 11:12:54 AM
Hi, Is it possible to rotate a control on a form ? (e.g. Button, customcontrol) thnx Christian ...more >>

ListView And Datagrid style
Posted by Steve Butabi via .NET 247 at 10/31/2004 3:56:39 AM
HI! How can I change row height and row bgColor in datagrid and/or Listview? lang: C# platform: POcket Pc 2003 SE thx -------------------------------- From: Steve Butabi ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>daWopM6omkKa3nYcLV1pLA==...more >>

How to write and read a Meta file from the a stream.
Posted by Amendra TheUltimate via .NET 247 at 10/31/2004 3:52:35 AM
Hi, I have been trying to write to a memory stream and read and= display a meta file=2E I was ok with drawing on to the metafile=2E= But what I cannot seem to do is read from the memory stream that= I have written to=2E I get an exception saying, Additional= information: A generic error o...more >>

Checkbox in Checkedlistbox just vanishes
Posted by Mohit Vora via .NET 247 at 10/31/2004 3:52:11 AM
This is very queer=2E I am using a CheckedListBox in VB=2ENET=2E When I run the application= on my development machine, it works just fine=2E But when it is= run in the client's machine, sometimes (seemingly randomly) the= for the top 2 or 3 items of the checkedlistbox, the checkboxes= o...more >>

Problems with C++ and Control::FromHandle
Posted by Justin Walker via .NET 247 at 10/31/2004 3:51:33 AM
Hello all, I am having a problem which has really stumped me=2E Using =2ENET= management in a C++ program, I am trying to get a control via= it's handle=2E However, even though a C# utility will pick up on= the control with its handle, this C++ program will always return= null (same con...more >>

transparent user control
Posted by vrush desh via .NET 247 at 10/31/2004 3:50:38 AM
(Type your message here) Hi, I want to make user control transparent. I have made it tarnsparent using maketransparent method but while moving that control its taking background of parent control which i dont want so how can i make this?? Please help me ASAP. my email id is vrushalid@gmail.c...more >>

Docked panels and Z-order problem.
Posted by Dominik Jeske via .NET 247 at 10/31/2004 3:49:42 AM
Hallo=2E I have two panels docked on the right of the form (p1 on the left= and p2 on the right) and I want third panel to slide from right= to left into a view between p1 and p2 (Just like Solution= Explorer window in Visual Studio ? if it is in auto hide mode= its slides to left when mous...more >>



ListBox, DataSources and IBindingList
Posted by Andreas Zita at 10/30/2004 4:54:43 PM
Hi all, I have a frustrating problem with ListBox: I am adding a custom collection (MyColl : CollectionBase) as the DataSource for a standard ListBox control. When selecting an item the name of it appears (DataBound Property) in a TextBox to allow editing. The thing is that when Im editing ...more >>

Application crashing randomly
Posted by sunil NO[at]SPAM volcanomail.com at 10/29/2004 11:38:47 PM
Dear All, We have developed an application and are use No Touch Deployment to run it...quite a few times the application just crashes without any exeception...I have handled the thread exeception handler too and it does not come there... How do I debug to find out what is causing the problem...more >>

Events & Windows Service App
Posted by Doug Thews at 10/29/2004 3:32:09 PM
Where are the routines mapped to events in a Windows Service app. I notice that there's OnStart, OnStop, etc - but I can't find a place where these are added as event handlers. Are the reserved names for a Windows Service app, or is there something I'm missing? -- Doug Thews Director, ...more >>

OCX Controls
Posted by Charles A. Lackman at 10/29/2004 3:03:28 PM
Hello, I have created a project that is dynamically adding an OCX control to my form. I also have other OCX controls on the form that I have placed from the designer. When I call the form using ShowDialog, the forms Load_Event does not fire. When I call the form using Show the forms Load...more >>

Custom control not passing properties and events to parent
Posted by AlBruAn at 10/29/2004 12:00:03 PM
I have a custom control consisting of a panel, a text label, and a TreeView derived from Microsoft's TreeView control modified to allow custom paint events. The text label is contained inside the panel, which is docked at the top of my custom control; the treeview is docked to fill the remain...more >>

Measuring the offset of a sub-control within a form
Posted by Phil Jones at 10/29/2004 10:11:21 AM
Is there a consitent/easy way to get the X:Y pixel offset of a contron within it's containing Form (irrespective of how deeply it is nested within a control hierarchy)? I've written a little routine that runs up the hierarchy, but I thought this must be such an obvious thing that there migh...more >>

Capture Web Page
Posted by Stanley at 10/29/2004 9:52:21 AM
I am looking to capture a web page and display it in a PictureBox. I have tried loading the webpage in a browser control and have managed to capture the control but only for the width and height that the control is on the form. So I only see what the control shows with scroll bars for the re...more >>

Winforms Datagrid Row Deletion
Posted by Srikanth at 10/29/2004 9:14:23 AM
Hi, Iam trying to delete a row on a Winforms datagrid and before deleting the row I want to do some validation. But, the Keydown event on the datagrid where I check whether the key pressed is 'Delete' seem to fire sometimes only. How do I change the code so that the Keydown event fires at ...more >>

How disable sorting feature of DataGrid
Posted by Andrew at 10/29/2004 9:13:06 AM
Hi, friends, In a VC# app, I have a DataGrid with DataTable as its SourceData. This DataTable has a ColumnStyle collection for each field. In Form_Load event, I set myDataGrid.AllowSorting = false; However, after filling up data, I can still sort each column. Any ideas? Than...more >>

Funny Issue with DataGrid and Config file
Posted by Tariq at 10/29/2004 7:01:47 AM
I have a app.config file that looks something like this. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="test" value="10001"/> </appSettings> <fileTypes> <add key="htm" value="c:\temp"/> <add key="jpg" value="c:\temp\jpg"/> <add key="png" value="c:\temp\png"/...more >>

"OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT"
Posted by Christopher at 10/29/2004 6:16:01 AM
Is there a way of destroying all objects when a form closes so that the correct objects can be created once the form is REopened? error i am getting is : "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT" when opened and closed repetedly and alternating between the 2 "modes" ...more >>

Hierarchical ListView
Posted by Tarakeshwar L at 10/28/2004 8:49:37 PM
Hi, Is it possible to create a hierarchical listview like the one we get while doing a quick watch. Is there any article on using a tree view inside a Listview. I have searched all thru and havent got any luck. Tarkeshwar L ..Net Programmer Fifth Generation Technologies ...more >>

How to change the existing IE's url from window application?
Posted by jason at 10/28/2004 6:47:01 PM
Is there anyway to change the url of existing IE Explorer's page from another window program? My current IE Explorer's page url is http://msdn.microsoft.com. I want to change this url of IE to http://www.asp.net from my another window application's event. Any idea?...more >>

SHDocVw questions
Posted by MikeH at 10/28/2004 5:59:01 PM
I want to use SHdocVw to navigate the local file system. This is not a problem as something like he following will achieve my purpose.... AxWebBrowser1.Navigate("C:\") My problem is that I wish to display the folders and files in "Windows Classic" view on an XP machine without the common t...more >>

Keeping context menu open even after clicking?
Posted by Carl Mercier at 10/28/2004 3:39:01 PM
Hi, I'm trying to add a context menu to my form that would contain only items that can be checked. I would like the context menu to stay open when the user clicks an item. This way, they wouldn't need to re-open the context menu to check 5 or 6 items at once. So basically, open the con...more >>

Changing the BackColor of an MDI Form
Posted by Jav at 10/28/2004 3:22:01 PM
I am trying to change the dark greay BackColor of an MDIParent form in the Properties window to White but nothing happens. Is there a trick to it? Thanks...more >>

Converting Boolean to Bit...
Posted by TrussworksLeo at 10/28/2004 2:49:13 PM
I and pretty new to .Net. I am trying to save a value back to a SQL Server database from a Windows form. I keep getting this error? A first chance exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Input string was not in a correct format. This li...more >>

Getting dataset row from datagrid
Posted by Ron L at 10/28/2004 11:20:04 AM
I have a grid that is the list portion of a list & detail set. I am catching the SelectedIndexChanged event and using dslistdata.Tables(0).Rows(grdListDisplay.CurrentRowIndex) to get the data that fills the grid's row from the underlying dataset. This works fine if the grid hasn't been sor...more >>

Really weird issue with VS.NET 2003
Posted by carlor at 10/28/2004 10:49:02 AM
Hi there, Ok, this is weird. For some reason, when I open up a windows form to edit, there is a piece of my code being run. Here's the story: I have a base main form that contains code that opens the COM port (as well as doing other things). I derive my "real" main form from the base as th...more >>

Capture the NewRow event for a DataGrid
Posted by chrisc NO[at]SPAM hackettpublishing.com at 10/28/2004 10:19:02 AM
let me set the stage for my question.. A C# winform with one datagrid on it. A DataTable dt that has some data in it bound to the datagrid using setbindings(). The Table has these columns in it. First Middle Last Address Customer_id Now, I create a data table style for the datagrid ca...more >>

Understanding Asychronous Operations
Posted by Fred Herring at 10/28/2004 8:53:10 AM
I have recently implemented asychronous httpwebrequest. My goal in doing this was to allow me to move my form around while a download was occuring and to keep the form from being distored when other windows are moved over it during an httpwebrequest operation. Well, I am running asychronous...more >>

textbox focus
Posted by JIM.H. at 10/28/2004 8:37:08 AM
In a windows application, in the form, I have a text box and I use Me.MyText.Focus(), this does not get focus to the text box, what shoudl I do? Thanks, ...more >>

Unwanted clipping in user control
Posted by mark13 at 10/28/2004 6:37:07 AM
Hi everyone, I have a really annoying problem: I've made a simple user control (an enhanced progress bar); both at design-time and run-time everything that is outside the default control size is not drawn. It's like the default size works as a clipping region and everything drawn outside is...more >>

Filtering on dataview
Posted by Gis at 10/28/2004 4:25:03 AM
Hello, I'm new on this so please be pacient =) I'm trying to filter data from a DataView and place de dataview as the DataSource of a DataGrid. DsTimeRecording1 --> Dataset EmployeeID --> GUID TRDate --> Datetime dtpDate --> DateTime Picker control on the form cboName --> ComboBox control...more >>

Filtering problem on DataView
Posted by Gis at 10/28/2004 4:19:03 AM
Hello, I'm very very new. so please be pacient =) I'm trying to set the DataSource of a datagrid using the RowFilter property of a dataView. Employee is the Table already in a Dataset (connection to SQL Server) EmployeeID is a GUID TRDate is datetime cboName is a Combobox on a Form (ValueMem...more >>

newbie - datagrid formatting
Posted by DanHur at 10/28/2004 3:19:04 AM
Hi! My problem is that I can't format the datagrid (WindowsForm) in a WinCE application. I'm working with VS .NET 2003. What I want is to give a headertext to the columns and to adjust programatically the width. The solutions in the help and in the newsgroups doesn't work. I have alread...more >>

AddOwnedForm method vs MdiParent property
Posted by KPH at 10/28/2004 1:29:03 AM
Hi all, Can someone tell me what is different purpose between AddOwnedForm method and MdiParent property of Form class member? Cheer, KPH...more >>

question about datagrids and databinding -Am I making work for mys
Posted by B. Chernick at 10/27/2004 9:35:02 PM
Ok, bear with me. I've just spent the evening looking at tutorials and samples and I am getting confused. I have an extremely conventional set of order header/order detail tables, the details bound to a header record by the usual order number. What has me confused is this. I would like...more >>

exception when trying to view Designer for my windows form:
Posted by xbow1 at 10/27/2004 7:01:02 PM
I have made a windows app using Visual C# .NET and have been designing a form using the form designer and writing code. It was working just fine until recently (I could view the code or view the designer just fine). Now, when I try to view the designer, I get the following error message: ...more >>

HOw to populate the combo box in C#?
Posted by raj at 10/27/2004 5:49:04 PM
I have a combo box (C#)that I want to populate from a SELECT query How to do this?...more >>

Help on System.Drawing.Printing.PrintDocument
Posted by Mae Lim at 10/27/2004 5:41:01 PM
Question which is involving "System.Drawing.Printing.PrintDocument". How to check the printing status of the document I sent to printer ? How do I check the printing queue using this object ? How do I cancel the printing ? Is there any other way to check the printer status ? Please provi...more >>

Error Generating Win32 resource.... (bug in VS.NET 2003)
Posted by ~~~ .NET Ed ~~~ at 10/27/2004 5:27:44 PM
this seems like a bug to me. I use VS.NET 2003 with the framework v1.1. I had a project that grouped all the common forms I would use in other solutions. There are icons associated with these forms. This week I had to reorganize my development tree, things got moved around by prune & graft. It...more >>

fonts with same lenght per character
Posted by Ken at 10/27/2004 4:21:02 PM
Hi I'm looking for the fonts whose character's size is the same no matter what character is. this is because I'm printing a receipt and I need that each column has the same lenght, just to make it look better. I only know Courier news has it, but I'm looking for more to have a variety ...more >>

DataGridBoolColumn and Arraylist don't work right
Posted by Keith at 10/27/2004 4:21:01 PM
Hi, I have a datagrid, datasource is an Arraylist. I've been able to add the columns I want; a few string columns and a few DataGridBoolColumns. The ArrayList is being populated before the form is opened, and all the data appears on it as I would expect, except for the DataGridBoolcolumns. ...more >>

Threading and updating form question.
Posted by Roger at 10/27/2004 3:03:56 PM
I have a function that is currently wrapped up in a Class so I can pass a variable to it. This function is going to be threaded out and I would like the class function to be able to update a control on my form. (Treeview). Is this possible and how do I do it? Here is a simplisitc overv...more >>

Multiple Windows when using AxWebBrowser
Posted by Sathish at 10/27/2004 2:25:12 PM
Hello, I am developing a Windows Foms application that is hosting a WebBrowser control. I am trying to open multiple windows of my application. I am able to do that by using the following code in my New Window event: Form1 newWindow = new Form1(); e.Equals(newWindow.axWebBrowser.Applica...more >>

reference a public property in another Form?
Posted by nick at 10/27/2004 1:44:29 PM
I have a main form, with a public property. And this form open another form by click a button. Is it possible that the new created form access the public property of the main form? public class MainForm : System.Windows.Forms.Form { ...... public string P1; private void mniFreeze_Cl...more >>

Treeview Control
Posted by jcb1269 at 10/27/2004 1:21:01 PM
Where can I find good information on adding nodes nad childnodes to a treeveiew. I'm trying to do the following: IN THE TREEVIEW CONTROL Event --> Weightclass ---> Lightweight Person Person ...more >>

how to call a form from a thread
Posted by Suhail Kaleem at 10/27/2004 12:07:33 PM
Hi ! I can call form2 from main thread but when i create a child thread i cannot call form like Dim frm as new form2 frm.visible = true now this only works in mian thread so my question how do call a form from a child thread ? Thanks ...more >>

how to call a form from a thread
Posted by Suhail Kaleem at 10/27/2004 12:06:36 PM
Hi ! I can call form2 from main thread but when i create a child thread i cannot call form like Dim frm as new form2 frm.visible = true now this only works in mian thread so my question how do call a form from a child thread ? Thanks ...more >>

Painting a Drop Shadow under a Form
Posted by Phil Jones at 10/27/2004 11:37:16 AM
I would like to paint a drop shadow behind my forms - like the drop-shadow that appears behind the mouse, and the StartMenu on XP. I'm wondering is there some way to go about doing this. I have no problem creating the complex alpha channel image for this - I just don't know how and on what...more >>

List control acting up when last item is removed
Posted by David at 10/27/2004 4:11:04 AM
I am using an ArrayList to populate a list control. Let's say the arraylist has instances of a class called Thing. This has two properties called ThingValue, and ThingName. Here is how I bound the list with the arraylist private void bindList() { listBox1.DataSource = null; listBox1....more >>


DevelopmentNow Blog