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 > april 2006

Filter by week: 1 2 3 4 5

RichTextBox flicker reduction methods?
Posted by Ă–zden Irmak at 4/30/2006 11:58:07 PM
Hello, One of the WindowsForms controls that I developed uses a richtextbox as an editor in one of it's properties. As it does syntaxhighlighting, I get a lot of flicker at this operation. Using LockWindowUpdate API helps a lot but at the same time causes the desktop to flicker like a hell....more >>


Form on Panel not Anchoring/Resizing
Posted by Smidge Boyter at 4/29/2006 1:17:52 PM
I have a MDI Child form with various controls and a panel. On the panel at runtime I am adding a form to the panel. Everything works except when the outer form is resized, the panel gets resized but the form on the panel doesn't. It just stays in the same place that it starts out on. Belo...more >>

Visual Studio designer problem
Posted by ovidiu.sabou NO[at]SPAM gmail.com at 4/29/2006 10:51:08 AM
The Windows Forms designer from VS 2005 behaves strangely on my computer quite often. The only reliable and temporary fix that I know is to restart the computer. I don't experience similar problems with other applications. It chaotically draws text(and other stuff as well) on the screen(out of i...more >>

User control
Posted by Pesso at 4/29/2006 12:39:15 AM
I have a user control in which contains a Label, a Toolbar and a TabControl. When the User control is resized I like to resize the controls inside the User control. How do I do that? -- pesso Robotics http://www.robotics.com/robots.html C++ to HTML Converter http://www.codesolutions...more >>

Error creating window handle - possible causes?
Posted by illegal.prime NO[at]SPAM gmail.com at 4/28/2006 4:37:38 PM
So I've taken a perusal through google groups looking for possible causes of this error. I've seen answers varying from: - creating too many Form objects - creating too many MenuItems in your Forms - a combination of the above two - something to do with setting the style on a control So, ...more >>

Updating ContextMenu MenuItems depending on location of right click
Posted by illegal.prime NO[at]SPAM gmail.com at 4/28/2006 2:52:22 PM
Hey all, I'm getting a weird bug, where I will add sub menu items to a menu item in my context menu and sometimes the sub menu items appear and sometimes they don't. I can see from my logging that the code is successfully using the MenuItems.Add to add the sub menu - is there anything that mig...more >>

RSS Feed
Posted by VJ at 4/28/2006 1:46:24 PM
Now that I have learnt about RSS feeds... is that a good way to exchange data in a B2B situation? or Rss Feed is for only news feeds... Can someone... is RSS every used in WinForms situations or only ASP situations... What our clients mainly do is use webmethod, get the data and display it ...more >>

How to Screate Skin For Vb Form
Posted by hasmukh hapra at 4/28/2006 7:49:23 AM
Hello Everyone, I have a requirement of writing a WinForm application that should support "SKINS" for the UI. On applying a skin, the look and feel of the application can change drastically. Even the size and shape of the Main window and its child controls can change. I have NO idea abou...more >>



Expose class members (how to)
Posted by Toco at 4/28/2006 7:11:02 AM
Hello. I have write a class file with some methods I wish to expose. For example I have a windows form which should call a method from another class file. I think this has something to do with inheritance, no? Maybe the windows form will need to inherit from class file? I use C# 05. Than...more >>

Manipulating a bound datagridview
Posted by korey99 at 4/28/2006 6:49:25 AM
Hi- I'm working on an application that has a datagridview bound to a datatable, backed by an Access database, through a bindingsource. I have buttons to add and remove rows, and handlers for those buttons. My question is, what is the proper/commonly accepted way to (for example) remove the...more >>

ClickOnce: How to change the config file once we deploy on the ser
Posted by Satish Babu Dasari at 4/28/2006 6:33:02 AM
Hi, I have problem in updating the config file. We are using the ClickOnce technology to deploy the C# windows forms applications. After deploying to the server, if we want to change the keys in the app.exe.config.deploy file, it is not giving the erorr at the time of modifying the file....more >>

Implicit conversion warning
Posted by Jared at 4/28/2006 12:00:00 AM
Hi, I keep getting warnings for cloning string arrays and arrays of objects. Should this feature just be disabled? or is ther a correct way of copying structure. ...more >>

