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

Filter by week: 1 2 3 4 5

Canceling A Modal Dialog Before the Constructor Is Complete
Posted by HaySeed at 10/31/2005 10:38:14 PM
Is there a way that a form being displayed with SHowDialog() can be closed from within the constructor? It seems that this.Close() is ignored. ...more >>

Calling code from user controls
Posted by Rob Oldfield at 10/31/2005 9:20:18 PM
Following on from the 'tab control functionality' thread, I've been having a look at user controls (i.e. a quick run through the example in VS 2003). That all seems to make sense but there's one thing that I don't see there: If I have a button on that user control that basically says "this scre...more >>

Disable input for window
Posted by COMfused at 10/31/2005 2:59:02 PM
Is there a way to disable mouse input for topmost windows form window? That is, if I click on this window, the window underneath still get the click message. Thank you in advance....more >>

why i cannot see winamp movie thru transparent window
Posted by ve at 10/31/2005 12:53:11 PM
Hi guys, i have a question. i am set the opacity of my application window to quite low so that i can see the background windows. But when i set it over the movie palying over the winamp the whole client area of the winamp window goes blank. What is the exact reason causing this? thank...more >>

Change inheritance at design time?
Posted by GP at 10/31/2005 11:57:28 AM
This is bizarre, but is there any way to inherit from one control at design time but from another at run time? Something like this: #if <some design time indicator> public class UserControl1 : System.Windows.Forms.UserControl #else public class UserControl1 : System.Windows.Forms.Contr...more >>

1st launch very slow.
Posted by Eric at 10/31/2005 11:55:56 AM
I've got a very basic .net winform app that I need to launch very quickly. On first launch it takes 3-4 seconds to launch, and every launch after that it launches in 1 second or less. I've tried NGEN, didn't help any. Anyone know how to cut down the first launch time?...more >>

IE hosted user control dies when accessed over ssl
Posted by Will Holley at 10/31/2005 9:55:36 AM
We have been using IE hosted winforms control for a while now and have a fair bit of experience getting them to work. We have recently begun to adapt our ASP.NET application so that it will work securely over https. However, we are having problems getting hosted .NET winforms controls to work....more >>

WinForm Controls in IE, probing problem
Posted by Doug at 10/31/2005 8:15:06 AM
Hi, We have an application that consists of .NET WinForm controls hosted in IE in ASPX pages. Up until now, the app has always run over local networks / intranets and runs reasonably fast. However we have recently deployed this in a hosted environment, where the client will connect to the...more >>



Programming Function Keys
Posted by bharati2u at 10/31/2005 12:00:00 AM
How do we program function keys in VB.NET to perform specific tasks fo all the forms in an windows application. Thanks for any help -- bharati2 ----------------------------------------------------------------------- bharati2u's Profile: http://www.highdots.com/forums/m117 View this thre...more >>

Tab control functionality - but with no tabs
Posted by Rob Oldfield at 10/31/2005 12:00:00 AM
Hi, I would like to build an app where my main form can take on various different layouts depending on choices made by the user. In fact, it would be very similar to how a tab control works... if user does action a, then make tab x visible, if action b, then make tab y visible etc. But I d...more >>

Problems with ClickOnce delpoyment on RTM version
Posted by Martin Dolphin at 10/31/2005 12:00:00 AM
Hi Just upgraded to the RTM version of VS2005 downloaded from MSDN. I have an application deployed (as a test) to a couple of my colleagues that I wrote in Beta 2. When I try and republish this in the RTM version, I get the following error: Error 2 SignTool reported an error 'Failed to...more >>

How to tell when control loses focus
Posted by JezB at 10/31/2005 12:00:00 AM
I have a user control that I want to display slightly differently if it has input focus. Trouble is, I can't see any event available (like FocusChanged) to tell it when focus is gained and then lost again (upon which I want to force repainting). The same is true for any focusable Control (i...more >>

