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
all groups > dotnet windows forms > july 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 31

DataGrid question
Posted by Vadym Stetsyak at 7/31/2003 10:59:45 PM
Hi there!!! Is it possible to insert a button contol into the cell of the datagrid??? -- Vadym Stetsyak PDS ...more >>


How Do I Capture Mouse Wheel Movements?
Posted by Tony Lin at 7/31/2003 9:56:11 PM
I have a Microsoft wheel mouse. When focus is on a scrollable panel, I would like to capture mouse wheel movement events to make the panel scroll as the wheel is turned. I don't see a mouse wheel event in the Windows.Forms.Control or panel control. Is there a way I can capture this...more >>

An If Then but Different
Posted by Brian P. Hammer at 7/31/2003 9:02:20 PM
All, I am trying to calculate an if statement base of a value of 12 = multiplier. I'd much rather not have to type this all the way up for 60 = years. How can I turn my if statement into something like If Period = =3D 12 or multiplier of 12 then? For Period =3D 1 To TotPmts '...more >>

Could not instantiate ActiveX control because the current thread is not in a sin
Posted by bears at 7/31/2003 6:05:18 PM
Hi, I have a .NET .DLL called by a VB6 EXE. The following error message is when trying to instantiate a form in the .NET .DLL: Could not instantiate ActiveX control 'c932ba85-4374-101b- a56c-00aa003668dc' because the current thread is not in a single-threaded apartment Some documents...more >>

Icons and Listviews
Posted by Chris Willis at 7/31/2003 5:25:13 PM
I've got a series of items in a listview that contain icons in the first column. These icons are basically squares of specific colors (i.e. red, yellow, dark gray). When one of the items is selected and subsequently highlighted, the selected color is also applied to the icon, changing it to da...more >>

Unable to Merge Menus...
Posted by Mike Andrews at 7/31/2003 5:11:49 PM
Guys, I've created a simple MDI form with a Top-Level menu and another Form with a Top-Level Menu. I was under the impression that their menu items were supposed to merge when I loaded the sub-form as a child of the MDI form. However, nothing happens. No merging takes place. I can't seem to...more >>

VS.NET Installer Documentation
Posted by David Elliott at 7/31/2003 4:08:26 PM
I was wondering if there is any documentation on how to create an installer using the VS.NET Installer Project. I have played with it and understand some. I am specifically interested in how to: 1) See if .NET is installed and install if necessary 2) See if a database is installed (MSDE) and ...more >>

Opening a form over a control
Posted by RC at 7/31/2003 3:45:23 PM
Can anyone explain how set the location of a new windows form based aginst the current loctaion of a control on a form, ie formA has a text control in a group box and when the user starts typing in the text box I want to be able to open a new form over the exact location of the textbox. the prob...more >>



Selecting a directory dialog
Posted by Ray Price at 7/31/2003 3:36:38 PM
Is there anyway I can use the common dialogs SaveFileDialog for example, to select a directory? Seems it just opens the directory when I select it, and I don't see any flags to turn that functionality off. Thanks Ray ...more >>

resize panels smoothly
Posted by Ching-Lung at 7/31/2003 12:40:05 PM
Hi, I have a windows form with a button and 2 panels. All Panel.Dock = DockStyle.Left ------------- | | | | 1 | 2 | | | | ------------- When I click on the button, I want panel 1 to shrink and panel 2 to grow in width: int i = p1.Width; p1.Width = p2.Width; ...more >>

