Groups | Blog | Home


Archived Months
November 2003
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 controls > august 2004 > threads for august 1 - 7, 2004

Filter by week: 1 2 3 4 5

Problem with Collection/Property in Usercontrol
Posted by Marc Fauser at 8/7/2004 10:04:10 AM
I want to use a collection of controls in a usercontrol. It should work like the built-in toolbar, that means i want to add and remove buttons with the designer. my problem is that the designer does not save settings within my collection - the entries stay in the generated code but when i run th...more >>


Where is the old fashioned flexgrid control?
Posted by Evan Tomlinson at 8/6/2004 9:49:09 PM
Hi, I am recently started to work with the dot-net framework but has several years of exprience of Visual Basic (version 4-6). In my old VB 6 environment I have a FlexGrid control which is simply a plain grid you can do anything with, including connecting to a data source. However, what I f...more >>

how to set DataGrid Column Header height?
Posted by Cristian Balcanu at 8/6/2004 5:11:49 PM
I want to set the height of Column Headers in a DataGrid and I don't find such a method. Can anyone guide me? Cristi ...more >>

Property of a string array
Posted by Jason at 8/6/2004 3:52:58 PM
My code looks like this: private string[] _lines; public string[] Lines { get { return _lines; } set { _lines = value; this.Invalidate(); } } The above works great if you set the entire _lines array to a new value but I need to cat...more >>

MS PropertyGrid Question: Those Sneaky Tooltips
Posted by jschreuders NO[at]SPAM ti.com at 8/6/2004 3:01:29 PM
Hey there; I am working on a C# .NET project where we are using the PropertyGrid control to display and update runtime properties to the user. One of the design constraints we ran into right away was that the user should be able to specify the order of items they add to the control. The trick...more >>

Mouse Pointer Dissapears [is this a known bug]
Posted by Asela Gunawardena at 8/6/2004 2:43:53 PM
Hi... If you set the droppeddown property of the MS ComboBox control to true inside the Text_Changed event of a TextBox or a RichTextBox [May be what ever extends the textboxbase] the mousepointer dissapears and stays hidden till u give another click. Can someone please tell me a solution to t...more >>

Creating Column Styles based on previous cells value
Posted by Phill Urrea via .NET 247 at 8/6/2004 8:34:58 AM
Hi, I've a problem that I'm banging my head against the wall trying= to solve=2E Basically I need to create the style of a cell in a= datagrid based on the previous cells value=2E So if the user selected one value in the previous cell, I might= want a combo box to appear in the next=2E If th...more >>

listbox.selectedvalue
Posted by sinhadarpan NO[at]SPAM yahoo.com at 8/6/2004 3:41:30 AM
in a list box i have seprate Display Member and Value Member and the list box is multiextended... now i want to get the value of all the items selected on the click event of an button.... can ANY ONE HELP........ Although GetSelected[int Index] give me wether an item is selected or not but ho...more >>



How does a UserControl create another control at runtime?
Posted by jramaley NO[at]SPAM iname.com at 8/5/2004 11:30:55 PM
I want to instantiate a control at runtine from the code of a UserControl. This is similar to a ComboBox creating a popup list. How can I do this? Do I just call "New" and "Show"? Or do I also have to link the new control with the parent form? thanks...more >>

Collection in UserControl
Posted by João Santa Bárbara at 8/5/2004 5:43:40 PM
Hi all, i´m doing a user control, and one of my public properties is a collection, but in designtime, i´m adding a few objects of my type, but none of them are saved in the form, everytime i go to the properties of my object nothing is in there ? anyone have a sample or counld help me ?? th...more >>

performance problerm with custom control
Posted by Sigrid at 8/5/2004 4:55:37 PM
I have a custom control A, that has two text fields and a datagrid object. the datagrid is populated within the control, quering the information from the database at the time of construction. Now I have a Form, with a tabbed control, let's name it B. On the object B we need to display N instances...more >>

DataGrid and TableStyles Blues
Posted by Tat at 8/5/2004 12:41:38 PM
Hi I am struggling with a simple problem here. I am applying styles to DataGrid, however, data is displayed without any styles. When in break mode, I check that DataGrid does have styles, and all the properties are there. However, styles don't render on a DataGrid. It displays data as it is. I...more >>

System.InvalidOperationException: Failed to load ImageList
Posted by Jose M. Aragon at 8/5/2004 11:56:17 AM
I get the following exception when I try to run a c# winform app that includes an imagelist: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Additional information: Exception has been thrown by the target of an invocation. Unhandled...more >>

InvokePaint with FlatStyle.System
Posted by nx-2000 NO[at]SPAM winvoice.com at 8/5/2004 11:08:16 AM
I'm trying to get an image from a button for use in a custom button datagrid column. I've gotten all the hard part figured out by grabbing different chunks off the web. It works perfectly, but what I'm running into is that whenever I set the button to be FlatStyle.System, InvokePaint doesn't d...more >>

Possible bug in ListView.SelectedIndices.Contains
Posted by Stu Smith at 8/5/2004 10:54:28 AM
The following code snippet produces an ArgumentOutOfRange exception when calling ListView.SelectedIndices.Contains. I'd consider this a bug; any comments? (Just click tthe 'Add' button to repro). Stu using System; using System.Windows.Forms; public class WindowsForm : System.Windows...more >>

how to fixed column width in list view
Posted by Subhash Bhartiya via .NET 247 at 8/5/2004 4:12:33 AM
hi, can any one help me ? how i can prevent user to do not change the width of column of list view in vb.net From: Subhash Bhartiya ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>dTXRryKOgk2v6uGqPKM+yg==</Id>...more >>

