Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score Disable a text box when it's not adding new row?
Nick nkw - 16 Feb 2007 10:10 PM - 7 messages
I want to enable a text box only when it's in "add new" status. The BindingSource.Position just return a number. Any good way to do it? Thanks, ...
Score Output parameter in Typed Dataset
Curt Gough - 16 Feb 2007 10:02 PM - 6 messages
I am using Typed Datasets in VS2005 based on SQL Stored Procedures. When I do an Insert (using an Insert Procedure), I have set the SP to return a new ID number. However, I don't know how to reference that returned value to ...
Score Windows Forms advice
abhiM - 16 Feb 2007 4:45 PM - 3 messages
Hi,     This is a very general question. I am about to embark on developing a new application (Windows Forms based). All the business logic, external interfaces etc have already been developed and are available as ready to use libraries. ...
Score Next File (System.IO)
ElmoWatson - 16 Feb 2007 4:33 PM - 6 messages
Let's say I have a file loaded, whether it be text or picture. I want to be able to have a 'Next' button, which loads the next file in the current directory. I can load the files just fine, and to some extent, I understand System.IO ...
Score The record cannot be deleted or changed because table
nkw - 16 Feb 2007 3:45 PM - 4 messages
Probably an ado.net issue. I have two tables in Access obligor and Collateral, and collateral has foreign key reference to obligor. I created a winform to edit obligor. i tried to modify a none primary key column and got the following error. ...
Score Dialog owner in MDI forms
Grober Myttelson - 16 Feb 2007 10:22 AM - 5 messages
MyMDIChild is an MDI child to MyMainForm. When I run the following code the MDI child gets to be the owner of the dialog. MyDialog d = new MyDialog(); if (d.Init()) {     d.Owner = MyMDIChild;     f.ShowDialog(); ...
Score Hosting windows form in IE browser
Toby - 16 Feb 2007 8:50 AM - 2 messages
Hi, I have  a specific problem hosting a windows form control in IE. First i have created a user control and hosted it - everything worked great. But when a tried to host a 'Form' control instead it didn't work and i ...
Score DataGridView problem-
Ogmios - 16 Feb 2007 2:20 AM - 6 messages
Hi to All, I have DataGridView control bound through databindingsource to the SQLServer 2005. The problem is when I add or edit data, situation in the database is always step behind form situation in the grid. I use exampleTableAdapter.Update(exampleDataTable); ...
Score User from not behaving as expected
newscorrespondent - 16 Feb 2007 12:57 AM - 2 messages
I am using Visual Studion 2005 SP1 and C#. I have a User Control that has a single label docked at the top of the control. This control is to be the basis for a number of inherited controls. Many of the inherited controls will have a split container docked as fill ...
Score Resolving Namespace at Runtime.
Ibrahim. - 15 Feb 2007 3:33 PM - 2 messages
Hello, I have usercontrols in my projects sub directories. I have one winform (child form) which loads the usercontrols depending upon the menu I select, i create  a new instance of a child form & then load the usercontrol. ...
Score Textbox validation, esc key
Marko Bozikovic - 15 Feb 2007 3:31 PM - 3 messages
Hi all, I have a bit of a problem... I have a simple modal form with some textboxes. I handle Validating event for some of them, to check data format. Form has OK and Cancel buttons, AcceptButton and CancelButton properties set. ...
Score Windows service that listens for Instant Messaging Traffic. Suggestions please?
Charlie@CBFC - 15 Feb 2007 10:32 AM - 2 messages
Hi: Looking for some ideas on how to set up Windows service that listens for messaging traffic.  I've done something similiar before for capturing windows events.  My questions... In what namespace would I find class that raises such events? ...
Score How to set tab order correct in a C# userControl hosted in an MFC
Marina Strand - 15 Feb 2007 8:51 AM - 10 messages
I´m hosting a C# userControl with lots of other controls on it in an MFC dialog. The problem is the tab order. I set it up correctly for the userControl in the designer and it appears to be set correctly after the call to ...
Score Flashing Application is task bar
mdhaman - 15 Feb 2007 1:17 AM - 2 messages
Hi, I have VB.Net MDI application (.Net 2.0). This application listen for incoming message on a Message Queue. If a new message appears in the message queue, it opens a new MDI child window and displays data related to the that ...
Score New to WinForm from Asp.Net
nkw - 14 Feb 2007 10:27 PM - 5 messages
Hi, are there any resource lke [link] available for Winforms? Any reference, well structured sample database application like pet shop? ...
Score Add My app to the 'Open With' menu
ElmoWatson - 14 Feb 2007 8:52 PM - 7 messages
Can someone guide me to a place where I can learn how to, in the Setup/deployment project for my application, add my Application to the "Open With" menu? ...
Score Moving a borderless form that contains child controls
Flyte - 14 Feb 2007 8:52 PM - 2 messages
Hi all.. I have followed the directions outlined in [link] en-us/netframework/aa497373.aspx#7qgifyua (search page for How do I support moving a borderless form?) private const int WM_NCLBUTTONDOWN = 0xA1; private const int HTCAPTION = 0x2; ...
Score Component needs a form's HWND
mikesnoise - 14 Feb 2007 7:18 PM - 6 messages
I am writing a class derived from Component that calls a Win32 function to display a dialog box. The Win32 function takes an HWND as the parent window of the dialog box (for positioning the dialog over the parent). How do I get the HWND of the form that it was dropped on? ...
Score Accessing forms from different project
Dimsion - 14 Feb 2007 5:49 PM - 3 messages
Hi everyone, Does anyone know how i can access forms from different project. I have multiple projects and i was wondering if it would be possible to access those forms without adding it in it into the project itself. Thanks! ...
Score Modal form opening another modal form
David W - 14 Feb 2007 5:39 PM - 6 messages
I have an application that opens a modal form, FormA.  This modal form, FormA may need to open a second modal form, FormB and close/hide itself. FormB can either close out and return control to the main window, return to ...
Score Double click file - open in my app
ElmoWatson - 14 Feb 2007 3:28 PM - 2 messages
I set the association for a partcular filetype, to my application. Now, though, when I double click on a file of that filetype, it will open my application, but the file will not automatically load in it. How can I set my program so that, when I double click on a file, the file ...
Score BackgroundWorker vs. Threads
techfuzz - 14 Feb 2007 2:45 PM - 5 messages
I am trying to use a BackgroundWorker, but I need to be able to call other functions and procedures from within DoWork.  I get an error when I try to do this so I'm lead to believe it is not possible.  Is ...
Score programmatically adding resx file to project.
Solitude - 14 Feb 2007 7:24 AM - 4 messages
So in my class constructor I am trying to programmatically create a .resx file to be included in our project file if it does not exist and add some strings to it. Has anyone done similar functionallity and if so how did you do it? ...
Score Using an image in a datagrid column header..
modi321 - 13 Feb 2007 10:36 PM - 5 messages
I am looking to replace the text of a column header with an image.  Is there any particular trick to do this?  The image-column only allows for images in the actual rows, but I want to substitute a column's ...
Score outlook express ver 5.5
Tazman - 13 Feb 2007 9:10 PM - 3 messages
Can I get a version of Outlook Express to work with Windows XP?  Is this still a downloadable version? ...
Score how to tell if notifyicon hooked ok
Jim Mead - 13 Feb 2007 8:50 PM - 5 messages
I have C# code that runs during login (HKEY_LOCAL_MACHINE\\...\\Run...) This applications main user interface is a notifyicon with a popup menu to open a larger form. Orignally I had a problem where the tray icon would only appear intermitently on reboot.  A work around I have place now is to "flash" the ...
Score arrow keys
Pascal Cloup - 13 Feb 2007 8:22 PM - 6 messages
Hi, How to intercept th arrows keys in a whole form? thanks in advance, Pascal ...
Score Possible help for Newbie
Not Bright - 13 Feb 2007 3:37 PM - 4 messages
Hi All, Hope everyone is well and wouldn`t mind helping a very frustrated newbie out? Im fairly new to VB 2005. I have made a fair very simple Database Projects which have all worked. Im now writing a very simple project which ...
Score Dispose questions
JS - 13 Feb 2007 1:34 PM - 2 messages
I have a user control with a panel on it.  This panel is dynamically populated with controls and sometimes I need to clear off all of the controls and repopulate with new ones. 1. Disposing all controls on the panel ...
Score Insert Attachment in Microsoft Outlook
Jetson - 13 Feb 2007 12:31 PM - 5 messages
Hi! I want to open my default  client application from a windows form application. I have the code but I don ´t found how to inserts attachment s? Can anybody help me? Thanks. ...
Score Logitech quickcam pro 5000 with windows xp media edition and MSN
Waqas - 13 Feb 2007 7:08 AM - 2 messages
I can't get my webcam to work with msn at all! I've tried everything the logitech tech support have suggested.  It keeps saying my webcam is either not connected or being used by another program..which it isn't.  I know the ...
Score .NET C# Winforms question about window opening
Brian Simmons - 13 Feb 2007 1:12 AM - 8 messages
Hi All, I think I have a question that probably has an easy answer, but I can't manage to find it. I come from a Sybase PowerBuilder programming background, and pretty much all PB developers used the following technique: ...
Score Combobox performance
Fad - 12 Feb 2007 8:06 PM - 4 messages
I've measured the execution time of the following code, and it's variable from 0,5 sec to 1 sec.. How I can improve performance..? for (int i = 0; i < 8; i++)     {         myCombobox1[ i ].Items.Clear(); ...
Score Global Exception Handling
Simon Harvey - 12 Feb 2007 7:45 PM - 3 messages
Hi All, I'd like to be able to display a nice custom form to the user when any exceptions occur within my Windows Forms application. In asp.net I would use the global exception event that yuo can handle in global.asax. Is ...
Score TypeConverter question
--== Alain ==-- - 12 Feb 2007 7:33 PM - 9 messages
Hi, i've developed my own TypeConverter and i have some issue. Here is my custom control class definition : [Category("Appearance")] [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [Description("Setup Style, Type and Color of gridlines to draw.")] [TypeConverter(typeof(CGridLineConverter))] public CGridLine GridLines ...
Score setting form Size - hack at form.designer.cs ?
Oli - 12 Feb 2007 5:05 PM - 3 messages
Hi - I would like to set some properties to constants (these may ultimately come from app.config) eg the Size property. If I do this in my Form constructor - then the values seem not to get applied in the designer. Also - the "InitializeComponent" call has ...
Score Resize nested control at runtime
Russ Green - 12 Feb 2007 11:14 AM - 5 messages
I have a VB.NET app that uses lots of forms which I am loading into a panel cotrol using..... Me.pnlMain.Controls.Clear() frm.TopLevel = False frm.WindowState = FormWindowState.Maximized frm.Dock = DockStyle.Fill frm.Anchor = AnchorStyles.Left + AnchorStyles.Right + AnchorStyles.Top + ...
Score Setting a style for a selected row in the DataGridView
Simon Harvey - 12 Feb 2007 10:13 AM - 5 messages
Hi Can anyone tell me if there is a property for setting the default cell style for a cell thats selected. I can see properties for the default cell styling and alternate row styling but not for selected styles. Am I missing something here? Do I have to write some custom formatting code? ...
Score How to Create WinForms client and ClassLib server as one assembly?
Joseph Geretz - 12 Feb 2007 12:02 AM - 7 messages
I'd like to break up my aplication into a WinForm executable, plus a class library containing application utility functions. But I don't want any client other than my own application to have access to my application library. Isn't this the point of an 'assembly'? So how can I generate these ...
Score A Label control that its text can be selected with the mouse
Ben - 11 Feb 2007 5:08 PM - 6 messages
Hi, Is there a way to allow the Label control to select its text with the mouse by the user? I've looked at the Label's properties but I couldn't find anything making this possible. Am I missing something here? Well, it can be done with a Textbox control, ...
Next » 2 3 4 5 6 7 8 9 10