microsoft.public.dotnet.framework.windowsforms Archive - August 2004
Post a message to this list
Messages
Page: 1234567891011121314151617181920
2122232425262728
Cursor won't stay as I set it (WaitCursor) (6 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi, I have an application where the login to the server could take 30 40 seconds. I have a main form with a "Login" button on it and a handler: private void btnLogin Click(object sender, System.EventArgs e) { Cursor.Current Cursors.WaitCursor; log.Debug("About to open session"); session Session.Open("username", "password", "instance", "server"); log.Debug("Opened session"); btnAdapters.Enabled tru...
Randow arithmetic errors when opening forms (8 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm getting random "A first chance exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation." when loading a Windows Form. This always occurs un the InitializeComponent routine when setting the font for a control The stack trace is as follows: system.drawing.dll!System.Drawing.Font::Initialize(System...
How to Invoke when form is hidden? (11 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I have a main thread which creates all my forms. All my forms are hidden initially. After that, I have some worker threads which will call BeginInvoke to update and show the necessary forms. However, it throws an exception saying that a handle is needed to be created in order to use Invoke or BeginInvoke. But the handle is only created when the window is first visible!!!!!!!! How then can I update...
Form's KeyDown delegate not called when in DropDownList ComboBox (6 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I have a form with a delegate set up for the KeyDown event. I have set KeyPreview true and the delegate is called correctly whenever I press a key, except if the active control on that form is a DropDown ComboBox. If I change that ComboBox to be DropDownStyle ComboBoxStyle.DropDowList the delegate fires when I press a key in that control, as I would expect. The problem is I don't want to restrict ...
Changing the look of the Invalid Property Value warning in a PropertyGrid? (8 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I know that this question has been batted around here for a while and I know that sample code, using reflection and poking around inside the propertygrid class, has been posted by a kind soul.... but I'm really hoping that someone on the Forms team, or C# team at Microsoft can have a go at answering this. Q: When inside a property grid, I am throwing exceptions when a value is out of range for a c...
Trapping Ctrl-V Paste into RichTextBox and stripping the formatting - critiques please (4 replies)
microsoft.public.dotnet.framework.windowsforms
In my program I cannot allow anything but plain text to be pasted into my inherited RichTextBox control. (The user can use my subset of RichText tools if I let them paste anything they could paste in tables and all sorts of things, which would not work for me.) It was simple to create a pop up menu that had Paste Unformatted Text as its only paste option, but the harder thing to control is Ctrl V ...
Can I "Invoke" a Property? (8 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I know how to 'invoke' a method......but now... I have a control that has a property "Selected" I would like to change it from different thread... how can I invoke it? thx
Form positioning with ShowDialog() and DesktopLocation (4 replies)
microsoft.public.dotnet.framework.windowsforms
Hi all. I am using C# and VS.NET to display a dialog window but I cannot find a way to control the placement of the window when it is shown. I have tried setting the DesktopLocation property of the form before calling ShowDialog() but this seems to have no effect. The placement of the dialog actually seems to be somewhat random, whether I set DesktopLocation or not. I'm not even sure what the defa...
MDI parent flat look (without MDI 3D border) (8 replies)
microsoft.public.dotnet.framework.windowsforms
Hello This has been asked before... but never answered. When you create a MDI Parent form, then the MDI children is presented with a 'nasty' grey 3D Border around. How does one get rid of that border? If not possible by other means, I don't care about a dirty trick. To see what I mean. 1. Creat an empty form. 2. Set the "IsMdiContainer" to "True" 3. Add a Panel to the form and set the "Dock" Prope...
Transparent controls (8 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, Does anybody know how to make the panel control transparent. I tried setting the color to transparant, but it did not solve the problem. Thanks, Stefan
Inverse color (3 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
If user selects same forecolor as backcolor, I want to invert the forecolor so they are not the same. Any ideas? William Stacey, MVP
Floating Toolbar (4 replies)
microsoft.public.dotnet.framework.windowsforms
Hi All, Has anyone come across a floating toolbar for .NET that does not come from a third party vendor? I have searched the net, but have come across nothing useable! Regards, Simon McCabe.
Synchronising files (3 replies)
microsoft.public.dotnet.framework.windowsforms
I want to synchronise files between directories as part of my .NET application. Ideally I'd like to invoke an XCOPY like operation which copies only new and changed files from source to target. Is anything like this available as part of the framework ? If not how do I invoke a windows command from within a .NET application and capture the output ?
connecting windows forms (3 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi All Can you help in working with windows forms since i have knowledge of webforms i do not know how to go from one win from to another with the data in previous forms. pls help and claryfying my doubt. thanks usha s
Media Player on WinForm (4 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I am dropping the Media Player control onto a WinForm and things work fine. Is there a way to hide the Media Player controls? Thanks, Steve
Controlbox and Mdi (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hello: Im writing a MDI application, when the application start, I create a maximized view with ControlBox false, so the user can not close it, but he can minimize, maximize and resize, When a new MDI child appears, I set both forms to ControlBox true, so the user can close any of them.. and in that case, the one that remain active, is changed to ControlBox false. The idea is that the user can not...
Open parent window then child window - parent loads after? (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm loading a parent form, which launches a child form from its OnLoad handler, but the parent window always finishes opening after the child and therefore pops in front of it. How can I wait until the parent form is fully loaded and visible before launching the child? Thanks From: Robert Mirabelle Posted by a user from .NET 247 (http://www.dotnet247.com/) Id bxAeDheR20ijwBmo86fYCg /Id
How can open other form (6 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hello, How can click one button,open other form.Please teach me the source. Thank you
MDI Children don't get Focus (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, We are converting our product from Dot net Framework v1.0 to Dot net Framework v1.1 and experiencing some problems regarding it. In our MDI Application, any Child window doesn't activate on mouse click in Client Area, whenever we open/close any Child form that hosts ActiveX control (such as Acrobat Reader or MS Web Browser). It activates only when one click at Form Title. One can perform al...
events blocking or non-blocking? (13 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Are events in winforms blocking or non blocking? In other words, when an event is raised is it added to a queue or are you blocked until it finishes executing? Rob Conde a.i. solutions
DockPanel Suite and DockManager Control (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I want to use the "DockPanel Suite" or "DockManager Control" from Weifen Luo (http://www.freewebs.com/weifenluo/DockManager.htm). Did anybody here used them once? And did they work fine? And what about the DockPanel Suite? It is indicated as the new version of the dockManager, but it's also a Beta: Is it reliable? Would you recommend the DockPanel suite or the DockManager control? Your input w...
Overflow or underflow in the arithmetic operation when instantiating form (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I have a VB.NET framework 1.1 application that I am installing on my user's workstation. It works fine on EVERY machine except for one on this one machine it generates a 'Overflow or underflow in the arithmetic operation' when I attempt to instantiate my first form, as so: Dim frm As New frmMyForm() Based on some things I saw here, I thought it might be that this workstation didn't have a MS Sans ...
about Printing forms (5 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi; i want to print some controls on a form. I capture controls then draw them on print page. This is how i do it: http://www.dotnet247.com/247reference/msgs/5/26236.aspx now the problem is when i open a printpreview form, "generating previews" dialog box is shown first and if it is in front of a control to be printed, it is captured too. how can i avoid it? secondly, sometimes even if print page ...
Grid with RightToLeft support (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, Is there any third party grid control with Right to Left support available on the net? I've tested dozens of them but non of them supports RTL proprely. Thanks in advance, Soheil
Making a form fullscreen (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi Anyone know how to make a form fullscreen with no startbar etc.? Regards Anders, Denmark
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com