Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score How to catch UnhandledException in C# 2.0
Zemp Dominik - 17 Jun 2006 3:28 PM - 1 message
Hi How I have to catch UnhandledException in C# 2.0 (C# 2005, Framework 2.0)?? In VB.NET 2005, there is a new class (My.Application.UnhandledException). Also I've found some posts about AppDomain.CurrentDomain.UnhandledException and Application.ThreadException. ...
Score Setting Control's parent cross AppDomains
Burgazon - 17 Jun 2006 5:13 AM - 3 messages
Hi, I encountered the following problem when trying to set control parent when the control reside in a different AppDomain. Here is the pseudo code descibing the problem: pay attention that both controls inherits from UserControl which inherites (indirectly)from MarshalByRefObject. ...
Score Microsoft Component Installer
Jared - 17 Jun 2006 12:56 AM - 1 message
Hi, I can not get files to run after install. See file listed below... ; The following products are supported in the bootstrapper. They will be installed in the ; order of this comment block, assuming each is "Yes" in the key/value ...
Score Formview (EditView) Money Data Type Binding problem. Help....
Sam - 16 Jun 2006 11:32 PM - 1 message
Folks.. I am trying to use a Simple form with 3 fields from SQL NorthWind Database (Order Details Table with 3 Fields. - OrderId, ProductId and Unit Price). The Field Unit Price has a data type of 'Money Type'. All I want is to able to edit/view/insert 'UnitPrice' field with 2 ...
Score control on a form
Justicetrax Dev - 16 Jun 2006 9:36 PM - 4 messages
Hi, I was wondering if there is a way to find out if a control exist on a form. I have the control name (btnApply) and I would like to do something like... form.controls("btnApply").exist as boolean. I know I could probably get ...
Score Application.Restart Tough One
Chuck P - 16 Jun 2006 7:42 PM - 6 messages
I am having trouble getting Application.Restart to work. My somewhat lengthy startup code is shown below. Interestingly enough it will work, if I display a message box that displays Application.Application.Name. Just displaying the messagebox or just assigning ...
Score ReportViewer -- Multiple Page Orientations
billygotee - 16 Jun 2006 6:08 PM - 1 message
Hi, I'm using ReportViewer to print these, basically, cookie-cutter reports that will be processed and sent to clients for a certain type of analysis.  For aesthetic reasons, I really need to have a mixture of landscape and portrait pages, and I'd like to be able to view the full ...
Score DataGriud Row,Column to bound table Row,Column translation.
Kevin Burton - 16 Jun 2006 4:22 PM - 8 messages
Using the HitTestInfo class in conjunction with HitTest I can get the row and column on a DataGrid. Now is what I would like is to translate that row and column to the row and column on the DataSource (in this case it is a ...
Score A problem with using DataGridView control in an MFC CDialog
Maksim Izbrodin - 16 Jun 2006 4:11 PM - 5 messages
I have a very simple CDialog-based application (VC++ 8.0/2005), where a DataGridView control is included through the usage of CWinFormsControl class. I experience the following problem with this application. If I switch to a different application (Alt+Tab, for example) while a grid cell is remaining ...
Score Smart Client security issue
Stef - 16 Jun 2006 3:56 PM - 2 messages
Hello people,     I am having problems getting my smart client app to run.  First I got a problem about permissions... So I've searched newsgroups to find out a solution and I was pointed to a MS KB which help me get through ...
Score Non rectangle form drop shadow
Mark Collard - 16 Jun 2006 12:08 PM - 8 messages
I’ve created a non rectangle form by setting the FormBorderStyle, BackColor and TransparanceKey properties and drawing on the form in the pain event or setting the BackgroundImage. What I would like to do is add a drop shadow to my non rectangle form. I did ...
Score Setting focus on first control of Windows form
Dharmendra vithal Pandit - 16 Jun 2006 11:42 AM - 4 messages
In Windows application,I have four buttons on Windows form. When I run, it doesn't show focus on first button. ...
Score circular calling windows
Hennie7863 - 16 Jun 2006 11:28 AM - 4 messages
Hi, I have two forms A and B. Om form B i have a NEW button which should call form A and after a selection on form A it will call form B again. Hence a circular calling of forms. ...
Score ListView with Groups don't display all items
Luiz Borges - 16 Jun 2006 10:28 AM - 3 messages
I searched all over the internet for this, I can't believe no one noticed that before. Here is the problem, if you have a ListView with lots of items (just enough get the vertical scroll bar on) and all the items belongs to one ...
Score Need to split EXE into EXE and DLL
Petri - 16 Jun 2006 7:56 AM - 6 messages
Hi, I'm working on a piece of software that is now growing into a suite of software products. When I started the work, I wasn't fully up to speed with dotnet concepts (am I now either ;-), so the App is probably not built ...
Score C# Window.Forms.Label Html Text
sitemap - 16 Jun 2006 6:53 AM - 3 messages
Hello, Can anyone tell me - is it possible to visualize html formatted string in Window.Forms.Label.Text? Thank You ...
Score System.InvalidOperationException: The Undo operation encountered a context that is different from wh
jesper.hvid - 16 Jun 2006 6:35 AM - 1 message
This is a problem when remotely showing a WinForm modally, when this winform is hosted in a remoting object. The problem ONLY appears on .NET framework 2.0. The full exception is this: System.InvalidOperationException: The Undo operation encountered a ...
Score Suspend user's envet when load form
Napo - 16 Jun 2006 2:30 AM - 7 messages
The form has many controls, so it take some time to show it out. But before the form finished showing, user can click the button on the form. Now, I want to prevent any user's event before the form showe method finished. How to do ...
Score How do I get a label for a ToolStripTextBox in a ContextMenuStrip?
mmaddogg - 16 Jun 2006 2:19 AM - 1 message
Hello everyone, How do I get a label for a ToolStripTextBox in a ContextMenuStrip?  It's very simple to label a ToolStripTextBox with a ToolStripLabel when it's in a ToolStrip, but the ToolStripLabel does not seem to be available in the ...
Score Is it possible to get return value from calling ClickOnce?
james - 16 Jun 2006 2:01 AM - 1 message
A Web application can launch a windows form using ClickOnce approach. But can we get the return value from calling ClickOnce URL? Thanks a lot James Lin ...
Score Classes
kuhrty - 15 Jun 2006 9:48 PM - 2 messages
Hello, I have created a business class to separate the logic between the UI and code.  I have loaded a dataset called dept.  Dept has a few columns called dept, dept desc, family.  I load only department in a drop down ...
Score DataGridView, How to display grid lines in all "rows"?
romancoelho - 15 Jun 2006 8:08 PM - 1 message
Hey everyone, I know this has to be simple, but can't figure out how to do it. How can I display the grid lines in all rows in the gird. The default behavior of the DataGridView seems to be that it only shows ...
Score NON-MDI application that keeps track of open windows
Brian Sokolnicki - 15 Jun 2006 3:14 PM - 3 messages
I need to write a non-mdi winforms application using c# and .net framework 2.0 that keeps track of open windows and binds to a control on the main application or shell.  I can't use a MDI application becuase I need the ...
Score Opacity 0, paint on Form
Martin Madreza - 15 Jun 2006 3:10 PM - 3 messages
hi, i want to paint on a for wich opacity is 0 is it possible to paint e.g. an rectangel with an black border or is it impossible to paint on a Form with opacity = 0 and it's the ...
Score MenuStrip.CanOverflow
Nils F - 15 Jun 2006 12:13 PM - 1 message
Hi, I see that the MenuStrip class defines the CanOverflow property, but I can't get it to work. Is it possible to handle overflow for a MenuStrip? I have no problems with CanOverflow on ToolStrips... Do I need to do something extra to ...
Score How to open Run dialog
alex - 15 Jun 2006 12:12 PM - 4 messages
Is it possible to open the run dialog box from code and execute a command? Thanks ...
Score application losing focus when popup form is closed
Joris Zwaenepoel - 15 Jun 2006 11:59 AM - 1 message
Hi all, I have this strange behaviour in my application where the application loses focus to another running application when a popupform is closed.  I can reproduce the problem like this: My main form is an MDI container form, having an MDI Childform open.  On the ...
Score Tree control
Smokey Grindle - 15 Jun 2006 11:17 AM - 6 messages
Does anyone know where you can find a control or source code to a control that displays a tree like the image attached? [attached file: tree.PNG] ...
Score C# Windows Application using CAB won't run on Windows 2000 machines
Caroline88 - 15 Jun 2006 10:09 AM - 4 messages
We have a C# Windows Forms application using the Decemeber 2005 CAB that I can't get to run on some of our Windows 2000 machines. The error is 'Exception has been thrown by the target of an invocation' falling over at the System.RutimeTypeHandle.CreateInstance method call. ...
Score Update main UI from another form
lucaoscar - 15 Jun 2006 9:39 AM - 5 messages
Hi all, as you can see from the level of my question, i am pretty new to c# and programming in general. situation: i would like to update the UI of a form (main form of my application) from a second form (which was called from the first). ...
Score How To Pick Winning Stocks
info - 15 Jun 2006 7:57 AM - 1 message
To pick winning stocks, you need the tools to separate the companies with superior sales and profit growth from the ones who are just making a lot of noise. Besides choosing the right companies to invest in, you must learn how to read the market's trend so that your timing ...
Score Adding Record Using BindingSource and BindingNavigator
den 2005 - 15 Jun 2006 6:51 AM - 1 message
Hi everybody,    I create a form with textboxes for display and data entry. I used bindingnavigator and bindingsource to make that happen, but having problems with adding new record...I finally successfully added new record in dsProducts and in the bindingnavigator shows correct number of records..But when I ...
Score BUG ToolStripItem.Text = My &Hotkey
Jared - 15 Jun 2006 3:43 AM - 3 messages
Hi, I am having a problem where the underscore for hotkey is not being painted on my MDI application. Only unuasual thing about my app would be that I have killed an internal border. Anyone else have this problem? ...
Score How to disable automatic indexing in ListBox?
Buddhist.CHinA@gmail.com - 15 Jun 2006 3:39 AM - 1 message
Hi guys,   I mean, by default, we can use "Ctrl" + alphabet to navigate to corresponding item, whose text starts with same first letter, in ListBox. But I don't wanna this feature at the moment, then how can I ...
Score VS2005 text search box
Jared - 15 Jun 2006 1:29 AM - 3 messages
Hi, I often try to search for code and get no results, because 1 of 70 codefiles i want is not open. How can I search codefile that is not open? Search hidden text is enabled. ...
Score Current column from derived style.
Kevin Burton - 14 Jun 2006 11:42 PM - 3 messages
I have a class that derives from DataGridTextBoxColumn like:     Public Class DataGridEditTextBoxColumn         Inherits DataGridTextBoxColumn In this class I override Edit         Protected Overloads Overrides Sub Edit(ByVal source As ...
Score DataGrid edit questions.
Kevin Burton - 14 Jun 2006 3:51 PM - 7 messages
I seem to have gotten the data grid so that I can edit individual columns but it has brought up some questions. 1) The only way that I can get a column to be editable is to make the whole ...
Score RichTextBox - disable smooth scrolling?
Barry L. Camp - 14 Jun 2006 2:37 PM - 2 messages
I've searched for this online but have not found the code I need. I'd like to be able to programatically set a RichTextBox (VB 2005 - Windows Forms app) to scroll one line of text at a time, rather than have the ...
Score read excel file into dataset
Chris - 14 Jun 2006 2:25 PM - 2 messages
Hello, I am trying to read an excel file, saved in xml format, into a dataset using the DataSet.ReadXML() method. When I do this 27 seperate tables are created, each table describes a different portion of the file (ex. doucument ...
Score Using ToolStripContainer on MDI Parents
Carsten Schuette - 14 Jun 2006 1:18 PM - 2 messages
Hi, I want to use "ToolStripContainer" on MDI parent form. This is a problem because the ToolStripContainer.contentPanel fills the whole client area of my form. Is there a solution for this? Carsten ...
Score Learning the Fundamentals *without* using Visual Studio
Frankie - 14 Jun 2006 6:20 AM - 11 messages
I am looking for tutorials, articles, etc that can help to enlighten me on what's "really going on" or what's required to create a .NET application (particularly Windows Forms) WITHOUT the use of Visual Studio. I understand that VS does a lot of things for us, but I want to know what those things ...
Score System.Windows.Forms.WebBrowser accessing HTTP Headers
MichaelB - 14 Jun 2006 12:12 AM - 1 message
Is it possible to access the HTTP Headers for each HTTP Request/Response that the WebBrowser object processes. I am trying to obtain a specific Cookie. I was trying to use WebBrowser.Document.Cookie but this only returned to me one ...
Score LicenseManager
asiva - 13 Jun 2006 11:47 PM - 2 messages
Is it possible to implement feature based license validation using the LicenseManager class provided by .Net framework. The usage is LicenseManager.Validate(typeof(MyControl), this); This would be at control level. Is it possible to do something like LicenseManager.Validate(methodName, ...
Score App.config use from UserControl Assembly
Techno_Dex - 13 Jun 2006 6:20 PM - 4 messages
I have an assembly (dll) which contains home rolled C# UI controls that are used in multiple applications in house.  Some of these UI controls I would like to have read some settings from the currently running application *.config file but with the new .NET 2.0 configuration changes I'm seeing how ...
Score .NET 2.0 TreeView Control - Need help with Key
Forch - 13 Jun 2006 12:09 PM - 3 messages
Hi everyone....  I am writing a new Windows app using VS 2005. My memory must be failing me, but I was under the impression that when I call the "nodes.add" methods and I supply a key property, that that value ...
Score Container Control Question
Mark Collard - 13 Jun 2006 11:35 AM - 4 messages
I've created a Control class and have added the System.ComponentModel.DesignerAttribute attribute to make the Control object act as a control container at design-time. [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] public class MyContainerControl : System.Windows.Forms.Control ...
Score LinearGradientBrush
Mike Batt - 13 Jun 2006 11:22 AM - 3 messages
I'm trying to draw a linear gradient between two colours using the LinearGradientBrush class.  It sounds simple enough however I get a line of the second colour at the top of the gradient in certain situations.  Placing ...
Score Howto change Access modifier when code is generated from designer
wolfmail@writeme.com - 13 Jun 2006 10:44 AM - 1 message
Hello, I have created a custom component that i want to use in the designer. Up till now i am able to let the designer generate the code-behind code to declare and initialize objects from myComponent class. Unfortunately the object declaration is declared as being Private. I'd ...
Score Strange focus behaviour
martin_link75 - 13 Jun 2006 10:15 AM - 3 messages
I have a windows application with a main form with MDI children. Once in a while, not all the time, when a user hits return in a RichTextBox in (which reside in a tabcontrol in the MDI child form) the ...
Score shortcuts
Steffen - 13 Jun 2006 8:36 AM - 3 messages
Hi, I'm using short cuts for some context menu strip items (for example "copy" CTRL+C). The context menu belongs to a tree view control. When I work with another control of my form than the tree view control, the ...
Score dtpicker min max dates
Jared - 13 Jun 2006 6:14 AM - 4 messages
Hi, Would like to beep user if invalid date is selected.  i.e. out of range MinDate..MaxDate. thanks Jared ...
Score To create MAC style for ComboBox and ListBox?
Henry Jan - 13 Jun 2006 2:21 AM - 1 message
Hi All, I want to create ComboBox and ListBox control with MAC style as this one on .NET:  [link] However, it's really difficult with the scrollbar.  I don't know how to replace the scrollbar of the system with MAC style scrollbar. ...
Score Property Grid question (simple?)
sb - 13 Jun 2006 12:55 AM - 5 messages
Consider the following example code: .... namespace MyNamespace {     public class MyClass     {             private int m_Count;             [TypeConverter(typeof(ExpandableObjectConverter))] ...
Score Composite controls don't persist data? (sorry, repost)
Kyle Kaitan - 12 Jun 2006 11:30 PM - 4 messages
Sorry, I hit enter before I finished writing the previous post... ignore that one. :-) ==== all, I made a composite control ("TitleBar") consisting of a Panel that in turn holds an Image and a Label. The Text property of this control just gets or ...
Score Composite controls don't persist data?
Kyle Kaitan - 12 Jun 2006 11:26 PM - 1 message
I made a composite control (TitleBar) consisting of an ImageBox, a Panel, and a Label. The Text property of TitleBar just gets or sets the property of the Label's text: ...
Score Control focus in enabled/disabled panels
emorgoch.public - 12 Jun 2006 6:29 PM - 4 messages
I'm having some trouble with Windows Forms in .NET 1.1 that I haven't been able to find a soution for. Below is a sample form that shows my problem. Basically, the form has two panels that switch their enabled ...
Score ClickOnce deployment security on the Internet
Thirsty Traveler - 12 Jun 2006 4:37 PM - 5 messages
We have a TabletPC application used by remote, roaming users who only have Internet access. We would like to place the deployment site on our Internet so they will be able to apply updates, however the issue of security for ...
Score Restore Form To Previous Size
amyl - 12 Jun 2006 4:05 PM - 4 messages
I have an application where users can minimize it to the systray.  I would like when the user restores the application from the systray to return to the previous forms size. If the form was maximized when minimized and I use the following code ...
Score Background worker / Progress Bar
Neil - 12 Jun 2006 4:05 PM - 5 messages
Hi, I'm building an app that performs a long running operation when the user clicks a button. I'm not sure how long the operation will take up front and its not an interative task. I have 2 problems at the moment, one is ...
Score Can I Get DoubleBuffered Graphics object by using CreateGraphic()?
cok119 - 12 Jun 2006 1:39 PM - 1 message
Hi, all I am working on a image anasis project, mang chart need to be draw, How can I draw a chart on a label in my form? labelObject.CreateGraphic() return a non DoubleBuffered Graphic object, How can I do it? ...
Score Professional Web Designs
arvyly - 12 Jun 2006 12:01 PM - 1 message
Professional Web Designs Professional Web design and other web development is what wicked innovations specialized. Internet Marketing - Website Traffic - SEO Tips. Internet marketing solutions, marketing tips for increased web site traffic, professional web templates, affordable web hosting, search engine... Team that  has extensive experience in website design and development ...
Score How to wait till webbrowser completes sending a form?
mebeserk - 12 Jun 2006 11:03 AM - 3 messages
I've got a program that has to submit forms automaticly and go to the next page. I know that the following code works for Navigate but it hasn't any affect on Documents.Forms[0].InvikeMember("Submit");. === My code === ...
Score Each windows form as individual dll
Suga - 12 Jun 2006 10:25 AM - 3 messages
I am working in windows application using c#2.0. I have to convert each form in my application as a seperate dll. ...
Score Control.BackColor Transparency, Control.BackColor = Color.Transparent
ray well - 12 Jun 2006 10:13 AM - 2 messages
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text written on the ...
Score Adding Scroll bar to MDI Client Control
vikash - 12 Jun 2006 9:50 AM - 1 message
Hi All, I am currently working in a windows application designed in C# 2.0. The application is the MDI application. At the launch of the application, for the MDI Parent, i want to calulate the size of the MDI client that should be(Using some my own ...
Score treeview labeledit
feudalac! - 12 Jun 2006 8:43 AM - 3 messages
How to edit a treeview node label from code? now when i create a new node (in runtime) i have to click once more on that node to edit it... how to invoke that state from code right after creating it? ...
Score Windows Forms Interview Questions?
John - 12 Jun 2006 5:59 AM - 2 messages
Hi everybody, I have been doing a search for Windows Forms Interview questions using Google, and I havent found much at all.  If you know of a useful place to look, I would be really grateful. Thank you, jr. ...
Score Watch objects in memory in visual studio
vahid.xplod - 11 Jun 2006 7:42 PM - 2 messages
hi, is there anyway to watch objects which are placed in memory in visual studio. for instance, assume that you have two forms in your application, and your are debgging the application and also one of these forms. what i ...
Score A client for a webservice
Zodiaco - 11 Jun 2006 9:16 AM - 2 messages
I'm developing  c# windows application as a client for a web service. While i was designing the interface i discoverd that i'm totally stuck, i need to enumerate a list of links on a panel with a limited area that ...
Score Global objects
BobRoyAce - 11 Jun 2006 5:33 AM - 6 messages
I have an application which is comprised of, among many other things, a Main form which shows various user controls depending on which NavBar link they click on. In addition, there are many Entity classes that I created to support the application, one of which happens to be called ...
Score Login Form
BobRoyAce - 11 Jun 2006 4:42 AM - 2 messages
I have a login form that I want to show before the Main form loads. I am currently showing it in the Main form's Load event. If ModalResult of form does not return as DialogResult.OK, I call Me.Close for the ...
Next »