Trying to Auto Deploy Windows App (No Luck!)
Posted by Ian at 7/31/2003 12:22:35 PM
I am using a call application that has a button with the=20 following code to have the windows application sitting on=20 the web server come up.=20 Private Sub Button1_Click(ByVal sender As System.Object,=20 ByVal e As System.EventArgs) Handles Button1.Click=20 Try=20 Dim formAsm As [Assembl...more >>

Making control size fixed (like PictureBox.SizeMode)
Posted by WWalden at 7/31/2003 10:52:09 AM
How can I make my control have a fixed size? I want it to act exactly like the PictureBox control does when SizeMode is set to AutoSize. Thanks!...more >>

WebBrowser ctrl: switch off context menu in C#?
Posted by Guenter Rudolph at 7/31/2003 10:30:51 AM
Hi, I am using the AxSHDocVw.AxWebBrowser web browser control in my windows forms application in C# and I would like to switch off the context menu of the browser. Currently, I only found a solution for c/c++: It seems that one has to implement the IDocHostUIHandler interface, which should...more >>

Long drawing loop cancellation
Posted by azhitlenok NO[at]SPAM nanoink.net at 7/31/2003 10:03:28 AM
Thinking about a standard "silly" problem of giving a user an option to cancel long drawing loop, I read a lot of articles and did some investigations of my own. (I work with C# .Net 2003). My application must provide a very sophisticated drawing, which is actually a millions-length sequence of ...more >>

Cannot find CrystalReportViewer control
Posted by Allison at 7/31/2003 9:08:08 AM
I did a full installation on VB .NET version 7.0 and .NET framework 1.0. I tried to find the CrystalReportViewer in the Toolbox but I couldn't. I also tried to look for it in Tools/customize toolbox but still weren't successful. Is it something to do with the VB .NET standard version or en...more >>

transfer a value from one form to another
Posted by JD at 7/31/2003 8:59:39 AM
I have a form with a textbox that will hold a mean value. When the textbox gets focus, another form pops up, values are entered, and the mean value is calculated. The mean value is stored in a Public variable. The two forms are in different classes. How do I transfer this value to the original...more >>

WebControl problem.
Posted by rc at 7/31/2003 5:47:25 AM
I am trying to iterate through the elements of a HTML document loaded in a WebControl on a WinForm. I have found many exemples and most of them are like the following piece of code. Unfortunally this only catch the tags HTML, STYLE, SCRIPT, HEAD and TITLE. I need to get all the elements o...more >>

Excel Automation
Posted by carlos.cruz NO[at]SPAM algeco.pt at 7/31/2003 3:45:29 AM
Hi, Is there a way (in VB.NET) to handle an opened Excel Process by his ID and start using it as an Excel.Application object ??? Thanks in advance, Carlos Cruz...more >>

Why i can't localizing datetimepicker control?
Posted by Sarawut at 7/30/2003 6:57:09 PM
I use windows 2000 and set regional option as "thai". I use datetimepicker control in my .net application. And I chang Culture of my Application to "en-US" by use code below Thread.CurrentThread.CurrentCulture = new CultureInfo("en- US"); Thread.CurrentThread.CurrentUICulture = new Cultur...more >>

Accessing System Menu from C#
Posted by TB at 7/30/2003 4:50:51 PM
For a simple form without its own menu I wanted to add an "About..." command to the system menu as I would for an old MFC/C++ application. However I cannot find out how to access the system menu other than to toggle it on/off via the ControlBox property. Is this simply a .NET style bei...more >>

DataGrid (or ListBox) "Viewport" Size
Posted by Kristin at 7/30/2003 4:09:40 PM
How do I find out the size (specifically width) of a listbox's = (specifically datagrid) "viewport" where the "viewport" does not contain = borders (Fixed3D and otherwise), scrollbars, etc. ? Microsoft defines a "viewport" in help text for the = "DataGrid.VisibleColumnCount" property as so: "T...more >>

Error Reading Configuration Settings
Posted by Guogang at 7/30/2003 3:49:01 PM
Hi, I am deploying a project to a laptop. It works fine on my development computer, and I have tested once a few weeks ago. However, this time, the program can not start at all. After some digging, I find that it stops right at the following line (this line is part of the function called by...more >>

Call WinForm with parameter?
Posted by dw at 7/30/2003 3:27:17 PM
Hello..is it possible to call a winform (show or showdialog) and pass the form a parameter? Could be a single value (like an integer)? thanks for any help or links. ,dw...more >>

Dataset Update che funziona in modo strano
Posted by Webmaster of Moon at 7/30/2003 3:09:38 PM
Ciao ho una piccola anomalia, in un dataset. Ho una form di dettaglio collegata con delle textbox a un database sqlserver tramite dataadapter, dopo aver generato il dataset e le stringhe sql per aggiornamenti e selezioni, mi si presenta il prblema. Tramite metodo fill riempio il database, e poi ...more >>

Problem using a textbox to change the data
Posted by Venkat Venkataramanan at 7/30/2003 2:00:45 PM
Hello: I have a form that has a dataset that has one table, a command button, and a data-bound textbox. I also have navigation button that navigates through my dataset. When I run the application, I see the row values displayed appropriately. But when I make changes to the value that...more >>

TabControl.TabPageCollection property "Item" missing
Posted by Joseph Crum at 7/30/2003 12:17:01 PM
I am developing a form which uses a TabControl. I want the code to be able to detect which TabPage is currently active. The documentation indicates that the TabPageCollection should have an "Item" property which I think may be the way to do this, but the "Item" property doesn't show up o...more >>

Detecting Column Data Change without Leaving Row
Posted by Jerry at 7/30/2003 11:58:29 AM
I have a WinForms application that has a master DataSet with related DataTables that various forms reference and bind to. I need to detect when changes are made to the DataSet by a particular form so that the user can choose to cancel or apply thoses changes (the Apply button is only enabled aft...more >>

Embedding icons
Posted by Fatih BOY at 7/30/2003 9:04:03 AM
I want to embed some icons into my application and then use these icons for specific file extension. How can i do this?! ...more >>

CheckBox in DataGrid
Posted by Jon Yates at 7/30/2003 7:01:58 AM
Hello all. I have place a CheckBox in a DataGrid using the following code: DataColumn dcInclude = new DataColumn("Include?"); dcInclude.DataType = System.Type.GetType ("System.Boolean"); dtParams.Columns.Add(dcInclude); The CheckBox column works and all is good,...more >>

calling a form in a different project
Posted by David at 7/30/2003 6:08:59 AM
How do you instantiate and display a form that is in a different project within the same solution? I have a project full of Crystal Reports and one simple form (clientCrystalViewer) that displays them. It seems like I need to have the Reports in the same project as this clientCrystalViewe...more >>

Getting the active window
Posted by Paul R at 7/30/2003 2:58:03 AM
Hi, Is there any way to get a reference to the currently active form in .NET (even if it is another application)? Is there then any way to give that form focus? (even if it is outside of the .net application? Thanks, Paul...more >>

Maximise or show a window without giving it focus
Posted by PaulR at 7/30/2003 2:56:02 AM
Hi, Is there a way of maximising a form without having it grab the window focus? Thanks...more >>

Problems with ImageList Control
Posted by Alan at 7/29/2003 11:01:37 PM
I am developing a Windows Form application and I am experiencing issues = with the following line of code..... Me.ImageListCRSGroupImages.ImageStream =3D = CType(resources.GetObject("ImageListCRSGroupImages.ImageStream"), = System.Windows.Forms.ImageListStreamer) The type of error I get is a ...more >>

OpenFileDialog
Posted by cedced at 7/29/2003 4:13:55 PM
Hello, How use OpenfileDialog in page ASPX? OpenFileDialog is good in Windows application but isn't good in project "Application Web ASP.NET" Thanks ...more >>

DataGrid Q: How to force a column to go muti line if necessary to handle the text
Posted by Glorfindel at 7/29/2003 3:56:27 PM
I want to have all my columns visible in the window. I've found out how to disable the column resizing, and even to force the horizontal scroll bar to hide itself. What I dont know (if it can be done in the WinForms control) is how to force a cell to go multi line if necessary to show text. I'v...more >>

Windows Forms Dynamic Properties - Running on a Web Server????
Posted by jonas.a NO[at]SPAM softworks.ca at 7/29/2003 2:51:05 PM
I got in to a situation where we are planning to deploy our WinForms app in to a web server. We have dynamic properties already in it, and an XML file to read certain configurations. I know that this will give me an exception indicating that it could not find the the files locally. Is there a ...more >>

MDI Form
Posted by Paul at 7/29/2003 11:36:58 AM
How can I make sure that only one instance of a child form can be opened at a time ? Thankyou ...more >>

How to intially set a bound combo box value to null
Posted by Daniel at 7/29/2003 10:31:15 AM
I have a number of combo boxes that are bound to lookup tables. Whenever the user enters the form the initial value will always be set to the first value that is in the bound table, so it looks as though a value has already been selected. Even when setting the selectedindex property to -1....more >>

How to associate icons with menu items
Posted by Joyce Liu at 7/29/2003 9:50:46 AM
Does anyone know a quick and easy way to place icon images in menu items of a MainMenu control? This is usually an effortless task for other controls using their ImageList properties, which is not available for MainMenu. The only way I can find is to set the menu item's OwnerDraw property to tr...more >>

Splash Screen Problem
Posted by Ross C. at 7/29/2003 7:37:23 AM
Hi, I'm having a problem with a windows application in VB.NET. It is an MDI application, and I have just added a splash screen that is displayed in the beginning of the constructor of the mainform, and then is hidden at the end of the constructor (after all the init is done for the mainf...more >>

Forms Question
Posted by bert at 7/29/2003 1:57:02 AM
Hi, How to create a sizable form with only a title and a close (x) button? So no icon, no minimize button, etc. All help appreciated, Bert ...more >>

setfocus in vb.net?
Posted by Denis L. Menezes at 7/28/2003 9:24:45 PM
Hello friends. Vb6 had setfocus(). What is it in vb.net? Thanks Denis ...more >>

What is the best method for creating a "no-touch" client application
Posted by Bill at 7/28/2003 4:40:17 PM
I have a WinForms application with a config file that I would like to deploy internally by making it available on a central server, where it will be maintained and versioned. I was thinking that accessing it via IE would be helful, but it is not clear how to handle the config file, which does thi...more >>

SQLAdapter - Insert problem
Posted by Dave at 7/28/2003 3:09:21 PM
I using a SQLAdapter and Dataset to retrieve and update rows in a single table ... but I do not know how to Insert a new row. The table's key column is a auto generated field so it is read only (and therefore I cannot make changes to it). How do I specify to the SQLAdapter that I want an...more >>

Docking Window on Screen
Posted by James Jeff at 7/28/2003 3:07:43 PM
background: I am using C# .NET Framework 1.1, trying to immitate the docking behaviour of Programs like ICQ. issue: I do not want to dock Controls within my Program, I want to give my user the ability, to dock my Program itself to any part of the screen (like ICQ or the Windows TaskBar). ...more >>

DataGrid and Highlight row
Posted by Rajesh Abraham at 7/28/2003 2:42:36 PM
I have a datagrid populated from a dataview and while running a loop, I am able to set the Selected item and change the background colour of the selected item to say Green there by giving the grid a scrolling effect as the loop is processing data rows. Now depending on ceratin conditions ...more >>

GDI programming question (from a newbie)
Posted by Jeremy Bradshaw at 7/28/2003 12:35:41 PM
I'm trying to paint rectangles using GDI (I'm implementing drag and drop and want to paint a dashed rectangle as I drag a control to a new position). I instantiate a Rectangle object ok and handle its painting in the form's Paint event. This works fine, but the rectangle always appears "underneat...more >>

How Do I Run External Executable Program From C#?
Posted by Tony Lin at 7/28/2003 11:57:28 AM
I want to open and run an external program, such as Windows Explorer or MS Word, from my C# windows application. Is there a way I can do this? Tony Lin Fremont, CA ...more >>

Rename a property with Attributes?
Posted by Todd at 7/28/2003 10:07:58 AM
I'm using a PropertyGrid to edit certain objects within my application. I'd like to be able to change how the name of certain properties are displayed: MyObject.MyProperty displays in the PropertyGrid as "My Property", or "whee fun property" for that matter. Are there any class attribut...more >>

column values in datagrid
Posted by daisy at 7/28/2003 8:24:22 AM
Can anyone point me to the syntax on how to fetch indiviual column values from the current row in a datagrid on a button click in C# or VB. ...more >>


DevelopmentNow Blog