Groups | Blog | Home


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 2006 > threads for october 1 - 7, 2006

Filter by week: 1 2 3 4 5

UpdateSavedCheckedItems - NullReferenceException when removing a ListViewItem
Posted by Martin Maat at 10/7/2006 10:40:47 PM
Hi, I have the strangest thing... I am porting a C# .NET framework 1.1 application to framework 2.0. I got slapped around by the new framework on my unsafe use of threading, requring me to marshall all events coming from worker threads to the main UI thread before calling into controls. ...more >>


Renaming Windows Forms and Files
Posted by StephenJ at 10/7/2006 5:21:02 PM
These things are rather basic, but I can't seem to find an explanation in MSDN. I'm using VC++2005 Professional. 1. What steps must I take to rename a form? I currently select the form in the Class Explorer, and then in the properties window, I enter a new name under "Name". This seeme...more >>

retrieving connectionstring programattically
Posted by guyndjeng at 10/7/2006 5:03:02 PM
Hey developers I 'm trying to migrate the following code to vs2005 but i'm getting an error this is the code in vs2003 in the app.config file <add key = "ConnectionString" value= "a valid connectionstring" /> in the code view string my_connection = System.Configuration.Config...more >>

Main UI is losing focus on updating background thread UI
Posted by AtulSureka at 10/7/2006 9:07:01 AM
Hi, I have an application which performs set of operations. There is status window (different from main application UI) which shows the status of current operation. When I change the status in the status window then the main application losses focus. I am changing the status from main a...more >>

Windows forms slow drawing of controls
Posted by Chaos at 10/7/2006 6:38:01 AM
When I show a form composed of some 20 controls, including one complicated control, it takes about 2 seconds from the moment of form.show() to the point where everything is drawn. What can I do so that this doesn't happen, or that I at least hide it from the users ? I've tried double bufferi...more >>

DataGridView
Posted by Erencan SAÐIROÐLU at 10/6/2006 5:38:21 PM
Hi To All, I've a typed dataset and datagridview. I add a new row typed dataset but datagridview not refresh. I've unchecked datagridview "enable adding" "enable editing" on the grid when i design mode. my code is here... KeyGeneratorDataSet ds = new KeyGeneratorDataSet(); ...more >>

Disable execution in designer time
Posted by thiago at 10/6/2006 11:17:45 AM
Hi! I did a form that inherits from one wich load data through a datagriddatasource. I need to change only the name of the table on form that inherits, but in designer time (of this form that inherits), the VS try to load data based on parameters of parent form. How can I disable it? Thanks i...more >>

SplitContainer and form resizing issue
Posted by Steve Randall at 10/6/2006 6:40:02 AM
I have a split container control on a resizable form. The split container is also anchored Top, Bottom, Left and Right to the host form. When the form is visible and I move the splitter to resize the panels everything works ok. But, when I either move the form, or, resize the form, even by jus...more >>



Strange form editing bugs
Posted by AndrewDucker at 10/6/2006 6:38:17 AM
We have a bunch of usercontrols, some of which have problems when you open them - sometimes for no reason we've been able to track down. Acting on a tip I read somewhere online, I decided to try running devenv from another instance of the IDE, set Exception Checking to break whenever anything ...more >>

about multithreading
Posted by Ravindra at 10/6/2006 12:00:00 AM
Hi all, i am using multthreading for string parsing.When i bind the data to datagrid, all the controls are visible false.I could able to get the data, but not displaying.Also when i say form.visible to true, then 2 forms are dispalying with the same pointers.So please help me in solving this ...more >>

Two TextBox - same data field
Posted by ftrl at 10/6/2006 12:00:00 AM
Hello, On a Winform, a dataset and a binding source. I would like to have 2 TextBox to the same column. I bind the Text property to the column like this (extract from Form1.Designer.cs) : textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSource1, "Column1",...more >>

How to clear a combo box .net 2.0
Posted by Lamborghini at 10/5/2006 5:56:02 PM
Hi, I am trying to clear a combo box at runtime. I am using the remove method, and then I use the refresh method in order for the combo box to display properly. But it does not work. I seemed to be missing something. Can anyone help? I have been away from this for a while. In C#: iCnt = c...more >>

DataGridView - refresh data and select the same row you had before
Posted by Mark at 10/5/2006 4:41:10 PM
I'd like to refresh my dataGridView and select the same row that was previously selected. Unfortunately, the rows location may have changed during the refresh. Assuming one field is unique and I've saved this value prior to the refresh, do I have to iterate through all the records until I ...more >>

DataGridView ComboBox
Posted by Dave T at 10/5/2006 3:15:02 PM
In the documentation, I see an example of how to capture the SelectedIndexChange of a DataGridViewComboBox. Does anyone know how to identify which combobox you've got on EditControlShowing if you have more than one? stupid or otherwise, I tried e.control.name (and some others) with no luck...more >>

