Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score Form activated
Mark - 4 Dec 2004 10:24 PM - 5 messages
I have two forms.  The first form has a datagrid.  The second form is opened by the first form.  When the second form closes, I want the datagrid on the first form to refresh. I tried using the Activated and Enter events of the first form, but neither ...
Score DataGrid - using ArrayList as DataSource
Mark - 4 Dec 2004 8:46 PM - 2 messages
Assume you create an ArrayList containing 10 instances of some class.  Let's say it's a Person class with public properties FirstName and LastName. You then set a winform DataGrid's DataSource property to be the ArrayList. A user selects the 6th row in the datagrid.  I can find the values of the ...
Score Two related listBoxes question
Guy Dillen - 4 Dec 2004 8:40 PM - 4 messages
I want to relate 2 listBoxes. Although during the filling of the first listBox1; the event SelectedIndexChanged already fires (this is not the purpose). The event should only fire when a select an item in listBox1. How can i avoid that the event fires too early? ...
Score Multi-Threading Problem
Demetri - 4 Dec 2004 6:09 PM - 2 messages
I have an application I am writing that is using multiple threads to pull down files from a web service. I want a thread to run for each file needed to pull down. The code I have written works wonderfully. However, when I add in ...
Score Extender Provider
Nicola - 4 Dec 2004 1:53 PM - 7 messages
I want implement an Extender Provider in my form that stores an object, implemented in a class, that stores n properties(string, integer...). I would like edit every properties at design mode too, in the same way of size property, location property etc, in order to extend my form' s controls with ...
Score Send Email from Windows Form
Jay - 4 Dec 2004 11:18 AM - 3 messages
How can I send an email like I can with asp.net using System.Web.Mail or by some other way. Thanks. Jay ...
Score ListBox, DataReader, ID and Description
Guy Dillen - 4 Dec 2004 9:17 AM - 4 messages
I would like using a DataReader to fille a listbox with descriptions, on the other hand i need to store somwhere an ID (to the respective Descriptions), that i can use as a key when a listbox item has ben selected. ...
Score ShowDialog and Thread
Elp - 4 Dec 2004 12:18 AM - 2 messages
Hi, A probably trivial question but i can't figure out the answer  myself. When you call ShowDialog() on a Form to display it modaly, the code located after the ShowDialog call is not executed until the Form is closed. So it ...
Score PasswordChar on TextBox in DataGridTextBoxColumn
Brandon Owensby - 3 Dec 2004 9:09 PM - 3 messages
I have used PasswordChar on a TextBox that is on a form and it works great. You see * instead of the password and you can't cut or copy the password out.  It doesn't work as well for a DataGrid.  If you want to look a list of ...
Score Is it possible to enable/disable scripting in IE programmatically?
MJB - 3 Dec 2004 8:33 PM - 4 messages
I am using the embedded ActiveX IE WebBrowser component in my C# application.  I want to be able to Enable/Disable javascripting programmatically.  I was wondering if there was a way to achieve this?  I was hoping maybe there was a registery entry I could modify directly.  Any ...
Score Not able to take screen shots of "S to make presentation
Rajat Tandon - 3 Dec 2004 5:32 PM - 10 messages
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as ...
Score How can I catch the bool values changing in a DataGridBoolColumn?
Rekha - 3 Dec 2004 4:29 PM - 3 messages
I have datagrid with 5 items. Out of which 1 items is checkboxe. The bool column(checkbox column ) in added in datagrid.  The rest of Data is binded dynamically to the datagrid Based on some values from the database I have to check or uncheck the ...
Score Message Queue
Daniel Bello Urizarri - 3 Dec 2004 3:58 PM - 3 messages
Hi: I'm developing a class library and need to know if the application is running a message queue, to kow if I can use a System.Windows.Forms.Timer. How can I know that? thanks. ...
Score Getting the Error Code from the Exception Object
Vikash Kumar Mitruka - 3 Dec 2004 10:42 AM - 3 messages
Hi all, how can i get the unique error code that is associated with each Exception. there is one Property of Exception class named HResult. but that is protected so i can not access it. How can i do that. if anybody is having any idea than please do inform ...
Score How to specify width of each of the columns of a DataGrid?
~~~ .NET Ed ~~~ - 3 Dec 2004 10:24 AM - 6 messages
I am feeding a class as the DataSource of the DataGrid. When the processing is done this data grid then displays the data in four columns. Now, I know you can specify table styles for a data grid, but what about being able to ...
Score selectedindexchanged not in winform datagrid??????
zbcong - 3 Dec 2004 5:37 AM - 2 messages
hello in my winform,there is a datagrid,i want to fire some actions when the selected index is changed,but i fail to find the SelectedIndexChanged event to the winform datagrid,why? how can i implement such a function with the ...
Score Forms in Class Libraries - Beginners Question
Roger Stenson - 3 Dec 2004 12:41 AM - 3 messages
Hi I am just beginning learning Dot Net, though I am a fairly experienced VB6 traditional developer. I have a Solution which contains of libraries of classes which I want to reuse widely in multiple projects , including some forms which I want to ...
Score Non client area
misu - 2 Dec 2004 11:21 PM - 2 messages
Hello How can I draw the non client area of a window from C#? Does anyone have an ideea? Is it possible? ...
Score unhandled Exception in GDI Windows Forms
Bob Brown - 2 Dec 2004 10:49 PM - 4 messages
When running a program in Virtual PC, using dynamic screen resolutions if the resolution is something off the norm, ie 1048x805. DirectX 9.0 installed, ..Net Framework 1.1 SP1 install, Virtual PC Extensions SP1 and a new installed program installed.  Running Windows 98,98SE or WinME. ...
Score Finding an item/node in the treeview
Harshad Rathod - 2 Dec 2004 8:51 PM - 5 messages
What is the most efficient way to search a node in the treeview.  I could not find any built in method in that control and walking through the tree does not sound right. ...
Score error caused possibly by overriding WndProc method of form while using UIP AB
TS - 2 Dec 2004 8:00 PM - 8 messages
I get this error randomly that doesn't seem to cause anything to not work correctly. The exception is caught, and seems to not affect the application at all: The code I used to make is so the form cannot be moved: ...
Score Thread Part 3
Charles A. Lackman - 2 Dec 2004 7:14 PM - 5 messages
Hello and Thanks again, Maybe I am not explaining what I am looking for good enough and maybe I should not be using muli-threads at all.  What I am after is the following: Form1 instantiates Form2 using SHOW, which is always on top.  Form2 is a ...
Score Form Inheritance and missing controls
cduden - 2 Dec 2004 6:21 PM - 5 messages
Ok, I know this is going to sound odd but this is what I am seeing.  I have a form inheritance chain that looks like this: baseform  --> childform -- > two seperate endforms (endform1, endform2) When I open the designer for childform I only see the controls that were ...
Score How to change the datagrid row text color??? --- URGENT!!!
Marcus Vinícius M. Montezano - 2 Dec 2004 4:53 PM - 2 messages
Hi there! I need to change the datagrid row text color, but I don't know how can I do it? Please, anything help are wellcome! Marcus Vinícius ...
Score Literal percentage symbol in rowfilter
Rob Oldfield - 2 Dec 2004 4:34 PM - 3 messages
I have a dataview that accepts input from the user before being applied. That's fine except where the text they want to search for includes the % character.  How do I do Fullname like '*a%b*' where I want the % handled as ...
Score how to check/uncheck the checkbox in datagrid
Rekha - 2 Dec 2004 3:23 PM - 5 messages
I have datagrid with 5 items. Out of which 1 items are checkboxes. The bool column(checkbox column ) in added in datagrid.  The rest of Data is binded dynamically to the datagrid Based on some values from the database I have to check or uncheck the ...
Score windows db appliation
t - 2 Dec 2004 12:17 AM - 2 messages
I am working on developing window application using vb.net, application is ms-sql data driven, I have different windows groups will have to access / permission to different menus and icons from tool bar. any suggestion on good practices / sample application used as reference about securities and setting . ...
Score Populating a Combo Box with instances of a class - problem
Martin Smith - 2 Dec 2004 12:01 AM - 14 messages
Hi! I'm feeling the burn of .NET; Still getting used to it :) I'm trying to populate a combo box with instances of a class: Public Class Shortcut     Private Name As String     Private RealLocation As String ...
Score Threading Part 2
Charles A. Lackman - 1 Dec 2004 7:48 PM - 5 messages
Hello and thank you for your assistance. I have attempted to accomplish what I need using delegates with no success. i.e. //Button Click// Dim PollThread As Threading.Thread PollThread = New Threading.Thread(AddressOf PollThreadAddress) PollThread.Start() End Sub Private Sub PollThreadAddress() ...
Score Accessing data on main form from another form
Dave - 1 Dec 2004 6:37 PM - 5 messages
Can someone tell me how I would go about setting up a form the accesses the controls on another form in VC.NET? I have a graph set up on the main form and would like to open another form that has formatting options for the ...
Score Window subclassing and mouse events
Scott McChesney - 1 Dec 2004 5:00 PM - 5 messages
VS.NET 2003, VB.NET, .NET 1.1 I'm working on a part of a project that is re-creating the Office 2003 mail notification window.  I have almost everything done except for one part.  I need to allow the user to move the window by clicking and dragging anywhere ...
Score InputBox in VC#.net?
Andrew - 1 Dec 2004 4:25 PM - 6 messages
In VB, we have InputBox to allow a user to input text. Do we have a similar one in VC#.net? Obviously, MessageBox can not do it. Thanks. ...
Score XP Themed Selection Rectangle for Listview Control
Etan Bukiet - 1 Dec 2004 4:16 PM - 2 messages
Does anyone know how to get that blue selection rectangle that is in the windows explorer Listview control. In my listview controls it is just a dotted focused rectangle. Etan Bukiet ...
Score UPDATE SQLTABELLE
Hendrik Petzold - 1 Dec 2004 10:06 AM - 2 messages
VS2003 C# Ich habe einen SQLDATAADAPTER erstellt und ein DATSET  generiert. Diese Dataset stelle ich in einem DATAGRID dar. In der Tabelle ist das Feld UKID als Primärschlüssel definiert und damit werden keine Nullwerte zugelassen. ...
Score Threading
Charles A. Lackman - 1 Dec 2004 5:49 AM - 6 messages
Hello, I am making a app that creates a thread to show a clipboard.  If the clipboard is double clicked, another window is displayed, the event is handled inside the main app.  What I would like to do is have the clipboard ...
Score thread safety
Gravy - 1 Dec 2004 1:03 AM - 8 messages
Can anyone suggest a good (cheap) tool that will detect when a worker thread calls directly in to a control on the UI thread? Thanks for your help Graham ...
Score Transparent control
Olo - 30 Nov 2004 9:14 PM - 3 messages
Hi, I have to write transparent control - simple red rectangle. When I mouse   move control should change position(left and top). The problem is when red rectangle is moving over other controls such Buttons, PictureBoxes it flicker. Below is code of rectangle control : ...
Score How to print AxWebBrowser control?
Serg - 30 Nov 2004 7:01 PM - 4 messages
Hello, how do I submit AxWebBrowser control to print? Thank you ...
Score Post-Mortem Debugging
Kerry Jenkins - 30 Nov 2004 4:11 PM - 2 messages
Does anyone have advice about ways to obtain information about errors that occur in Windows Forms applications at a user site?  I am currently sending exception.ToString back to me.  I am not distributing the .pdb files for size reasons so I do not get line ...
Score DateTime Bound to TextBox
mark - 30 Nov 2004 1:57 PM - 3 messages
Hi, I have bound a DateTime field in a DataTable to a TextBox field.  Other String and Numeric fields are also bound to separate TextBoxes.  If a new DataRow is created and a DateTime value is entered no problem.  However, ...
Score How to simply load a freeekin bitmap from a resource?
_BBB - 30 Nov 2004 12:28 PM - 3 messages
I'm coming over from a background in VC++, and in general I've been pleased with the simplicity of the .NET environment.  Not here. I've done google searches on this subject (loading bitmaps from a local resource) and always come up with complex solutions.  This can't be right. ...
Score Deployed simple C#.NET single form application to Windows server 2003 and the form will not display,
Roger.Smith - 29 Nov 2004 10:54 PM - 3 messages
I have a very simple C#.NET (Framework 1.1) application that is one form with standard .NET controls on it.  The application requires a CONFIG file to work.  When I install the application to Windows 98/2000/XP, I simply ...
Score find process by processname
Jeremy Chapman - 29 Nov 2004 9:14 PM - 4 messages
I wanted to find a process by the ProcessName property, but I discovered that if the executable name changes, the ProcessName reflects that.  Is there some way for me to identify a process by something that may not change? ...
Score prevent Multi line select on DataGrid?
mttc - 29 Nov 2004 9:11 PM - 3 messages
How I can prevent Multi line select on DataGrid? ...
Score Creating VS Studio like control
Harshad Rathod - 29 Nov 2004 8:41 PM - 4 messages
How do you create controls like Toolbox and Solution Explorer that expands OnMouseOver and lsides back when looses focus?  Also, it has bookmark. ...
Score creating VS Studio like controls
Harshad Rathod - 29 Nov 2004 8:33 PM - 5 messages
How do you create controls like Toolbox and Solution Explorer that expands OnMouseOver and lsides back when looses focus?  Also, it has bookmark. ...
Score Hidding a window and preventing Alt-Tabbing to it
Danielb - 29 Nov 2004 7:59 PM - 5 messages
I'm trying to hide the main form of my application, as I want all of the user interaction with my application to come from interacting with a notify icon with a context menu in the system tray (which I have working).  I've ...
Score Hello, Japan?
David - 29 Nov 2004 7:43 PM - 3 messages
My application is so successful that it needs to go global.  The only problem is that that means Japanese.  I don't know the first thing about making a Japanese language application.  I know I have to use Unicode, ...
Score Closing all instances of an application
Jeremy Chapman - 29 Nov 2004 7:23 PM - 2 messages
I start up several instances of an application I've written.  From one of the applications I'm trying to close all of them, but it's not working.  I'm doing this by registering a message and broadcasting it. but when I put a ...
Score Obtaining system appearance settings.
Alfetta159 - 29 Nov 2004 6:51 PM - 3 messages
How do I find out what the Systems's appearance parameters are such as the window border width or color? ...
Score Maximize
Charles A. Lackman - 29 Nov 2004 6:00 PM - 5 messages
Hello, I have an application that starts notepad.exe from a button click in VB.NET. I am looking for a way to make the window maximize or minimize from the vb app. Any suggestions (if at all possible, detailed) will be greatly appeciated, ...
Score Monitor Dial-up Connection
Brad - 29 Nov 2004 3:19 PM - 5 messages
I am writing a smart client application that needs to monitor the users dial-up connection status.  If the user disconnects, I need to prompt them to reconnect, or quit the application.  I tried using the following WMI query ...
Score Panel & keyboard focus
Mikhail Fedosov - 29 Nov 2004 2:21 PM - 3 messages
I have a panel and some of my controls on it (each control is derived from Control, not from UserControl). I need to delete the selected control by pressing the Del key. How it can be done? Panel does not process any ...
Score creating instance of a form from a variable
Harshad Rathod - 29 Nov 2004 2:15 PM - 7 messages
Ususally we do like: SalesOrderForm fm = new SalesOrderForm(); where SalesOrderForm is a valid form in one of the assembly, that is SalesOrderForm is a type.  How can I create an instance of SalesOrderForm when I do not know its type at run tyme?  For example ...
Score Time of inactivity
Nicola - 29 Nov 2004 2:03 PM - 5 messages
I have a vb.net application that starts with a login form. I would like to show it again after 5 minutes of inactivity of the application. Now, I use a timer and I start it in the application.idle event, but it ...
Score Showing verbs in a PropertyGrid at runtime
Ian Ringrose - 29 Nov 2004 11:42 AM - 2 messages
I wished to show verbs in a PropertyGrid that is hosted in my own WinForms application.  The normal way to show verbs is to provide a IDesigner implementation, however this only works when the PropertyGrid is hosted inside of MSDEV.  This is my solution, comments please. ...
Score create object dynamically
ronnel.santiago - 29 Nov 2004 7:29 AM - 4 messages
hi guys, i just have a doubt about this one... i have several class that just basically do CRUD operations (create, read, update, delete) now for example on my delete function, i want to create objects dynamically based on TableName.. ...
Score Mouse event handlers
Roger Crawfis - 29 Nov 2004 3:07 AM - 3 messages
I am writing a 3D graphics demo for my students, and thought I had a really slick solution for handling the interaction with the mouse. There are several ways to interact with a 3D world, and I have attached a mouseDown ...
Score Getting the keyboard state in MouseMove
Roger Crawfis - 29 Nov 2004 2:47 AM - 3 messages
In my windows app, I have an event handler for the mouse move, and want to allow for constrained interaction using the shift or control keys. I can not figure out how to get the state of the shift, control or alt key modifiers ...
Score How can I custom draw a window title bar
Nigel Armstrong - 28 Nov 2004 9:49 PM - 2 messages
Hi All I've tried without success on google and google groups to find the answer to this, but without success - but I do recall it being discussed... In my application, if I want a slightly modified Title Bar on some forms - ...
Score Dynamic Properties. What the point?
Rene - 28 Nov 2004 4:50 AM - 2 messages
I have been playing around with the "Dynamic Properties" of the controls and for the life of me, I can't figure out why would anybody care about using feature. It looks like the only things that this feature does is store and retrieve ...
Score Unresponsive UI during lengthy processing
Marcos Stefanakopolus - 28 Nov 2004 1:57 AM - 7 messages
Ok, I'll admit it, I'm a winforms newbie.  I'm writing an image processing program that, by its nature, gets into some fairly lengthy processing cycles.  As long as I don't touch the UI while it's working, don't alt-tab ...
Next » 2 3 4 5 6 7