microsoft.public.dotnet.framework.windowsforms Archive - March 2003
Post a message to this list
Messages
Page: 12
Dialog Form (2 replies)
microsoft.public.dotnet.framework.windowsforms
Does anyone know how to stop a dialogform closing after you press the ok button, there are only system event args, no cancel TIA
Background Image of a form.... (4 replies)
microsoft.public.dotnet.framework.windowsforms
How do I prevent the background image of a form being stretched or tiled on the bacground of a form, in other words I want the background image to be displayed in it's original size in the top left hand corner? The only way I can see to do it it to create an image the size of the form and some how paste the required image into this image, but this sounds a bit stupid! Cheers Ollie
Capture Mouse Messages (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm looking for the .NET equivalent to the Win32 SetCapture() method, but cannot find it. The method is used to guide all mouse input to a specified window, regardless of the mouse position. I need it do catch the mouse up event after mouse down, even if the mouse pointer has moved out of the control boundaries while LButton held down. Thanks in advance, ulli
How to handle WM_EXITSIZEMOVE in C# (2 replies)
microsoft.public.dotnet.framework.windowsforms
Is there an equivalent event to WM EXITSIZEMOVE in .NET?
What's wrong with my VS.net? (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi! I've been searching this and other related news groups for an answer to what is wrong with my VS.net. The problem occurs when i drag a combobox from the toolbox to a form. The problem, however, is severe: The IDE freezes without any ability to recorver!!! This is very frustrating, since the error occurs every time I try to do this operation, and the solution I'm trying to build really needs th...
How can I determine if "Control" key is pressed? (5 replies)
microsoft.public.dotnet.framework.windowsforms
Greetings, At a certain point in my WinForms application, I need to determine if the control key is currently being pressed. I won't be in the midst of a KeyUp or KeyDown event handler. What I need is a utility function that can be called from any point in my application, like: private bool IsControlPressed(){ //TODO: I'm not sure what to do here. Post. } If you need to reach me by email, use dswo...
Image in toolbarcontrol (2 replies)
microsoft.public.dotnet.framework.windowsforms
Dear all, I have come into a problem of displaying the image of the toolbar control. I have set the imagelist property to my imagelist. also, I have set the button to choose with the image index. I can see the icon shown in the design mode. but when I run the program, the icons do not show up. I have tried it in other toolbar, it works..... also, at first, I can use the toobar with icon, but due t...
Is there a way to implement a VS.NET form editor in my application? (6 replies)
microsoft.public.dotnet.framework.windowsforms
I have read various tidbits of information concerning controls and designers. I would like to be able to implement a control designer in my application. All I need to do is provide the ability to move or resize a control in my application. I would like to provide the look and feel in the same way the form editor in VS.NET works for moving and resizing controls. Can someone tell me if this can be d...
Button FlatStyle.Flat bug (2 replies)
microsoft.public.dotnet.framework.windowsforms
When a button has its FlatStyle set to Flat, it changes color when the mouse is over it. However, if you have such a button on a dialog that is closed, retained in memory, and reopened, the color change stops working. Same in Framework 1.1 final beta. To reproduce: Have a winform project with 2 forms. On the second form place several buttons, with Flatstyle set to Flat. I also gave one of the butt...
NotifyIcon ShowContextMenu (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello. I need to display the NotifyIcon's context menu when the user clicks on it with the left mouse button. I checked all over the place, and this can't be done (with managed code) when the form is not visible (as is the case with most apps that use a NotifyIcon). So, I used ILDASM and found: private void ShowContextMenu() { // code to show the context menu } So, I have 2 questions: 1. Why is th...
MDI Parent's Close(x) button stops working. (2 replies)
microsoft.public.dotnet.framework.windowsforms
I'm writing an MDI application and I want the MDI parent window to automatically minimize to the taskbar when a MDI child is closed. Unfortunately, after the MDI parent is minimized, the close (x) button stops working. Why? If you change the line: Me.WindowState FormWindowState.Minimized to: Me.WindowState FormWindowState.Maximized then it works ok. My MDI parent code is this: Private Sub btnNewFo...
Current row of combobox returns ID of previous selected item (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, I have a strange problem... It may be a long story, but it is not too difficult, I belive :) I have a combobox that is populated with a table containing 3 fields. ID DisplayText ValueToBeBoundToOtherTable The DisplayMember of the combobox is set to the DisplayText field. The ValueMember is set to ValueToBeBoundToOtherTable. This value is also bound to a field in an other table. However I ne...
Can I clear BindingContext (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have a form that has controls bound to a Dataset. If I load new datainto that Dataset, the controls still try to work with the old dataset. I clear the old table out of the Dataset, then put the new table (with the new data in) but the controls and the BindingContext seem to try to use the old data. How can I fix this.
Tool Tips (3 replies)
microsoft.public.dotnet.framework.windowsforms
Thank you Jakob and Allen for your responses. Unfortunately, while the exception is no longer thrown, my tool tip still doesn't appear. Here's the latest code: private void CreateMyToolTip() { ToolTip toolTip1; if (this.components null) this.components new System.ComponentModel.Container(); toolTip1 new ToolTip(this.components); toolTip1.AutoPopDelay 5000; toolTip1.InitialDelay 1000; toolTip1.Resh...
Catching Events (2 replies)
microsoft.public.dotnet.framework.windowsforms
In my app controls (labels and pictureBoxes) are dynamically created and added to the controls array of a panel control. How can I handle the events of those controls since there is no specific handle name...is there? Example: For i 0 to 10 panel1.controls.add(new Label()) panel1.controls.add(new PictureBox()) Next There's more to my code than this but it shows my question. How can I handle the ev...
bug with KeyPreview? (2 replies)
microsoft.public.dotnet.framework.windowsforms
originally (erroneously) posted in another newsgroup Visual Studio.NET general relates to .NET Framework v1.0 my program seems to have a curious bug which i believe is a bug in the way the frameworks "KeyPreview" form property works. i am using directshow via a C style DLL (with Platform Invoke, in a c# program), to get around the limitations of the "managed" version (Video class). (Too bad there ...
Localization of Help bug in VS.NET (3 replies)
microsoft.public.dotnet.framework.windowsforms
This has been brought up, apparently as early as Nov. of 2001, and the bug still exists, so I'm curious if anyone knows if MS has any intention of fixing this, or if those of us doing localizable apps are simply screwed? Basically, if you add a help provider to a localized form, the code it inserts is faulty and won't compile. Essentially, calls to SetHelpKeyword and one other method, fail because...
Problems painting rectangles (4 replies)
microsoft.public.dotnet.framework.windowsforms
Hi everyone, I have a form with a panel. Inside this panel I am painting rectangles. When I minimized form, or another windows open over rectangles , this zone is deleted. If I want to see the rectangles, I need to click paint button again Can anyone help me??? Thanks for all Diana
Visual Studio .NET (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hallo, I want to dispaly ToolTips like they are shown in the Visual Studio ..NET. If i made a region in my code like this: #region Constructor .... .... .... .... some code here #endregion and the region is not open, I can see a tooltip when I move my mouse over the Text (Constructor). Why did this can be done ?? I want to use this, when I probably move over an objet that I'm drawing anywhere in a...
color combo (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have just developed a Color ComboBox control. It's just a combo box with a list of known colors. In it's constructor it's calls a function called buildlist (which builds the list in to the combo). The problem is when I place it on to my form and look at the windows generated code .net adds all the colors too if you see what i mean. Should it do this? and how can I stop it? The only way I found i...
Custom Column in DataGrid (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi I have overriden the Paint method within my Custom column style which is working great. My only question is how do I retrieve the DataGrids Font property when drawing the text?? At the moment I create a Font object using constant values and if the DataGrid has been set to use another Font it will look odd! Thanks in advance Andy
Selecting listbox items with right click (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I have been trying to get a listbox control to handle right mouse clicks in the same way as left clicks, i.e. select an item. Since the Framework clearly already has code to do this for a left click I thought I could make use of this by writing my own MouseDown handler: protected override void OnMouseDown (System.Windows.Forms.MouseEventArgs e) { // Treat right click as if it were left click. ...
Finding the current record in a DataGrid (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have bound a DataTable to a sortable DataGrid. My problem is how to retrieve the primary key column of the selected row. I can't use DataGrid.CurrentRowIndex against the DataTable since there will be no more correspondence between this value and the record's row position in the original DataTable once sorting has taken place. Many thanks.
Tool Tips (4 replies)
microsoft.public.dotnet.framework.windowsforms
I tried to implement ToolTips in Code. I create a simple form with 1 button, named button1. I added the following code, taken from the .NET framework on line doc. private void CreateMyToolTip() { ToolTip toolTip1 new ToolTip(this.components); toolTip1.AutoPopDelay 5000; toolTip1.InitialDelay 1000; toolTip1.ReshowDelay 500; toolTip1.ShowAlways true; toolTip1.SetToolTip(this.button1, "My button"); }...
Windows forms running on their own threads? (4 replies)
microsoft.public.dotnet.framework.windowsforms
I am trying to code a windows app that starts up one or more forms, each form on its own thread. I'm not sure if this is possible. There is a lot of information pointing out that controls cannot be accessed from a different thread than the one they were created on, but his is not my case, however. My methodology is to spin off a new thread which instantiates the form. This *does* work, so far as i...
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