Loading Resources in Win Forms App
Posted by Paul Cheetham at 10/30/2005 12:00:00 AM
Hi, I have several cursors which I have added to my project (c#) and set the build action to 'Embedded Resource'. I am now having problems trying to load these, and so I was trying to find the resource file and check their names, to make sure I was using the right one. The cursors don't...more >>

Drag & Drop - One Listview to another but highlight destination icon, not insert
Posted by Annette Miller at 10/30/2005 12:00:00 AM
Hi All, I'm asking what I'm hoping will be a simple question, although Google is telling me otherwise. I can't seem to find out how to drag one item from a list view to another with highlighting the destination icon. Like what happens in Outlook when you drag an email over a folder icon in ...more >>

How to licence an application
Posted by JezB at 10/30/2005 12:00:00 AM
I have a windows application that I'd like to sell eventually. What's the simplest way to provide a secure licensing mechanism ? I'd prefer to have a licence key that can't simply be distributed across the pirate community (eg. astalavista) that will then work on any pc, so I was thinking of ...more >>

Custom Colour Cursor
Posted by Paul Cheetham at 10/29/2005 12:00:00 AM
Hi, I have several Colour custom cursors embedded in my application resource. In order to load and use them I use the following function: public static Cursor LoadCursor (string CursorName) { Cursor myCursor; Stream cursorStream; Assembly thisAssembly...more >>

EnableVisualStyles() method and Microsoft Word
Posted by Michael at 10/28/2005 4:00:52 PM
I'm building a VSTO solution with .NET 1.1 and Microsoft Word. When I try to use Application.EnableVisualStyles() my WinForms appearing in Word will have XP styles, but it will also crash Word when I close a WinForm. Anybody knows a workaround to this problem? And out of curiousity, will we...more >>

Cursor won't change?
Posted by Lionel at 10/28/2005 3:23:04 PM
A quick search of this forum yielded no answer to what I believe to be a silly little problem. I have, in my MainForm, the following: Cursor.Current = Cursors.WaitCursor; Application.DoEvents(); The cursor never seems to change. What am I missing?...more >>

Capture Close Button Event
Posted by John at 10/28/2005 3:11:34 PM
Hello all: Is it possible to capture the close event of the 'X' button? Thanks, John...more >>

Timing
Posted by JezB at 10/28/2005 9:27:23 AM
What's a good way to time how long a specific section of code takes (in milliseconds or even smaller units). Is there any way to get both elapsed time and cpu time ? ...more >>

LostFocus event of a control
Posted by dbuchanan at 10/28/2005 9:19:29 AM
Hello, What event do I use to change the backcolor of a text box when I leave it using any possible method. I want to change the backcolor of the control to the color of the form when the user leaves the control. Neither LostFocus or Leave works! Why? Here is the code... Private Sub t...more >>

Move Picturebox within its parent
Posted by sam at 10/28/2005 9:01:30 AM
Hello, I am looking for a way to move around (drag/drop) a picturebox placed in a panel like the capability provided during the design time. The movement is only confined to its parent- the panel. Just not able to find a resource out there. Any pointer would be great!! Thanks, Sam. ...more >>

Threading Question
Posted by Ily at 10/28/2005 3:51:16 AM
Hi all I have 2 (simple) questions about threading. 1)How can I get a notifiication that a thread has completed its work? 2)When I try to abort a thread thats currently suspended I get the following error: An unhandled exception of type 'System.Threading.ThreadStateException' occurre...more >>

How get the name of a MenuItem
Posted by NQ at 10/28/2005 2:54:05 AM
Hi, I use the same routine to handle the click event of any MenuItem I want to get the name of the selected menu before do something... Select Case CType(sender, MenuItem).Name Case "A" ........ Case "B" ........ End Select Where is the MenuItem.Name property ??? Many thanks NQ ...more >>

erase DG
Posted by Bruno Alexandre at 10/27/2005 7:13:08 PM
Hi Guys, How can I erase the content o a Data Grid so the next content will be a fresh one, instead of ADDING to the last line in the datagrid...? Thank you -- Bruno Alexandre (Sintra, PORTUGAL) ...more >>

