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

Filter by week: 1 2 3 4 5

Windows form as thread
Posted by MS at 6/30/2005 11:38:16 PM
Hello, I'm using a windows form as a thread and I have no idea about how to acces my form methods after having started the thread. Actually it's a kind of progress form wich I have to set the progress value. But once the form started, I have no way to acces it's method "setProgressValue(...more >>


How to know if multiple objects in ICustomTypeDescriptor implementation
Posted by Michael Kairys at 6/30/2005 5:46:13 PM
I want to customize the action of the property grid on a particular class so that some properties are not displayed if multiple objects are selected - i.e. if I used PropertyGrid.SelectedObjects instead of SelectedObject. I see that the Forms Designer does this; for example if you select two ...more >>

How do I control the number of same MDI Child Form?
Posted by Rich at 6/30/2005 4:37:01 PM
Hello, I have not been able to find any reference on the great www on how to control the number of same MDI Child Forms. Basically i want to prevent my users from opening more than one copy of the same child form in certain circumstances. this kinda works but i would have to reset the stati...more >>

Zero-Deployment issue: winform app cannot read the .config file
Posted by Norton at 6/30/2005 2:55:07 PM
I have a trivial winform application that I try to launch from web browser. It appears that it fails to execute the following code: _currentConfig = (CityLightsConfigSettings)ConfigurationSettings.GetConfig( CityLightsConfigSection ); This is a standard call that is used when one needs to ...more >>

