Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > november 2003

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

overriding WndProc
Posted by fh1996 at 11/30/2003 8:00:27 PM
Protected override void WndProc(ref Message m) { .... base.WndProc(ref m); } When should override the WndProc member of base class? Can "Parent.WndProc(...)" be used to replace "base.WndProc(...)" in the following code? What's the meaning of "parent" in C#? Why is it needed to call...more >>


Adding buttons to the form's title bar
Posted by Picho at 11/30/2003 6:03:04 PM
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET forms... I tried painting, but the paintaing area provided by the form is only the client area - no vi...more >>

ScrollBar move event?
Posted by Michael at 11/30/2003 4:10:53 PM
Hi, there, I need to intercept scrollbar move event for a panel control to do something. But I cannot seem to find any event in ScrollControls that can let me do that. Thanks for the help. Michael...more >>

How can I hide a column in a Windows Forms DataGrid?
Posted by Nilson at 11/30/2003 2:11:34 PM
How can I hide a column in a Windows Forms DataGrid?...more >>

TextBox HTML
Posted by Alex at 11/30/2003 1:10:11 PM
Can you set up a TextBox to accept HTML content? or only Label? ...more >>

TextBox problem
Posted by Alex at 11/30/2003 1:05:58 PM
When I set a textbox.Text property to strings that have \n characters, they show up as '[' or something else besides properly interpreting them as newlines. Is there some property, or should I convert them to <br>? ...more >>

Determine pixel color on desktop using mouse??
Posted by Amil at 11/30/2003 12:12:13 PM
I want to be able to capture a pixel color of any item on the desktop using the mouse. This is a typical "eye dropper" tool. Does anyone have ideas on how to capture a mouse event in any other window on the desktop...then get the pixel underneath it? Thanks. ...more >>

OnPorpertyChanged method, what is this?
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/30/2003 4:50:08 AM
Hello, the sample http://samples.gotdotnet.com/quickstart/winforms/doc/WinFo rmsCreatingControls.aspx uses the RaisePropertyChangedEvent("DrawingMode") call, but i cannot find it in the source!!! And it also overrides: //Override OnPropertyChanged to raise the DrawingModeChanged...more >>



test
Posted by Daniel J Rodriguez at 11/29/2003 9:58:20 PM
test ...more >>

Important Info - Swen Virus - Related to this News Group!
Posted by Daniel J Rodriguez at 11/29/2003 9:54:33 PM
Greetings All.. I know this is not the place for posting this information. But I think it would be good to let you know.. Last night I made 1 post to this newsgroup (btw im new to this newsgroup and server so I know its coming from here) and this morning my Inbox was filled with messages which...more >>

How do I catch an exception occurred in the work thread from the main thread
Posted by Kueishiong Tu at 11/29/2003 7:54:36 PM
I have a window form application. The main thread creates a work thread to do a web request. The work thread has the exception mechanism in place so that if there is anything wrong with the web request, the exception is catched in the work thread. However it still causes the main thread to cra...more >>

Suspend Events
Posted by alexandre at 11/29/2003 3:56:56 PM
Hi, Is there any function that Suspend all events for the Control object ? thanks ...more >>

Listview programmatically select item
Posted by garrick at 11/29/2003 1:42:10 PM
How can I programmatically select a listview item? I can't seem to find a native .net method - do I need to drop down to WIndows API level? I have MultiSelect off, so one (or none) items should be selected......more >>

how to set custom papersize in crystal report
Posted by Ivan at 11/29/2003 12:38:01 PM
Hi All, Does anyone know how to set the custom papersize of a Crystal Report in = ..NET Thanks in advance, Ivan FYI:=20 I'm using .NET 2002 framework 1.0 and CR9 for .NET...more >>

how to avoid user to add a new row in the datagrid control?
Posted by Cyrus at 11/29/2003 11:51:24 AM
I only want the datagrid show 4 and only 4 rows. thz ...more >>

Beta Windows Forms app
Posted by Steve Tibbett at 11/29/2003 9:14:07 AM
Hi. I've been working on this app at the company I work for for a little while, and we're pretty close to really releasing it, but before we do, I'd like to get some feedback on a number of things. One of the big questions is, being a Windows Forms app, is this going to deter people from down...more >>

Dispose not called?!
Posted by joe at 11/29/2003 3:16:56 AM
Hi, If I have a form and I show it like this: MyForm f=new MyForm(); f.Show(); when I close the form by clicking the close button MyForm.Dispose() is called. When I show the form like this: f.ShowDialog(); MyForm.Dispose() is not called. Is this a bug or there is a reason for th...more >>

running another form
Posted by Omar Alawna at 11/29/2003 12:20:31 AM
Hi..I have the main form setup..and now i had to add another form to the project..when i run the form2 from form1_load event like this: results.show() ,the form will show but without any of the properties i specified for it..and no controls on it even..form1 runs fine though..How can i fix this....more >>

