Home All Groups Group Topic Archive Search About

Windows Forms

microsoft.public.dotnet.framework.windowsforms
Score Databinding Textbox on TabPage
Martin Grobl - 4 Feb 2006 9:00 PM - 2 messages
Hello! i have a textbox on a tabpag. the text-property is bound to a field in a datarow. now we implemented validation. the problem is: the text property is not set if the tabpage with the textbox was not visible. ...
Score hierarchical grid
Steve Bugden - 4 Feb 2006 6:28 PM - 4 messages
Hi, I have been trying to work out how to create a hierarchical grid in visual studio .net 2005. The kind of thing I mean is as displayed in outlook when viewing contacts by category. I understand the datagridview control now replaces the datagrid 1.0/1.1 ...
Score DataGridview combobox column
jill - 4 Feb 2006 6:02 PM - 2 messages
Hi All, have a problem working with comboxbox column with .net 2.0 (VB please) tblEmp - EmpId, EmpName, EmpRef tblrole - roleid, rolename tbluserrole- empid,username,pwd,roleid I need to create a datagidview which displays empname,username,pwd,rolename This is ok. ...
Score Explorer style interface
Alexander Walker - 4 Feb 2006 1:26 PM - 2 messages
Hello I have created a windows forms application that has a windows explorer style interface using a TreeView and a ListView, I have attached a ContextMenuStrip to the tree view which appears when the user right clicks on a node. I would like ...
Score Why can't you inherit System.Windows.Forms.Form?
Rob Nicholson - 4 Feb 2006 12:28 PM - 9 messages
The designer doesn't seem to like it but the question is why was it designed like this? Cheers, Rob. PS. And can you do it in VS 2005? ...
Score Simple form, One user doesn't get buttons
Keith McDonald - 3 Feb 2006 8:27 PM - 6 messages
We have a simple client app that has a datagrid and two standard System.Windows.Forms.Button(s); Save and Refresh.  Of 20-30 installs we have one user where the buttons are not showing on the form.  We have ...
Score IIS6.0 No touch deployment
D Witherspoon - 3 Feb 2006 6:13 PM - 3 messages
Since moving our web server from Win 2000 IIS 5, to Win 2003 IIS 6 we have had the following issues: Our no touch deployment applications do not dowload the referenced dll's that are in the bin folder.  Permissions for this foler are set up ...
Score Implement a link source (or at least part of one)
Stephen Walch - 3 Feb 2006 2:54 PM - 3 messages
I want to be able to drag objects from a third-party product to my .NET Winforms app.   If I look at the clipboard formats, there is nothing useful except CF_LINKSOURCE, so I deduce that I need to do some OLE handshaking ...
Score causes validation problem
Ant - 3 Feb 2006 11:19 AM - 3 messages
Hi, I have two buttons and a text box on my form amongst other things. The textbox is set to validate to see  if there is no text in the box. The two buttons are set "causesValidate = false" . One of the buttons is in a group ...
Score NumericUpDown problem
Lloyd Dupont - 3 Feb 2006 9:48 AM - 5 messages
(note: I'm using .NET 2.0) If there is no text (and .Value has already been called) in my NumericUpDown, I cannot set its property Value. Demo: - run the little attached program. - press the button - delete the value in the NumericUpDown ...
Score how to make an image draggable?
Lloyd Dupont - 3 Feb 2006 5:25 AM - 4 messages
I try to implement Drag & Drop in my application. It works rather well except I'm not able to drag in other application like, say, word. I tryed to look at what IE does and when I drag animage from IE it has the ...
Score I can't add a Web Reference
Alexander Walker - 2 Feb 2006 11:20 PM - 2 messages
Hello I am developing a website that has a Web Service that I want to expose to Windows Forms based SmartClients when I try to add the web reference to the smart client I get the following message in the "Web services found at this ...
Score Best third party grid control
john conwell - 2 Feb 2006 9:09 PM - 7 messages
I'm looking for a solid, extremely extensible, grid control, and was wondering what other people were using and why the like or dislike their particular grid control.  What i need is one that lets you do owner drawing, add images to cells and ...
Score Inheriting a from with a special constructor
Peter Baranyi - 2 Feb 2006 8:50 PM - 2 messages
Hi, I created a base form, what holds several graphical elements (text boxes, etc). This form has only one constructor, what expects one integer parameter. Call this BaseForm It's constructor looks like: public BaseForm(int Param1) { InitializeComponent(); } Now I inherit a second form from this one (Call this InheritedForm), and I ...
Score Reaching parent form controls properties from child form?
Asaf - 2 Feb 2006 7:38 PM - 6 messages
Hi, I have Form1 with a TextBox control on it and I have Form2 that I am showing from Form1. private void btnShowForm2_Click(object sender, EventArgs e) {   Form2 objForm2 = new Form2();   objForm2.ShowDialog(); } What I would to do is to change the TextBox text property on Form1 from ...
Score Measurement Unit problem with Printing.
Streamline - 2 Feb 2006 5:41 PM - 3 messages
Hi, I have a problem where documents sent to the print spooler with a custom page size are ignoring the regional settings for the Measurement Unit.  I have my Regional Settings set to "English (United States)" and confirmed that ...
Score get value from combo box
Peter - 2 Feb 2006 4:59 AM - 3 messages
Gday, Am relatively new to dotnet so excuse me if this seems rather simple. I am trying to get the value of a bound combo box that has been set when the form is opened, and use this for another control.  I am having ...
Score RTF to HTML conversion
Gav - 2 Feb 2006 2:53 AM - 2 messages
Can anyone point me in the right direction (any links/help on the net) on writing your own function to convert rtf to html? Thanks Gav ...
Score Hiding caret of textbox
Jared - 2 Feb 2006 2:44 AM - 2 messages
Hi, I would like to hide cursor, but dont wont to have a 'grayed' text box by using read-only property. Or if windows would stop selecting text automatically after a calling focus method from antoher textbox that has a text selection. ...
Score Assign F4 to a button
A.M-SG - 2 Feb 2006 1:02 AM - 3 messages
Hi, What would be the best way to assign the key F4 to a button? Thank you, Alan ...
Score Using MaskedTextBox for currency values
A.M-SG - 1 Feb 2006 10:51 PM - 4 messages
Hi, What would be the best mask for MaskedTextBox for Currency fields? Thank you, Alan ...
Score Saving data in the DataGrid
Henrik Skak Pedersen - 1 Feb 2006 10:05 PM - 6 messages
Hi, I would like to save inserts, deletes and updates in the DataGridView  bach to the database when the user changes the current selected row. Right now I am using the SelectionChanged event, but that fires everytime the user ...
Score DataGridview grouping like Outlook
Henrik Skak Pedersen - 1 Feb 2006 10:00 PM - 4 messages
Hi, Is is possible to create Outlook like groupings in the DataGrid? Thanks Henrik Skak Pedersen ...
Score Drawing a rectangle around to points (a line).
jd6strings - 1 Feb 2006 8:47 PM - 2 messages
OK...This should be elementary but a lack of sleep is apparently blocking my thought processes... I've two points (p1, p2) and I've drawn a line between them: grahix.DrawLine(new Pen(Color.Red,4F),From.Point,To.Point); ...
Score ClickOnce, MSBuild and multiple servers.
NeilG - 1 Feb 2006 4:15 PM - 2 messages
We're currently getting ready to deploy an application using ClickOnce. We'll be placing the deployment on two servers. Because the app.config files will need to point to different servers, we're using the revision number to indicate which server it came from. ...
Score Is Wizard control only available for ASP.NET?
Stan - 1 Feb 2006 4:03 PM - 2 messages
It would be nice to have Wizard control in WinForms. Yes, there is User Interface Process Application Block available, but if I need a simple two-step wizard, it is an overkill. It won't take very long to make a simple wizard from scratch, but it is ...
Score backgroundworker Question
MasterBlaster - 1 Feb 2006 2:18 PM - 2 messages
We have been using multi-threading in our application in 2003 with good results.  When we migrated to 2005 our old code blew up, so we rewrote our code using the backgroundworker. It seemed to easy to be true. When we run ...
Score Click Event on MenuItem with subitems
Florian Pürsch - 1 Feb 2006 2:03 PM - 3 messages
Hi group, I have a MenuItem with some subitems. I don't want the Click-Event of the MenuItem to show me the subitems, but to do something else - e.g. opening a dialog. The subitems will be shown anyway by mouseOver. ...
Score disabling back button of window
Vani Donthula - 1 Feb 2006 1:11 PM - 2 messages
Hi In my web application,in one of the page where I need to disable the back button of the toolbar. Suggestions on this are welcome. Thanks, Vani. ...
Score Request for the permission of type System.Net.SocketPermission
Brendon Co - 1 Feb 2006 6:53 AM - 2 messages
Hi, i have client/server socket application, but when i run the client in a separate computer i get this error below. Request for the permission of type System.Net.SocketPermission I search the net but it leads me to caspol or mscorcfg.msc.Is there ...
Score problem in global catch for all exceptions
jjohn - 1 Feb 2006 6:00 AM - 8 messages
Hi, I have added a try/catch block in the Main() method of my c# windows application to catch all exceptions in the application. But it is not catching the errors thrown from timer's tick event. My code is given below: ...
Score Resetting Combo to original state
Ant - 1 Feb 2006 3:17 AM - 2 messages
Hello, I'm using a combo box and some text boxes on an input form. When the user submits the input, all the textboxes should be cleared & the combo box reset to the way it was originally displayed (order desc.) ...
Score Richtextbox control question
Chris - 1 Feb 2006 3:11 AM - 7 messages
Is there anyway to create similar behaviour to BeginUpdate and EndUpdate in a richtextbox control? I've seen a few work arounds on the net but they use unmanaged code. Any help would be appreciated, Chris ...
Score Form Loading Issue - VS.NET 2003
sidprice - 1 Feb 2006 1:20 AM - 2 messages
Hello, I have a dialog in my VB.NET application that has some controls for configuration and an "Apply" button. The design calls for the Apply button to be enabled only after the user has made changes to the settings. To do ...
Score DataGridView automatically selects first row
Brett - 31 Jan 2006 11:22 PM - 3 messages
I'm setting the datasource of a DataGridView to a datatable.  This loads the grid correctly but it automatically selects the first row in the grid, triggering the SelectionChanged event.  Is there a way to stop the grid from automatically selecting the first row? ...
Score ComboBox design-time DataBinding setting questions.
dbuchanan - 31 Jan 2006 11:15 PM - 4 messages
These setting mystify me for these reasons. *SelectedItem*  - Help says that 'SelectedItem' gets or sets the currently selected item in the combobox. *SelectedValue* - Help says that 'SelectedValue' gets or sets the value of the member property specified by the ValueMember property. ...
Score Dll Reference Performance
Dan, Vascas - 31 Jan 2006 10:06 PM - 2 messages
Are there any performance issues, if we have many dll reference added to our project. Any way, does it take more time to load the application if we have many dll reference added to a project, even though we don't use at application load. ...
Score Making a Winforms app behave like a Console app
Stephen Walch - 31 Jan 2006 9:30 PM - 6 messages
I am attempting to add a "console mode" to my Winforms app.  My intention is that when I start the app with a special switch (for example "myapp.exe /batch") to does not launch a graphical UI but instead just displays console ...
Score Sync databound combobox to current bound record in form
dbuchanan - 31 Jan 2006 9:21 PM - 7 messages
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox and the coresponding 'Id' from the lookup table is to be inserted into ...
Score XP Visual Styles in 2005
MasterBlaster - 31 Jan 2006 9:05 PM - 3 messages
I'm trying to set the application to use XP visual styles, but in the properties page I tried to set it and I get the following: Startup object must be a form when 'Enable application framework' is checked. I have a sub main starting up the application and in there it ...
Score Form Gradient Background
Jay Pondy - 31 Jan 2006 7:00 PM - 6 messages
Is the code below the proper way to achieve a LinearGradient Background on a form? Private Sub MyForm_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles Me.Paint Dim oBrush As New LinearGradientBrush(Me.ClientRectangle, Color.AliceBlue, Color.CornflowerBlue, LinearGradientMode.Vertical) ...
Score How can I find BindingSource has some changed data.
A.M-SG - 31 Jan 2006 4:30 PM - 3 messages
Hi, In my WinForms application, I have a set of controls that are bound to a BindingSource control. When the user closes the form, I need to ask him if he wants to save data. The problem is I cannot find anyway to check if the value of any textboxes ...
Score MDI Child Forms -- Diffrent Behavior in new Framework
Justin Lazanowski - 31 Jan 2006 4:29 PM - 2 messages
I have an exsiting MDI application. I have the when the child is called from the Parent, I set it's DockStyle to fill, I also have the child form set to maximized In VS 2003 and 1.1 this works the way I want it to, the child form is ...
Score Set Text in DropDown
mailptudo - 31 Jan 2006 12:04 PM - 2 messages
Hello, I have a DropDown that is bound with a array containing 3 strings: First, Last, All. These options indicate how many objects the user wants to analyze. So, the user shoud choose one of these options, or type a number. ...
Score fill dataset with stor pro
ken - 31 Jan 2006 7:43 AM - 2 messages
Dear all I create one stored procedure have two select statement on it Then i want to fill one dataset(with two datatable) by this stored procedure, how can it do? ...
Score How to compare two string
ken - 31 Jan 2006 4:09 AM - 2 messages
How to compare two string e.g i compare two string e.g User == user is true however i want User == user is false by 'U' and 'u' do u know what i said ...
Score populating combo with ds
Ant - 30 Jan 2006 11:06 PM - 3 messages
Hi, I'm trying to populate a combo with a typed dataset (I am filling the dataset in the form load) by using the databindings , (Selected Item & Selected value)  I get a blank combo box. (Unless I bind the text property, ...
Score Resizing Form
Dino Buljubasic - 30 Jan 2006 10:51 PM - 3 messages
Hi, I am having a number of panels containing other panels and controls on my form.  When I resize my form, the redrawing is quite slow. How do I properly handle this so that it redraws form faster when I ...
Score ReportViewer & PageSettings.HardMarginX
jwat - 30 Jan 2006 9:20 PM - 4 messages
In a report, I tell a table or a text box to print at specific coordinates but it is off. How do I teach ReportViewer to take PageSettings.HardMarginX and PageSettings.HardMarginY into consideration? This occurs in .NET Framework 2.0. ...
Score How many Dll loaded when form start
Dan, Vascas - 30 Jan 2006 5:51 PM - 2 messages
Hi Gurus, Is there any way to find out how many Dll got loaded when my application started. Any help greatly appreciated. Thanks, Dan ...
Score How do I fin that Form.Show() is already called?
A.M-SG - 30 Jan 2006 5:02 PM - 2 messages
Hi, What would be the best way to find if Form.Show() is already called? If I call Form.Show() methid several times, does it have any side effects? Does it call eny events? Than k you, Alan ...
Score Ampersand as Ampersand in mdi tab
jtencate - 30 Jan 2006 2:16 PM - 2 messages
I have an application that uses mdi. If a file that is an mdi child has an ampersand in the name of the file, the ampersand is getting read as a hotkey in the tab text. Does anyone know of a way in vb.net to make sure that the ampersand is ...
Score Autocomplete textbox
Strider - 30 Jan 2006 1:00 PM - 2 messages
Hello all! I'm looking for ideas on implementing a textbox with autocomplete functionality, just like the one found in Excel. As the user types values into the textbox a lookup for matching values is performed. For example lets assume that the user types the character ...
Score Two values for combo box
Ant - 30 Jan 2006 11:50 AM - 2 messages
Hi, Firstly, I'm using C# if that will make a difference to the answer... Is there any way you can assign two values for a combol box like in the vb6 'old days', so you have say, a string 'UserName' displayed in the combo box, ...
Score Newbie User Interface hangs in multi-thread app
Shauno - 30 Jan 2006 11:26 AM - 4 messages
Hi, * Apologies for reposting this from .NET Academic * I am having problems updatingh the user interface in a multi-threaded application. BACKGROUND My App has a user interface (the starting class containing main) and a CPU class to handle many asynchronous comms routines. ...
Score Hiding MDI 'sunken' border
Jared - 30 Jan 2006 9:03 AM - 3 messages
Hi, I have seen some code which is basically GetWindowLong + SetWindowLong with AND NOT ws_ex_clientedge, but it either removes the caption or nothing at all. Jared ...
Score Loaded Dll
Dan, Wascus - 30 Jan 2006 5:06 AM - 2 messages
Hi Gurus, Is there any way to find out which/how many dlls got loaded when application loaded. Any help greatly appreciated. Thanks, Dan ...
Score ComboBox and Tab character '\t'
A.M-SG - 30 Jan 2006 3:46 AM - 2 messages
Hi, I am trying to show TAB character (char(9) or '\t') in a combobox dropdown list, but it doesn't show it. Is there anyway to show '\t' as a TAB in dropdown list text? If I can show \t in dropdown text, then I can make it like multicolumn list. ...
Score Tactics for Debugging Custom Components with CodeDom Serialized State
Mark Olbert - 30 Jan 2006 2:17 AM - 11 messages
I have a custom component which has a complex internal state that is serialized using CodeDom serialization. It is part of a library used in a moderately complex project. The component has a custom design-time interface displayed within VS2003. All of the library ...
Score Auto Complete/Suggest (On Steroids)
Smithers - 30 Jan 2006 2:00 AM - 7 messages
I am looking to implement a search feature into a Windows Forms MDI application. Specifically I plan to embed 3 textboxes into a toolbar; one for LastName, another for FirstName, and one for CustomerID. When the user starts typing into any of these textboxes I would like to pop up another ...
Score ComboBox: How can I limit user to list items?
A.M-SG - 29 Jan 2006 10:55 PM - 3 messages
Hi, How can I limit user to only available items in the combobox list? By default user can choose one of the list items and also type anything she/he wants! Thank you, Alan ...
Score Mdi Form
Aasim - 29 Jan 2006 8:47 AM - 2 messages
How can we Run one Mdi Form Witihn Another ... ? ...
Score Generic windows error message
JezB - 29 Jan 2006 12:55 AM - 2 messages
I've built a windows app on .NET 2.0. I have a few users that run it without issue. One user reports that it immediately pops up the standard windows window that reports: <program> has encountered a problem and needs to close. We are sorry for the ...
Next » 2 3 4 5 6 7 8 9 10