connecting to a DB
Posted by Emmet Cummings at 8/4/2004 6:37:10 PM
I'm using the following code to access a database, but it has trouble connecting. I got 'source' from creating a connection in the design view and I tested the connection and it was fine. Any ideas? string select = "SELECT Name FROM Customer"; string source = "data source=C:\\MyDB.mdb;passwo...more >>

Sorting TreeView
Posted by Vycka at 8/4/2004 6:32:07 PM
Hello, Standard Tree.Sorted property doesn't sort nodes like I want to. It just place them in a specific place while adding new node. This is not suitable for me, because during insertion I don't know node's name so it is placed in the end of all nodes. To make things clear I will cover some s...more >>

(DataGrid) How to make selected row visible!?
Posted by Jeffrey A. Voigt at 8/4/2004 3:44:33 PM
We are programatically selecting a row in the datagrid and we need a way to make sure it is visible to the user. Is there a way to do this!? Thanks, - JV ...more >>

How to use FTP class GetFileList?
Posted by kjon at 8/4/2004 8:46:47 AM
Hi, I'm trying on an FTP class which I don't know who's the original author. It has a method "GetFileList" to return a string array containing the remote directory's file list. I need to know the files/folders exist in the FTP site. Does anyone have any idea how to use this method? Any sample ...more >>

Finding topmost displayed row in combobox
Posted by grant_drake NO[at]SPAM hotmail.com at 8/4/2004 7:42:48 AM
Is this possible at all? I would like to draw some column headers in the "dropdown" portion which are not "scrolled off" (as would be the case by simply picking up DrawItem event for index 0). I (think) this means I need to detect when I am drawing the topmost row to intercept that one instead. ...more >>

How to Marshal a call to Timer
Posted by BilMuh at 8/3/2004 11:53:01 PM
Hello Esteemed Developers and Esteemed Experts, I have a background-running-thread in my application that is designed and developed at Windows Forms (.NET) by using Visual C++ .NET Standard on Windows 2000 Professional O.S. Whenever the required job is done in that background-running-thread,...more >>

richtextbox lines setvalue
Posted by OmniTech at 8/3/2004 1:19:01 PM
I am having trouble updating lines in a richtextbox. The rtb.lines.setvalue("text", linenumber) runs, but does not update the control in the form. The code follows... This apps automatically updates an output screen with changes in the file when the file length changes.. Private Sub LoadFi...more >>

Populate Values on Form from Another Form in VB.NET
Posted by Nathan Truhan at 8/3/2004 12:19:04 PM
Ok, I am designing a user management app with Windows Forms, has textboxes for firstname, middlename, lastname, userid, site, dept, etc... These appear on the mail usermgr form which starts with the Application I have a second form that does a lookup of users based on some information , Search...more >>

Button and Label differences
Posted by Tim Mulholland at 8/3/2004 11:34:48 AM
I'm trying to use the code found in this newsgroup post: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&threadm=%23JZYO4XRDHA.4024%40tk2msftngp13.phx.gbl&rnum=1&prev=/groups%3Fq%3DC%2523%2520find%2520appropriate%2520font%2520size%26hl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26sa%3DN%2...more >>

How to create an OCX using Visual Studio .NET.
Posted by Carlos Natal at 8/3/2004 10:34:56 AM
Dear all, How can I create an ActiveX OCX using Visual Studio .NET? Thanks, Carlos ...more >>

Licensing
Posted by jmmb at 8/3/2004 10:17:20 AM
What would be a good and secure licency policy to distribute my components? I manage to find some good examples using the registry, but i doesn`t seem to be the best choice. I know it depends on how i want to market my control, but what I really need is a strong licensing in a way the user could ...more >>

is it a Bug?
Posted by jmmb at 8/3/2004 10:01:23 AM
I created a windows user control and defined an icon to be shown in the toolbox using the appropriated attribute. But, the icon doesn`t appear, and Visual Studio uses the default icon. the same happens in MOC course 2555, with the practices solutions. thanks a lot. ...more >>

TreeView Hit Test for Image
Posted by Michael S. Scherotter at 8/3/2004 8:14:50 AM
How do I determine if a mouse click is in the image or the text of a TreeView Node? Michael ...more >>

Change text color of a date in MonthCalender control
Posted by sunil NO[at]SPAM volcanomail.com at 8/3/2004 1:40:28 AM
Dear All, I am using MS MonthCalender control...I would like to display some dates in a different color...to indicate that they are holidays...Is there a way to do this? Please help... TALIA Many Regards Jack...more >>

custom controls/events
Posted by SilentCry at 8/2/2004 11:01:19 AM
i can't believe i have to ask this since i've been developing Windows stuff with C/API and MFC for about 10 yrs now but it seems handling messages/events is a tad bit different in C#. here's the rundown.. have a custom control that is inherited from Control obviously need to paint it myself sinc...more >>

NumericUpDown Win XP style
Posted by Pascal Cloup at 8/2/2004 10:42:40 AM
Hello, The NumericUpDown control doesn't adopt the Windows XP style. Is there something special to do to this control so that it adopts the XP style? Thanks in advance, Pascal ...more >>

How do I update controls on a form having no user interaction?
Posted by Steve Teeples at 8/2/2004 9:33:53 AM
I am trying to launch a form that shows a status update via a progress bar of tests running in the background. The form only has a cancel button if the user wishes to stop. My problem ... I can't seem to figure out where to call the routine that launches my test cases after the form is fully...more >>


DevelopmentNow Blog