Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms > august 2006 > threads for august 8 - 14, 2006

Filter by week: 1 2 3 4 5

Context menus on TextBox and RichTextBox
Posted by batvanio NO[at]SPAM gmail.com at 8/14/2006 4:27:01 PM
Hi, I am using a RichTextBox and I would like to have the standard context menu (RightClick menu) that the standard TextBox control has (i.e. if you use TextBox instead of RichTextBox, there is a standard context menu with Cut, Copy, Paste and few other selections right out of the box, you do...more >>


Treenode - line through it
Posted by UJ at 8/14/2006 4:04:06 PM
I have a situation where there is stuff in the database that I want to display but make sure the user know's it's been disabled. Ideally I'd like to draw a line through the item. Is there a way to do this? TIA - Jeff. ...more >>

How to host CHM help viewer in an MDI child form?
Posted by Dave Leach at 8/14/2006 11:13:01 AM
I am writing a Windows Forms application using VS.NET 2003 and C#. The application uses the Multi-Document Interface (MDI) style. Our customer education team requires that the application display context-sensitive help using the common CHM file format. We are currently using P/Invoke as fol...more >>

Which is the sequence of events when using ShowDialog()?
Posted by SammyBar at 8/14/2006 11:10:12 AM
Hi all, I'm having troubles with a Symbol 9000 device (Compact Framework v 1.1) when activating the barcode scanner from a window. The problem is related to the Activated event of the form which carries the task of the initializing the scanner. It looks like this event is not called after t...more >>

message queue
Posted by cnickl at 8/13/2006 1:39:01 PM
Hi Here is my problem: I have a control that does one thing when it is clicked and something else when it is double clicked. However the click event is always fired before the double click event. Is there any way I can look at the message queue for this control and determine if the next ...more >>

How to unescape HTML string
Posted by Sebastian Mark at 8/12/2006 3:06:08 PM
I have a simple question, is there an easy way in .NET to unescape HTML characters? for example I have a string "Siebel Analytics Sr Consultant-"Partner w/ Deloitte & have the oppty to become a Partner"" and I want to have "Siebel Analytics Sr Consultant- Partne...more >>

Language toolbar
Posted by Proy at 8/12/2006 4:19:01 AM
Each time I log on to windows, the language Toolbar is on the taskbar; and every time I log on, I remove it. How can I get it to stay off?...more >>

Is it possible to display deleted row(s) in DataGrid
Posted by Baron Ng at 8/11/2006 7:45:02 PM
Is it possible to make the DataGrid shows a row with RowState == DataRowState.Deleted? (e.g. display a deleted row using another color and allow user to undo the deletion) thanks...more >>



Customizing the WebBrowser control
Posted by scarleton NO[at]SPAM gmail.com at 8/11/2006 2:20:06 PM
I am embeding the WebBrowser in my application to show reports. I would like to embed the graphics and the CSS files in a resource. To do this I need to "hook" the WebBrowser control so that when it goes looking for these files, I can give it the files from the resource. Any thoughts on how to...more >>

TopMost - affects realtime?
Posted by Rob R. Ainscough at 8/11/2006 2:08:02 PM
Suppose I have a form that loads with TopMost = True. If I change the form to TopMost = False will it immediately affect the form -- in other words is TopMost dynamic? The reason I ask is that I want to disable TopMost when I'm displaying a Msgbox (otherwise the message box appears behind my...more >>

DataGridView CellValueChanged event not firing
Posted by pat.maher NO[at]SPAM qg.com at 8/11/2006 6:45:06 AM
I have a DataGridView that is bound to a list of objects through it's datasource property. If a cell in the grid is changed by editing directly in the cell I get a CellValueChanged event. If the value is changed in the underlying object that causes the cell in the grid to get changed then the C...more >>

Question about SizeDataGridColumnToContent function...
Posted by rhaazy at 8/11/2006 6:10:43 AM
Using C# string xmlfile = "appsettings.xml"; DataSet ds_login = new DataSet(); ds_login.ReadXml(xmlfile); dgConnection.DataSource = ds_login; dgConnection.DataMember = "Connection"; SizeDataGridColumnsToContent(dgConnection, 1); The function works the way it is suppose to for every othe...more >>

Textbox Control
Posted by Charles A. Lackman at 8/10/2006 4:44:13 PM
Hello, I have a textbox with data in it that extends beyond the size of the text box. I am looking for a way to display the data in the textbox with the data scrolled all the way to the right: Before: ------------------- | Peter Piper| ------------------- After What I Want: -------...more >>

Tooltip Font
Posted by Mike at 8/10/2006 2:36:02 PM
Hi all, I'm writing a program where I have to draw custom tooltips onto a control through OnPaint. I've figured out how to get the text color and the box color (KnownColor.InfoText and KnownColor.Info), but I can't find anywhere how to figure out what the font is. I've looked through the ...more >>

How to override Combobox drop-down effect
Posted by zero at 8/10/2006 2:02:24 PM
I am trying to prevent the combobox from dropping down; how do I override this effect? Thank you. - ed ...more >>

determine which control will get the focus
Posted by Michael at 8/10/2006 1:14:01 PM
When handling the Lost_Focus event, is there a way to determine which control will get the focus before leaving the Lost Focus handler ? and then prevent the current control to not loose the focus ?...more >>

Cancel selection in ListView on MouseClick
Posted by Etienne Lebeau at 8/10/2006 1:14:00 PM
I would like to cancel the selection of the ListViewItem in the ListView on MouseClick? Any help would be appreciated. Etienne Lebeau, ing. jr. Software Designer Matrox Graphics etienne.lebeau@matrox.com ...more >>

adding images to grid columns? .net 1.1
Posted by HockeyFan at 8/10/2006 7:45:02 AM
I have a windows forms .net 1.1 question: I tried adding an image (a picturebox) to a column in my grid, but haven't been able to do it adequately. The pictures are there, but they don't seem to be visible until I click on a cell and then the picture is visible. Not sure what's going on. C...more >>

SmartClient Sample
Posted by Baren at 8/10/2006 12:32:01 AM
Hi! I am new to SmartClient. Can anyone provide some links for SmartClient sample or tutorials Thanks, Baren...more >>

Drag & Drop & Timer
Posted by Lloyd Dupont at 8/10/2006 12:00:00 AM
When doing a Drag & Drop SWF.Timer don't seem to work anymore. What can I do in such case? For now, as the OnDragOver event seems to be fire repetitively I use it. But I cannot control the time interval. Any better idea? ...more >>

Tab Control
Posted by Jared at 8/10/2006 12:00:00 AM
Hi, Is it possible to have tab control buttons on bottom? With out going to to much trouble, thoug I have seen everywhere. Jared. ...more >>

Custom title bar drawing
Posted by valerie.tching NO[at]SPAM gmail.com at 8/9/2006 11:47:11 PM
Hello, I'm trying to make a skinned application, so i'm overriding the paint methods of the controls. Concerning the painting of the form itself, it seems that there are 2 options: - Making the form borderless (FormBorderStyle to None), and building our own custom window title bar, but jus...more >>

.Visible = False not working...
Posted by Rob R. Ainscough at 8/9/2006 4:25:02 PM
I can't seem to make my form not visible. During the Load event I specifically set Me.Visible = False but the form still displays? Any suggestions ? ...more >>

ToolStrip menu and MDI application
Posted by Andy at 8/9/2006 12:53:15 PM
Hi all Using VS2005 and .Net 2.0. I have a MDI parent form, and MDI children. What I would like to do is similar to merging menu's. I found you can define the menus on the child, specify a merge index and have the menu merge nicely with the MDI parents menu. Ideas? Thanks Andy ...more >>

ListView Custom Sorting and repositioning later
Posted by Joe at 8/9/2006 12:36:49 PM
I have a ListView with a custom ListViewItemSorter assigned. After I add all the items I assign the sorter and everything is sorted fine. This works the way I want. Now I want the user to be able to move items within the ListView but they're always resorted. If I try and set ListView.ListVi...more >>

Can't see "Windows Form Designer Generated Code" in VS2005
Posted by v.maggs NO[at]SPAM comcast.net at 8/9/2006 7:44:00 AM
Folks, I am developing a Visual Basic Windows application using Visual Studio 2005. For some reason I do not see any of the code that is normally generated by VB. Is there some setting/option I need to check somewhere in the IDE? Thanks, Vint ...more >>

Question about MDI application
Posted by rhaazy at 8/9/2006 7:23:52 AM
I have an MDI application with the MDI parent container has a tabcontrol on it. When I bring up any child MDI forms, it won't show up over the tabcontrol. I have tried the form.bringtofront() and that doesnt work. Short setting the controls visible property to false, I can not figure this one...more >>

Databinding: "BindingSource - field" syntax
Posted by Marc Vangrieken at 8/9/2006 6:59:50 AM
Hi, I have a question regarding databinding via the Visual Studio 2005 form designer. What I wanted to do is not a very good practice, it was just "quick and dirty" in really small application. I had a WinForms form with a typed dataset and a lot of controls bound to it via BindingSources. B...more >>

Hide form from Alt-Tab when first run
Posted by Gary Bond at 8/9/2006 2:19:31 AM
Hi All, I would like to start a VB.Net 2.0 app minimised to the tray area. I use the NotifyIcon component, set the form to start minimised by adding this to the form.load event Me.WindowState = FormWindowState.Minimized Me.Hide() and set the notifyicon component propert...more >>

novice help for combo box needed
Posted by David C at 8/9/2006 12:00:00 AM
I am trying to emulate with ComboBox, what I do with a Web DropDownList. dropdownList.Items.Add(new ListItem("30", "30 days")); dropdownList.Items.Add(new ListItem("60", "60 days")); As you can see, 30 and 60 are values and "30 days" and "60 days" for = displaying. Not populating from the d...more >>

How to draw shadow of arc?
Posted by idiot at 8/9/2006 12:00:00 AM
Because the backgroud color of the form is white, when I use SmoothingMode.AntiAlias, the color of shadow seems gradient to white color. But if I don't use SmoothingMode.AntiAlias, there are white gap between four arc. Here is the source code: using System; using System.Drawing; using Syste...more >>

How to make all controls disable foreColor and BackColor same as ReadOnly = true?
Posted by ABC at 8/8/2006 10:53:08 PM
How to make all controls disable foreColor and BackColor same as ReadOnly = true? As the disable textbox or another controls color is so hard to read, I want a good method to set all control same as ReadOnly TextBox control's Colors. There are many program code to modify if I modify from "...more >>

Using generic printer
Posted by Jean Paul Mertens at 8/8/2006 5:45:10 PM
Hello, Is there a way to send a string of text to a generic tekst printer under ..NET. Somethings as in the good old days File f = Open("LPT1"); f.Writeline("Blablabla"); The goal is to use an old lineprinter as a log printer printing out each line (incomming allert) at a time without h...more >>

Text written with TextRenderer overwritten by other Controls?
Posted by Jim S at 8/8/2006 3:00:55 PM
Hi everyone. I'm trying to write text to a Windows Form with TextRenderer.Drawtext, and it works fine - until I select an item from the Menu (System.Windows.Forms.MenuStrip) above it - at which point any text in the Form area underneath where the menu drops down gets erased. Here's the c...more >>

Use webbrowser control w/o form ui
Posted by mgonzales3 at 8/8/2006 11:19:02 AM
I'm trying to create a html/hta document on the fly without using the gray form UI. I'll be activating the html/hta document from a parameter on the context menu....more >>

Click event getting lost during ColumnChanging event if modal dial
Posted by EqDev at 8/8/2006 7:57:02 AM
Click event getting lost during ColumnChanging event if modal dialog displayed I am using VS2005 I have a situation as follows: I have a handler for DataColumnChangeEvent ColumnChanging. Inside this event it is some times necessary to pop up a modal dialog to get missing information. If t...more >>

Backcolor of tabcontrol-tabpages area?
Posted by Roland_Müller at 8/8/2006 12:00:00 AM
Hello Group, i want to color the tabpages of a tabcontrol-tabpages area. Overwriting the DrawItem event and works well coloring the tabs itself. But the tabcontrol itself has an grey frame where the tabpages are meant to be. How can i color this area of the control? tabControl.DisplayRect...more >>


DevelopmentNow Blog