Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > may 2005

Filter by week: 1 2 3 4 5

Menu items are not displaying the access key underscore
Posted by None at 5/31/2005 11:03:02 PM
The underscores display fine at dev. time but at run time there are no underscores on the menu items. What am I doing wrong? ...more >>


dynamically Refernce control
Posted by KentG at 5/31/2005 11:00:03 PM
I want to build a reference to a WinForms control but I can't seem to do it... I want to do something like (I know this is wrong): me.Controls("Textbox" & i).Text = "Hello World!" But I can't seem to figure it out. Please help. Kent....more >>

Form Consistency
Posted by Sameer at 5/31/2005 10:47:01 PM
Hi, We have following issues with Windows Forms, 1) When we run our application on two different operating systems, Windows 2003 and Windows XP, on the XP Machine because of XP themes, the GUI of the windows forms changes i.e. the font size and colors on the form changes, the close...more >>

The Form.Show() method
Posted by active85k at 5/31/2005 8:02:02 PM
First of all excuse me for my bad english but i'm italian. I have an application with two threads. The second one is not the main thread and i tryed to show a form like that: MyForm f = new MyForm(params); f.Show(); but the form is frozen. i tryed with Invoke and BeginInvoke but i have no ...more >>

Interfacing with Digital Camera
Posted by Simon Harris at 5/31/2005 6:21:58 PM
Hi All, I will shortly need to build an app, which will need the ability to upload a photograph and tie it a record. (User database). This much I can do. As this will be used on a public ticket gate, it needs to work as fast as possible, the steps would be to take the photo, then download i...more >>

MouseWheel Event
Posted by George at 5/31/2005 4:38:15 PM
I have a scrollable panel that is covered with richtextbox's. The trouble is when using the Mouse Wheel the event is fired for the textbox's but not the panel, and it is therefore not scrolling. How do I send the MouseWheel event to the parent panel from these RichTextBox controls?...more >>

Help having problems with UserControl
Posted by Kim at 5/31/2005 4:09:18 PM
I have a form that has a button in it when I click on the button I want the textbox that is on the usercontrol to update. Ive tried: //This is on the form private void button1_Click(object sender, System.EventArgs e) { UserControl1 ctrl = new UserControl1(); ctrl.ClientName = "This is a ...more >>

inherited forms - random debugging errors
Posted by Eickhel at 5/31/2005 3:57:55 PM
Hey, I have an application that has many inherited forms from a base form. Everything works well but every now and then when I hit "Start" VS .Net 2003 gives me errors from the inherited forms.... I need to Rebuild the Solution and then everything is ok... does anyone knows why does this ha...more >>



Line Numbers in RichBox
Posted by Pete at 5/31/2005 3:10:25 PM
Hi Group... Can anyone point me to any c# tutorials relating to line numbers in the gutter area similar to the IDE?/ I've looked and looked and googled for ages but maybe I need more eyes to help cos there seems to be none relating to c#. Thnx/ Pete. ...more >>

Data-bound control- Syncing selected with data search
Posted by kadams1 NO[at]SPAM ca.ibm.com at 5/31/2005 1:13:07 PM
Greetings: I'm have a WinForm in VB.Net that has several simple controls, specifically Comboboxes, that are data bound. I want to perform a search on the bound data (NOT on the values in the Combobox), find a particular row in the Dataset, and make the corresponding entry in the Combobox ...more >>

How to prevent ComboBox from dropping down on click
Posted by Matthias Menningen via .NET 247 at 5/31/2005 1:09:45 PM
The Combobox control supplied by DOTNET configured as dropdown list behaves in the following way: When the user clicks into the box it immediately drops down. Normally dropdown boxes should drop down only when the dropdown button of the control is clicked. Most applications e. g. in Mocrosoft ...more >>

impersonation
Posted by Mark at 5/31/2005 11:42:34 AM
Assume a windows domain, and a .NET windows application connecting to a SQL Server 2000 server on the domain. I don't want to give a windows user or group direct access to modifying data, or executing stored procedures. I'd like to use impersonation, once I've validated the user. However, I...more >>

