Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score User Control binding
Erick Gonzales - 22 Jan 2005 10:54 PM - 3 messages
Hi, i´ve created a user control that contains a TextBox and a Label, lets call this control CText. CText has properties like Value and Text, where Text is used to display formatted Value. Well, i´m trying to create a new databind using: ...
Score Wheres system.windows.forms?
Curt - 22 Jan 2005 7:07 PM - 2 messages
Hi All...   I'm trying to us a control that requires using system.windows.forms.  I'm getting a compile error tho - it doesnt understand system.windows.forms.  I installed VS .Net 2003 pro.  What am I missing?  Do ...
Score Hiding non-databound hyperlinks in a DataGrid
BobRoyAce - 22 Jan 2005 4:27 PM - 4 messages
I am brand new to ASP.NET and am now required to take over maintenance of a ..NET/C# web application. On one of the pages I'm working on there is a DataGrid which has multiple columns. One of the columns is not databound and ...
Score Send a user defined message/event to form controls
Massimo - 22 Jan 2005 11:37 AM - 2 messages
HI, it's possible to "send" a custom message/event to a form, so the controls that "implements" an handler to this event process it? As an example, I definied a custom list view, that after an item select raise a custom event ...
Score File.CreateText fails
larzeb - 22 Jan 2005 8:31 AM - 3 messages
I am developing a Windows application. The source is stored on a network share, probably 6 directories deep. When I say: File.CreateText("G:\temp\" & _dataSourceInfo.Csv_filename) the file is created OK on the local disk G in directory temp. However, ...
Score problem with Timer (WinForm)
Kenny M. - 22 Jan 2005 3:49 AM - 2 messages
I have a Winform running and a timer (winform) firing each 3 min to make a transmition of data..I'm ok about the UI stoping for a while, the problems is that the timer fires two times in every interval, even if I use Timer.Stop. ...
Score setting the parent property from MDI child form in c#
Melisa - 22 Jan 2005 3:09 AM - 2 messages
How can I enable/disable Main Menu Item on MDI Parent Form when a Child form is loaded? Is it possible? In one child form i the code below on the button click event. The first line of code has error. I also dunno why may be it is not possible ...
Score Set 'RunAs' property programmatically for WinForms VB.Net applicat
Henry - 21 Jan 2005 5:49 PM - 2 messages
Hi, in a .Net 1.1 WinForms application I have a dialog that lets the user set new network credentials. Question: How can I assign the new credentials - say nc, defined by Dim nc = New System.Net.NetworkCredential(M_User, M_Password, M_Domain) ...
Score ColumnHeadersVisible property failing
Rob Oldfield - 21 Jan 2005 4:26 PM - 5 messages
I''ve got a datagrid on a windows form that I'm formatting using a custom table style.  Within the code that sets the style up I have tsName.ColumnHeadersVisible=false.. but they are still displaying.  Any ideas why that might be? ...
Score Datagrid with colored columns pausing during setup
Rob Oldfield - 21 Jan 2005 9:17 AM - 3 messages
I have a windows form that contains a datagrid with columns given coloured backgrounds via the DataGridColoredTextBoxColumn class.  Data is loaded, and the table style set up, during the load event of the form.  At present, the form half displays, then pauses, then completes.  Is there any way of ...
Score 2 Simple Questions
Matthew MacDonald - 21 Jan 2005 2:37 AM - 3 messages
Hi everyone,   I have what I think are 2 pretty simple questions.  I know I have done it before, but can't remember how I did it. #1:  I have a windows form with a textbox.  The textbox is getting filled ...
Score ListBox: How to only fire SelectedIndexChanged if the an item is directly selected.
felix - 21 Jan 2005 1:02 AM - 3 messages
I would like to only fire SelectedIndexChanged if the an item is directly selected. example: I have a listbox with a few items in it. These items only half fill the listbox.  If I click in the listbox, but not directly on an item (that ...
Score Creating a Form From A Non-UI Thread
dotNetDave - 20 Jan 2005 11:51 PM - 2 messages
I have a non-UI assembly that contains a Form similar to the MSN Messenger pop-up that appears when a user comes online. I have a Timer in this assembly that on regular intervals goes and looks for new information and if it finds ...
Score FileSystemWatcher fails
Rob Oldfield - 20 Jan 2005 11:25 PM - 3 messages
I have an app (that should really be a service, but I haven't got round to it yet) that just monitors a network folder via a filesystemwatcher for new files and then does its thing.  Generally, it works fine, but it fails about ...
Score Colour schemes
Rob Oldfield - 20 Jan 2005 11:19 PM - 3 messages
Has anyone done any research (or even just any ideas) on the best colour scheme to use for forms?  I don't like the default grey background.... but is it the best? Thoughts? ...
Score ComboBox DroppedDown property bug. If set in constructor, WndProc messages are missing
jrhoads23 - 20 Jan 2005 10:27 PM - 2 messages
I believe I have found a bug in the System.Windows.Forms.ComboBox object. Quick background, there is a ComboBox event for when the drop down list is shown, but not one when it is closed. This is because the ...
Score HowTo:Change disabled control font color?
strout - 20 Jan 2005 10:05 PM - 7 messages
When a textbox/text area/dropdownlist is disabled, the font is grayed out. Can I change the default color of disabled control to black? I tried to override Disable/Enable property of textbox and set 'ReadyOnly' instead of diabling the control. It works for textbox only because dropdown ...
Score Problem with a timer
Kenny M. - 20 Jan 2005 9:27 PM - 5 messages
I have a Winform running and a timer (winform) firing each 3 min to make a transmition of data..I'm ok about the UI stoping for a while, the problems is that the timer fires two times in every interval, even if I use time.Stop. ...
Score Pre Load a form
news.microsoft.com - 20 Jan 2005 8:09 PM - 2 messages
Is there any way to preload a form in VB.NET of how can I avoid seeing when a form is loading, how it is painting all the controls it contains? I think in VB6 I could use Load(frmTest) and after it is loaded, show it. ...
Score How to get the Windows user and group names.
Mauricio Pires - 20 Jan 2005 4:43 PM - 4 messages
Does Anyone know how to get the Windows user and group names? Thanks. ...
Score Deploy Crystal Report without modify HKEY_LOCAL_MACHINE
Patrick - 20 Jan 2005 3:43 PM - 3 messages
Hello! We developped a .NET Application, which includes some Reports. We created a Setup Projects, including the CR merge modules, specifing there our CR licence key.  Now we have the problem that we need to deploy this application on computers ...
Score DataGrid Control Selected Index
Chris - 20 Jan 2005 2:43 PM - 2 messages
Hello, I am using a DataGrid control to populate an all customers list.  I would like the users to be able to scroll up or down the list press Enter and the customer record populate on another form.  I am able to accomplish this only ...
Score DATA GRID and CTRL C
Harshawardhan - 20 Jan 2005 2:35 PM - 5 messages
C# - Windows application. Datagrid class... Data grid is populated with records. (see the code below) Select one of the entire row from the  grid  (selected gfrom outside left boundary). The row gets highlighted... Press CTRL C to mimic copy functionality. ...
Score How to attend click button even on to in order to don't close form called by ShowDialog?
£ukasz Margielewski - 20 Jan 2005 1:07 PM - 9 messages
I have my own windows form with some contrlos to set a few parameters. I show this form by frm.ShowDialog(). How I have to proram the button which sometimes should close form but in another time, the buuton should give a ...
Score TopMost problem
Hovhannes Asatryan - 20 Jan 2005 8:57 AM - 2 messages
Hi guys. I am writing an aplication with C#.Net in VS.Net2003 I have a Mdi form wich has 2 child forms. How can I set one of the child forms as a topmost ?. When I set TopMost property to true it does not work. ...
Score Can't override ShowDialog
Martin Hart - Memory Soft, S.L. - 20 Jan 2005 8:51 AM - 4 messages
Hi: I have a set of derived forms that I wish to implement an 'Execute' method to launch these forms, but I also wish to hide the 2 inbuilt ShowDialog methods so these can't be called unwittingly. I have tried: ...
Score Custom Control Property HelpText Property
GreyAlien007 - 20 Jan 2005 2:37 AM - 2 messages
Yeah, reading the subject, it makes no sense...but here goes.. I made a textbox control w/ some added features...the problem is, whenever I go to use it, I forget what my custom properties do.  Is there a way to put ...
Score "Restructure a Windows application" from scratch in 2 months
Rajat Tandon - 20 Jan 2005 2:29 AM - 6 messages
Hello Everybody, Please guide me so that I can fulfill this challenging assisnment ... I have been asked to "Restructure a Windows application" from scratch in 2 months. The existing application which is working but it is very heavy as no ...
Score Calling winForms in Installer project
weichung - 20 Jan 2005 1:18 AM - 2 messages
I had build an installer project for my ASP.NET project. And found that several fields need to be configured, like the web.config files and etc, which requires user input. Also I need to attach my database using the ...
Score Smooth scrolling
Ozone - 19 Jan 2005 11:09 PM - 3 messages
I am developing a windows application for scrolling through multi page tif documents (similar to ms word style).  I am having difficulties achieving a highly smooth scrolling affect.  I load the entire tif into a memory stream and access it from there.  I am using a picturebox like control to view each ...
Score How to open cash drawer through receipt printer in c#?
c#newbie - 19 Jan 2005 7:31 PM - 5 messages
How to open cash drawer through receipt printer in c#? ...
Score Keyboard Selection of DataGrid Rows then Delete
WineNCheese - 19 Jan 2005 6:37 PM - 4 messages
Hi all. I'm having problems preventing the delete of datagrid rows when they are selected via keyboard selection.  I have implemented the common solution of overriding of PreProcessMessage() to prevent delete when the user selects the entire row by selecting the row header.  This works fine.  However, ...
Score Running a .Net WinForms app from network drive etc...
James - 19 Jan 2005 5:35 PM - 6 messages
Not sure if this is the proper group for this but... First, I am trying to figure out exactly what steps I must take on each client machine to be able to Run a .Net WinForms ap from a local Intranet ...
Score Reuse DataGridTableStyle
Rob Oldfield - 19 Jan 2005 4:59 PM - 6 messages
Hi, I have two datagrids (on the same Windows form) that are basically two different filters of the same datatable.  I've set up a table style for the first one and I'm then trying to reuse that same style for the second ...
Score Tab page order with forms inheritance issue...
Tyler - 19 Jan 2005 4:48 PM - 2 messages
I have a BaseForm with a tab control that has two tab pages on it. When I create a DerivedForm based on the BaseForm I am able to add pages to the form in the DerivedForm.  I am also able to reorder all of ...
Score Dynamic Binding to Winform Interface
ADLearner - 19 Jan 2005 4:29 PM - 2 messages
I am trying to load an assembly dynamically in a windows form application and bind to one of the interfaces contained in it. I can successfully load the assembly into memory and create the object which is a Form. But how do I bind to an interface the Form has implemented with ...
Score Logging/error handling
Jeffrey - 19 Jan 2005 1:33 PM - 3 messages
There is a small group of doing .net development in c#/VB.net. I noticed each of us is logging/ catching errors differently in our programs. In short, does anybody know of a class or object out that that will allow us to ...
Score deployment
Ganesan - 19 Jan 2005 10:57 AM - 3 messages
hi Can window controls be loaded from a html page which could be hosted on a linux machine? the client m/c will be running windows pls provide me links if any thanks in advance ...
Score restoring window minimzed to the system tray?
Mark Smith - 19 Jan 2005 1:18 AM - 2 messages
I have an app that minimizes itself to the system tray.  It's also single instance; when a second instance is started, it just activates the first one and quits. When the first instance isn't in the system tray, I can use ...
Score DefaultAttribute not working in PropertyGrid on runtime generated
Robert Magnusson - 18 Jan 2005 11:43 PM - 4 messages
Hi All, I am testing some stuff out at the moment with the runtime generation of classes relating to schema-validated XML elements. I was hoping to get to the point that I could include the use of the DefaultValueAttribute on any ...
Score Strip bytes off the end of a byte array
Fred Herring - 18 Jan 2005 11:05 PM - 2 messages
I am attempting encryption. I start with a byte array of some dimension and end with a padded byte array with junk on the end.  Is there a clever way to remove padding from the end of a byte array? ...
Score Embedded .NET Control in IE - Policy issue not causing it to work???
Marco - 18 Jan 2005 10:09 PM - 7 messages
I have a .NET control embedded in Internet Explorer. Right now I am loading the control in a Local Intranet Zone, meaning that http://localhost/MyWebPage.htm has the embedded control. I have:   1) Strong Named my control   2) added [assembly: System.Security.AllowPartiallyTrustedCallers] ...
Score Bitmap region is already locked
Rick - 18 Jan 2005 8:35 PM - 3 messages
I have an application that is capturing grayscale images from a frame grabber (about 10 frames per second). The 1024 X 768 pixels are then copied to the bitmapData section of a bitmap ( a background processing thread) and then displayed by the UI thread. ...
Score How to determine if a KeyEventArgs contains a "text" character?
Daniel Chait - 18 Jan 2005 7:09 PM - 4 messages
I am writing a control which extends System.Windows.Forms.TextBox and adds in the concept of EditMode vs. ReadyMode (similar to an Excel cell). So normally when focus arrives on the control, I hide the blinking cursor and change the mouse pointer from an I-beam to an arrow.  When the user hits ...
Score Why does my USER CONTROL keep disappearing ?
Lee Gillie - 18 Jan 2005 6:01 PM - 5 messages
I'm not sure what causes it, but occasionally my USER CONTROL half way disappears from the form I am working on. I detect design mode and have an innocuous gradient fill paint for that, which does not interact with ...
Score datagrid navigation
oscar - 18 Jan 2005 3:09 PM - 3 messages
i currently have a dataview bound to my datagrid and would like to add some navigation.  i already have a mouseup event that highlights a row when the user clicks a cell.  i am looking for a way to highlight the previous or next ...
Score Determine Selected Rows in DataGrid C#
Clive Godden - 18 Jan 2005 11:50 AM - 2 messages
Does anyone have any C# code snippet for iterating thro a datagrids rows and getting the values of the rows that have been selected ...
Score DateTimePicker events
Rob Oldfield - 18 Jan 2005 11:45 AM - 3 messages
Hi, I'm looking for which event to use with regard to a DateTimePicker control. I want my event to fire when the actual contents of the control is changed... but I'm finding that all events are firing when I, for example, ...
Score Changing Treeview's selectedNode in Afterselect event.
Debi - 18 Jan 2005 9:07 AM - 2 messages
Hi,    I've a problem with setting the selectednode in a treeview.  When a user clicks a node on the tree, I save the data for the previous node, and store the newnode in a variable in the Mouse up event. Then I reuild the tree, and ...
Score No touch deployment - IEEXEC won't fire up
Jag - 18 Jan 2005 4:59 AM - 10 messages
We are experiencing a problem when trying to run an application using no touch deployment. All works fine on our W2K workstations but failes to run when browsing from IE on a Win2K server with framework 1.1, IE 6.0.28. ...
Score Check-boxes on TreeNodes
javatopia - 18 Jan 2005 4:15 AM - 2 messages
Hello, I have a tree view that shows check boxes on its nodes.  Is there a way to turn off the check boxes for some of the nodes, and not all of the nodes?  I see there is a check-box property for the TreeNode object in the Win32 API, ...
Score Datagrid tablestyle,column style not working
Nitin - 18 Jan 2005 3:58 AM - 2 messages
I have adatagrid and a dataset, when i bind dataset to grid, it works fine, however when i use formatting(Tablestyle, Columnstyles), then the formatting doesnt work. The data is still binded without showing the formatting. What canI do to resolve this problem? ...
Score Help with MS Accessibility
Pete Davis - 18 Jan 2005 3:41 AM - 9 messages
First of all, I apologize for cross-posting to so many groups, but clearly there are only 2 people on the planet that understand MS Accessibility in ..NET and I'm hoping I might reach just one of them by cross posting to 6 ...
Score How can one select from overlapped panels in the form design View?
Jim Brandley - 18 Jan 2005 12:44 AM - 7 messages
I am building a Windows Form App that has a splitter in the client area, treeview on the left, and panels on the right. Different classes of tree nodes need different views. How can I cause the one I want to work on (say ...
Score SteadySelection Class
carlmanaster - 17 Jan 2005 6:52 PM - 2 messages
Hi, I needed this for my current project and thought it might be useful to someone else.  It's a simple Disposable class that preserves a RichTextBox's selection, used like this: //    using (new SteadySelection(rtb)) ...
Score No popup event when using shortcuts in context menu
Claes Bergefall - 17 Jan 2005 6:30 PM - 5 messages
Appearantly a ContextMenu doesn't fire its Popup event when invoking a menu item with a shortcut. This kind of makes the Popup event useless for enabling or disabling menu items (if you're using shortcuts)!? Example: Suppose you have two menu items in a context menu ...
Score Error lost in databinding
Igor Anic - 17 Jan 2005 3:33 PM - 2 messages
I have a business object which has a property bound to textbox: txt.DataBindings.Add(new Binding("Text", obj, "MyProp")); Object property set method for MyProp is something like: set {     if (...)         throw(new ApplicationException("error message")); ...
Score PictureBox that Receives and Shows Input Focus
Bruce - 17 Jan 2005 2:06 PM - 2 messages
I am trying to create a control which is basically a PictureBox than can receive and show focus. I have created a UserControl descendant that simply contains a PictureBox control. The PictureBox control automatically sizes to whatever size is selected for the control. To ...
Score extra header in datagrid
saleek - 17 Jan 2005 11:17 AM - 3 messages
I was wondering if there is a way I can add an extra header to a datagrid? I found this solution on the internet - but it seems quite old and didn't work for me. [link] ...
Score Is there a way to set the category order in the PropertyGrid
Robert Matheson - 17 Jan 2005 11:05 AM - 3 messages
I have an application which uses the PropertyGrid to display highly-customised dynamic data using ICustomTypeDescriptor. I need to be able to display the properties within categories with the order of both the categories and properties being programmable. I can control the order of properties by setting PropertyGrid.Sort to ...
Score the order control of child forms of mdi
zbcong - 17 Jan 2005 9:56 AM - 2 messages
hello if there are several child forms are opened in their mdi parent.how can i move the one of the child forms to the front end to show in the CODE?? thank you!!! ...
Score Icons / Button graphics
Paul Aspinall - 17 Jan 2005 8:37 AM - 3 messages
Hi Can anyone point me to a resource for common used (or not so common) icons / button graphics?? Thanks ...
Score How to add tabpage to tabcontrol at 1st tab?
Tee - 17 Jan 2005 2:05 AM - 7 messages
Hi, I have a tabcontrol that has a tabpage, I want to add another tabpage on runtime, but I want the tabpage to be added to the 1st tab, anyone know how to do it? Thanks, Tee ...
Score Splash screen
Juan Ignacio Gelos - 17 Jan 2005 12:14 AM - 8 messages
Hi,     I'm trying to 'hide' the main form of an application until all the layout work is done and all the controls have their final sizes and locations (once the form is displayed you can see the several toolbars, ...
Score Repost for MS: UnsafeNativeMethods.CallWindowProc NullReferenceExceptions
Niall - 17 Jan 2005 12:14 AM - 10 messages
A colleague of mine previously made the following post in this newsgroup, but it hasn't received any MS attention. We were reminded that we should register our nospam alias with the .Net Passport that is linked to our MSDN ...
Score dataset merge (Is there a better way?)
WhiskyRomeo - 16 Jan 2005 9:05 PM - 3 messages
If you pull changes from a dataset and send the changes to update method of a data adapter, when you merge the changes back to the original dataset you may end up adding duplicate rows.  This happens when the PK is updated either ...
Score how to make a MSN Messenger 7 options window like control?
Tee - 16 Jan 2005 7:59 PM - 3 messages
Hi, I need to make a window form that look the options winform in MSN Messenger 7. It is not using tab, but a list of available content on the left (a vertical menu), and a groupbox on the right that shows the content. ...
Score Enter key not being captured - not firing KeyDown
STom - 16 Jan 2005 7:39 PM - 4 messages
I monitor the KeyDown event for an edit field on my Winform. I am capturing the Enter key (in case someone presses it it needs to act like a tab). This works most of the time, but there is some sequence happening within my ...
Score Prompt SQL action via mail
Rob Oldfield - 16 Jan 2005 3:36 PM - 4 messages
Hi, I'm working on a VB app that links in to our personnel db to control holiday requests.  The idea is that a user can go into the app, enter some dates that they want holiday for, with that then passed to their manager for ...
Score Label font color change doesn't take effect
STom - 16 Jan 2005 12:26 AM - 7 messages
I pass my label control by reference into a function in order to change the font color. If the value in the label is a negative number, I will change the color to red like this; lbl.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!) ...
Next » 2 3 4 5 6 7 8 9 10