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

Filter by week: 1 2 3 4 5

context menus
Posted by Charles Crawford at 8/21/2006 6:48:59 PM
Hello, I'm writing a windows forms application and have a custom user control built from multiple controls, including a picturebox control onto which I'm drawing a clock face. Each hour on the clock face represents a 'node' and I have the application switch cursors from the arrow to hand curso...more >>


Winforms hosting in IE
Posted by Andreas Draheim at 8/21/2006 5:18:33 PM
Hi all, I try to get the quickstart from the .NET 1.1 hosting a WinForms Control in IE running in .NET 2.0. But I cant get it going. (http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsIeSourcing.aspx) It seems not to be possible getting the value of the textbox inside the control...more >>

detect build type in c#
Posted by Maneesh at 8/21/2006 3:50:18 PM
Is there a way in C# to detect which build the current run is in (debug or release). I have a scenario where the path of a file I access changes depending on build type. ...more >>

CollectionEditor badness in .NET 2.0?
Posted by Thomas W. Brown at 8/21/2006 3:37:27 PM
I have a custom CollectionEditor which has been working nicely for a long time in .NET 1.1. We just converted to .NET 2.0, recompiled everything, got rid of the deprecated function calls, etc... Now, when I run my app, I can bring up the collection editor initially with no problems, but wh...more >>