How to verify that Windows 2003 server was upgraded from Windows 2
Posted by Souvik Mukherjee at 10/5/2006 3:04:04 PM
Hi All, How do we verify that a server running on Windows 2003, is either migrated/ upgraded from Windows 2000 or had been through a fresh install of Windows 2 003? Repeating.. how do i make sure that a Windows 2003 server is migrated/upgra ded from Windows 2000 or not? Regards, Souvi...more >>

form startup events
Posted by JB at 10/5/2006 2:13:02 PM
I have two related questions. I have looking in the ide help and have not been able to find the answers. First, I need to run some initialization code early in the life of my forms. I have a base class form and my first thought was to put the code in teh New method after the initialzeCompon...more >>

TreeView Nodes and ContextMenuStrip
Posted by andersch at 10/5/2006 1:50:02 PM
Hi I would like do display a custom ContextMenuStrip when I right-click on the nodes in the TreeView. Depending on the selected TreeView node, some items in the ContextMenuStrip must be deactivated. How can I disable items in a ContextMenuStrip control when I right-click on different no...more >>

Preventing a "Maximize" when double-clicking forms top bar
Posted by michael at 10/5/2006 11:42:01 AM
Even if I remove the resizing icon (bottom right of form) and remove the control icons (upper right) I can't seem to prevent inadvertant form "maximizing" when the top bar is double clicked. How can I supress this? -- Michael Hockstein...more >>

text box press return key do a button click
Posted by frogman7 at 10/5/2006 10:22:35 AM
the form I have has 5 buttons and 3 textboxes and 1 list box see crude pic below --------------------------------------------------------------- | textbox_______________ btnBrowse | | | | textbox_______________ btnBrowse ...more >>

Feed reader component?
Posted by DavideB at 10/5/2006 6:36:01 AM
I'm looking for a rss/atom feed reader component, capable of consuming the various formats of rss and atom. I would like to integrate it into a Windows forms application where I would like to control the presentation of the feed content. I saw may sample Windows forms applications but none l...more >>

Many Combo Boxes on One Form - Best Practice
Posted by david.leedom NO[at]SPAM gmail.com at 10/5/2006 4:33:33 AM
I am using vb.net 2005 pro I have a form with many Combo Boxes that are populated from a database. In fact many of these combo boxes are populated from from the same table, but with different where criteria. The data does not change often. What is the best stategy in setting this combo bo...more >>

Databound ListControl on TabPage
Posted by Mike Livenspargar at 10/4/2006 4:49:02 PM
I have a ListControl on a TabPage. It doesn't matter which ListControl as I've tried ListBox, ComboBox, and as shown below a custom derived control (in fact the RadioButtonList control described in a July 2004 MSDN article). Here is a sequence of happenings that is giving me grief: 1) I sel...more >>

Vb program stopped working
Posted by John at 10/4/2006 2:07:06 PM
My program has suddenly stopped working on the client pc's but still works on the developer pc. this is the error i get on the clients: EventType clr20r3, P1 sales.exe, P2 1.0.0.0, P3 4523f22f, P4 sales, P5 1.0.0.0, P6 4523f22f, P7 1f, P8 c6, P9 system.invalidoperationexception, P10 NIL....more >>

DataGridView events, kind of ...
Posted by Dave T at 10/4/2006 7:54:02 AM
I have a form with a couple of datagridviews on them. I'm want to automatically update the database so I've been calling tableview.update when the bindingsource.listchanges event fires. WELL ... it seems the user likes to switch back and forth between datagrids, maybe tabbing or ENTERing whi...more >>

web.config in WinForms
Posted by Bruno Alexandre at 10/3/2006 11:34:25 PM
Hi guys, I'm a asp.net 2.0 programmer and I'm creating my first applications, but I need to ask you one question. in ASP.NET 2.0 our DB string is placed under web.config and then we can access it using ConfigurationManager.ConnectionStrings("myConnection").ConnectionString and ho...more >>

DataGridView row index question
Posted by rino at 10/3/2006 11:30:01 PM
How can I display a column that contains a simple indexing of the rows.0,1,2, Isnt there a built in property I can use or must I implement it myself by creating a new column and refreshing the indexes each time a new item is added or deleted. It must support deleting updating adding rows. w...more >>

How can I access all application forms?
Posted by dusiapapa at 10/3/2006 11:29:57 PM
Hi everybody! I have windows forms application containing a lot of MDI (shown with ..Show()) and modal (shown with .ShowDialog()) forms. At some instant I need to kill all of them exept main application window. MDI forms can be accessed using MDIChildren property of the main form. But how ca...more >>

TreeView gets disposed while still visible
Posted by Bryan Aldrich at 10/3/2006 7:57:01 PM
I have a reproducible scenario here where I have a TreeView that is displayed on a Form. I have a custom class defined in the base which is nothing more than a fancy BindingList<T> While building the node, I add event handlers on the ..ListChanged event with definitions to rebuild the neces...more >>