XML String
Posted by Martin at 4/28/2006 12:00:00 AM
how do I create a XmlDocument object or a XmlDocumentFragment object or a XmlNode objekt from a string? I get a string like that: <Node> <ChildNode>Value</ChildNode> </Node> in a variable of type string. now I want to parse this string with xml objects in order to get less work. is it...more >>

Color Dialog
Posted by tmoeller at 4/27/2006 11:35:01 PM
Hi, when using this code: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim MyDialog As New ColorDialog() MyDialog.AllowFullOpen = False MyDialog.ShowHelp = True MyDialog.Color = TextBox1.ForeColor If (MyDialog.ShowDialog()...more >>

Print command with ""
Posted by tmoeller at 4/27/2006 11:31:01 PM
Hi, my program uses the Print command like Print(a, "Language=" & language) to print a textline in my text file. In the text file I need a format like Language="my language" How do I get the additional quotation marks? Regards Thomas...more >>

App.config file
Posted by msnews.microsoft.com at 4/27/2006 10:06:08 PM
I am having a heck of a time trying to figure out how to get a setting in a referenced assembly/dll from the exe's app.config file. In other words, I have an assembly called AcmeApp.exe which contains an app.config file. This exe references a dll AcmeHelper.dll which I am trying to read a ...more >>

Physical path of a virtual directory
Posted by Meena at 4/27/2006 5:49:10 PM
I have a WinForms application that has to get physical path for a virtual directory. Which class should I use to achieve this ? I know the name of the virtual directory for which I need to get the physical location. Thanks, Meena ...more >>

Disable Context Menu
Posted by Jared at 4/27/2006 3:04:05 PM
Hi, Is this best way to disable defualt context menu for win form? Me.Textbox1.ContextMenu = New System.Windows.Forms.ContextMenu ...more >>

Window Form Security Question
Posted by Sammy at 4/27/2006 12:59:01 PM
I am trying to set a buttons visibility on a C# Windows Application - form. If the user who is logged onto the computer - running the app (on the clients computer) is a member of a particluar active directory group, then I want the button visible, otherwise it should be invisible... I have...more >>

How to get rid of the designer
Posted by Greg at 4/27/2006 12:34:34 PM
I want to add some custom methods to the DataGridView class, so I inherit from it. When I click on the .cs file in the solution explorer I get a designer. How can I get rid of it? I just want to edit code without right-clicking and selecting "View code". Is there any point for using the desig...more >>

Display custom images
Posted by Bala Nagarajan at 4/27/2006 12:33:17 PM
Hello, I am developing a tool (in Windows Forms .NET 1.1) which uses a OpenFileDialog component to browse file in the local hard drive. I want to be able to show some folders in the OpenFileDialog with a different image. These folders are unique to the tool and has a defined folder ...more >>

Changing from DropDown to DropDownList
Posted by Marty at 4/27/2006 10:38:08 AM
Why does my field not save when I change the control from DropDown to DropDownList? I used the data from wizard. Thanks. ...more >>

Connecting to a remote Web Service Error, help plz
Posted by Mr. Ali Hasan at 4/27/2006 9:33:02 AM
There's a problem in my windows application that calls a remote web service's method, when it tries to connect to the webservice it displays this error: "The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Acces...more >>

Tab control and each tab its own class
Posted by Richard Lewis Haggard at 4/27/2006 9:04:41 AM
It seems as though the default behavior for a tab control is for the parent form to get all of the messages for all of the pages in the tab control. Is there an easy way around this? I've got an application UI where the desired behavior is a large set of tabs with each tab containing its own s...more >>

Splash Screen in C#
Posted by T. Schissler at 4/27/2006 7:27:01 AM
In VB.Net I can add a Splash-Screen as a new Item to my Project and set in the Project Properties to use it as a Splash Screen. But I did neither find the Splash Screen Template nor the corresponding Project Property in C#. How can I set a Splashscreen in C#? I can't beleve, VB.Net is more pow...more >>

Vererben eines eigenen Forms
Posted by Andreas at 4/27/2006 7:03:09 AM
Bei meinem VB.Net (2003 Standard) Projekt habe ich mehrer Fenster mit fast dem selben Inhalt. Nun m=F6chte ich alle gemeinsamen Eigenschaften in einem, wenn m=F6glich abstrakten, "Vater-Form" erzeugen. Dabei m=F6chte ich auch GroupBox's verwenden, in welche die abgeleiteten Forms jedoch weitere ...more >>

accessing methods in user control
Posted by poppy at 4/27/2006 3:29:02 AM
Basically when auser clicks on a button on my form I want my user control to be loaded "ctlAddProject controlAddProject;Controls.Add(controlAddProject);" which is easy enough. Now there is a public method called doBind(string fName) on the control which I want to call from the parent form...more >>

Amazing invisible TreeNode
Posted by Marius Horak at 4/27/2006 1:51:14 AM
I have a custom control with two treeviews. The idea is the if a user double clicks on a node in TreeView A a new node is added to TreeView B. But when the first node is added it does not show on in TreeView B, Nodes.Count is 1. Nothing helps, nor Refresh no DoEvents. When a next node is added b...more >>

Running .exe gui in a windows form container
Posted by Gerry at 4/26/2006 10:10:50 PM
I need to display two VB6 applications side by side within a single 'windows manager' My thought is that I could use a split screen form, using the 2.0 framework and visual studio 2005, that display the UI of each of the VB6 apps within some control or container on the windows form. The obv...more >>

Automatic Text property at design time
Posted by Dario C at 4/26/2006 8:37:08 PM
Hi, when we place a label or textbox or other controls from the toolbox on the form at design time, the Text property of the control automatically contains the name of the class and an incrementing number after it (label1, textbox3, etc). I have a UserControl and I want to modify this stri...more >>

How to handle menus?
Posted by Robert Schneider at 4/26/2006 4:57:39 PM
I'm creating an application that has should have a style like VS.NET. What I would like to know is what is the best way to handle menus, tool bars and context menus. How can this be done? The menus are dynamic so they have to be determined with each click. But how does it work? Let's take ...more >>

Adding a User Control closes VS.NET
Posted by joelcochran NO[at]SPAM gmail.com at 4/26/2006 12:36:13 PM
I am running VS.NET 2005. I have created a UserControl and added it to my toolbox. When I try to drag it onto a Form, Visual Studio closes immediately with no reported errors. I've added the UC to a new solution, I have the project in the solution, and am referencing the Project output in th...more >>

Error Installing Windows Service- Please Help
Posted by Steve, Putman at 4/26/2006 11:11:05 AM
I am getting an error whild installing the Windows Service from Command Prompt or from Process.Start command in vb.net. C:\>installutil C:\Program Files\SomeDirectory\WindowsServices.exe /u Error Is Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42 Copyright (c) Micro...more >>

Deployment with ClickOnce
Posted by smartin NO[at]SPAM aastra.com at 4/26/2006 9:26:56 AM
Is it possible to deploy application via clickonce without signing manifest ? I have the problem since we are deploying an application from Linux and the process mage.exe is not running in Linux environnement. So we are not able (as far as i have understood clickonce techno) to make modification...more >>

Datagrid Combo Box - Newby question
Posted by Richard Harris at 4/25/2006 4:25:29 PM
Hi, Can anyone tell me if it is possible to have a column of combo boxes on a windows forms datagrid? I'm sure it is possible, but I have looked on the internet and can't find much information on how to do it? Thanks Richard ...more >>

How does one create a rounded window?
Posted by zorro at 4/25/2006 10:20:23 AM
Hello, I want to have a window skin with rounded corners and where the system's usual window frame is hidden, like in Windows Media Player. Can I do this with Windows.Forms? Is it just a matter of setting some property, like "myframe.visibility=false"? nu-b ...more >>

How to get a Terminal Server Client Name in vb.net
Posted by Jim Bob at 4/25/2006 7:51:59 AM
I know how to get a computer name in VB.net such as: ' Get Computername Dim host As IPHostEntry = Dns.GetHostByName(Environment.MachineName) lbHostName.Text = host.HostName.ToString However, I need to get a Terminal Server Client Name for a session running on a Terminal server. Does anyo...more >>

TextBox.IsInputKey
Posted by UdiBenSenior NO[at]SPAM gmail.com at 4/25/2006 5:34:27 AM
Hi, I have a class derived from richrext box that overrides IsInputKey. I would like to handle 'Enter' in my derived class, without forwarding it to the base (RichTextBox) - thus preventing from the base to print the '\n'. I tried to return false from IsInputKey but it didn't work. What am...more >>

CausesValidation and ControlBox
Posted by pa.singer NO[at]SPAM verizon.net at 4/25/2006 4:47:07 AM
Developing a windows application with VB.Net under VS 2005. I am wondering if anyone knows how I can prevent validation events from firing if the user clicks on the control box close button to exit a form. I do not want to set the CausesValidation property on all of the form controls to False ...more >>

Image Editor for Winforms
Posted by shah.hemalata NO[at]SPAM gmail.com at 4/25/2006 4:40:21 AM
Hi All I am new to Winforms. I have the following requirment based on Winforms: 1.User should select a Image 2. User should be allowed to crop the image. he can just select a part of what he wants of that image and the selected image should be stored. Is anyone aware of how this can be a...more >>

TextBox insertion point
Posted by kh at 4/25/2006 12:34:01 AM
hi. i have a control derived from TextBox. how can i set this up such that all text is always selected (i.e. the insertion point is never shown). i was hoping for an OnEnteringEdit method or similar but no such luck. do i just need to capture mouse clicks or are there multiple methods of enter...more >>

ListBox: SetBounds - missing height???
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 4/24/2006 7:26:31 PM
Hi guys, when I used SetBounds to change a listBox's size, I found sth interesting. But I was wondering whan happened. For example, I wrote, this.listBox1.SetBounds( 10, 10, 100, 300); // x, y, width, height After that, I got the size of listBox1. Howev...more >>

Controlling scrollbars
Posted by sb at 4/24/2006 6:11:36 PM
Let's say you have a simple UserControl (2.0 framework) with the following two settings changed from their default: AutoScrollMinSize = 16384; AutoScroll = true; Once those are set, is there a way to also set the LargeChange and SmallChange properties of the horizontal/vertical sc...more >>

Experienced Opinion Wanted Regarding Web Services and Url Referenc
Posted by dave at 4/24/2006 5:12:01 PM
We have a winform application. We are using ClickOnce for deployment. Currently we can reference the web service through http://localhost/testws/bob.asmx When we deploy however we want this reference pointing towards a production server. Currently we have the URL Behavior set to Dynamic (w...more >>

Tab not advancing to next control...
Posted by NFXBeats NO[at]SPAM gmail.com at 4/24/2006 4:05:41 PM
I have a winform dialog that has several text boxes and a couple buttons. When I invoke this dialog via another winform app, it works fine. This particular winform app is "COM Visible" so that I can use it in a legacy Delphi app. Whenever I invoke the dialog via COM, everything functions e...more >>

MDAC 2.8
Posted by John at 4/24/2006 1:03:52 PM
Hi, Please if you can read and help me in this questions, as I am beginner in programming. I am using ADO connection to MS Access database (DAO is not an option) in VB.NET 2005 project and I have to setup deployment of program. 1. Do you reccomend installation of MDAC 2.8 on user computer?...more >>

WinForm in IE - Slow Load Times w/ Interface
Posted by Spam Catcher at 4/24/2006 12:13:53 PM
Hi all, I've added a shared remoting interface to WinForm in IE control. Since adding the DLL, load times have double - it takes ~2 minutes to load. The DLL is 16K and only contains shared interfaces. I checked the Fusion binding log (as well as my own custom logging), initial load takes...more >>

Is there an easy way to copy a portion of a page design from one project to another????
Posted by Hexman at 4/24/2006 11:18:36 AM
Hi All, I've been designing/coding small segments of an application in various projects. Now after getting the design, settings and positioning of various controls in these 'partial' projects, I want to copy those controls to my 'real' project pages. For instance, I have a group box with ...more >>

Resizing and Relocating controls on a Form
Posted by FredC at 4/24/2006 8:36:02 AM
I have three "strip chart" style graphs on a form. They are located at the top middle and bottom of the form and the cover the entire form. They are achored to the top, left and right. When the from is maximized I get an empty gap at the bottom and when the from is resized smaller then the de...more >>

ErrorProvider/BindingSource Problem
Posted by Jason at 4/24/2006 8:26:02 AM
Hi, I'm trying to drop a strongly-typed DataSet onto a form, attach a BindingSource to one of the tables as well as an ErrorProvider. The control contains a set of TextBoxes which I bind to columns within the columns within the same table I bind the BindingSource and ErrorProvider too. ...more >>


DevelopmentNow Blog