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 > may 2006 > threads for may 8 - 14, 2006

Filter by week: 1 2 3 4 5

Start form from a console application?
Posted by Armin Prosch at 5/14/2006 11:59:01 PM
Hi, I want to start a windows form from a console application within a new thread. Is it reasonable to use the BackgroundWorker component for that? Are there any other/better startegies for accomplishing this task? (The form is used to display an encoding preview from windows media encoding...more >>


DataGridView binding problem
Posted by Larry Charlton at 5/14/2006 9:40:02 AM
I'm trying to bind a DataGridView to a generic List of objects. My problem is if I initially bind a DataGridView to a list with no entries, I can't seem to get it to rebind to anything else successfully after that. Below is a sample of the sort of thing I'm trying to do. The form has a D...more >>

ESC/POS commands for printer.
Posted by Radhakrishna Banavalikar at 5/13/2006 11:53:01 PM
Can some angel tell me how to send HEX commands using the Whidbey Serial port component [language C#]? I want to drive a printer that accepts commands like "GS V", "LF", "ESC * ...." etc. Thanks in advance. -- Radhakrishna Banavalikar Vasant-Vihar, Thane, INDIA....more >>

Hide an application to taskbar by the clock
Posted by Backwards at 5/13/2006 11:27:43 PM
Hi everyone. I'm using visual studio 2005 and programming with VB. Is there anyway to have your application hide to the taskbar by the clock. The likes of the way norton anti virus auto proctect and outlook hides there with just there icons showing. Anybody know how to do this? Regards, ...more >>

getting hosting form for a component.
Posted by Peter Rilling at 5/13/2006 9:09:28 PM
Hi. I have a component that interacts with the main form. I would like to have this component, when initialized, to automatically get a reference to the form that is hosting it. I was hoping for something as easy as finding the form that a control is attached to. However, I component has...more >>

plse tell me good pointers wherein I can get page lifecycle for windows forms!!!!!<eom>
Posted by B. Deepak at 5/13/2006 3:58:25 PM

Adding a blank row to top of ComboBox
Posted by Jay Douglas at 5/13/2006 10:24:56 AM
I'm binding an IList to a WinForm combox box DataSource (ComboxBox.DataSource = myList) and am unable to add a blank row to the top of the combox. I want users to have the option to not select a value. I've tried the following things: myBox.Items.Insert(0, null); ((IList)myBox.DataSour...more >>

Accessing & Using The Modem
Posted by Mr. Murad Jamal at 5/13/2006 5:11:01 AM
Hi guys, I'd appreciate it if you link me to an article that describes how to access the modem and making/receiving voice calls over it, using vb.net (windows forms or so ) !!! thanx a million in advance !!...more >>



ObjectDisposedException - cannot access a disposed object called "Icon"
Posted by Clive Dixon at 5/12/2006 3:18:12 PM
I have some code using forms and ShowDialog that was previously working perfectly well, but now throws ObjectDisposedExceptions with message 'ObjectDisposedException - cannot access a disposed object called "Icon"' when ShowDialog is called. Anyone had this kind of error before and any ideas...more >>

creating a Form(Of T)... Is this insane?
Posted by fuiru2000 NO[at]SPAM yahoo.com at 5/12/2006 2:37:49 PM
Basically, what I'm trying to do is as follows: in one .vb ... Friend Class frmBase(Of T) Inherits System.Windows.Forms.Form Dim m_Obj as T .... End Class in another .vb ... Friend Class frmDerived1 Inherits frmBase(Of SomeConcreteType) .... End Class The code itself wo...more >>

Report Page Numbers
Posted by Ron Allen at 5/12/2006 10:35:37 AM
Is there a way to get the page number and number of pages for a report (rdlc) in the designer? I can't seem to find anything that would put this out in a text box. I'm trying to replicate what an old MS/Access report shows and I can get just about all the items except calculated page numbers...more >>

RichTextBox line spacing
Posted by PIEBALD at 5/12/2006 9:15:01 AM
Is there a way to alter the line spacing in a RichTextBox?...more >>

Best Way to Close an application?
Posted by Peter Hurford at 5/12/2006 8:53:52 AM
I have a .net 2.0 application which sits in the taskbar. When the user right-clicks its icon they get a menu which allows them to either go further into the application, or to quit out. The application is designed to sit in the background all the while the user is working. Standard stuff. ...more >>

DataGrid new Column Style not creating new rows correctly
Posted by k992637 NO[at]SPAM yahoo.com at 5/12/2006 6:51:43 AM
Dear All I am having trouble with my datagrid custom column style which shows a combo box. I have derived from a DataGridTextBoxColumn for simplicity. It is almost working exactly how I would like it to, but I have problems with the new row behaviour. I would really like it to behave in th...more >>

Viewport Question and Something not implementent?
Posted by Tom at 5/12/2006 5:56:02 AM
Hello, I am using .NET 2.0 and building a custom control. There are multiple graphics elements that I would like to render on the surface. When drawn together they form the complete control image but need to be managed separately because they might have different scale, units, move indend...more >>

Zoom effect on winforms
Posted by eduwushu at 5/12/2006 2:39:01 AM
Hi there, I have a custom control which i want it to draw ina rectangle a picture and i have two buttons to do zoom in and zoomm out. I want that when i click on one of these buttons make a zoom on the drawing to see with more detail a region of it and scrollbars appear in the sides of teh ...more >>

New Rudraksh Free Web Browser Developed in VB.NET
Posted by hemant at 5/12/2006 2:03:43 AM
Rudraksh is a free Web/Internet Webbrowser. Please check the link to download it http://www.planetcreativa.com/rudraksh.htm ...more >>

MDI App without parent form
Posted by nick_nw at 5/12/2006 1:44:52 AM
Hi. Does anyone know how to create a visual studtio type GUI using C#.Net. I.e. an MDI application, but where there is no real parent form, rather a set of floating, dockable child forms that will 'stick' together, etc.? I'm waiting for VS.Net 2005, so I don't have VS installed at the momen...more >>

Memory usage
Posted by Jared at 5/12/2006 12:00:00 AM
Hi, What is the typical memory usage for .NET application 2.0. My app is around 30 meg, but sure sure that older version was around 2 megs. What would cause dramatic change in size? ...more >>

Data binding problem
Posted by Gabriel at 5/11/2006 8:22:25 PM
Hello, I'd like to make something easy, in theory. In C#, I have a database, and some textbox, I'd like to bind theses textbox, that's that work. But I'd like update the change (update database) and I push on a button, I tried the Update of the DataAdapter but that's not work. Could ...more >>

Offline Block?
Posted by dave at 5/11/2006 7:23:01 PM
I am creating winform app vs.net 2005 and was looking for good patter/practice for offline/online app. In particular how to best store local and sync with server when online. I noticed there is a MSFT block but it is dated 2004. Is there an updated block or is this still a best practice? ...more >>

ToolStripComboBox Mimimum Width
Posted by Kevin at 5/11/2006 1:35:54 PM
With .NET 2.0, insert a ToolStrip onto a form and add a ToolStripCombobox item. I don't know if I'm flat out missing something, but I cannot set the width of a toolStripCombobox any smaller than 75. It just seem ridiculous. toolStripComboBox2.Size = new Size(35, 25); When you execute th...more >>

could not find a part of the path...
Posted by MrGrundh at 5/11/2006 12:45:01 PM
Could not find a part of the path... I have developed an application that has a filetype, Filename.llsx, association. My problem is tha on some computers i get a System.IO.DirectoryNotFoundException when i try to download files of my filetypes from the internet. Here is the code that tr...more >>

Caching Smart Client Lookup Data
Posted by Jason at 5/11/2006 12:31:02 PM
Hi, We're currently developing a smart client application. It is a WinForms UI that uses WebServices to retrieve data from an Oracle database. The application will have several forms that will use a relatively static set of tables for populating drop-down lists. I'm thinking that caching...more >>

Combobox does not accept key stroke
Posted by amit.vasu NO[at]SPAM gmail.com at 5/11/2006 11:56:45 AM
Hi I am using .net 2.0 windows forms. I have a combobox with following properties. DropDownStyle : DropDown AutoCompleteMode : SuggestAppend AutoCompleteSource: Listitems Now When I run the form and go to the combobox and type something it works just fine. combobox suggest items as well...more >>

Custom windows form border, TransparencyKey Flicker
Posted by lissbpp at 5/11/2006 11:50:02 AM
Hello, I've got a question regarding a small amount of flicker I am seeing when a form is first drawn that has a transparent background. I have a custom panel that I'm drawing myself which takes up all of the client area of a form (rounded corners, gradients etc). I have set the ba...more >>

Creating a GraphicsPath object from a bunch of points
Posted by Paul at 5/11/2006 10:49:01 AM
I have a whole collection of points, they are actually Latitude and Longitude points that make up a specific area. The points that I have make up the outer edge of the are as well as the interior of the region. What I'm looking to do is create a Path object that will completely bound all o...more >>

.NET SQL Query Designer Control
Posted by Bing at 5/11/2006 8:01:03 AM
Does anyone know of a .NET control for building SQL Query command that can be embeded in a Windows Form? I am developing a Windows form application and want to give user a visual tool to design SQL querys (SELECT only). The designer needs to be able to work with a .NET dataset directly wit...more >>

Chart on Windows Form VS2005
Posted by dflatcsharp at 5/11/2006 7:08:02 AM
I have VS2005 Team Edition for Software Developers Version 8.0.50727.42 with ..Net Framework 2.0.50727 I have created a Windows Form Project. I have installed OWC11. I have Office 2003 installed on my machine. I have added references to Microsoft Office Web Components 11.0, Microsoft.Office...more >>

ListView selection
Posted by JL at 5/11/2006 6:07:03 AM
I have a ListView control, and anytime I manually set the selected item, the original item OnSelectedIndexChanged event fires twice. Here is a sample of what I am doing in the OnSelectedIndexChanged function: if ( listView1.SelectedItems.Count == 1 ) { MessageBo...more >>

MDI Form question
Posted by jimmy at 5/11/2006 2:53:01 AM
hi, I am new to winForm development. When I am using the .NET 2.0 MDI Forms, I want to close one of the child form at the very begining. For example, I want to close Form1, so I write public Form1() {this.close();} And in the MID Parent, I write form...more >>

Datatable Row Number
Posted by GhanaShyam at 5/11/2006 12:13:02 AM
Hi All, I am using a datatable to store some data from the xml. I need the row number where a particular string exists (Note: All values in datatable are unique). Please help me in this regard....more >>

How to check if application is in debug mode
Posted by Debi at 5/10/2006 10:31:01 PM
Hi, Is there any way to check if the application is in debug mode or running from the exe. Thanks in advance, Debi...more >>

Application Settings
Posted by WineNCheese at 5/10/2006 5:44:14 PM
I'm just venting. I finally got around to converting a big WinForms app for my biggest client to .NET 2.0. I've heard all along that application settings are now writable, which has always been one of many bones of contention with .NET 1.1 for me. So I get to the point where I am going to...more >>

Customization In Web Application
Posted by Andrew Hayes at 5/10/2006 2:13:22 PM
All, Using VS 2005, C#.NET, SQL Server 2005, W2K3. We are developing a web application that would be shared by numerous customers for information management. Some of those customers want variations on the usual form layout. For example, we have a form where the user can enter their depe...more >>

Type of member 'DataReader1' is not CLS-compliant.
Posted by Jared at 5/10/2006 1:55:58 PM
Hi, Why do I have this error in one project but not another? Type of member 'DataReader1' is not CLS-compliant. ...more >>

How can I make a modeless form receive input when a modal form is open?
Posted by amacd NO[at]SPAM hotmail.com at 5/10/2006 1:27:44 PM
>From my main form, I can open and access a modeless form. However, if I then open a modal form (from the main form), the modeless form will no longer accept keyboard and mouse input until the modal form is closed. Is there a way to allow the modeless form to continue to receive input? As an...more >>

Moving images fluently
Posted by Sergey Pikhulya at 5/10/2006 12:46:02 PM
I am looking for technique which allows to fluently move several images over the form without using DirectX & Open GL. Several images should be moved simultaneously but with different speed. Also one more feature: I should be able to change their (moved images) opacity during moving. Does anyb...more >>

Setting focus to a control within a usercontrol
Posted by MrNetDeveloper at 5/10/2006 8:19:03 AM
I have a user control that contains a grid. I want to set focus to the grid when the user control receives focus. I have tried calling grd.focus() for the gotfocus of the user control, but that doesnt work. Any ideas? Thanks...more >>

Get Notification when an external application started
Posted by vemulakiran NO[at]SPAM gmail.com at 5/10/2006 6:44:43 AM
I have create two windows applications called WinAppX andWinAppY. First I opened the WinAppX . When ever i opened the WinAppY ( second app ) , the WinAppX should get notification , after that these two app should communicate each other someway. How can i do this.. ...more >>

autosrollbar does not activate
Posted by NaderTawil at 5/10/2006 5:41:02 AM
I have a windows form with a button on it. The button anchor property is right and the forms autoscroll property is set to true. When adding a second control (also anchor.right) to the left of the viewable area, the scrollbar does not activate. Why? When using anchor.left and adding controls ...more >>

Problem with no touch deployment of application which has dynamically loaded assemblies
Posted by Ravi at 5/10/2006 3:57:02 AM
We have an application which dynamically loads an assembly and creates instances of classes. For this we have written a factory class which reflects the assembly and creates the classes and returns the created objects as plain objects. The caller method casts the object returned by the object fa...more >>

TextRenderer problem
Posted by Xafier at 5/10/2006 1:39:28 AM
Hi, I'm creating a control that overrides ListView and so I'm working on redrawing everything myself with some changes here and there... But I'm having a problem with drawing the text inside the rectangle on LargeIcon mode... I thought I'd finally discovered the solution with TextRenderer b...more >>

Custom Control Design Time Property Selector
Posted by Coco at 5/10/2006 12:41:02 AM
I'm creating a custom control with design time support, i wish to create the a property which is xml document and let the deisgner to use the property selector in VS.Net to browse to the xml file and attach it to the custom control, how can i do that?...more >>

How to attach to a process middle tier for debugging
Posted by MrNetDeveloper at 5/9/2006 7:35:01 PM
Hi, I'm consulting on a project that has two solutions, a client solution, and a middletier solution. The middle tier solution is hosted in asp.net. I want to debug something in the middle tier, and I've been told that I have to attach to the asp.net process. So I add a breakpoint on th...more >>

TextBox Size.Height
Posted by Mark Atkinson at 5/9/2006 4:29:02 PM
Is there any way to control a TextBox Size property's Height? Besides making it Multiline? Everytime I set the Size, it always reverts back to Size.Height = 20 (or whatever value based on the current font, I think). I've tried setting the Min/Max Size but that only seems to hold during design...more >>

Form -> Panel -> Child Form -> Resize -> Bug?
Posted by Mark Newmister at 5/9/2006 4:06:48 PM
I'm using the following code to show/hide a form located inside a panel that is located on my main form. The panel is set to DockStyle.Fill so that when the main form is resized the panel is also resized. The problem is that the included child form never resizes beyond it's initial starting ...more >>

deployment
Posted by portos at 5/9/2006 3:45:31 PM
i was finish project with visual basic 2003 + SqlCE database for POCKET PC, and now i have to create setup can someone help me a little, couse all that is realy confused for me :-(...more >>

Best way to organize large project
Posted by craig via DotNetMonster.com at 5/9/2006 2:46:36 PM
I am working on rewriting a Fox 7 ODBC app. and teaching myself .NET in the process. So far I have over 130 of the screens rewritten, but debug performance is terrible. It would be much better if I had each screen as seperate solutions, but then I'm constantly having to remove and readd refer...more >>

how to raise the click event by code
Posted by Fanor at 5/9/2006 12:39:10 PM
Hi all, I want to raise the event click of a control by code. How can i do that ?? ...more >>

How to get ValueChanged event from PropertyGrid collection using default editor?
Posted by tribbles at 5/9/2006 11:36:57 AM
When makign a change to a collection using the default editor in the property grid, you do not get a value change event. Now I know I can code up my own editor and deal with the valeu change myself, but I have 40 lists I'd have todo this with and it seems like there should be a way to get the d...more >>

How to disable search i ListBox/ComboBox
Posted by BVM at 5/9/2006 10:44:50 AM
Hi, All: In ListBox and ComboBox when you type a letter, say 'k', it will jump to = the first item starting with 'k'. I want to disable it and do my own = search that can search more than one letter, like 'kite', not just one = character which ListBox currently does. But I cannot disable ListB...more >>

tool window & shortcut keys
Posted by Lloyd Dupont at 5/9/2006 10:42:30 AM
In my application I have some tool window. some of these tool window do accept key input. yet I would like key shortcut (CTRL+S, F2, etc...) to be handled by the main menus of my main window. how could I achieve somethink like that? ...more >>

Problem with Waiting Form Owner
Posted by esquif at 5/9/2006 10:41:28 AM
I have a process that take some time to process data in formA. While processing the data I wish to pop a "waitingform". The waiting form have it's own thread and show the process advancing between 0 and 100%.There is a timer within the Waitingform, on each tick the progress percentage is read an...more >>

Consolas
Posted by Jared at 5/9/2006 10:21:04 AM
Hi, Many people using this font...Is there a system or screen requirment. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4807-8A86-B3D36FAB68D3&displaylang=en I could get used to it as it probably save screen space. ...more >>

Drag & Drop Multiple Items between ListBoxes
Posted by BVM at 5/9/2006 10:14:56 AM
Hi, All: Do you know how to do drag & drop multiple items between listboxes? I = can only do with single selection. Thank you, Dennis Huang...more >>

capture application output
Posted by George Lake at 5/9/2006 9:40:35 AM
Hi, How can I capture the text output of a console app? For example, I would like to capture the outpur of "qwinsta" Thanks. ...more >>

How to kill a terminal server session (VB.NET)
Posted by George Lake at 5/9/2006 9:29:45 AM
Hi, Is there a way to kill a Terminal Server session from vb.net? I have to constantlly access our servers to reset ureser that get hung. I would like to have a web interfave that I can access via my PDA/Phone. It dose not have to be a wab page that does this. I could write to a queque that ...more >>

scroll user control?
Posted by Serg at 5/9/2006 7:30:02 AM
I am painting my control entirly and need it to show scroll bars when it's being resized below it's min size. Please suggest how to go about this. Simply setting autoscroll to true does not work. Thansk in advance....more >>

grid component similar to Excel
Posted by Vigj at 5/9/2006 2:00:01 AM
Hi all I need a suggestion. I have a customer that wants the grids in the application i'm going to develop lokoking as much as possible as Excel grids. I suppose he wants the filtering possibilities of Excel in the header of the grid, the possibility to copy&paste from one cell to the other e...more >>

how to point the cursor in specific cell
Posted by prabatechnical at 5/9/2006 12:55:02 AM
Hi everybody, im working in infragistics ultragrid. Can any one know how to get the cursor in to active cell . i need to check the empty field before leaving cell. if its empty then cursor should be forced to come into the empty field. ive tried in beforedeactivecell event but the cursor is not...more >>

infragistics how to get the cursor in specific cell
Posted by prabatechnical at 5/9/2006 12:51:01 AM
Hi everybody, im working in infragistics ultragrid. Can any one know how to get the cursor in to active cell . i need to check the empty field before leaving cell. if its empty then cursor should be forced to come into the empty field. ive tried in beforedeactivecell event but the cursor is not...more >>

How to control date format in combo
Posted by Steve Marshall at 5/8/2006 11:10:31 PM
Hi All, This SHOULD be simple, but I just can't see it... I have a combo box which uses a dataset as its list source. The displayed member is a date column from the underlying table. When I run it, the date in the combo is formatted as d/m/yyyy hh:mm:ss, which I don't want - I just want t...more >>

Processing Enter on Form Controls
Posted by Todd Brown at 5/8/2006 8:43:12 PM
I've been having trouble correctly processing the "Enter" key on form controls. Here's what I've done: Set the "AcceptsReturn" property to true Overridden IsInputKey and KeyDown; on KeyDown, if the "Enter" key was pressed, I set e.Handled to true. So now I'm receiving the event, which is...more >>

Newlines in TextBox
Posted by Todd Brown at 5/8/2006 8:33:10 PM
I'm trying to programatically add new lines to the content of a (System.Windows.Forms.)TextBox and, while I have found a solution, I feel that it can't be very efficient. There must be a better way. I first tried: textBox.AppendText( "\n New line" ); But that didn't work. Nor did v...more >>

Disabled DataGridView Textbox column
Posted by Sunny at 5/8/2006 4:37:08 PM
Hi, I am having difficulties creating a derived class for DisabledDataGridViewTextBoxColumn and cell when the VisualStyle is not supported. Basically I am down to either using ControlPaint or Graphics to achieve this. But with Graphics, I am not sure how I can make them diabled. Below are ...more >>

Datagridview customize data display URGENT!!!!
Posted by MSDN at 5/8/2006 3:25:23 PM
Is there a way to show data bound to the datagridview vertically instead of the default horizontally? Any samples or guidance would be greatly appreciated. Thanks in advance... Chris ...more >>

Smart Client - IIS error
Posted by Jeff at 5/8/2006 3:09:01 PM
I'm writing the download stub for a Smart Client, following the QuickStart samples that come with the Updater Block 2.0. Tested against my local IIS, the stub works perfectly, but when I deploy it to a server, I get "The system cannot find the file specified" in my browser. Local Machine i...more >>

PrintDialog.UseEXDialog problem
Posted by Jean Paul Mertens at 5/8/2006 2:54:54 PM
Hello All, If I use - ContractPrintDialog.UseEXDialog = true; - My dialog does not get focus after showing thus having a caption (dark bleu) of the active window, I always have to click on the dialog before I can type or before a button responds. When I do not use the extended dialog ...more >>

PrintDialog problem
Posted by Jean Paul Mertens at 5/8/2006 2:49:31 PM
Hello all, IS this a bug or what am I doing wrong; I make a print Dialog ContractPrintDialog = new PrintDialog(); I set the property's of my PrinterSettings; ContractPrintDialog.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal; I show my dialog. myPrint = Contr...more >>

"line break" disapears in text box after resizing the form
Posted by Philip.Arbin at 5/8/2006 1:58:09 PM
I put a text box on a form and set it to "multi line". I use it to show some log information. Every time there is some information, I use TextBox.AppendText method to add a information string and a "\n" into the text box. There will be a line break after the infromation string for the "\n" c...more >>

how to create dynamic event handlers
Posted by mike at 5/8/2006 1:20:47 PM
i'm building an desktop windows app in C#. the main menu for the application will be different depending on the admin rights of the user. i've built the entire app. in delphi and i simply activated or deactivated the menu items in that case, but all the menu items are visble. i'm hoping / thinki...more >>

Why my NumericUpDown DataGrid Column can't set the value for new r
Posted by Kent Liu at 5/8/2006 2:16:02 AM
I've make some NumericUpDownColumn class that inherited the DataGridTextBoxColumn and override the SetColumnValueAtRow method as below: protected override void SetColumnValueAtRow(System.Windows.Forms.CurrencyManager source, int rowNum, object value) { try { base.SetColumnValueAtRow(sour...more >>


DevelopmentNow Blog