Controls within control library doesn't appear in ToolBox
Posted by Maxwell2006 at 10/3/2006 7:40:45 PM
Hi, I have a VS2005 solution that includes a control library project. The problem is that the controls that I've created in the control library project do not appear in toolbar when I am creating forms in other projects within the same solution. I know that I can right click on t...more >>

Real life examples...
Posted by Ginny at 10/3/2006 5:34:18 PM
Hi All, When we develop applications using Windows Forms, we face a number of issues whihc have already been documented by different developers. There are a number of small tiny examples explaining how to do a particular thing in ..NEt win forms like 'adding image to menu items'. can anyone gu...more >>

Noobish question - BindingList.Filter not working
Posted by Chris Bordeman at 10/3/2006 3:24:28 PM
Pardon the fairly noobish question here... I've created two classes that expose some properties. I've declared two List<T>s based on them: List<MyClass1> MyList1 ... List<MyClass2> MyList2 ... I then used the Data Source Wizard to add both of them as Data Sources in my project and crea...more >>

How to simply update a listbox's selected item text?
Posted by shawn.casey NO[at]SPAM gmail.com at 10/3/2006 11:01:51 AM
I've seen this issue posted in the past, but couldn't reply to it because it was so old. I'm starting a new thread for it. http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/browse_frm/thread/2fb40d6b7e3bf989/e60d15e0774836cc%23e60d15e0774836cc <---Cut and paste---> ...more >>

subclass tabpage
Posted by JB at 10/3/2006 10:54:02 AM
I would like to build a tabcontrol containing subclassed tabpages that will support some additional properties and possibly methods. This is not a problem in code but is it possible to configure the tabcontrol so that I can use the TabPage Collection Editor to add new MyTabPage objects instea...more >>

SetParent() between C# form and C++ window
Posted by tmjiang NO[at]SPAM gmail.com at 10/3/2006 12:32:25 AM
Good day, I'm trying to set a C# form as a child to a C++ window. The C++ window is constructed by CreateWindowEx. The C# form returns its handle through managed C++, and its style is set to WS_CHILD before SetParent(). After SetParent(hndCSharpAsChild, hndCPPAsParent), the C# form disappe...more >>

form scroll event or autoscroll extent?
Posted by jarb at 10/2/2006 9:52:17 PM
..Net 1.1 I have a form using autoscroll. My painting isnt working right because of the way the scrolling is implemented: it only invalidates the new area that gets scrolled in. I need to either invalidate the entire form on scrolling, or I need to know the actual size of the loaded form. N...more >>

Controls are unreachable after scroll and form resize.
Posted by javiervazquezh at 10/2/2006 2:21:02 PM
I have the exact same problem that's described in the post I'm attaching. This post ws placed by Dave Leach on Mon, Apr 17 2006 4:30 pm because . If anyone knows the solutions just let me know. POST: I am developing a Windows Forms application using Visual Studio 2003 and C#. The applica...more >>

I Need Help
Posted by Sam at 10/2/2006 11:00:01 AM
My computer is not working right. When i restarted it the sound did not work and more and neither did alot of other things. It uninstalled my printer and wont let me install it help me asap!!!!!...more >>

printing
Posted by ajit at 10/2/2006 9:45:02 AM
I am unable to figure out why this code does not work....it never prints anything nor throws an exception. PrintDialog dlg = new PrintDialog(); if (dlg.ShowDialog() == DialogResult.OK) { thread = new Thread(new ThreadStart(Print)); thread.Start(); } public v...more >>

TreeView with Columns
Posted by tjb at 10/2/2006 12:00:00 AM
Could anyone recommend a tree-view control that allows columns? Ideally it would also allow images in any column. Freeware is preferable (it's simply a hobbyist project -- a newsreader, to be specific). Here is a screenshot of the kind of thing I'm looking for: <http://www.czilla.cz/images/t...more >>

Using the splitter control
Posted by Ginny at 10/2/2006 12:00:00 AM
Hi, I have a form with a tree view control docked on the left side, a list view control docked on the right side. i am using a splitter now. the splitter can only be docked to left or right, means it can be glued either to the tree view control or to the list view control. How can I glue it to...more >>

Double AppBars
Posted by Jared at 10/2/2006 12:00:00 AM
Hi, I am having trouble removing my second app bar on close, basically keeps last appbar to close, slightly registered, but can be reset by faking startbar move. Looks like VB can handle 2 appbars in same app. ...more >>

Forms authentication - restricting certain pages
Posted by Paul Aspinall at 10/1/2006 7:38:59 PM
Hi I want to have most of my website available to users without any authentication (ie. they can freely browse). However, if they go to a restricted part, they should be redirected to a login page, and then authenticated. I don't want to use SQL Server, as I would have to pay for that with...more >>

How to save a Graphics Object to an Image File in VB.Net
Posted by Josh Burkard at 10/1/2006 4:07:44 PM
Hello i created a Graphics Object in VB.Net from a WebBrowser Object with webbrowser.createGraphics How can i save this Graphics Object to JPG / GIF / BMP or other Image-File? Best Regards Josh ...more >>


DevelopmentNow Blog