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 > february 2005 > threads for february 1 - 7, 2005

Filter by week: 1 2 3 4

DoEvents vs. Threading
Posted by Greg Allen at 2/7/2005 8:43:23 PM
I have a .NET windows application which imports large amounts of data. While the import is happening, I have a status/progress bar on the bottom of the form that is being updated as the data is imported. No other interaction with the form can occur while this is going on - I just want the sta...more >>

Programatic or UI change in controls
Posted by Z at 2/7/2005 8:07:02 PM
Hi, Let's say we have a check box and we have subscribed for the CheckedChanged event. Now if the Checked property is changed, the event will fire. The problem is that we dont know in the event handler how the event was fired -from the code (ie programatically) or from UI (checking the box)...more >>

Combobox for historical entries
Posted by Norman at 2/7/2005 7:21:02 PM
I am trying to implement a clone of the url combobox in IE. As you type a string in the combobox it drops down and shows historical entries that were previously entered that match the typed string. The only problem is that when I set the DroppedDown property to true the Text that was being typ...more >>

Sample paper for MCP certification needed
Posted by Vijay at 2/7/2005 6:48:08 PM
Hi, I am planning to appear for the MCP test for following paper: "Developing and Implementing Windows-based Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET" Can anyone give me some useful links for Sample papers for this exam and the course material. Thanks i...more >>

HELP : regarding Textbox Enter and Focus Question many TIA
Posted by CobraStrikes NO[at]SPAM al.com at 2/7/2005 2:16:32 PM
Hi , I did ask before but got no replies. I have a series of textboxes, In Enter event I need to set the focus to a different textbox I am having problems when I set focus within the Textbox Enter event. It is looping thru the events. Does anyone know how I can set focus to another obje...more >>

Form Blanking
Posted by Repton at 2/7/2005 12:15:12 PM
Hi, When I create an application using VB.Net and I test it, while it is running if I alt tab away from tha pplication then back again the applications controls and form goes blank until the task it is running finishes. For instance if I have a form that opens a txt file and reads it int...more >>

Mouse pointer disapears when putting text
Posted by Vicky at 2/7/2005 11:05:20 AM
Hello, I develope an application in C# .NET (Visual Studio .NET). I have realized that when I type any text in TextBox, mouse pointer disapears. I must move mouse, to make pointer visible again. What to do, to avoid hiding mouse pointer during typing text in TextBox? Thanks in advance, ...more >>