MDI Child form Min Max Button
Posted by Raghu at 11/28/2003 11:29:57 PM
Hi All I got MDI project in c#. When i load child forms in container i want to hide or disable Min,Max and Close buttons of child form. Is there any way to do this? Thanks in advance Regards Raghu ...more >>

How to cause a line break in a textbox
Posted by Kueishiong Tu at 11/28/2003 9:58:55 PM
I have a multi-line textbox. How do I cause a line break in the textbox?...more >>

Using sqldmo.dll in .Net Windows application
Posted by Kirti at 11/28/2003 9:54:44 PM
I have created Windows application in .Net. Here I want to display all SQL Server names. For this I am using sqldmo.dll.I have added this dll into references but it gives exception "QueryInterface failed". I have this in VB.It's working fine there. Can anybody help me in solving this probl...more >>

TActions
Posted by Craig Kenniston at 11/28/2003 9:41:22 PM
I come from Delphi. In Delphi there is a component named TAction. This TAction helps you to synchronize menus&buttons and other ways to call a form in that way, that you link certain menu item to an action, if you have a button that open the same form of that menu item, then you link that ...more >>

DataGrid Cant sort if i need to know which row is selected.
Posted by Rajesh.V at 11/28/2003 8:11:40 PM
This is the scenario. 1. I am binding the customer table to a datagrid 2. Dont want the customerid to be shown in the datagrid, so am setting ColumnMapping = MappingType.Hidden 3. Now when the user selects a row, its index and the tables row index is the same, so i can access, the record ...more >>

DataGrid
Posted by Jay at 11/28/2003 6:58:14 PM
I wrote a few windows programs with .NET some time ago. Since then all my work has been with ASP.NET. I was not that impressed with the Microsoft DataGrid control. Are there any improvements planned for the DataGrid that comes with .NET? What 3rd party DataGrid controls do you recomm...more >>

Window Forms with .NET 2.0
Posted by Jay at 11/28/2003 6:55:18 PM
A lot has been said about the new improvements in ASP.NET (Whidbey). Are the any window forms improvements in .NET 2.0. Jay...more >>

Vanishing application config file problem with VS 2003
Posted by Jeff at 11/28/2003 2:05:27 PM
I recently installed the VS 2003 upgrade and a problem showed up (related or not) where the windows form application configuration file (ApplicationName.exe.config) is deleted during the application startup. The file is present in the executable directory and after startup it is gone. If...more >>

Problem with threads
Posted by Juan Carlos at 11/28/2003 12:03:57 PM
Hi I have a method to create and start a thread, also I have an event to know when this thread finish, but when a I call the method two or more times, the event execute its code this number of time for each thread that I have created. For example If called the method twice, it creates t...more >>

Assembly.LoadFrom Problem
Posted by Keith at 11/28/2003 11:45:15 AM
I'm having problems. I have a table set up in my Database that stores the locations of the dlls to all my programs. It loads the list into a menu and launches the program based on what the User clicks. Here is what my onClick looks like: 'GET A DATAROW FROM DATABASE OF THE PROGRAM ' THE...more >>

Alignment of columns in datagrid
Posted by Tim Conner at 11/28/2003 11:39:41 AM
It seems that all fields in a standard DataGrid default to align to the left, including numbers. I can't find the "columns" property of the grid, to change the behavior of the particular columns. Where do I change that ? Regards, ...more >>

Convert ASCII
Posted by Jeremy at 11/28/2003 9:57:02 AM
How do I get a string representation of an ascii value ? I'm trying to work out whether a string contains a carriage return, so I need a string representation of ascii value 13, in c# Please help ! ...more >>

Dissapointing Menu/Toolbar in .NET Form editor
Posted by Mad Butch at 11/28/2003 9:08:00 AM
The menu's and toolbars in the .NET Developer Studio (C++) have a blue rectangle behind them, and the active icon has a shadow beneath it. I was expecting my applications to look like the developer studio, but the menu and toolbar still look like the ones in the old screen editor (VS6). So toolbar...more >>

How to requery a form
Posted by Tore Gylver at 11/28/2003 6:48:13 AM
I have a windows client working with a web service. From the windows client I have done an update of a field in the web service database by means of a command (not via changes in windows client dataset). What should I do in Visual Basic to refresh/reload the windows client form with the ...more >>

Read Only Textbox??
Posted by Andy at 11/28/2003 2:13:54 AM
Hi I wish to create a ReadOnly textbox to display information that I do not wish the user to change, but I still wish to retain the scrollbar functionality etc. incase the text is larger than the displayable area. This was a simple property in VB6 but seems to of disappeared, progress?...more >>

DataGrid and keyboard navigation problem
Posted by Ralfs at 11/28/2003 12:28:07 AM
Hi, recently we had to design some forms where pure keyboard navigation is mandatory. I cannot get out of the datagrid at any arbitrary location, grid catches the Tab and uses it to move around inside itself. KB says that KeyPreview for form won't work in case of datagrid and this is by desi...more >>

how can i use dockable window using c#?
Posted by Harry at 11/27/2003 11:45:34 PM
Dear all, how can i use dockable window using c#? Thank you. ...more >>