Remove menus in a maximized mdi child form
Posted by Ryan Taylor at 5/31/2005 11:36:51 AM
Hello. I want to be able to have an MDI parent form without any menu items. I also want to have an MDI child form without menu items. However, when I maximize the MDI child form, I always get a meny bar at the top of the form. How can I stop this behavior? Thanks in advance. Ryan ...more >>

MessageBox in app started from command line
Posted by Merit at 5/31/2005 7:20:04 AM
Hi, I'm trying to add a couple of command line switches to a windows forms application which will perform a short operation and possibly display a message box to the user then immediately exit. It works fine when I run from the debugger but if I run the app from a cmd window the messageboxes...more >>

Minimize Form to Systray
Posted by Bob at 5/31/2005 5:53:01 AM
All, I have been trying to come up with a work around for the default form minimization process in .net. Currently, when you minimize a form it animates the minimization to the bottom left. This is fine, unless you are trying to minimize to the systray. Below is a snippet of code I wrote (...more >>

Using the date to allow users to have a grace period
Posted by Joe_Black at 5/31/2005 12:00:00 AM
Hi all, I have an app that users can add plug in modules to, each module gets a key supplied by us to activate the module for permanent use, the modules however must work for a trial period, say 30 days, to allow the user a chance to test that the module is what they want before paying for ...more >>

Focus on Control of Child's Form
Posted by khurram at 5/31/2005 12:00:00 AM
Hi All, I am working on a windows form application and we have an MDI form with Toolbar on it. On click event of toolbar we are creating a specific instance of a child form and showing it. Now on the child form we want to set the focus on the first field and for that purpose we set the t...more >>

Altering Default GridSize
Posted by Anthony Williams at 5/30/2005 10:03:56 PM
Hi, I am implementing a Forms designer in my application and would like to alter the default grid size used by the form. The only place I can find the property for GridSize is protected in the class System.Windows.Forms.Design.ParentControlDesigner and I can't for the life of me figure out a...more >>

network aware windows application
Posted by thomasamillergoogle NO[at]SPAM yahoo.com at 5/30/2005 8:57:54 PM
Hello, I am working on a windows application that has to be network aware. What is the correct way to make it network aware? On startup the program must call a web service to retrieve data. Right now I start a Timer that calls an asynchronous web service called CheckConnection() every five s...more >>

Control ClientSize and Size
Posted by jeff at 5/30/2005 7:29:01 PM
hi,guys I am confused about Control component 's property What is the diffenent between ClientSize and Size? I want to create a customer Panel. for example: public calss myPanel:Panel { public myPanel() { CheckBox cb = new CheckBox(); cb.location = new Point(0,0); ComboBox c...more >>

How implement DoubleClick Event ???
Posted by NQ at 5/30/2005 5:23:01 PM
I want to implement the DoubleClick event in a MonthCalendar control. I created my custom control inheriting from the MonthCalendar control, but I have no idea about how to proceed to implementing it... Can anyone help me ??? Many thanks NQ...more >>

Sendmessage WM_KeyDown and WM_KeyUp not working as expected
Posted by Jeremy Chapman at 5/30/2005 4:41:09 PM
I am trying to send a shift and right arrow keypresses to a window in another application. If I use Microsoft Spy++ and Press shift + Right Arrow, the events get captured as follows WM_KeyDown nVirtKey:VK_SHIFT cRepeat:1 ScanCode:2A fExteded:0 fAltDown:0 fRepeat:0 fUp:...more >>

How to draw ICON on VS.NET 2003
Posted by jeff at 5/30/2005 2:25:02 PM
Hi, how are you I want to draw a ICON on My Panel? How to do it? In C++; We can use CDC, and draw? public class PictureField : Panel { private bool isEditable = false; public PictureField(bool editable) { this.Enabled = false; this.Size.Height = 20; this.Size.Widt...more >>

Strange Autoscroll property
Posted by jeff at 5/30/2005 10:26:09 AM
Hi, guys. I am a newer to DOTNET. Now I use VS.NET 2003 for my project. I create a class inherited Form When I want to use this.AutoScroll = true; there is an error say: 'myForm' does not contain a definition for 'AutoScroll' Why? Thanks in advanced...more >>

PropertyGrid - attaching UITypeEditor without using Editor attribute?
Posted by Dr. Proctor at 5/30/2005 9:15:10 AM
Hello I have a PropertyGrid in my app that displays set of properties that is created dynamically at run-time. Ie. I use a collection that implements ICustomTypeDescriptor and it's instance is bound to PropertyGrid's SelectedObject. This collection stores PropertyDescriptor-derived objects,...more >>

Winforms on a network share
Posted by mark at 5/30/2005 9:06:08 AM
Is it possible for a winforms executable put on a network share to scale to allow 100 or even 1000 people to "share" it? Assume a windows domain where each client has the .NET Framework installed, and that application's only external call is to make CRUD (read/write) calls to a SQL Server 200...more >>

IMAGE PATH
Posted by Siu at 5/30/2005 3:36:03 AM
Hi, I've some problem by getting files in my application path: I've to run the following instruction MyButton.Image = Image.FromFile(MyImagePath)); MyImagePath should be the path where to find the image and I want to instantiate it dinamically like this: string MyImagePath = Path.GetF...more >>

"my documents" location
Posted by Bruce at 5/29/2005 11:45:00 PM
Does the .NET 1.1 framework provide a mechanism to navigate directly the "my documents" folder of the current user? (Specifically, I want my application to write a config file into the user's My Douments directory. But I do not want to have to force the user to navigate manually to "C:\Docum...more >>

Toolbar buttons look ugly
Posted by tommazzo at 5/29/2005 8:59:41 AM
Hi! I recently got the VisualStudio 2005 Beta 2 and already moved my open-source C# development to it. However since I want to release .NET 1.1 assemblies I have to keep the code compatible. After doing some work on a form in VS 2005 I noticed that this form's toolbar looked quite ugly when...more >>

the problem raise by OnPaint
Posted by andychan at 5/29/2005 7:12:06 AM
when i write down the codes like below when I move the mouse The display of the form will glimmer override protected void OnMouseMove(MouseEventArgs e) { //do something this.Invalidate(); } How can i deal with it?Tell me the resolution,thank you. -- there is no failure only give up...more >>

Cast IDataAdapter
Posted by Bud James via DotNetMonster.com at 5/29/2005 12:00:00 AM
if i have something like this private IDataAdapter dA; private class DBTalker(IDbConnection cn) { Type t=cn.GetType(); } By getting the connection type i know then if it is sql, access, oracle so it would seem that with that information i can cast dA as the appropriate type. I...more >>

Best way to implement a C# Windows Forms app. as a Singleton?
Posted by None at 5/28/2005 9:54:32 PM
I only want one instance of my C# Windows Forms app ever to run at the same time. I'm familiar with the Singleton pattern of course. What's the best way to achieve that pattern with a Windows Forms app? ...more >>

Newbie VB .NET: Determine length of string
Posted by Wishing I was skiing mom at 5/27/2005 2:26:04 PM
I have a field that contains a user logon. I want to populate a textbox on a form with the username portion of the logon value. I need to determine the length of the logon field in order to substring just the name portion of the logon. I realize you can not define a string as a fixed length...more >>

Format and parse event handlers on a bound datatable
Posted by TomU at 5/27/2005 1:51:35 PM
How can I obtain the binding object for a column of a datatable bound to a datagrid so I can set up format and parse event handlers? The bindings collection of the currency manager (where it seems the bindings should be) is empty as shown below. DataTable dtTest; // populated datatable ...more >>

vb.net Textbox cursor
Posted by Chris at 5/27/2005 1:50:50 PM
Hello Everyone, I have a vb.net app with about 300 textboxes for data entry. My users are complaining because the blinking cursor is not big enough to give them visual notification of which textbox they are on. Is it possible to change the size of a textbox's blinking cursor to make it...more >>

Send email from window form
Posted by Joe at 5/27/2005 2:05:04 AM
Are there any sample code for sending email from a window form? Thanks....more >>

Execute Form event in separated thread
Posted by Salvador - From Spain at 5/27/2005 1:23:10 AM
It is possible to execute the Form_ControlAdded event, or any other event in a separated thread? I want that while controls are added to a form it shows a progress bar....more >>

Overlaying text bitmap onto a background bitmap - rough edges on text
Posted by scolemann at 5/27/2005 1:12:14 AM
Hi all, I have two bitmaps that I want to merge. One is a background image and one is a transparent bitmap that has text drawn onto it. I have tried to take the Graphics object from the background image and call Graphics.DrawImage() and draw the text bitmap directly onto the background. Th...more >>

Datagrid sort & row indexing
Posted by PieterG at 5/27/2005 1:10:02 AM
Hi, I populate a Datagrid (WinForms) from a DataSet. Colum sorting is enabled for the grid. When I sort the grid by column, the default view gets refreshed, but the row index does not get updated. This of course creates a problem when I select a datarow from the grid - I'm getting the dat...more >>

How do I affect controls by string name?
Posted by Byron at 5/27/2005 12:26:03 AM
I've got several like-named controls that I want to affect as a group. For instance, a combobox name cboHEAT is related to chkHEATLock and chkHEATLockLoad. This same pattern is repeated for several sets of controls. What I want to do is affect the sets of controls without having to hard-cod...more >>

losing dialog modality
Posted by djc at 5/27/2005 12:00:00 AM
Hi All, I am developing a .Net plugin for MS Project 2002 & 2003 and have come across what i believe to be quite an odd bug: When I execute a Project dialog from within a modal .Net dialog, the .Net dialog becomes modeless. Both 2002 and 2003 behave this way. I suspect that this is more ...more >>

Child Windows
Posted by JezB at 5/27/2005 12:00:00 AM
I'm new to windows forms, and I'm a bit puzzled how to add child windows to the main window and interact between them. In my case I just want to open up an Options window which, depending on what the user does in there, affects things on the main window. There's no ChildWindow control as fa...more >>

Newbie : Building a form from an XML Schema definition
Posted by Aditya Sanghi at 5/27/2005 12:00:00 AM
Environment : VC.net , VB.net Hi All, I have an XSD ( XML schema definition ) for an xml. Is it possible to create a default form for an XSD. My requirement from that form is that it should be able to generate an XML conforming to the XSD. It should do basic validations for missing mandat...more >>

Child Windows in Child Windows in Child Windows in C#
Posted by James CC at 5/27/2005 12:00:00 AM
Hi there, This may be a stupid/newbie question, usual apologies if so, but I'm writing in C#, and I've got an application with an MDI setup, and I want to add windows in as child windows to the MDI's child windows. For example, my documents contain many objects, and I want to add a dragabl...more >>

Using A Common Dialog to Edit a File Name Property
Posted by Mona Everett via .NET 247 at 5/26/2005 3:32:46 PM
I am trying to write a custom component which requires a filename. How do I mark my FileName property to tell the Visual Designer that I want an elipses button for the property that pops up and uses the OpenFile Dialog? -------------------------------- From: Mona Everett ---------------------...more >>

MDI Childs
Posted by Hernando Del Toro at 5/26/2005 10:01:20 AM
Hi, Everybody. I'm working on an MDI application with some heavy childs forms, In order to free up some resources I would like to close them as soon as another child window is shown above them. Any Idea about how can I do that? Thanks in advance, Nando ...more >>

opening form of a project in other project
Posted by Rafi Khan at 5/26/2005 3:53:17 AM
I have two projects in vb.net i want to access some forms of a project into other . I need help immediately . what are the concepts to be used to invoke a form of other project in present project ...more >>

Visual Inheritence - Menu order on derived forms?
Posted by jjkboswell NO[at]SPAM yahoo.com at 5/26/2005 1:51:35 AM
I have a form with a protected MainMenu, with protected MenuItems (File, Options, Help). I have a derived form which I wish to put a View MenuItem on. I use the GUI editor to enter the menu item details, and then I drag the new View MenuItem between File and Options. All fine. I then buil...more >>

Textbox Enter-key Beep
Posted by Per Rollvang at 5/26/2005 12:00:00 AM
Hi All! Maybe answered a zillion times before, but how do you cancel the ugly beep when hitting enter in a textbox. : ) C#, framework 1.1... TIA Per Rollvang ...more >>

How to create a drop down table?
Posted by zhaounknown at 5/25/2005 11:51:02 PM
When the user click the combobox, a table with multiple fiedls will be dropped down. The behavior of the drop down table should be same to the normal combobox. Any suggestions (using C#)? Looking for a clean way to get this other than manually show/hide a panel/datagrid with events, or, thi...more >>


DevelopmentNow Blog