Swapping Control Containers
Posted by Evan Stone at 2/7/2005 10:46:30 AM
Are there any decent examples (preferrably C#) of how to use one control across multiple containers? The containers will be visible one at a time (i.e. they don't have to be visible simultaneously), but I'd like to move a single control back and forth within them....more >>



Get list of files from web server directory
Posted by Rob Maui at 2/7/2005 10:27:01 AM
From my WindowsForms application I am trying to get a list of files from a web server directory and download them onto my PC. I will not know the filenames prior to going to the web server directory. Thus, I need to be able to read the contents of the web server directory to get the filenames ...more >>

Textbox question
Posted by Todd Bright at 2/7/2005 9:33:06 AM
Anyone know of a way to tell the .Net textbox control to not break on word boundaries? I'm building a control that I need to break on character boundaries instead. Thanks, Todd...more >>

c# and mysql reporting
Posted by oscar at 2/7/2005 9:21:03 AM
I am currently creating a C# program with MySQL as the database. It is not for a website, it is to be a stand alone program. I am looking for a way to print out reports, I need to be able to format each report based on the information needed. Anyone know a good route to go and some good exa...more >>

Showing shortcut
Posted by Pykardo at 2/7/2005 8:57:05 AM
I want to make my shortcut appear in the menu bar of my windows API in VB.NET but even if showshortcut property is set to TRUE. Is there an other property i have to set so that shortcut appears. And yes the shortcut is set. Thanks all for u tips Pykardo...more >>

TextBox, Set Caret position
Posted by bert at 2/7/2005 7:26:47 AM
I am writing my first windows form application to be used to test database performance. I am using a multi-line textbox control to give the user feedback of what is being processed. This is the code I am using to add xtQueryStatus.Text += "New Data"; txtQueryStatus.Text += System.Environmen...more >>

tabs
Posted by Mike at 2/7/2005 6:09:02 AM
On my form i have several tabs, how can i determine which tab is selected by the user?...more >>

Possible bug with AppDomain.CurrentDomain.UnhandledException
Posted by Alex Glass at 2/7/2005 5:42:13 AM
Im using the following code to test the unhandled exception feature and yet on my development machine it works properly (i.e. it is able to consume the exception) but on my test machine the event handler fails to trigger. Is there something I am missing here? This code below comes from the h...more >>

use xp themes / shellstyle.dll
Posted by tom at 2/7/2005 2:33:02 AM
Hi, Can anyone start me on applying XP themes to my application (vb.net winforms), so I can use the themes like on xptheme.org. thanx, t...more >>

How to access control properties from another Form
Posted by Andrew Diabo at 2/7/2005 12:26:52 AM
I have 2 forms in my C# project (Form1 and Form2). I called Form2 from Form1 using the following: Form2 newform = new Form2(); Form2.ShowDialog(); How do I change properties of a control (label1) in Form1 from Form2? Is this possible? Thanks in advance. Andrew ...more >>

Using images on windows forms, stored in a dotnet assembly (dll).
Posted by Emmanuel at 2/6/2005 10:44:40 PM
Hi, I am creating a multi assembly windows application. I want to store all the images or/and icons of my application to a single dll (as resources ?) and use them from there, when needed, on other assemblies containing windows forms. I want to be able to use them from code (using enumera...more >>

forcing to paint
Posted by benben at 2/5/2005 9:21:36 PM
How to force a control to paint itself. I used to send a WM_PAINT message in Win32 days but I can't find the equivalent of SendMessage in the .Net Framework. I would like to avoid calling any Win32 functions in this case. ben ...more >>

User Control Errors when loading in designer
Posted by moondaddy at 2/4/2005 6:29:21 PM
I have a user control that has some kind of error happening when I load it in the designer (usually when its nested as a child object on another object. I cant seem to trap these errors so I don't know exactly what's going on, however, I did see a code snippet a long time ago where in the c...more >>

resize/rescale user control in ActiveX container
Posted by Sunny at 2/4/2005 2:12:47 PM
This is repost, as it seems I had some problems with my antispam alias. Lets hope it is solved. Now, here's the repost: Hi, I have a user control, which I use in COM application. To be more specific, I have Outlook 2000 add-in (C#. framework 1.1 SP 1). So, you can attach your own Optio...more >>

Alignment issues during design/runtime and other machines
Posted by TS at 2/4/2005 1:09:42 PM
I am attempting to create a windows form that will have a Group Box and a User Control right underneath. When I lined them up in the designer one right below the other, they do not look the same as when I actually run the application. For some reason, it pads the space between the Group Box and...more >>

Calls log
Posted by NormD at 2/4/2005 11:11:04 AM
I want to see which events are firing and where they are handled after a line is executed in a program. I don't quite see how this can be done. It will be sort of a call trace but in it I want to see the system calls too. Does anyone have any ideas how to do this? Or are there any tools on thi...more >>

Dataset acting strangely
Posted by NormD at 2/4/2005 11:09:04 AM
Here is the situation, I extended the textbox windows control so that it has an additional custom string property. I have a typed dataset and my extended textbox's new property is bound to one of the columns of one of the tables in this dataset. Let's say I have a record in the table and the...more >>

Progress Bar in DataGrid Column
Posted by Shaun McDonnell at 2/4/2005 9:37:06 AM
..NET Friends, I currently have created a class that inherits from DataGridColumnStyle so that I could put an image/bitmap to be displayed in the DataGridColumn. This is working great and I am very impressed with the flexibility and model of the WindowsForm DataGrid control (I am typically...more >>

Dialog tutorial
Posted by Ron Harter at 2/4/2005 9:34:22 AM
Can someone point me in the direction on where to find a good tutorial on dialogs. I need to retrieve a string from a dialog I am writing and can't figure it out. -- Ron Harter | Tongue, Tied and Twisted rharter@pobox.com | Just an earth bound misfit ... I ...more >>

LinkLabel Size
Posted by foehammer NO[at]SPAM hotmail.com at 2/4/2005 7:04:12 AM
Hello, I'm trying to find a way to determine the size of the text in a LinkLabel. I want it to automatically resize itself. Other controls have a ContentsResized event, but the LinkLabel is sadly lacking. Any ideas? I was thinking that I could create a Graphics object from the control and call ...more >>

Displaying Images from MyPictures
Posted by Neil at 2/4/2005 5:49:05 AM
Hi, I have a form which I want to display all the images in the 'MyPictures' folder automatically when the form loads. I want the images to appear down the left hand side of my form as thumbnails and when the user selects the image I want a large version to appear on the right hand side. It...more >>

display columns from 2 different tables in the same datagrid
Posted by Sitar at 2/4/2005 3:13:02 AM
Hello, I need to display 2 tables in the same datagrid. I've been playing with this http://support.microsoft.com/kb/319076/EN-US/ which works great except for a few things: - I know no way to format the displayed data (I have some datetime columns) - sorting does not work either - I can't r...more >>

UPPER case text box
Posted by Z at 2/3/2005 11:09:01 PM
Hi, How do I make a text box display only upper case letters. I know I have to write this ////////////////////////////////////////// myBox.Text=myBox.Text.ToUpper() /////////////////////////////////////////// somwhere but where. I am doing it now in myBox_TextChanged but I feel it is not...more >>

Suspending a thread for outstanding events
Posted by foldface NO[at]SPAM yahoo.co.uk at 2/3/2005 10:34:24 PM
Hi I'm trying to unit test a winforms application using nunitforms. To do this I don't use Application.Run, instead I use form1.Show(). To process any events that may have gathered I use Thread.Sleep(5000); is there something better where I can say to the current thread, sto...more >>

Why CurrencyManager swallows all its event handlers exceptions?
Posted by Fabrizio at 2/3/2005 8:02:13 PM
Hi all, I would like to know if there is a particular reason about the CurrencyManager behaviour to swallow all exceptions raised from the attached event handlers. It seems that OnCurrentChanged(), OnItemChanged() and OnPosititionChanged() protected methods catch all event handlers exceptions ...more >>

SelectionRules property of the ControlDesigner class don't works
Posted by C?sar F. Q?eb Montejo via DotNetMonster.com at 2/3/2005 5:35:30 PM
Hi, I'm developing an application that allow to the user place controls into a form (like design mode). The problem is that I need that the designer form can't be resized. The .NET documentation says that doing an overrides to the SelectionRules property and return the value that you want allow, ...more >>

MDI form with Menu assigned through IDesignerHost wouldn't refresh
Posted by ALWIZ New at 2/3/2005 5:05:03 PM
Hi, I tried to assign a MainMenu to a MDIForm from the ControlDesigner class. It actually work when I click on the MDIIForm's border after I assigned it. If I don't do the "clicking on the MDIForm's border", the MainMenu will never appear whether or not I save the Solution/Projects. I am qu...more >>

SizeChanged vs. Resize
Posted by saurabh at 2/3/2005 2:24:24 PM
Can anybody give me a practical example which will highlight the difference between SizeChanged and Resize Events of a form. TIA, --Saurabh ...more >>

Add UserContol to Toolbox without creating Windows Control Library
Posted by Evan Stone at 2/3/2005 1:39:28 PM
Hello All, I've got two C# UserControls in a standard Windows Application project, but I'd like to be able to add them to my Toolbox so I can start placing them on forms. Unfortunately, it's not really clear how to do this, since all the examples I've found in the documentation seem to s...more >>

Looking for a Free Code Snippit Library - Any suggestions
Posted by Roger.Smith at 2/3/2005 1:23:51 PM
I want to find a code snippit library that I can use with my development team to store code snippits (.NET) that we create. It needs to be searchable and organizable. I have searched the internet but haven't found anything that was Free and good. If anyone has any suggestions, please let ...more >>

Is Winforms compatible with terminal server?
Posted by Amit at 2/3/2005 1:18:46 PM
Hello, We are planning to provide terminal server access to one of our windows applications written in VB.NET. Do you think it will work fine? The network admin wants me to find out if the app is compatible with terminal server (users will be on virtual desktop) Thanks! Amit ...more >>

ASP.NET and Mac problems?
Posted by Brian Bischof at 2/3/2005 12:04:44 PM
I have a bunch of happy customers all using my ASP.NET but then just got a call from a Mac user who has many, many, many problems. I don't even own a Mac or know how to turn one on! The site has extensive use of cookies, a couple Session objects and there appears to be LOTS of problems with text...more >>

.NET form and Web Browser control
Posted by mfdatsw1 at 2/3/2005 8:45:02 AM
I have a .NET VB form that contains a Web Browser control. In the document in the Web Browser I have JavaScript that responds to certain click events within nodes (not buttons or other controls). How do I get information about the click event back to the parent VB form? I want the parent form ...more >>

PrintPage and formfeeds
Posted by Nigel B at 2/3/2005 4:43:03 AM
Is my interpretation correct that by setting e.HasMorePages true in the PrintPage handler PrintDocument will formfeed the printer and that text supplied in the next call to PrintPage will be printed on the next page? In my case the printer is putting the text for every page on just one sheet! ...more >>

Resources and Folders in VS
Posted by wansch at 2/3/2005 3:57:05 AM
Hi, I try to organise my Projects with folders. For example I try to put all resource files in one folder. When I put a resource file (.resx) in a folder I always get errors when building. My question is how must I refer to a resource in a folder to use it, or what else must I do in VS f...more >>

multiple forms problem
Posted by KC Eric at 2/2/2005 10:41:48 PM
Hi all, If I have 2 forms, the first form has a button, when clicked, it calls and display the second form. The question is how can I close the first form and only display the second form? Thanks, KC ...more >>

Problem with focus on main form after splash screen
Posted by Vicky at 2/2/2005 10:05:31 PM
Hello, I created a small application which shows splash screen for a moment, and then hides it and shows main form. The problem is with focus on main form. In OnLoad() method of main form I did this.Activated(); this.focus(); It causes that my application's name blinks on task bar, but mai...more >>

Gui Plugins
Posted by Norbert Thek at 2/2/2005 6:19:28 PM
Hello I'd like to build a simple application where I want to add additional Form Elements (especially tabPages) dynamically. -> plugin concept! Somebody knows some Howto's, Guides, Tutorials and so on? I'm using C# and it should also be possible with the .net compact framework (PocketPC...more >>

Databinding an IEnumerable type to DataGrid?
Posted by cody at 2/2/2005 3:56:17 PM
What do I have to do if I want to Databind an IEnumerable to a Datagrid? I have a datagridtablestyle in the datagrid but I don't know what the MappingName should be. For the DatagridBoolColumns I've set the mappingnames to the properties of the class which the IEnumerable class yields. myDataG...more >>

which data type
Posted by Jimbo1299 at 2/2/2005 1:21:03 PM
Hi whats the best way to do this in vb.net: I want to have basically a table of librarian name (string) and thier ID# (integer) then i want to be able to quickly look up the number and get the corresponding name and visa versa using the name get the ID. Someone suggested collections, these...more >>

Application.ApplicationExit Event not firing
Posted by AxiomIan at 2/2/2005 10:37:06 AM
I have added an event handler to my application with the following code Application.ApplicationExit +=new EventHandler(Application_ApplicationExit); The event handler Application_ApplicationExit is called when Application.Exit() is called, however if the application is terminated by shutti...more >>

System.ComponentModel and using System.Reflection
Posted by Joe at 2/2/2005 10:09:00 AM
Any good books or web site that really dig into these topics? I did a search at Amazon and did not find anything. I am specifically look at ways to really leverage the property grid, and so far I have found some helpful samples on the web, but nothing really gets into the 'whys' very well. ...more >>

Detect a form/control is not totaly drawn on the screen
Posted by Benoist Demeure at 2/2/2005 10:06:11 AM
Hi, I'm using BitBlt to capture a screen-shot of a control. It's works fine, but if the control is "masked" by an another windows, or outside the screen bounds the captured bitmap is not complete. It's normal because only the visible part of a control is drawn for optimizing paint. So, be...more >>

Size of exe grows
Posted by Henke at 2/2/2005 9:16:14 AM
Hi I have a quite small application (20 dialogs, a data access layer, a business logic layer, 1 crystal report). When this app is compiled the size of the exe becomes about 400 kB. Now I have added maybe 2 more dialogs and 8 more crystal reports. When I compiled the new application the size ...more >>

Clearing memory when closing a windows form
Posted by mh1mark at 2/2/2005 8:17:04 AM
I have a windows form that I run from a menu. It uses a number of public variables that are accessed throughout the code. When I exit back to the menu and then go back into the form, the values of the variables are still as they were when I left. Is there a way to clear all of these va...more >>

Getting "Object reference not set to an instance of an object" err msg when trying to add panel
Posted by tJ at 2/2/2005 6:38:46 AM
Hi I'm working on a form with a splitControl. In the RHS panel2, I need to add a panel to drop radioButtons onto. But when i do this, I get the following error message: "Object reference not set to an instance of an object" Can anyone please tell me how i can solve this problem? Thanks ...more >>

Any online demos of ClickOnce ?
Posted by A Mackie at 2/2/2005 6:24:18 AM
Does anyone know of any online demos of a ClickOnce application ? Not articles talking about it, but an actual demo runnable by just clicking a URL, so I can demo it to some people. Just to confirm my (really basic) understanding: clicking a URL will launch the smartclient clickonce app ex...more >>

DataGridViewComboBoxColumn
Posted by mamil NO[at]SPAM bezeqint.net at 2/2/2005 4:11:20 AM
Hi Gurus. I want to display a datagridview with a column of type DataGridViewComboBoxColumn. I don't want to bind this column to the datasource of the datagridview. I tried adding the column through the wizard, but encountered the following exception when displaying the grid: System.FormatEx...more >>

Combo box cannot show datasource of table in dataset
Posted by DAVIS_HK at 2/1/2005 10:19:01 PM
Hi Experts, I have 2 tables in a dataset "ds", "Order" and "Customer". Order table stores Customer ID; I want to show Customer Code in Customer table instead of CustID in the combo box on a form data-binded to "Order". I code as following and it works for other text control but not for the ...more >>

paint over controls in onform event?
Posted by Al at 2/1/2005 9:58:37 PM
How can I paint over the top of controls in the form's onpaint event. It seems that the controls are drawn after the onpaint event which then covers what I've drawn, is there a default paint function I can call (like the base.onpaint() for controls)? TIA Alan ...more >>

BeginUpdate not working for 2nd TreeView
Posted by Etienne at 2/1/2005 4:22:59 PM
Hi, I have a form containing 2 TreeViews. When I click on a button, items are transfered from the left tree to the right tree, which causes flickering. In order to remove such flickering, I surrounded code with BeginUpdate/EndUpdate for both trees. The left tree doesn't flicker anymore, but ...more >>

accessing subitems within listview control
Posted by Betty at 2/1/2005 3:23:02 PM
how can I access a subitem (column) within a collection of checked items. I can get to the checkeditems but i want a specific column within the subitems. thanks in advance...more >>

Custome StatusBar control
Posted by Haz at 2/1/2005 3:12:57 PM
We are trying to use a standard status bar on our applications, displaying some useful information, like time, version info, etc. So I decided to make this a custom reusable component, and put it in a control library project. I can use it, when I debug, I see everything working the way it is s...more >>

Practical way to authenticate a windows user to AD
Posted by Michael Morisoli at 2/1/2005 12:15:36 PM
I have been doing mostly ASP.NET work over the last year and have forgotten how to do some basic things in Windows .NET apps. I am looking for a practical method to authenticate a user from a windows form against our Active Directory network. Its so easy in ASP.NET, but I seem to have bra...more >>

SortedList vs Own sorted array
Posted by saurabh at 2/1/2005 11:07:02 AM
I have a list of mytype objects which need to be stored as a sorted collection. The mytype implements IComparable. For some reason someone else has implemented it as a normal collection. but whenever an element is added, it calculates the insertion point and then does Array.Copy to move all th...more >>

Helpbox or tipbox...
Posted by Victor Irzak at 2/1/2005 11:06:38 AM
Hi, I am trying to implement a small help box similar to the one on time item in windows... If you put your mouse over the time display on your windows taksbar and just wait, you'll see the date "February 1, 2005" text in a small pop-up box. How do I implement such box in Windows forms? ...more >>

Unspecified error on opening a form
Posted by Hin at 2/1/2005 10:39:31 AM
I often encounter the following when i try to view the form in VS.NET 2003: An error occurred while loading the document. Fix the error, and then try loading the document again. The error message follows: Unspecified error Anyone know the possible causes or how to fix this? Thanks! -- ...more >>

CheckedListBox or DataBinding Bug?
Posted by Jeff at 2/1/2005 10:27:10 AM
Try this... Run the form. Check a few items in the CheckedListBox. Go to Tab 2 and then back to Tab 1. Uh... what happened? The check marks are cleared?!! Any ideas??? using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms;...more >>

HELP: Add A Custom Button To The Caption Bar Of Window Form
Posted by Daniel Friend at 2/1/2005 8:49:17 AM
How do I add a custom button to the caption bar of a form like AOL does for it's favorites. Thanks, Dan ...more >>

Retrieving Information from the Parent Form of a Dialog Box
Posted by Betty at 2/1/2005 8:31:08 AM
I'm trying to access public properties of the parent form of a dialog form, using the example within Visual studio, i still can't get it to work. I keep getting an error that *** Object reference not set to an instance of an object ***** what am I missing? Thanks in advance the foll...more >>


DevelopmentNow Blog