Threads
Posted by Juan Carlos at 11/27/2003 8:52:00 PM
Hi How can I associate an event to a thread??? I need to know exactly when a thread finish. Is it possible??? Regards ...more >>

Problem with sorting listview in descending order
Posted by James Zhuo at 11/27/2003 2:59:15 PM
Hi all I have a bit of a problem sorting the columns of a listview in descending order. The following code has no problem sorting the listview in ascending order. At every column click i switch the sorting order. Using VS.NET breakpoints I can see that the ListView SortingOrder is cha...more >>

Design mode at runtime
Posted by Marc L'Ecuyer at 11/27/2003 11:56:40 AM
I have a form in my application. This form contains some controls + a panel with controls in it. I have to be able to move, resize, ... the controls in the panel (only those in the panel). Is it possible to use the design functions of the framework to do that? All the sample that I've seen use a ...more >>

can not set the tablestyles to a data grid
Posted by Cyrus at 11/27/2003 11:41:43 AM
i defined a dataset and set it instance as the data source of the data grid but i cannot find the mapping name of the table of this dataset inside the tablestyle property, i dont know how to set the style ...more >>

DataGrid ColumnHeader truncated
Posted by Ingo Eichenseher at 11/27/2003 11:16:40 AM
Hi, If i use DataGridTextBoxColumn and set its Alignment Property to HorizontalAlignment.Right i get some HeaderText truncated at the right end, especially those ending with the captial Letter 'W'. How to avoid that ? Thanks Ingo ...more >>

.NET IDE 2002 and 2003 resources compatibiliy
Posted by Alec Solter at 11/27/2003 10:59:51 AM
Using .NET IDE 2003 I created a simple form that includes a button with image. When trying to run this project on old .NET IDE 2002 it is throws the following exception: System.InvalidCastException: Specified cast is not valid. It's happens on the following line in standard Initializ...more >>

Setting a tooltip's background colour
Posted by Marc Scheuner [MVP ADSI] at 11/27/2003 8:13:40 AM
Folks, How can I change a tooltip's background colour? I expected to find a "backgroundcolor" property on the "ToolTip" component - no such luck.... And there's no method to call from code, either..... hmmm.... Any ideas? Marc ======================================================...more >>

Any solutions?
Posted by leonardfurby NO[at]SPAM hotmail.com at 11/27/2003 6:15:19 AM
Hi. I have seen alot of cases on google where people having the same problem, but I have not seen a comprehensive solution yet. I really hope someone can solve this once and for all. I have created a SmartClient (No touch deployment) and it runs Ok. But when I change the program and retry it ...more >>

DataGrid multiple selection
Posted by Andrew Milford at 11/27/2003 5:42:05 AM
Using the DataGrid control. User can select multiple rows by click and drag of mouse Anyone any idea how program can determine which rows are selected? ...more >>

Compress traffic to Web Services
Posted by gisa at 11/27/2003 4:10:27 AM
Subject: Windows distributed app Data layer: SQL Server ( on separate machine ) Middle layer: WebServices on IIS ( on separate machine ) Questions: How could be ( SOAP ) traffic between Client and WebServices compressed at least for larger DataSet-s. Thank you in advance. Gisa ...more >>

KeyDown evnet of the textBox will not be fired
Posted by james ou at 11/27/2003 2:13:04 AM
hi, everybody, After the user enter certern text(for example "apple"), I do something in the textBox_KeyDown evnet hander. Firstly, it work well. But after user enter text some times (about 111 times), the KeyDown evnet of the textBox will not be fired(or exactly,the evnet hander code will ...more >>

Dynamic form loading...Help pls..
Posted by Sachi at 11/27/2003 12:55:08 AM
Hi, I saw your article in msdn about loading forms dynamically. It is really a great article. URL: http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnadvnet/html/vbnet10082002.asp Sorry, soo far i never had tried anything with winforms..was working much with webfo...more >>

Converting Double to Date
Posted by Brian P. Hammer at 11/27/2003 12:55:07 AM
All,=20 I have a function which returns a double and is show in a label. I need = to convert the double to a time format. For example, if my double is = 1.73 then the time should be 2 hours and 13 minutes. How can I go about = this? Thanks,=20 Brian P. Hammer...more >>

How to handle Control-C (copy) AFTER form has done it
Posted by Amil at 11/27/2003 12:36:54 AM
I have a dialog box that has an icon for "paste". I want to enable it if there is text on the clipboard. How do I check for other parts of my dialog (e.g. textboxes) that may allow a ctrl-c. If my form intercepts KeyPress or ProcessDialogKey, it seems that the data has not yet been put on t...more >>

SEHException when running on XP
Posted by Lars Jonson at 11/27/2003 12:07:52 AM
I'm developing a WindowsApp using VB.NET under .NET 1.1. Development and target OS is W2K SP4. Everything is running fine in W2K but when I try to run under XP some strange things happens when closing the application dialogs. A SEHException is thrown somewhere where I cannot catch it, the ...more >>


DevelopmentNow Blog