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 2006 > threads for june 15 - 21, 2006

Filter by week: 1 2 3 4 5

Memory leak. Controls.Clear() doesn't free the memory.
Posted by q23r at 6/21/2006 10:35:44 PM
I saw many memory leaks problems in this group. But It seems that it's the new one. When you add controls to the form, then delete them using this.Controls.Clear(), memory is not released. Simple example: private void button1_Click(object sender, EventArgs e) { for (int k = 0; k < 50...more >>


Single instance application
Posted by Alok at 6/21/2006 7:22:01 PM
I am programming in c# and making a windows forms application. I don't want to make a windows service. How can I make sure that only once instance of the application runs ? If you try to run another instance , it should bring the running instance to the foreground and exit itself. The secon...more >>

Very annoying datagrid problem
Posted by Stef at 6/21/2006 1:36:45 PM
Hello folks, The problem I have is this: I have a datagrid with custom column styles. I bind this grid to a DataSet then I use the CurrencyManager to handle the PositionChanged event. The problem is I get this error saying "No value for index 1" and the grid becomes a huge red X when I chan...more >>

Adding rows to a bound table that is bound to DataGridView(DataSou
Posted by Kevin Burton at 6/21/2006 11:54:02 AM
If I add rows to a table like: _dtManualOrderItem.Rows.Add(mo) How does the DataGridView get notified of this event? I don't see a Bind or Rebind method. If I remove the binding and readd it: dgvOrderItems.DataSource = Nothing dgvOrderItems.DataSou...more >>

Webbrowser Class and printing
Posted by Victor Rodriguez at 6/21/2006 11:49:43 AM
Is there a way to set the default printing and the orientation by Code using the webbrowser class? Thanks, Victor ...more >>

OT (slightly): Coordinating Multiple Developers
Posted by Smithers at 6/21/2006 11:01:39 AM
Until now I have worked on small teams (1-3 developers) and we've been able to stay out of each others way. Now I'm about to start work on a project that will have 5 developers. I would appreciate some guidance on how we can proceed to develop without having to worry about "who is working on w...more >>

How can I update a WinForm without stealing focus?
Posted by PIEBALD at 6/21/2006 9:34:38 AM
How can I update a WinForm without stealing focus? I have a main form which has a Timer to perform updates (query data and display it on the form). (Yes, it uses Invoke.) I also have menu items that can display dialogs to set various things. The problem is that when I have a dialog open an...more >>

Listview flickering and performance problem
Posted by James at 6/21/2006 5:49:14 AM
Hi all, I have made a derived Listview which can accept the controls as items in it. Controls that we are using are Buttons in each row and implemented Grouping with the help of controls(label on panel) . Coz Inbuilt listview Grouping not supported in OS like window 98. Although I had u...more >>



Client Site App adding value to a Web App
Posted by bmntech NO[at]SPAM gmail.com at 6/21/2006 4:52:17 AM
I want to create a client app, adding value to and building on my Web app. The user of this client app will be able to seamlessly access the public web site, but will also have additional functionality and content not available on the public site. The rational is to allow the user to work dis...more >>

After form is closed, it is still there and crashes when you want to close it again
Posted by geronimi at 6/21/2006 1:06:46 AM
After a form is closed, it is still there and crashes when you want to close it again...... Here you see the error report: Exception report - Tuesday, June 20, 2006 1:31:49 PM Object reference not set to an instance of an object. Source : HRAFrameApp StackTrace : at HRAccent.UI.List...more >>

disable TabPage
Posted by Napo at 6/21/2006 12:45:01 AM
I can't find the "disable" property of tabpage. How to do it ? Someone said that we can set the tabpage's text color to "grey", so I code as: this.tabpage1.forecolor = Color.Gray. but it can't work, why? ...more >>

How to draw a window surface even it is invisible, covered, or out-of-desktop?
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 6/21/2006 12:21:21 AM
I wanna draw any window surface without window-type limitation. So far, using PrintWindow API seems to be a good choice, but I never successfully invoke it. Always return false. I totally don't know why. Sigh... WM_PAINT? Some controls never response to her. :-( Bitblt? This most straightfo...more >>

software from dll files
Posted by Juna at 6/21/2006 12:21:12 AM
Hello All I have .dll files of Swap machine which can both read/write in the card.Now i want to develope the .net program to read the card when some one swap the card on the machine. Does any one has any idea how to do this Thankx Prajesh ...more >>

Application frozen after system events
Posted by Bernd S at 6/20/2006 4:53:45 PM
Hi, my windows forms (.net 2.0) application is frozen after power mode changed back from standby or when resolution is changing. Any idea what could be the reason? Regards, Bernd ...more >>

Clickable ListViewItems in a ListView
Posted by illegal.prime NO[at]SPAM gmail.com at 6/20/2006 4:43:55 PM
Hi all, I have a Form (FormA) that contains a ListView. Recently, we've decided to add elements (ListViewItems) to this ListView that can be "activated" (probably a single or double click with the mouse) by the user. This "activation" will spawn a new Form (FormB)- in which the user selects so...more >>

WebBrowser Class
Posted by Victor Rodriguez at 6/20/2006 3:06:13 PM
Tricky question, is there a way that when you have a windows.form app using webbrowser class to view and run webapps on it when ever you open a new window browser the session will still be the same as the parent? Everytime I opened a new window to capture some data the new window browser ...more >>

SystemParametersInfo wallpaper problem
Posted by Eric at 6/20/2006 12:29:02 PM
I'm trying to set the desktop wallpaper to nothing and change the desktop background color. I can successfully remove the wallpaper but it doesn't refresh the desktop background color until I reboot. Does anyone know how to tell windows to refresh the desktop background color? thanks! h...more >>

Hosting a VB.NET and ASP.NET Application
Posted by samadams_2006 NO[at]SPAM yahoo.ca at 6/20/2006 12:05:36 PM
Hello, There seem to be so many places out there to host asp.net Web Applications I figured I had better put an article on this forum to get some advice. Basically I have an asp.net Web Application that I'm interesting in Hosting on the Web. I'm planning to offer a training video subscripti...more >>

threading with background worker C# win forms
Posted by bilosta NO[at]SPAM gmail.com at 6/20/2006 11:37:14 AM
I have one MainFORM form (it hase dataGridView and button). one class called DoEverithing (works with data base) Form PleaseWait (with progress bar) Here is my problem: When I click button in Main form i want to populate datagridview with some data from database. here is a call: in MainFO...more >>

Cannot Update data via DatagridView
Posted by mk at 6/20/2006 7:38:06 AM
Hi all, I am using VS2005. I am using Datagrid view to edit some datas and update it. this is what I have bind to Datagridview SqlAdapter = New SqlDataAdapter() SqlAdapter.SelectCommand = SqlCmd Dim Cmd As New SqlCommand("Update Table_xxx Set Remarks=@q1 Where SiN...more >>

Dang, trivial problem!
Posted by Water Cooler v2 at 6/20/2006 6:17:47 AM
Dang, my status bar text doesn't update. It's got just one panel and it always shows the text I set at design time. ("Ready"). All I am doing is: Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click 'Do stuff ...more >>

Html Rendering in Winforms
Posted by ramesh at 6/20/2006 3:51:16 AM
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into windows form, but it should not be dependent on IE or mshtml. I didn't get such kind of control so fa...more >>

[.NET1.1] Form.KeyPreview and DataGrid
Posted by Pascalus at 6/20/2006 2:12:16 AM
Hi there! How can you get a KeyPress event for a form (with KeyPreview=true) that contains a DataGrid? Even DataGrid.KeyPress or KeyDown is never triggered! Any help greatly appreciated. Thx! /Pascalus...more >>

Which one is correct ??
Posted by Bragadiru at 6/20/2006 12:00:00 AM
Hi all, ToolTip.AutoDelay vs. ToolTip.AutomaticDelay : When you set AutomaticDelay => AutoDelay is 5 x AutomaticDelay (as in http://msdn2.microsoft.com/en-us/ba01s7kc.aspx) or 10 x AutomaticDelay (as in http://msdn2.microsoft.com/en-us/system.windows.forms.tooltip.automaticdelay.aspx) ...more >>

Webbrowser opens link in the same window
Posted by FUnky at 6/20/2006 12:00:00 AM
Hi All, I use the AxWebBrowser control to display HTML pages in my application (.Net 1.1). Now the problem is, if my HTML page contains a web link and i click on that link, the corresponding webpage opens up in the same control. I require it to open a new instance of IE and open up there, l...more >>

difference between obj and bin folders ?
Posted by FUnky at 6/20/2006 12:00:00 AM
Hi All, Can anybody plz explain me the difference between obj and bin folders and which one to use when ? Is referencing from one same as from other ? Thanks in advance. FUnky ...more >>

Smart Clients a Dead Concept ?
Posted by LesterBurnham at 6/19/2006 11:07:01 PM
hi all the notion of smart clients seems a good one from a development perspective but there does not seem to be much literature around. not one current book. can anyone she light on the current state of play? is MS pushing this technology? or have we moved on? thanks Richard...more >>

Modeless form with parent form
Posted by Jeff Boeker at 6/19/2006 6:33:02 PM
Hello, I am trying to create a modeless form whose parent is another form. If the modeless form is toplevel it won't let me set the parent, if the modeless form is not toplevel it won't let me show. I 'solved' the problem by making the modeless form toplevel only after it is shown. This ...more >>

Load a usercontrol into a splitted panel
Posted by Vincent RICHOMME at 6/19/2006 3:25:31 PM
Hi, I have a splitter with two panels, on the right panel I want to display different user controls. How can I do ? private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e) { string strTag = e.Node.Tag.ToString(); if (strTag == "RemoteHelp") { ...more >>

DataGridView and CheckBoxes
Posted by Derek at 6/19/2006 2:37:02 PM
How do I access the value of a checkbox in a DataGridView? It's an unbound column. Thanks....more >>

Switch beetween forms
Posted by Vincent RICHOMME at 6/19/2006 12:50:21 PM
Hi, I am completely new to .NET and I have to developp a GUI application. My app needs to have a Form with a vertical splitter. On the left I have a treeview and on the right I display a different view in function of the selected node. How can I do that ? How can I know what node is sele...more >>

advantage of Web Services
Posted by brian.wilson4 NO[at]SPAM wachovia.com at 6/19/2006 12:39:05 PM
It has been suggested we use web services in our winform app. App is (insert,update,delete) data mgmt front end for an Oracle DB. Plan was to use C# to develop forms and PL/SQL for all data manipulation. How do web services improve this situation? 2.0 framework....10g r2 Oracle.... ...more >>

Autosize Columns in a ListView
Posted by Zach at 6/19/2006 11:21:52 AM
I have a listview, and currently there is the situation where a user can double click between two column headers, and the system will automatically resize the column header to the width of the longest text in that column. I want this calculation to take into account the width of the header as w...more >>

Treeview Question
Posted by rhaazy at 6/19/2006 7:23:55 AM
Using VS2003 C# I have a treeview control that navigates through a database in non heiarchal fashion. I start with the root node, which is just going to be the name of the database, so it will always just be that one root node. After that is expanded I will get a list of Computer Names from ...more >>

Drawing Solid and See Through Lines
Posted by Mark Collard at 6/19/2006 4:16:01 AM
Drawing Solid and See Through Lines I want to create a custom form (all drawn in the pain event) that is part solid (i.e. non see through) and part see through (e.g. 50% opacity). I've tried setting the BackColor and TransparanceKey colors to the same value and drawing lines with different ...more >>

Right Clicking a node in a tree view
Posted by Zach at 6/18/2006 8:36:06 PM
Sometimes I right click a node in a tree view and display a context menu. When the user chooses an option from the context menu, I want different things to happen depending on which node was selected. This seems pretty common and straightforward, the problem arises when I have node A selected,...more >>

How to execute code before a control is "unloaded/closed"
Posted by BobRoyAce at 6/18/2006 1:52:55 PM
I have an Visual Studio 2005 WinForms application in which I have a main form with a NavBar on the left, a menu and toolbar at the top, and a working area panel on the right. Depending on which link on the NavBar the user clicks on, I show the corresponding User Control in the working area panel...more >>

Smart Client
Posted by Avi at 6/18/2006 2:47:42 AM
Hi there, Sorry, newbie, learning my way around ... I understand that ASP.Net is built on the assumption that the client does not run the .net framework, and that when you can assume that the client does run the framework, you should go the smart client way. I did a fast "is the buzzword ...more >>

Test post
Posted by Emmanuel at 6/18/2006 12:00:00 AM
This is a test post ! ...more >>

Setting Control's parent cross AppDomains
Posted by Burgazon at 6/16/2006 10:13:02 PM
Hi, I encountered the following problem when trying to set control parent when the control reside in a different AppDomain. Here is the pseudo code descibing the problem: pay attention that both controls inherits from UserControl which inherites (indirectly)from MarshalByRefObject. c...more >>

control on a form
Posted by Justicetrax Dev at 6/16/2006 2:36:02 PM
Hi, I was wondering if there is a way to find out if a control exist on a form. I have the control name (btnApply) and I would like to do something like... form.controls("btnApply").exist as boolean. I know I could probably get there by looking in each control of the form control collection but ...more >>

Application.Restart Tough One
Posted by Chuck P at 6/16/2006 1:42:06 PM
I am having trouble getting Application.Restart to work. My somewhat lengthy startup code is shown below. Interestingly enough it will work, if I display a message box that displays Application.Application.Name. Just displaying the messagebox or just assigning Application.ApplicationName does...more >>

DataGriud Row,Column to bound table Row,Column translation.
Posted by Kevin Burton at 6/16/2006 9:22:02 AM
Using the HitTestInfo class in conjunction with HitTest I can get the row and column on a DataGrid. Now is what I would like is to translate that row and column to the row and column on the DataSource (in this case it is a DataTable). Any ideas? Kevin...more >>

A problem with using DataGridView control in an MFC CDialog
Posted by Maksim Izbrodin at 6/16/2006 9:11:02 AM
I have a very simple CDialog-based application (VC++ 8.0/2005), where a DataGridView control is included through the usage of CWinFormsControl class. I experience the following problem with this application. If I switch to a different application (Alt+Tab, for example) while a grid cell is rem...more >>

Smart Client security issue
Posted by Stef at 6/16/2006 8:56:40 AM
Hello people, I am having problems getting my smart client app to run. First I got a problem about permissions... So I've searched newsgroups to find out a solution and I was pointed to a MS KB which help me get through it by strong naming my assemblies. Since I use Microsoft Application ...more >>

Non rectangle form drop shadow
Posted by Mark Collard at 6/16/2006 5:08:02 AM
I’ve created a non rectangle form by setting the FormBorderStyle, BackColor and TransparanceKey properties and drawing on the form in the pain event or setting the BackgroundImage. What I would like to do is add a drop shadow to my non rectangle form. I did a search on the Internet for h...more >>

Setting focus on first control of Windows form
Posted by Dharmendra vithal Pandit at 6/16/2006 4:42:02 AM
In Windows application,I have four buttons on Windows form. When I run, it doesn't show focus on first button....more >>

circular calling windows
Posted by Hennie7863 at 6/16/2006 4:28:39 AM
Hi, I have two forms A and B. Om form B i have a NEW button which should call form A and after a selection on form A it will call form B again. Hence a circular calling of forms. On both forms i created a event: Private Sub frmFormA_Deactivate(ByVal sender As Object, ByVal e As Syste...more >>

ListView with Groups don't display all items
Posted by Luiz Borges at 6/16/2006 3:28:23 AM
I searched all over the internet for this, I can't believe no one noticed that before. Here is the problem, if you have a ListView with lots of items (just enough get the vertical scroll bar on) and all the items belongs to one Group (it can be the default Group) you can't navigate to the last...more >>

Need to split EXE into EXE and DLL
Posted by Petri at 6/16/2006 12:56:02 AM
Hi, I'm working on a piece of software that is now growing into a suite of software products. When I started the work, I wasn't fully up to speed with dotnet concepts (am I now either ;-), so the App is probably not built accoridng to best practices. Now I'm facing a situation, where I n...more >>

C# Window.Forms.Label Html Text
Posted by sitemap at 6/15/2006 11:53:07 PM
Hello, Can anyone tell me - is it possible to visualize html formatted string in Window.Forms.Label.Text? Thank You ...more >>

Suspend user's envet when load form
Posted by Napo at 6/15/2006 7:30:02 PM
The form has many controls, so it take some time to show it out. But before the form finished showing, user can click the button on the form. Now, I want to prevent any user's event before the form showe method finished. How to do it? ...more >>

Classes
Posted by kuhrty at 6/15/2006 2:48:02 PM
Hello, I have created a business class to separate the logic between the UI and code. I have loaded a dataset called dept. Dept has a few columns called dept, dept desc, family. I load only department in a drop down box. Later on the user get to choose the department and it load the data...more >>

How to open Run dialog
Posted by alex at 6/15/2006 2:12:23 PM
Is it possible to open the run dialog box from code and execute a command? Thanks ...more >>

NON-MDI application that keeps track of open windows
Posted by Brian Sokolnicki at 6/15/2006 10:14:56 AM
I need to write a non-mdi winforms application using c# and .net framework 2.0 that keeps track of open windows and binds to a control on the main application or shell. I can't use a MDI application becuase I need the application to support dual monitors where I can have multiple windows open...more >>

Opacity 0, paint on Form
Posted by Martin Madreza at 6/15/2006 8:10:32 AM
hi, i want to paint on a for wich opacity is 0 is it possible to paint e.g. an rectangel with an black border or is it impossible to paint on a Form with opacity = 0 and it's the total false approach? thanks Martin Maderza ...more >>

C# Windows Application using CAB won't run on Windows 2000 machines
Posted by Caroline88 at 6/15/2006 3:09:30 AM
We have a C# Windows Forms application using the Decemeber 2005 CAB that I can't get to run on some of our Windows 2000 machines. The error is 'Exception has been thrown by the target of an invocation' falling over at the System.RutimeTypeHandle.CreateInstance method call. On the xp machines...more >>

Update main UI from another form
Posted by lucaoscar NO[at]SPAM gmail.com at 6/15/2006 2:39:33 AM
Hi all, as you can see from the level of my question, i am pretty new to c# and programming in general. situation: i would like to update the UI of a form (main form of my application) from a second form (which was called from the first). Ideally when a button on the second form is pressed,...more >>

BUG ToolStripItem.Text = My &Hotkey
Posted by Jared at 6/15/2006 12:00:00 AM
Hi, I am having a problem where the underscore for hotkey is not being painted on my MDI application. Only unuasual thing about my app would be that I have killed an internal border. Anyone else have this problem? ...more >>

VS2005 text search box
Posted by Jared at 6/15/2006 12:00:00 AM
Hi, I often try to search for code and get no results, because 1 of 70 codefiles i want is not open. How can I search codefile that is not open? Search hidden text is enabled. ...more >>


DevelopmentNow Blog