Combobox with MultiLine TextBox
Posted by Pieter at 8/21/2006 3:22:25 PM
Hi, Using this Multiline Combobox(http://www.vbcity.com/forums/faq.asp?fid=15&cat=ListBox%2FComboBox#TID58434), doesn't allow the user to type multi line text in the texbox-part of the combobox. Does anybody has any idea how to achieve this? What should I override to draw a multiline-text...more >>

Good DataGridView resource
Posted by Jason James at 8/21/2006 12:52:06 PM
Guys, can anyone recommend a good online or printed DataGridView resource. It seems very different to its predecessors and I could do with getting to grips with it in a hurry. Many thanks, Jason. ...more >>

A windows installer question
Posted by BVM at 8/21/2006 12:00:00 AM
Hi: I want the application defaulted to install on a specific location like = C:\MyApp, not under C:\Program Files. How can I do it? Thanks, Dennis Huang...more >>

Tab Control - Remove Tab
Posted by Richard Harris at 8/20/2006 6:37:52 PM
Hi, I am trying to create a wizard form to help users enter data into a windows forms application. I want to use a tab control to show the different screens for the wizard but need to remove the 'tab' so users only see the content of the tab. Has anyone any idea how to do this? I have ...more >>



Databinding a check list box
Posted by John at 8/20/2006 2:35:03 AM
Hi I have a check box list box on a windows form. How can I data bind it to an access table. I don't need a multi-tier solution. Just a solution. Thanks Regards ...more >>

Exporting possibility with ListView component to Excel?
Posted by juvi at 8/20/2006 2:15:01 AM
Hi, I want to export all entries (items + all subitems) of my Listview to Excel, but I do not want to use the Office Tools. Is there a way to do this without Office Tools? Thank you juvi...more >>

Checklist box code help needed
Posted by John at 8/20/2006 12:00:00 AM
Hi I have a check list box.When user selects a specific value '(All)' I want to uncheck all other check boxes in the list. How can I achieve this in code? Thanks Regards ...more >>

Detecting whether form was minimized before OnResize()
Posted by Valerie Hough at 8/19/2006 5:38:26 PM
In the OnResize() event is it possible to detect whether the form is really being resized as opposed to just restoring itself to its previous size? Presumably I could keep track of the size of the clientRectangle but it seems as though there must be an easier way. Thanks in advance. Val...more >>

Application Migration Threading Problems(URGENT)
Posted by Eduardo Fonseca B. at 8/19/2006 4:34:01 PM
I have an application originally built in .NET Framework 1.1, it is a Windows Forms, the application runs ok with the .NET 1.1, but I'm in hte process of migrating it to .NET 2.0, but I´ve found a problem with it. The case is that I'm getting an exception n every single thread I have, this ...more >>

Application settings
Posted by John at 8/19/2006 1:51:24 PM
Hi For my db app, I need to save the location of the db (really a windows path) which normally only needs to be set at the first app start (I can check if the setting is missing and ask user for a value). Occasionally (once in a blue moon) I may need to change this setting in case db is mov...more >>

Filling a combobox in 2005
Posted by jonefer at 8/18/2006 5:17:01 PM
I used the following two routines to fil a drop-down box in a VS 2003 web project What do I need to do to make these work with list controls in 2005 Windows Projects? ======================================== Private Sub FillWithDepts(ByVal strStartDate As String) Dim drDepts As...more >>

View Comment Balloons
Posted by Analyst at 8/18/2006 12:50:02 PM
Hi folks, I'm currently working in Word 2000. I am used to viewing comments in balloons in the right margin. Word 2000 doesn't seem to allow this. Any suggestions (I really don,t like the Reviewing Pane). In addition, I want to be able to print the document with the comment balloons visible...more >>

RedrawWindow issue
Posted by apostrophe27 NO[at]SPAM yahoo.com at 8/18/2006 10:52:03 AM
I want to clear some textboxes of previously written data. When I run the code below, only the txtBuffer text box is getting cleared. What am I missing? private: System::Void btnRead_Click(System::Object^ sender, System::EventArgs^ e) { clear_textboxes(); fd_read(...more >>

Getting the connection string from the App.Config File (2005)
Posted by jonefer at 8/18/2006 9:10:47 AM
I guess the following only works for Web Projects... Imports System.Data.SqlClient Imports System.Configuration Dim sCodaCon As String = System.Configuration.ConfigurationManager.AppSettings("MyCnn") What is the equivalent for retrieving the ConnectionString from the App.Config file? ...more >>

Changing items in bound ComboBox
Posted by Kevin Burton at 8/18/2006 8:08:58 AM
I have a combo box (dropdown) that is bound to an array of objects with the member specified by a property name. There is one item on the drop-down that when selected I want to be able to change the text displayed. I cast the selected item to my object and set the value that I want to change. ...more >>

Combo Box not Repainting when updated out of focus
Posted by cms0007 NO[at]SPAM cs.unt.edu at 8/18/2006 7:21:29 AM
I am using C# on a windows form with three tabs. Each tab holds a user control and there are several combo boxes on each user control. On all three user controls there is a combo box that contains information from the same location in a database. but the information is displayed differently in...more >>

Using C# dll as COM in an MFC application
Posted by Janiv Ratson at 8/17/2006 7:17:31 PM
Hello, I have written a C# dll in VS2005. One interface and class are exported using Interop Services. I want to use this c# dll in my MFC application, using VS2003. It compiles after I imported the dll to my MFC app. On runtime I get class not registered HR error in my MFC project. I use th...more >>

How to elegantly handle resizing dialog box in 2005?
Posted by Siegfried Heintze at 8/17/2006 4:44:33 PM
I have a dialog style application that uses DirectX to play DVD movies. In the center of the form is the main panel where DirectX displays the movie. Around the edges are various list controls, checkboxes and buttons. When the window is resized, I only want the main panel to resize and eve...more >>

ComboBoxColumn = Slowww
Posted by Daniel Manes at 8/17/2006 4:03:36 PM
I have a DataGridView with about 450 records. There are five columns: three ComboBoxColumns and two TextBoxColumns. When loading the Form, even after all the BindingSources are filled, it still takes a long time before the data shows (and I'm running on a pretty fast machine). Also, if you try t...more >>

Changes to datagrid aren't made to dataset.
Posted by rhaazy at 8/17/2006 10:00:50 AM
Using C# and winforms.datagrid control I have a datagrid that is bound to a dataset and the binding is done like this: connection1_admin.Open(); SqlCommand myCommand1 = new SqlCommand("select OrgSystemID, OrgSystem, OrgSystemDescr from tblOrgsystem",connection1_admin); adapter1_admin...more >>

Slow Downloading
Posted by rony_16 at 8/17/2006 7:33:14 AM
Hi, I have a problem downloading a file . after i connect to the website and get the stream , i treing to write the file on the HD. public void SaveStreamToFile(string filePath, Stream stream) { // If not all data was provided return false; //if (string.IsNul...more >>

SmartClient - app.config
Posted by Baren at 8/17/2006 6:46:02 AM
Hi! I have developed a SmartClient application for winforms wherein, it downloads the exe from the server to the client machine. While executing the exe, its not able access the "appSettings" values from the app.config file. Anyone has take on this? Thanks in advance. Regards, Ba...more >>

Again Virtual Directory
Posted by Lucky at 8/17/2006 5:22:24 AM
Hi guys, Again asking Question regarding Virtual Directories. now i've got the Virtual Directories list with the help of Michael. the code is used to get the virtual directory is System.DirectoryServices.DirectoryEntry iisServer = new System.DirectoryServices.DirectoryEntry("IIS://" + serverN...more >>

DataGrid Disable Ctr-A
Posted by Howard Swope at 8/16/2006 5:26:23 PM
Ctrl-A selects all in the System.Windows.Forms.DataGrid. I am trying to disable this functionality and am having a heck of a time. I have a control that inherits from DataGrid I have tried to catch the Ctrl-A in the OnKeyDown and ProcessKeyMessage and it seems that something is getting to it ...more >>

form that returns a value
Posted by John at 8/16/2006 2:51:26 PM
what is the best way to call a form from another and then return some value to the original form? ...more >>

DataGridView
Posted by gptvitsion at 8/16/2006 2:06:32 PM
Hello what's the best to clear (delete) the content of a DataGridView ? I didn't find any methods to do this. Thanks for your help Philippe ...more >>

WinForms Drop Down List
Posted by S Wheeler at 8/16/2006 12:53:24 PM
Hi- Hopefully this is a simple one. I need a "Drop down list" - kind of like a Combo Box but without the ability to type arbitrary text. I tried a list box, but I want to only show one item in the list, unless the user selects the "drop" arrow, it which case the list expands and the user can ...more >>

AD Authentication From Windows Forms
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 8/16/2006 12:03:29 PM
If I want to authenticate a user against AD from a WinForms app, how do = I go about it? I want a user to have to re-authenticate after a timeout = period. I will assume the user is the currently logged on user, but I = want to prompt for a password and authenticate them against AD. What's = ...more >>

Combobox autocomplete
Posted by David Tilman at 8/16/2006 11:47:02 AM
I'm working with C# in Visual Studio 2005. I have a combobox with AutoCompleteSource = ListItems and DropDownStyle = DropDown. I want users to be able to type in the combobox and the control to autocomplete (Append AutoCompleteMode), but have their options limited to the control's ListItems. ...more >>

Reset DropDown
Posted by Thom Little at 8/16/2006 10:41:34 AM
ASP.NET 2.0 webapplication DropDown list and button on same page DropDown_SelectedIndexChanged - redirect to selected item value Button_Click - redirect to another location Select item from dropdown correctly goes to selected location. Back arrow returns to my page. Selec...more >>

How to hide a textbox in the main form from another Class
Posted by Max Powers at 8/16/2006 9:50:45 AM
Hello, does anyone know how to hide/show a textbox field in the main form from another class? I named the main form frmMain and it has a textbox field called txtOrderName. I then have a public class named clsProcessData. I would like to create a procedure in this class that will hide the te...more >>

Desktop Application Culture Setting
Posted by Lucky at 8/16/2006 7:56:30 AM
hi guys! i've got one interesting problem. one of my utility is generating data machine specific, i mean the data is generated in the culture that the machine has. my problem is with the numerical data, especially with double values. the numeric data fetched from the database and saved on the...more >>

Disabling Datagrid column
Posted by shreelu at 8/16/2006 5:34:49 AM
Hi I have Datagrid with three columns pulled from database, I have edit functionality in which only one column should be editable, how do i make other two columns readOnly next is Add New functionality in which the user should be allowed only to add a new record and not edit any other record...more >>

load resources (string-table) from database
Posted by SSchoenb NO[at]SPAM gmail.com at 8/16/2006 4:19:49 AM
hi, i like to load the resources (specially the string-table) from a database table. is this possible ? e.g. with a custom resource-loader i know there is such a concept in asp.net (resource provider factory) but i have nothing related found for winforms. thanks, stefan ...more >>

NumericUpDown select contents
Posted by Qpeg at 8/16/2006 1:01:01 AM
I am having a hard time trying to select thet contents of a NumericUpDown control when it gets focus. When the control gets focus I want all the contents to be selected so that the user would per default overwrite it when she enters data. Basically I overrode OnEnter and did this.Select(0, ...more >>

Prevent form loosing focus
Posted by Drasko at 8/16/2006 12:44:26 AM
How can I get that my form always have focus? TIA Drasko ...more >>

Urgent Help - SMTP mail
Posted by Nicol at 8/15/2006 11:42:02 PM
I have created the send mail application in console application of c#.net 1. When I set my smtp server as some ip address which is a smtp server and when the smtp runs in my local machine where my exe resides, the mail is sent perfectly. 2. When i specify the ip address of some amtp server ...more >>

Windows App Freezing
Posted by John Riddle at 8/15/2006 7:31:05 PM
I have a muti-threaded windows app that creates child forms in a separate thread which then invoke a delegate on the MDI parent form. I have put all time-consuming tasks on separate background workers like running stored proc, poppulating data grid, etc. I am running VB.Net 2005 on Windows 200...more >>

ComboBox onSelectedIndexChanged Event
Posted by Ather Ali Shaikh at 8/15/2006 6:29:40 PM
Hello, I am working on three comboboxes Country, State and City. When Country is filling with database its onSelectedIndexChanged event fires for each binding, why? I fill State combobox for the selectedvalue of country. for the matter above of onSelectedIndexchanged, first time in Selected...more >>

yes/no
Posted by John at 8/15/2006 3:45:05 PM
If i want to add a checkbox and store the answer in my SQL Express database, do i just ad it as an integer to the database and check the value say 0 for no 1 for yes? or is there an easier way? ...more >>

Form to COM
Posted by Janiv Ratson at 8/15/2006 3:44:41 PM
Hello, I have a Form derived class (in a class library project), and I want to use this class in an MFC application (via COM). How do I do it? I'll appreciate a step by step tutorial. Thanks, Janiv Ratson. ...more >>

ClickOnce App Won't Start
Posted by kelly.harrison NO[at]SPAM gmail.com at 8/15/2006 1:27:27 PM
I've got a client with a computer on which no ClickOnce app will start when run with a URL command line. The OS is Win 2003 Server. If I try to run an app directly from the user's cache (<user dir>\Local Settings\Apps\2.0) it will work. My first thought was a permissions issue. So I added th...more >>

Refresh Binding
Posted by elefrancois at 8/15/2006 8:31:31 AM
Hi, I have a Typed DataSet that is bind to some winform controls. TextBox, Labelx etc.... At some point, my dataSet values are updated being the scene. The probleme is that my binded controls are not updated automatically when DataSource is updated. What I have to do to force the rebind of ...more >>

Creating a Windows App version of a Web App
Posted by jonefer at 8/15/2006 12:24:01 AM
I have a fully functional web app that I created in Visual Studio 2003. I've even managed to translate it to a functional working 2005 version. What are the best steps to creating a Windows based form version in a manner that I can preserve a lot of the routines that I have written? For e...more >>


DevelopmentNow Blog