Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score mfc host app and keyboard navigation
Josh Cooley - 16 Mar 2007 9:40 PM - 3 messages
I have a problem with keyboard navigation using winforms and an MFC based host application.  Do you see any problems calling PreProcessMessage as a work around? Here is the solution I came up with: // override CWinApp::PreTranslateMessage bool HandleMessage(MSG* pMsg); ...
Score Generic controls and resource files
Jared - 16 Mar 2007 3:42 PM - 2 messages
I'm trying to utilize a resource file with my generic control class, but an exception is thrown when I attempt to load the resource file, stating that the file doesn't exist. Since a control utilizing a generic class cannot be opened in the designer, ...
Score TreeNode set text performace workaround
Kelly H. - 16 Mar 2007 3:41 PM - 1 message
My friend Jonathan and I found a workaround. The problem is that there is a storm of redraw messages send when the text is updated. We have replaced the way the text is set and there is no more performance ...
Score change carat in textbox?
Oli - 16 Mar 2007 1:29 PM - 2 messages
.....do I stand any hope of changing the carat (the vertical cursor position thing) in a TextBox ? according to my boss this needs to be "more visible"... any ideas appreciated. ta, O. ...
Score Design time properties on control
steven scaife - 16 Mar 2007 12:34 PM - 2 messages
Hi I am playing around with extending controls. I have a textbox that I want to add a design time property to as a drop down list. The options I want to have displayed are: datetime currency textbox I know how to override events and the end outcome will check against the ...
Score Please confirm Bug with OpenFileDialog
George Vlahakis - 16 Mar 2007 12:05 PM - 5 messages
When opening a filedialog and the user double-clicks to select a file the mouseup event is raised on the control behind the dialog. Is there a way to handle this "bug"? Code to reproduce (ensure the filedialog is over the form when ...
Score Problem (dispose?) MDI forms
SealedClassSingleton - 16 Mar 2007 11:08 AM - 19 messages
Hi, I've a very weird error in an MDI application. From time to time, when closing a child form, the form is closed correctly (put some writelines on different places: form_closing / form_closed / dispose) but is not removed from the MDIparent. ...
Score Null Reference Exception after Forms.TabPageCollection.Remove() ca
Dave Leach - 15 Mar 2007 11:03 PM - 12 messages
I am developing a Windows Forms based application using VS 2003 in C#.  An exception is being hit very rarely during acceptance testing. Is this a known defect? Is there a workaround? Is it corrected in .NET 2.0? ...
Score Creating a multi-page project
Jeff - 15 Mar 2007 10:54 PM - 3 messages
I come from the asp world where I'm used to developing web pages.  I have just taken a new job where they want me to be a winform developer.  I am presently creating a project that will have about 12-16 differnt pages.  What ...
Score Drawing EPS files (illustrator) on WinForms
Ron M. Newman - 15 Mar 2007 9:11 PM - 2 messages
Hi, I have a requirement to be able to draw EPS files from Adobe Illustrator on WinForms using C#. Any idea how I achieve this? is there an SDK or a commercial component that can do this? Thanks --Ron ...
Score Shared Folder
Tim - 15 Mar 2007 6:30 PM - 2 messages
I am using vb.net 2005 Is there any way to find out if the folder is shared or not. If shared then what is the shared name. I'll appreciate any help you can provide. Thanks, Tim ...
Score Custom Controls that use Generics
Jared - 15 Mar 2007 6:20 PM - 4 messages
I have created a custom control that uses a generic class to determine what type of objects will be managed in the control. The declaration is:     class MyCustomControl<T>:Combobox{         // class stuff ...
Score Checking for null icon
Clive Dixon - 15 Mar 2007 2:21 PM - 8 messages
If I create a form, not supplying an icon, if I get the value of the Icon property I get the default icon back (even though no icon is being displayed in the form). How can I determine whether the icon is set in a form or not? ...
Score SMART CLIENT save architecture
Pieter - 15 Mar 2007 1:49 PM - 3 messages
We have a smart  client but we have some difficulties with saving our business objects. We would like to have one save method on the client side. But our problem is that we can't find a good method to find out wathever we ...
Score TabControl/TabPage
Db - 15 Mar 2007 1:42 PM - 4 messages
Is there a way to make a TabPages tab Not visible (other than removing the TabPage) or does anyone know of a third part control that allows this? Thanks, Db ...
Score What is the accelerator key, shortcut key and hot key?
mawenb@gmail.com - 15 Mar 2007 1:07 PM - 2 messages
Hi All, What is the accelerator key, shortcut key, hot key and mnemonic key on a form? I'm confused by these concept, who can explain them? If I have a "&Open  Ctrl + O" menu item and a button, whose text is ...
Score Form dispose closes other forms!!
aakashdee - 15 Mar 2007 11:50 AM - 4 messages
Hi all, I have two forms namely form1 and form2. In form1, I write the code to show the second form form2 and then I immediately dispose form1. But the form2 which was opened also gets closed. Is there any way I ...
Score Screen goes mental for a bit when resizing the form
Simon Harvey - 15 Mar 2007 10:06 AM - 5 messages
Hi everyone, I have a windows form application that looks a little bit like outlook in that it has a menu system on the left and then the main area to the right has a horizontal splitter thing going on. ...
Score Error OLEDB
JO - 15 Mar 2007 9:33 AM - 2 messages
hello i use a mysql connection Provider=MySQLProv;Data Source=MON SERVEUR;Database=MA BASE;User Id=;Password=; and when i run my application to access to mysql i have this error Aucune message d'erreur disponible, code de résultat : ...
Score Creta Class by O/R Mapping
JO - 15 Mar 2007 8:14 AM - 1 message
hello, I have just finished a small application which makes it possible to save time when one must create classes starting from a DBMS. To test them: [link] it functions only with one SQL 2005 or 2000, Access for the moment. ...
Score window service
Vinki - 15 Mar 2007 2:32 AM - 5 messages
Hello Everyone,    I have created a very simple window service. This window service in turn is calling a function that exist in a windows form. When I am trying to run this windows service. window service does not run ...
Score Puzzling cut and paste problem on hosted designer
bittercoder - 14 Mar 2007 11:53 PM - 1 message
I'm working on a WinForms 2.0 application that hosts a designer... the application has a bit of a dual personality, it either runs standalone, or can be instantiated as an add-in for another product (which is done via COM interop)... ...
Score Assigning Default value to Enum Variable
Lucky - 14 Mar 2007 3:59 PM - 3 messages
Hi guys, i was working with Enum and one Question strike, i thought it would be good idea to ask more experience guys around. the scenerio is like this : [System.ComponentModel.DefaultValue(check.None)]     public enum check ...
Score How to change form language (in code)
Carlos Cruz - 14 Mar 2007 3:39 PM - 2 messages
Hi, I'm trying to make a multilanguage application. I manage to create the forms resource files for each language and to read them (rm.GetString("Label1.Text", pCultureInfo)), but I need to change all objects after changing pCultureInfo. Is it possible to change the forma language in code? Where? How? ...
Score RE: Urgent...Help me..
babu - 14 Mar 2007 2:16 PM - 1 message
hi,    when i am in window based application at c#.net i could not set as start up applicaton. anybody help me how it is. pls. From [link] Posted via DevelopmentNow.com Groups [link] ...
Score Storing & Retreiving values from DataGridView
aakashdee - 14 Mar 2007 10:59 AM - 1 message
Hi all, Can anyone help me in out storing and retrieving the values from a DataGridView in SQL Server. I have two DataGridViewComboBox Columns in the datagridview namely ProdID & ProdName. If I select ProdId, the ProdName should be automatically selected in ProdNm ...
Score OutOfMemoryException when using a datagridview in a panel
sorensen.christoffer - 14 Mar 2007 8:55 AM - 2 messages
Hi, I am using .NET 2.0 and a datagridview in panel. The datagridview is bound to a datatable which is populated through a database. The first column should be a combobox column. The combobox column has a datasource which is another datatable so an integer is ...
Score Binding custom objects
Alla - 14 Mar 2007 6:30 AM - 3 messages
Hi, I got a problem with binding custom objects to the controls. Let's say we have 2 objects: obj1 and obj2. In my case DataGrid column is bound to the obj1 and ComboBox in that column is bound to the collection of obj2 and has ...
Score Weird Task bar problem
Elmo Watson - 14 Mar 2007 3:17 AM - 3 messages
(VS.Net 2005/Visual Basic) I've got a MDI application which, after about 3 months of development, I changed the name. I looked through every file, every config file, every xml file, every directory, to remove any reference to the old application name. ...
Score Automatic version incrementing
Elmo Watson - 14 Mar 2007 1:18 AM - 2 messages
in VB6, I could set my applications, so that, with every build, it would increment the version number. However, I can't find that capability in VS.Net 2005....I can find it if I publish the applicatioin, but I don't have any need for my users running the ...
Score Are there perils involved in databinding DateTimePicker.Value?
Simon Tamman - 14 Mar 2007 12:01 AM - 1 message
*Cross-posted from csharp* I've come across an interesting bug. I have workarounds but i'd like to know the root of the problem. I've stripped it down into a short file and hope someone might have an idea about ...
Score Losing scrollbar messages
Rock2000 - 13 Mar 2007 9:26 PM - 1 message
I'm having a problem with some very convoluted UI code we have. Unfortunately a large part of it is something that someone blindly took from some samples on how to host .NET controls in MFC windows. I can't say I'm a big UI guy, ...
Score OK to use DoEvents() ??
David Adams - 13 Mar 2007 6:54 PM - 10 messages
Hi, I have an application that recently has received a few complaints because of slow repainting/refreshing of certain forms.  For example, I am throwing up a messagebox that prompts the user to perform an operation, if the user ...
Score sharing a dateset among forms
Flavio Raimondi - 13 Mar 2007 6:53 PM - 5 messages
Hi all, I render different views of the same data using different forms (coincise view, detailed view and so forth...), and I would like to avoid to fill in the table adapters going back and forth among views. The forms are built using standard components (dataset, datagrid, ...
Score TreeView AfterSelect not fired
Marius Horak - 13 Mar 2007 2:59 PM - 3 messages
VS2003, C#. I have a user control that has a TreeView. Depending on user role (rights) this TreeView can be either visible or invisible. After 3  hours of trying to find out why this control does not work as ...
Score passing values
mydotnetdoubt - 13 Mar 2007 9:19 AM - 1 message
Hai dear all,. How can i capture child form close event in parent form in  c# 2005,     I'll make it some more clear ,  I have one master form  with 40 text boxes, and one 'search' button , in the search button im calling child ...
Score passing values
mydotnetdoubt - 13 Mar 2007 9:19 AM - 2 messages
Hai dear all,. How can i capture child form close event in parent form in  c# 2005,     I'll make it some more clear ,  I have one master form  with 40 text boxes, and one 'search' button , in the search button im calling child ...
Score passing values between forms
mydotnetdoubt - 13 Mar 2007 9:19 AM - 2 messages
Hai dear all,. How can i capture child form close event in parent form in  c# 2005,     I'll make it some more clear ,  I have one master form  with 40 text boxes, and one 'search' button , in the search button im calling child ...
Score TreeView Node Color
ahmed.maryam - 13 Mar 2007 12:41 AM - 6 messages
Hi there, I'm a newbie to C#. I was wondering how I can change the individual color of nodes in my TreeView control which I'm using to read in an XML file. Any ideas? Thanks! ~ Maryam ...
Score tabbing not cyclic - focus disappearing completely !
Oli - 12 Mar 2007 5:12 PM - 3 messages
I have quite a complex form - build part in the designer, and part dynamically. The tabbing basically works - but when I tab off the last control in my work area panel the focus disappears. no matter how many times I ...
Score simple deployment & version numbers
hawbsys - 12 Mar 2007 3:33 PM - 1 message
Can anyone help with two basic questions about deployment? First question. We deployed a WinForms application recently and it was successful. We opted for the simple "publish" method via a CD. This created an installer which placed the application in the folder C: ...
Score basic deployment & version numbering
hawbsys - 12 Mar 2007 3:31 PM - 1 message
Can anyone help with two basic questions about deployment? First question. We deployed a WinForms application recently and it was successful. We opted for the simple "publish" method via a CD. This created an installer which placed the application in the folder C: ...
Score basic deployment & version numbering
hawbsys - 12 Mar 2007 3:31 PM - 4 messages
Can anyone help with two basic questions about deployment? First question. We deployed a WinForms application recently and it was successful. We opted for the simple "publish" method via a CD. This created an installer which placed the application in the folder C: ...
Score simple deployment & version numbers
hawbsys - 12 Mar 2007 3:29 PM - 3 messages
Can anyone help with two basic questions about deployment? First question. We deployed a WinForms application recently and it was successful. We opted for the simple "publish" method via a CD. This created an installer which placed the application in the folder C: ...
Score Vista 'Run as admin' changes behavior forever. Why?
osumatt - 12 Mar 2007 3:20 PM - 4 messages
I have a .NET 1.1 Windows Forms app that is called through the following chain: - Start the program, which is a VB6 app - VB6 app calls CreateObject on .NET dll - VB6 calls .ShowDialog on the instantied object - OnLoad is overridden in the Windows Forms app - it spawns a thread that ...
Score Groups in ListViewGroup
Nei - 12 Mar 2007 2:58 PM - 2 messages
Hello! I'm trying to introduce an action in the group line in ListViewGroup. It´s possible? For Exemple + Men Sam - 12/08/2000 Joseph - 15/08/1950 Stalin - 12/04/2004 - Woman Sara - 15/08/2000 The idea is: When I click in group (men/woman) call a determinated function. ...
Score ToolStripMenuItem bug ?
ptheate - 12 Mar 2007 1:37 PM - 2 messages
Hi, I have a ToolStripMenuItem ('A') with a sub menu ('B') (also a ToolStripMenuItem), their parent is a ToolStripDropDownButton. Both ToolStripMenuItem use the check mark (property Checked). After the sub menu 'B' check mark is clicked, the menu disappear. But when the menu 'A'  check mark is clicked, the menu doesn't ...
Score Image transfer to another machine
Mahesh Deo - 12 Mar 2007 12:49 PM - 3 messages
-- I am programatically capturing image and then transfering it to another machine. but the size of image depends on the screen resolution. I want to keep the size of image very small and still it should also maintaine it's clairity so ...
Score Image transfer to another machin
Mahesh Deo - 12 Mar 2007 12:43 PM - 2 messages
I am programatically capturing image and then transfering it to another machine. but the size of image depends on the screen resolution. I want to keep the size of image very small and still it should also maintaine it's clairity so ...
Score Data communication between winforms of two different applications
vjsharma - 12 Mar 2007 10:03 AM - 5 messages
If i want to excahnge data between my application and WM 5.0 Native SMS application.How can i do that? i.e sending data from my application to the Windows mobile Native application such as SMS or phonebook .... and receive ...
Score Passing values from child to parent form
naufelbasheer - 12 Mar 2007 9:09 AM - 4 messages
Dear All, I have struck up with some probs, I m using c#.net (VS2005) I have a form for employee details which is having 65 fields, from there i'm calling a child window with a data grid  which will display ...
Score Passing values from child to parent form
naufelbasheer - 12 Mar 2007 9:07 AM - 1 message
Dear All, I have struck up with some probs, I m using c#.net (VS2005) I have a form for employee details which is having 65 fields, from there i'm calling a child window with a data grid  which will display ...
Score ListBox SelectedValueChanged Event Anomaly!!!!
giddy - 12 Mar 2007 6:09 AM - 3 messages
Hi , someone brought to my notice sometime ago that the SelectedValueChanged and SelectedIndexChanged event acts slightly wierd. Firstly ,the events fire even if you click/select the currently selected item. And secondly ,they fire when one clicks the white space!!(which is ...
Next »