Guidance on M-VC with User Controls
Posted by Steve at 10/27/2005 3:10:00 PM
I was fine with my typical event driven structure of my app (IE: User Clicks "Delete Item" button, the event fetches the Business Object from the selected TreeNode's Tag property and calls the Business Object's Delete() method. I would then update the tree somehow to reflect the deletion of the...more >>

Modeless Popup Window - Controls have no functionality
Posted by woo_derek NO[at]SPAM yahoo.com at 10/27/2005 1:22:31 PM
Hi everyone, I'm having a bit of an issue with a popup toast window. I have an application that starts up as a component application. I'm doing this because I need it to run in the system tray for most of the time. And of course, if you double click the icon, a main form shows up. ...more >>

Selecting all in listbox
Posted by Gav at 10/27/2005 11:16:55 AM
Hi all, I got some sample code from the following website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistboxclasssortedtopic.asp This example is actually showing how to invert the selection on a listbox so this is my code: myda =...more >>

Resource File Class in My.Resources Namespace in Vb2005.
Posted by Thomas, Mark at 10/27/2005 10:31:48 AM
Hi, When I add a resource file it creates a new class in My.Resources namespace. But the Class is Friend type, and also all the Property resource string is also Friend type. My question is how do I make it public instead of friend. Is there any way doing it. How do I use it from another pr...more >>

TIF files only half height?
Posted by NetRacer at 10/27/2005 8:50:10 AM
Hi, I'm loading graphics into a PictureBox using then Image.FromFile method. If the Image is a TIF file it get's only half the height. The whole Image is displayed (not cut off somewhere) but it looks squeezed. The TIFs are documents received by fax and encoded by "Group 3 Fax Encoding" (as...more >>

ComboBox inside Tabcontrol - SelectedIndexChanged
Posted by Andreiwid at 10/27/2005 6:52:01 AM
Hi! I've a Tabcontrol with 2 tabs. The second one (index=1) has inside a ComboBox which I validade depending on its selected values (bound from DataView). In other words, when ComboBox.SelectedIndexChanged is raised I analize the its SelectedValue and, for example, I switch the Button.Enabl...more >>

handling f3 on the form
Posted by ike at 10/27/2005 4:04:01 AM
Hello, I have a form and when the user presses the F3 key I want to set the focus to a textbox where the user can enter a search query. I figured this had to be really straightforward, but it turns out it isn't. I tried putting an eventhandler KeyDown on the form, but it never gets call...more >>

handling f3 key
Posted by ike at 10/27/2005 4:03:03 AM
Hello, I have a form and when the user presses the F3 key I want to set the focus to a textbox where the user can enter a search query. I figured this had to be really straightforward, but it turns out it isn't. I tried putting an eventhandler KeyDown on the form, but it never gets call...more >>

c# - listBox onScroll event
Posted by John Keers at 10/27/2005 12:00:00 AM
Can anyone tell me how to fire and use a listBox onScroll event. The language I am using is C# in a windows forms application thanks ...more >>

Initializing FontDialog instance
Posted by Lionel at 10/26/2005 6:49:01 PM
How do I initialize the font parameters when creating an instance of the FontDialog class? All the properties I'm interested in setting prior to showing the dialog (Bold, Italic, etc.) have only "get" accessors but no "set" access....more >>

Windows.Forms.Panel updating problem in C#
Posted by Dave Spencer at 10/26/2005 6:17:47 PM
Hi All, I have a panel (I'll call "drawing panel") in a scrollable panel ("window panel"). I am drawing a top view or a front view of a simple rectangular object on the inner drawing panel. I provide the user a button to select top view or front view. Each view requires a transformation an...more >>

Multi Select In Treeview
Posted by themoosman at 10/26/2005 3:58:03 PM
Does the tree view in VS 2005, have mutli select capability? If not does anyone know of any alternatives....more >>

Custom Brushes
Posted by MoriCristian at 10/26/2005 1:15:05 PM
Hi! Can anyone give me some hints on how to create a custom brush deriving from the Brush class? Thanks Cristian Mori...more >>

Drag drop Components
Posted by sri_san NO[at]SPAM mailcity.com at 10/26/2005 1:02:09 PM
Hello, I am looking for a way to drag drop components(specially panel, label, picturebox) around in a form just like the capability provided during the design time. Just not able to find a resource out there. Any pointer would be great!! Thanks, Sam. ...more >>

UserControl containing PictureBox objects seems to disable mouse wheel scrolling
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 10/26/2005 8:59:12 AM
Hi all, I've got a UserControl that contains a few PictureBox objects. If I click on outside of the Picture in the UserControl, the scrolling with the mouse button works - however, no amount of clicking on the PictureBox objects will get that scrolling working. However, after I click on outside...more >>

Change Menu Color in Visual Basic.net
Posted by Binairy Wizard at 10/26/2005 6:41:02 AM
I succesed in changing the colors of the menuitems but now i wan't to change the color of the Mainmenu background. Is there a other way than making the last menuitem as long as the window?...more >>

PropertyGrid
Posted by Angel at 10/26/2005 12:57:01 AM
Hi, There is a way to display a class with public shared properties? In fact the propertygrid control is always blank, with no infos ... Thank you in advance...more >>

Adding an atribute to the Columns collection for Listview
Posted by news.microsoft.com at 10/26/2005 12:00:00 AM
Hi, I want to extend the functionality of the ListView control supplied by system.windows.forms. In order to do so I want to add a property to the listview's Columns property. To do this I have done the following: ------------ public MyListView : System.Windows.Forms.ListView { p...more >>

Setting ListViewItem check state to indeterminate check
Posted by Annette Miller at 10/26/2005 12:00:00 AM
Hi All, Wondering if anyone can help me here. I want to be able to progmatically set an item check state in a list view to the indeterminate (i.e. grayed in Windows Classic/Filled Square with XP theme) state. I realise i can do this in the Item_Checked event but I want to be able to s...more >>

Intermittent SP error - "has too many arguments"
Posted by dbuchanan at 10/25/2005 12:24:20 PM
Hello, I have an audit table into which I insert information about the use of the application. This works sometimes and other times fails. I cannot find any reason for it failing. It is always given the information. Here are the errors I receive; --------------------------- Exception Mes...more >>

Object reference errors on Citrix environment
Posted by sunil NO[at]SPAM volcanomail.com at 10/25/2005 7:52:29 AM
Dear All, We have developed a WinForm application in .net 1.1 sp1 and we are getting spontaneous errors while working with the application under Citrix. In a normal Client it works well... Can someone give some pointers... InnnerException: Object reference not set to an instance of an obje...more >>

SetToolTip, briefly flashes tooltip when called
Posted by kenneth NO[at]SPAM nospam.nospam at 10/25/2005 5:40:11 AM
Click button in first form, which opens another form. Type in text if desired then click the OK button here. The tooltip text for the button on the first form is briefly flashed when SetToolTip is called. But only if the two buttons are clicked by mouse (not keypress). Any idea why the...more >>

Publish Program under VB.NET 2003
Posted by Bruno Alexandre at 10/25/2005 12:00:00 AM
Hi guys, after we developed and tested the application in VB6 we had a menu option that was Publish, Know in VB.NET we don't! the only thing that pop up to my mind is, as this is developed for .NET framwork, all we need to do is copy the EXE and past it in othever computer we need and in...more >>

Saving control settings
Posted by Soeren D. at 10/25/2005 12:00:00 AM
I have an application with splitters, listviews and resizeable forms. Is there an easy way to serialize the control settings??. For instance saving if the user has moved the splitter making a listview larger and have manipulated with the length of columns in a listview. It would be nice if ...more >>

Windows forms from CommandLine exe
Posted by Massimo Gentilini at 10/25/2005 12:00:00 AM
I've a command line exe that, if invoked without any parameter, show a Windows Form interface. Problem is that when I do the Application.Run(new Form1()); the console application remain active. Is there a way to show a console application OR a windows application and not both? Ciao from ...more >>


DevelopmentNow Blog