microsoft.public.dotnet.framework.windowsforms Archive - January 2003
Post a message to this list
Messages
Page: 123
Textbox leave event (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi all, I have some validation in a leave event. I don't want it to fire this event when the user clicks on one button on the form. Is there any way to do this? Thanks for your help Gerry
Directory (6 replies)
microsoft.public.dotnet.framework.windowsforms
i wanne get the dir path to know where the user wanne save teh file how do i get the path after opening filedialoge // Gets the Directory private void button1 Click(object sender, System.EventArgs e) { string path; OpenFileDialog openFileDialog1 new OpenFileDialog(); openFileDialog1.InitialDirectory "c:\\" ; if(openFileDialog1.ShowDialog() DialogResult.OK){ } i wanne get the path of Directory not ...
Form AfterLoad Event (3 replies)
microsoft.public.dotnet.framework.windowsforms
How can I execute some action after the form loads for the first time. OnLoad/Load allow me to do something before the form is displayed, I need to do something after the form is completly loaded. Thanks.
Document/ View-esque architecture in windows forms (2 replies)
microsoft.public.dotnet.framework.windowsforms
I notice that there is no kind of document/ view separation in Windows Forms. Is there a recommended way to handle this, or should I just create my own? Ta!
Datagrid - show rows that are'nt there (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi. In my winform a have a datagrid. At runtime I have no data for the datagrid and a dataset is only created later. I would like though, to have columns with headernames in my datagrid even before I get my dataset. How do I do this? (language C#.)
Removing Properties from Custom Controls (2 replies)
microsoft.public.dotnet.framework.windowsforms
I want to make the BackgroundImage Property invisible from a custom control that I have inherited from Control. I believe this is possible since the caption control inherits from the Control class but does not have a BackgroundImage property. I know how to make a property I have created not appear on the property box by changing its attributes but I forget what the attribute is called. Anyway I ha...
Is there a way to do this in VB.NET? (2 replies)
microsoft.public.dotnet.framework.windowsforms
public event EventHandler CheckedChanged { add { viewItem.CheckedChanged value; editItem.CheckedChanged value; } remove { viewItem.CheckedChanged value; editItem.CheckedChanged value; } } Is there a way to do this in VB.NET?
AxWebBrowser: Simulating postback? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I've got a winforms application hosting a web browser control (AxWebBrowser). The aspx pages displayed by the browser control contain various input fields (textboxes, lists, checkboxes, etc.). Now if an aspx page is loaded into the web browser control (initiated by some action in the winforms app) and edited by the user, how can I save page values before some other aspx page is loaded (again i...
Programatically displaying dropdown menus from toolbars (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'd like to programatically display a dropdown menu from a toolbar. To be specific, I'm developing an Explorer bar, and I'd like to give it a menu. As far as I know, the only way to do that is to use a toolbar. So I have a couple buttons (File, Edit), and they both have dropdown menus. When a user clicks on the File button, I want it to popup the File dropdown menu, just as it might if the use...
How to draw a line & rectangle without code (like in vb6) ? (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, Just wondering where the 'single line' & 'rectangle' controls have gone in vs.net. They were there in vb6. I know you can 'code' them in gdi , but sureley there's a 'control' for it? brad
Cloning controls? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Has anyone found a way to copy controls? There is no .Clone method and I need to duplicate controls. I have tried writing a class that clones an object using reflection but this doesn't seem to work with all controls (Button). Any ideas?
Displaying Help File (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a help file (.chm) created for my application. The help is not specific to individual controls on a form but rather to the form itself. Therefore, when the user hits the F1 key when they're in a given form I'd like to help topic for that specific form to be displayed. I can get it so it opens the help file but can't seem to get it to go to the specific help topic. I've tried both the HelpPr...
ListBox Binding (2 replies)
microsoft.public.dotnet.framework.windowsforms
We are attempting to create an MS Access like form that has a collection of values bound to a listbox. This listbox modifies a field in a seperate table by inserting the id field of the record into the table. How can we accomplish this?
Lost events (3 replies)
microsoft.public.dotnet.framework.windowsforms
On a form I have a textbox. Now when I leave the focus from the textbox I want to execute a sub. But in the form editor there's no (On)LostFocus event. Where are they gone ? If I go to the Object Browser under TextBox Bases and Interfaces TextboxBase Control the LostFocus event is mentioned, how can I use this event ? Thanks in advance, Benny
Contexmenue in Treeview (5 replies)
microsoft.public.dotnet.framework.windowsforms
I have a treeview. Lets say there are 3 Nodes (and a Root) N1# N2 N3 The node N1 has the selection (blue background). When I rightclick on N3 the selection jumps to N3 and the Contexmenu comes up. I select a menuentry wich has code like this MessageBox.Show(myTree.SelectedNode.Text); I get N1. I think I should get N3. After the messagebox the selection jumps back to N1! When I look at the explorer...
Binding dropdownlist (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have a Priority dropdowlist combobox that I would like to contain the values of "High", "Medium", and "Low". I am using a master detail DataGrid where a user selects a row in the DataGrid and the detail information appears below in their own controls. The Priority is an int in the DataGrid where High 0, Medium 5, and Low 10. Could someone please give me some pointers as how I could databind this...
Paint a line inside a datagrid cell (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi ! In my project i need represent a cut in a cell of a datagrid, i've tried to define a new DataGridTextBoxColumn class and override the paint method, then i use the bounds of the cell and i've tried to draw a line inside that cell with something like this : g.DrawLine(new Pen(Color.Red, 2), new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Bottom)); but it doesn't work.It is po...
Help Cannot refresh databinding to controls (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi all, I have tried everything I can find in the newsgroups but I am unable to get my bound controls to show the current data. I attach a dataset with a parent table and child tables to my form. I then add controls to the form as required: textbox, combobox, datetimepicker, checkbox. Dim value As New System.Windows.Forms.DateTimePicker() pCombo.Controls.Add(value) I then set the properties on the...
More problems with ListBox - help desperately needed! (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a Windows Forms app with tab pages which, when selected, go to various subroutines. In some of the tab pages I have ListBox controls which are populated from a dataset as I enter that tab. The problem I have is that if I go to another tab then return to the original one my app falls over with this error: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.fo...
How do I code seperate classes for each TabPage on a TabControl? (3 replies)
microsoft.public.dotnet.framework.windowsforms
(I also posted this in the languages.vb forum but wanted it here apologies for cross posting!) I am developing a very large application which consists of two TabControls with each having multiple TabPages (up to 10 on one of them) and what I want to do is to write the processing logic for each TabPage in seperate classes, modules or subroutines (whatever!) so I can keep my main form free of thousa...
storing invisible data in datagrid (4 replies)
microsoft.public.dotnet.framework.windowsforms
hi ng, is it possible to store invisible data in a datagrid similar to the usage of ListViewItem.Tag? cody Freeware, Games and Humour http://www.deutronium.de.vu
How to focus TextBox control inside of TabControl? (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have simple form with 1 panel. In first panel I have one TabControl. In the TabControl I have one TextBox. How to focus TextBox control inside of TabControl? Because this code isn't work: Panel1.Focus() TabControl1.Focus() TextBox1.Focus() My idea is keyboard input to be focused on the TextBox when Form1 is opened. Nikolay Unguzov
NativeWindow.ReleaseHandle / DestroyHandle and OnChangeHandle (2 replies)
microsoft.public.dotnet.framework.windowsforms
Scenerio: I'm working on an n tier project and using an MdiForms paradigm for the User Interface. I have a toolbar I've created to navigate between the MdiChildren. Problem: Occasionally, when switching forms I get a deadlock state where all the buttons on the toolbar go blank and needless to say the application freezes in place. Observations: 1. The program dosen't retrun from the MS MdiChildren[...
Position of MDI child forms (4 replies)
microsoft.public.dotnet.framework.windowsforms
I have a child form in my MDI app with the FormStartPosition set as CenterParent. Each time the child form is opened, it's start position creeps down the screen, just like it is being set to Cascade. Is this a bug, or is there some other setting that will enforce a centred position, apart from writing code in Form Load? brian
Keep the screen from flashing? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I was wondering if anyone could tell me how to keep the screen from flashing when I redraw something on the screen. I am having problems with the screen flashing while the objects redraw themselves. Any help would be appreciated. Thanks, Todd
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