MDI Children on their own thread?
Posted by Kenneth Davis at 6/30/2005 12:47:07 PM
Okay, I have several Forms. I call a factory method which creates a new thread, and in the threadstart I create a new Form (newForm) and call "Application.Run(newForm)". This works fine. However, assigning the form to the MDIParent causes a threading violation: Form FindParent() { fo...more >>

Can you cancel the click of a checkbox?
Posted by Byron at 6/30/2005 7:11:09 AM
I want to be able to intercept the click of a checkbox to cancel a change in its checked state under certain conditions to prevent the execution of code attached to the CheckedChanged event. So when someone clicks on the checkbox I want to do some validation and on failure throw the click awa...more >>

Asynch WebRequest & WinForms
Posted by rmx at 6/30/2005 12:00:00 AM
I'm working on a proxyScanner library which measure time of response of a group of http proxies parallelly . I use WebRequest.BeginGetResponse method for asynch operation. For console application everything is ok. The problem appears in Windows Forms application. My library starts only one co...more >>

tab pages in IDE
Posted by vbtrying at 6/29/2005 12:05:37 PM
I have a form, with 1 tabcontrol on it. It has 3 tab pages. I cant select a tab page from within the IDE and place controls on it. I used to be able to do this. Any ideas?...more >>



Control.Handle, is this a bug ?
Posted by RichS at 6/29/2005 9:19:03 AM
Hi, [ Using C# in .Net 1.1 ]. I've been struggling with a "hang" in my application all day and I think I have just worked out why the problem occurs. Please read through and see if u think this is a bug. I have a few UI controls that are being updated on a TimerThread ( I check the "...more >>

Problem restoring Form size on launch.
Posted by jlavallet at 6/29/2005 8:35:03 AM
Hi, I'm saving the bounds of my Form in the Registry in my Form's closing event and restoring the bounds when my app is launched. Everything works well except the persisted Height increases by 20 each run of my app. No other dimensions change. My Form has a main menu and a status bar and...more >>

GdipCreateHBITMAPFromBitmap + PixelFormat32bppARGB
Posted by Jonathan Gilbert at 6/29/2005 7:40:06 AM
The GDI+ function GdipCreateHBITMAPFromBitmap seems to be broken. When given an image with an alpha channel, it produces an HBITMAP with its colours oddly skewed. Only translucent pixels are skewed. This is evident, for instance, when adding 32-bit RGBA System.Drawing.Bitmap objects to Syste...more >>

Pencil icon in the datagrid
Posted by Slawek Piotrowski at 6/29/2005 3:21:02 AM
Hello, As soon as user starts edit in datagrid the pencil icon is shown on left side of the datagrid. If user clicks on the pencil it is hidden again. Is it possible to save modified data back to the database when user clicks on the pencil? How to do that? I'm using .NET Framework 1.1...more >>

Manually adding usercontrol to panel on form
Posted by tonny.steen NO[at]SPAM invenia.no at 6/29/2005 1:02:30 AM
I wonder if there is a way to have a flicker free initial paint of a usercontrol on a panel (on a form) when done manually. My usercontrol with many controls is first painted in its origional size, then resized to fit the host panel (docked). This is not nice to look at since the initial load/pa...more >>

ListView_Problem_/Mystery.
Posted by Steph. at 6/29/2005 12:00:00 AM
Hi ! =20 I use a ListView in a form to display Data from an SQL db. =20 My problem is that I can fill the listview in less than a second when I = show the form AFTER filling the listview, but I take 35 seconds if I = show the form BEFORE filling the listview !!!=20 =20 Yes I ca...more >>

TreeView with XP themes error
Posted by JB at 6/29/2005 12:00:00 AM
When I enable XP themes using EnableVisualStyles(), the treeview control on my form displays an old style 3D scrollbar when the form loads if items are added to the treeview at design time. Does anybody know a workaround? Regards JB ...more >>

All MDI forms repaint when one is resized
Posted by David at 6/28/2005 2:47:02 PM
I have been experimenting with the Scribble sample (both in C# and C++/CLI). I create two or more child documents/windows and scribble different stuff in them. Even if the child windows do not overlap at all (within the MDI parent frame), if I resize one of the MDI child windows, a Paint e...more >>

Search combobox attaced to datagrid
Posted by MS at 6/28/2005 12:34:03 PM
Hi, I used class provided at SysncFusion to add comboBox control to DataGrid. The comboBox works fine in Datagrid. Is there any way to perform search by typing in combox. What I am looking for if a user types in letter in Combobox It will find the item in the dropdownlist and displays it. ...more >>

Screen.PrimaryScreen.WorkingArea question
Posted by JezB at 6/28/2005 12:12:39 PM
Screen.PrimaryScreen.WorkingArea.Height gets the height of the display excluding the taskbar. However, if your windows taskbar is set to auto-hide, this taskbar height is NOT excluded. How can I check for this so that I can position a window correctly so that the taskbar will not hide part of ...more >>

Editing hyperlinks in RichTextBox Control in C#.NET
Posted by acconrad NO[at]SPAM gmail.com at 6/28/2005 9:17:51 AM
We're trying to make it such that you can change the color for hyperlinks in RichTextBox controls. Currently VS.NET '03 does not allow one to do this. We tried this --> http://pluralsight.com/wiki/default.aspx/Craig/RichTextBox2.html and it did not work at all. Does anyone know of any RELIABL...more >>

Inherited Menus and Modifiers
Posted by Buzz at 6/28/2005 9:07:03 AM
I am using VB.NET Before I chase this ellusive bug, I want to confirm it is not a framework issue. I have a base form with a Menu. I have set the menu and each of its menu items to have Modifiers of Protected Friend. However, the child form shows the menu and its items as being Private. ...more >>

Obstruct the Developpers to Develop and Deploy a newer version
Posted by DraguVaso at 6/28/2005 12:00:00 AM
Hi, I have a, maybe strange looking, question: Is there any way to obstruct developpers to Develop and or Deploy a newer version of a VB.NET-application? Things should happen like this: - Developpers develop the application - The application is tested, and audited for the final release - Th...more >>

Dialog ghost left on window
Posted by Developer at 6/28/2005 12:00:00 AM
Hello, I have a Systems.Windows.Forms.Form-based window. When I bring up a dialog to modify the window's view and click OK, the dialog goes away, except the part of the dialog that overlaps the window remains visible until the window repaints. Is there a way to fix this? If there is a ...more >>

GridView Exception: reentrant call to the SetCurrentCellAddressCore function
Posted by Martin B at 6/28/2005 12:00:00 AM
Hallo to everyone! Problem: -------- GridView Exception: reentrant call to the SetCurrentCellAddressCore function System: ------- WinXP Professional, english, .NET Framework 2.0 Beta Language C# Simplified Architecture of my Porgram: 2 Forms: -------- - MainForm - DetailForm 2 ...more >>

Data design question
Posted by Massimo at 6/27/2005 11:48:59 PM
I have a Windows Forms applications with a SQL Server back-end. There is a main form which shows a list of selected columns from a table (all rows are to be shown), and a dialog form which opens a detailed view of the selected record in the list and lets the user modify it; I'd also like to...more >>

MouseWheel
Posted by Adi at 6/27/2005 11:48:02 PM
I want to use MouseWheel to on the panel but I am only able to use the MouseWheel Event on the mail form. On the child controls the main from mouseWheel event works but not their own. What should I do? this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);// WOrking fine. for the...more >>

GDI+ Bitmap drawing vs GDI+ PrintDocument drawing
Posted by jlavallet at 6/27/2005 3:56:02 PM
Hi I'm trying to get WYSIWYG print output by exposing the painting method of a custom control I've written and everything is just a bit off. Here's what I've done. I have a method on my custom control (a Panel that I paint on) that accepts a Graphics object. This method draws text, lines, ...more >>

RichTextBox auto scroll to end
Posted by Bin Xing at 6/27/2005 3:29:04 PM
I'm currently programming a form application in VC++.NET managed code. There is a RichTextBox and some other controllers on a form. When user is working on other controllers, like mouse up/down on a picture controller to draw a picture, I'd like to show some messages on the RichTextBox. I'd li...more >>

Dynamic Context Menu Items
Posted by www.dir NO[at]SPAM gmail.com at 6/27/2005 9:11:14 AM
Hi, I am adding dynamically context menu items like this: MenuItem newStudent = new MenuItem( student.Name ); newStudent .Click += new System.EventHandler( this.StudentClicked ); And my method : void StudentClicked ( object sender, System.EventArgs e ) { } And It is working just fi...more >>

No text on MsgBox
Posted by LosPablo at 6/27/2005 12:00:00 AM
Hello, I'm working on hardware configured as bellow: - Microsoft Windows XP; - Microsoft Visual Studio .NET 2003; - Microsoft .NET Framework 1.1; - Microsoft Office 2000. In Visual Basic.NET when i try to use MsgBox there is no message on the screen. Help Pablo ...more >>

Embed Word into WinForm application - How?
Posted by Anton at 6/27/2005 12:00:00 AM
What is the official (ms) way to embed word/excel into a winform application so that the document is editable with word toolbars displayed? ActiveDocumentHost has been droped from 2.0 (not in VS2.0 beta 2) Is it true that MS can't devise a way for word/excel to be used in a .net app - unbe...more >>

Menu Events
Posted by RbanBph at 6/26/2005 9:45:02 PM
HI, I have created a Menu control Using groupbox and buttons(VB.NET) where buttons acts as the Menuitems. I want to change the backcolor of the button on which the mouse is moving. How can I code for this? Regards, RbanBph ...more >>

AutoScaleDimensions Property
Posted by thomasp NO[at]SPAM msala.net at 6/26/2005 5:26:46 PM
I started a project in VB.NET 2003 and moved it to VB 2005 EE. I got all the errors and warning worked out except this: Warning 1 'Public Overridable Property AutoScaleBaseSize() As System.Drawing.Size' is obsolete: 'This property has been deprecated. Use the AutoScaleDimensions property inst...more >>

Rich Text Box - Copy Function
Posted by thomasp NO[at]SPAM msala.net at 6/26/2005 5:26:37 PM
Is it possible to set a rich textbox where the user can highlight and copy its contents but not be able to modify its contents? Thanks Thomas -- Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ------->>>>>>http://www.NewsDemon.com<<<<<<------ Unlimited Access, Anon...more >>

Passing a constructor parameter with Activator.CreateInstance
Posted by jmhmaine at 6/26/2005 4:08:02 PM
I'm having a problem passing a constructor parameter with Activator.CreateInstance. Details: I have a form that I'm trying to create from a shared function that uses the Activator.CreateInstance. The constructor code for the form: Public Sub New(ByVal SearchID As String) MyB...more >>

Storing Objects at the Application Level
Posted by jmhmaine at 6/26/2005 3:27:02 PM
My background is in web development using ASP.NET. When I program with ASP.NET I have both Application and Session objects available to store objects. Is there an equivalent in WindowsForms? Currently my solution is to create a private shared collection and use two public shared functions ...more >>

Inserting Text with Formatting
Posted by Craig at 6/25/2005 7:11:03 PM
Hi I need to enter text into a RichTextBox control in code, is there a way to ensure that the text I'm about to insert is inserted with a particular font style? The newly inserted text should not affect the text or font style of the existing text. Many thanks Craig...more >>

Helvetic font
Posted by Lloyd Dupont at 6/25/2005 12:00:00 AM
On many web site they use Helvetica web font. Which I found pretty neat = and would like to use in my WinForm app (as opposed to WebForm). But here, puzzle, the Helvetica doesn't appear in the Font chooser in = the VS.NET designer! Whhy is that? What kind of standart font cold I use as a repl...more >>

Highlight TabPage Text
Posted by Joe Gaines at 6/24/2005 10:16:04 AM
Is there a way to change the TabPage Text font or something else to help distinguish what tab a user has selected. I have a lot of tabs nested within tabs so any thoughts on how to make it obvious what tab a user is on would be appreciated....more >>

Is there a way to improve the DataGridBoolColumn???
Posted by Enlai Pensado at 6/24/2005 9:16:36 AM
I've been using DataGridBoolColumn in many of my DataGrid controls and never mind that if you want to mark many rows, you must do two clicks each time, one to change the row and another to check. Is there a way to change that? A user is bugging so much about it ......more >>

Can't update Application Icon
Posted by Michael J. Salamone at 6/24/2005 8:27:24 AM
I just changed the application icon for my app. But the old application icon still displays in the title bar of the main form, though. If I look at the re-built app.exe in the Windows Explorer, though, it shows the new icon. Also, I have a debug console window that comes up (it is opened by ...more >>

Toolbar / ImageList problem - Design Time vs Run Time
Posted by Michael J. Salamone at 6/24/2005 8:16:00 AM
I have an object derived from System.Windows.Forms.UserControl (plus an interface I defined). The UserControl has quite a few child controls (some w/children of their own) ranging from listviews to treeviews to tab controls / pages, toolbars, panes, and splitters. All my toolbars display...more >>

Urgent - Compare Items in Two Listbox Controls using VB.Net 2003
Posted by Shariq at 6/24/2005 8:02:02 AM
Is there any easy way to compare items in two listbox controls? I need to find if the items in ListA are the same as items in ListB. ...more >>

Custom styles on DataGridView
Posted by Zan at 6/24/2005 7:56:08 AM
Hello, I want to apply custom styles on differents rows or columns. On the DataGrid control there was the TableStyles collection, I haven't see any equivalent feature... For example, I want to change rows' height in function of a value (int) given by user. The RowTemplate is used only when...more >>

Class Design and Threading
Posted by CQuick at 6/24/2005 6:28:02 AM
I have been working on a problem for over two months now, but I can't seem to get past it. I have a custom class that makes an remoting call to a web server to retrieve data. I don't want the UI to "hang" while this process is occuring, so I have the custom class perform the remoting call o...more >>

how to disable resizing the columns in datagrid
Posted by ujjwala at 6/24/2005 1:32:07 AM
Dear friends, In windows forms application. How to disable the columns of datagrid from resizing by using mouse. Is it possible? If so please guide me to do. Thank -- ujjwal ----------------------------------------------------------------------- ujjwala's Profile: http://www.msusen...more >>

Click anywhere on the form
Posted by Adam Klobukowski at 6/24/2005 12:00:00 AM
Hello I'd like to intercept an event if user clicks anywhere on my form, no matter if under moes is any control owned by this form, before anything else happens (etc. any other events to any other controls are delivered). Then I'd like to decide if I'm processing this event on my own (and...more >>

Mouse event
Posted by S³awomir Speth at 6/23/2005 7:59:43 PM
hi all How trap event mouse click outside my form - like closed popup menu when user click outside form. -- ...more >>

Setting the ComboBox Selected Item Value
Posted by Troy at 6/23/2005 5:47:02 PM
How come on a button event I can run the following code: vehicleRequired.DataSource = vehicleList; // vehicleList is just an array value vehicleRequired.SelectedItem = null; but running the same code on the window load or constructor event, does not set the selected Item to null, but defa...more >>

Do the MDI child windows run on separate threads?
Posted by ken bus at 6/23/2005 5:13:02 PM
I need to have two child windows running on separate threads. When a child is created, does it get its own thread or do I need to do something special to dispatch a separate thread? If something special, can you please point me in the correct direction?...more >>

Custom winform design
Posted by Max A. Bündchen at 6/23/2005 11:54:14 AM
I'm looking for some help with a custon winform design. I can't find in internet helpfull information about that. For example, I would design a winform with the form of Windows Media Player. ...more >>


DevelopmentNow Blog