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 > may 2006 > threads for may 15 - 21, 2006

Filter by week: 1 2 3 4 5

ToolStripComboBox
Posted by RonMurphy at 5/21/2006 11:30:01 PM
Once a ToolStripComboBox item has been selected, how do I programmatically close up the MenuStrip it contains? Currently, as I respond to the SelectedIndexChanged event, I retrieve the selected item, but the menu stays open....more >>


Displaying Tool Tips
Posted by G at 5/21/2006 5:22:29 PM
Hello, I'd like to implement the ability to display all tool tips for a given set of controls based on whether a check box is checked or unchecked. Currently the tool tip only appears when the mouse is over the control and then disappears after an elapse time. Thx G. ...more >>

Running Windows Forms App From Network Share
Posted by Jeremy S. at 5/20/2006 3:18:54 PM
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What ar...more >>

Crystal to rdlc
Posted by Pony Tsui at 5/20/2006 5:28:01 AM
Hi, Is there any tool can convert Crystal report file to rdlc ? Thanks -- Pony Tsui...more >>

vb.net windows form in c# namespace
Posted by dnc at 5/19/2006 3:49:42 PM
Just wondering if there is a way to point to vb.net form in the project, from the C# project namespace. ...more >>

Screen flashes when windows form is unloaded?
Posted by TCook at 5/19/2006 1:23:36 PM
Hey All, I have a VS2003, C# addin for MS Word 2003. When the windows form unloads, the screen flashes. I've never seen this behavior before. Usually, the unloading of a form is very smooth. I was wondering if anyone else has experienced this and, if so, if you were able to resolve it...more >>

Help - I'm in Windows Forms Designer Hell
Posted by Jav at 5/19/2006 7:40:02 AM
I am using VS2005 Team System Edition. Third party tools: Infragistics, Developer XPress and some SharpLibrary I converted my working App from VS2003 to VS2005. The App now compiles and runs pretty well. I have one problem, however. Whenever I open a UserControl or a Form in the Designer,...more >>

Disable a Menu Item - Should be Simple???
Posted by porko at 5/19/2006 7:16:02 AM
I long for the old Win32 SDK days... I'm trying to dynamically enable/disable context menu items, depending on the state of my application. In the context menu's "Opening" event, I've got code that looks like this: pauseToolStripMenuItem.Enabled = false; It doesn't work. I've tried...more >>



TreeView with not all nodes having an image??
Posted by WimVH at 5/19/2006 7:13:02 AM
Hi, I'm wondering if it is possible in a TreeView to set a part of the nodes with images and a art of the nodes without images. To the point: all nodes from the first and second level must have an icon in front of it. All other levels may not have an icon. Can anyone help? Thx in adva...more >>

save an arraylist in user.config
Posted by Doug Salomon at 5/19/2006 6:53:01 AM
I am having a problem saving an object in the user.config file of my app (I use VB and the my.settings namespace to do this FWIW). The object that I am trying to save is an arraylist. The arraylist itself holds multiple instances of a structure that I created. The structure consists of on...more >>

Allowing only number in column
Posted by CMC at 5/18/2006 10:40:19 PM
Hi, How can I allow only numbes in a specific column in a DatagridView? (It's a currency column) Thanks in advance CC ...more >>

Error code and regional setting
Posted by Gabriel at 5/18/2006 9:39:01 PM
Hello, In an application, I'd like to manage the error in my application. Exemple : 1 : Operation successful 2 : Error during update 3 : The data XXX is manfatory These errors messages have to be translated in several languages Wich solution is there to manage these codes ? An array ?...more >>

Using multiple windows forms
Posted by Mario at 5/18/2006 5:53:16 PM
Hi, I am trying to create an application with multiple windows forms. The problem that I have is that after creating the window forms, I do not know how to open formN after closing Main form. Each form is in its own class. What I want to do is the following: 1. Click a button on Main me...more >>

MaskedTextBox upper case
Posted by JezB at 5/18/2006 4:19:32 PM
I have a MaskedTextBox control (in 2.0) with mask "AAAAA-AAAAA-AAAAA-AAAAA" for a licence key. How can I force entry and display (while the user types) to upper case ? ...more >>

ShowDialog Being Skipped
Posted by Richard MSL at 5/18/2006 2:28:01 PM
I have a method that gets a screen of user input. The method has this in it: public static bool getscrn(ScreenData SD) { GetForm form1 = new GetForm(SD); form1.ShowDialog(); if (form1.DialogResult == DialogResult.OK) return true; ...more >>

Treeview binding
Posted by minh.tri.truong NO[at]SPAM gmail.com at 5/18/2006 1:19:48 PM
Hello, I have a field in a table that will contains this kind of information (Key/Value): P / Politique P_INT / Politique int=E9rieur P_INT_GOV / Gouvernement P_EXT / Politique exterieur P_EXT_USA / Politique USA P_EXT_FRANCE / Politique France Any clue, on how I can fill/bind it...more >>

Registry GetValue
Posted by JezB at 5/18/2006 12:13:19 PM
When reading a value from the registry: string licenceKey = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\MyProg", "LicenceKey", "").ToString(); It raises an exception if the path HKEY_LOCAL_MACHINE\Software\MyProg does not exist. But how do I create it? ...more >>

suggestions for .NET vs Access
Posted by jasonshohet NO[at]SPAM gmail.com at 5/18/2006 10:58:20 AM
i want to create a .NET application to run on about 6 peoples' laptops. However each user needs the ability of passing a data file to the next person, so they can see what the first guy worked on. I was thinking first, of doing a simple Access application! No need for .NET. They can pass ...more >>

Help Implementation
Posted by Vishy at 5/18/2006 10:15:01 AM
Hi I want to implement windows style help dialog for my smartclient application I couldn't find any documentation on that. Please help Thanks Vishy...more >>

Pop a Form from Unmanaged code
Posted by martin.bonneville NO[at]SPAM gmail.com at 5/18/2006 5:52:21 AM
Hi, I have a .Net Form. When I call the ShowDialog from unmanaged code (C++ compiled in VS2005 /clr), the dialog don't appear... it seem to be behind the main window. If I change the property "TopMost" of the form... then it appear correctly but all the children form appear behind. A...more >>

winforms 1.1 and ws 2.0
Posted by moondaddy at 5/18/2006 2:11:38 AM
I have a vb.1.1 winforms app (solution). One of the projects in the solution was a web services project which the winforms app uses. I had to upgrade the web services app to .Net 2.0 and therefore had to remove it from the solutions as the solution must remain as .Net 1.1 for now. Is there ...more >>

Datagridview Caption
Posted by JT at 5/17/2006 7:23:01 PM
Hi all, The old datagrid had a caption. I am upgrading to VS2005 and converting datagrids to datagridviews. Is there a way to put a caption on a datagridview? Thanks. -- John...more >>

RichTextBox question
Posted by Gabriel at 5/17/2006 6:37:42 PM
Hello, Is it possible to insert line by line a string to a RichTextBox ? and give a font color different for each line ? I'd like a control like a TMemo in the Delphi. Thanks, ...more >>

GCI object leak - what is the solution to this line of code?
Posted by Bob Dankert at 5/17/2006 5:24:00 PM
I have traced down a GDI object leak to the following line of code: this.sbMain.Panels[0].Icon = Icon.FromHandle(((Bitmap)this.imlIcons.Images[n]).GetHicon()); sbMain = StatusBar Control imlIcons = ImageList Control n = index This command gets run on a timer every minute, and each time ...more >>

Transparent and interactive form on top of existing one
Posted by Manuel Ricca at 5/17/2006 4:48:30 PM
Hello, I want to create a "glass" effect, where one transparent form is on top of an existing form, which is full of controls. The idea is to allow the user to select a part of the screen, by showing a selection rectangle while the mouse is down. The mouse events must not pass to the existing...more >>

WebBrowser loading Excel Security Alert problem
Posted by tony-s at 5/17/2006 2:11:53 PM
I have tried the axWebBrowser and also the the .NET WebBrowser and get the same error message when navigating to an Excel file on the local disk using Visual Studio 2005. e.g.: WebBrowser1.Navigate("C:\docs\test.xls") I then get a "security alert" dialog with "Your current security settings...more >>

How to minimize whole application (all its forms)?
Posted by pozi at 5/17/2006 9:31:03 AM
Hello, I have the following problem with application minimizing . I spent hours with searching for solution but no success. I have a main form on which I show modal form using Form.ShowDialog method. I want to achieve this behaviour: After the user clicks on the minimize button of modal for...more >>

DataGridView Image Column
Posted by mj2736 NO[at]SPAM yahoo.com at 5/17/2006 8:30:51 AM
I'm trying to display a GIF image in a DataGridViewImageColumn when a certain condition is true, and nothing when it is false: private void dgvInbox_DataSourceChanged(object sender, EventArgs e) { foreach (DataGridViewRow row in dgvInbox.Rows) { DataGridViewImageCell todayCell = ...more >>

Listbox problem
Posted by Ali Chambers at 5/17/2006 8:24:59 AM
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc.. End Sub and I get the error message: "Exception System.IndexOutOfRangeException was thrown in debugee: Index was outs...more >>

Refresh problem on a simple Win Form
Posted by Emanuele Ornella at 5/17/2006 5:09:12 AM
Hello everybody, I'm just trying to do a simple task: display a count number that increases in the time in a label on a Form. So I uses the label1.Refresh( ) method to force the drawinig: private void counting() { for (int i = 0; i < 100;i++ ) { ...more >>

How to get ListView Control subitem by columnHeader Name?
Posted by Pony Tsui at 5/17/2006 5:05:02 AM
Hi, i put a listview control in win form and add some columnHeaders, give the comumnHeader's name, Can i get ListView Control subitem by columnHeader Name ? Thanks -- Pony Tsui...more >>

Events outside the form
Posted by sajin at 5/17/2006 4:22:59 AM
Hi all, I implemented the color picker in vb .net 2005 , but i can't select the color . when ever i move the mose over the sreen or desktop i show the color below the cusor in the picturebox which is there in the form But i need is as follows I will have a pictureBox (like image in the col...more >>

Specialised styling of a windows form
Posted by dporter at 5/17/2006 12:40:18 AM
Hi, I have recently been shown a screen design for an application that will be created using windows forms in VB.NET. http://img70.imageshack.us/my.php?image=001c1ym.jpg It looks very stylized, and I wondered if this was possible using windows forms, or whether there are any customised co...more >>

How to alter a specific row's border in dataGridView?
Posted by Barry Mossman at 5/17/2006 12:00:00 AM
Hi, I want to alter the default border for specific rows in my grid. I have found that i can turn off the default border via the PrePaintEvent as follows: if ((e.RowIndex > 2) && (e.RowIndex < 6)) { e.PaintParts &= ~DataGridViewPaintParts.Border; But how do ...more >>

Ctrl+Shift+5 shortcut is displayed as Ctrl+Shift+D5
Posted by Jonas Bergman at 5/17/2006 12:00:00 AM
Hi I have a main menu with the shortcut Ctrl+Shift+5. But in the menu it is displayed as Ctrl+Shift+D5. it reacts on Ctrl+Shift+5 though, but it is really confusing for the user. Is there anyway to get rid of the D? /Jonas ...more >>

How to show dialog box on top of ALL windows?
Posted by Matthias at 5/16/2006 5:59:57 PM
Hello all How to force a dialog box to appear on top of ALL desktop windows? Detailed description of the situation: - MS Win XP Pro - Dotnet 2.0.50727 - Visual Studio 2005 Pro - Application written in C# (visual Windows app) - Application written in Paradox ...more >>

Using byte[] Font on Form?
Posted by Kyle Kaitan at 5/16/2006 1:51:43 PM
Suppose I have a byte[] resource, MyProject.Properties.Resources.SpecialFont, which is the byte stream of a TTF file representing a certain font. I would like to use this font on a Form. I've tried looking at FontConverter, using a MemoryStream, and the Font constructor, but none of these se...more >>

app looks distored at 120 dpi
Posted by Jesse Aufiero at 5/16/2006 11:51:04 AM
on a computer set to 120 DPI, my application looks distorted. All the careful placement of textboxes, images, etc., is ignored, and the result is a jumbled and unusable UI. is there any way to specify in the IDE that i'd like my application to appear the same under 120 DPI as it does under...more >>

Prevent Ctrl-Delete of row in non-readonly DataGrid ?
Posted by Stephen Ahn at 5/16/2006 12:00:00 AM
Using dotnet 1.1. For a DataGrid where readonly = false, is there an easy way of preventing the user from deleting rows by pressing Ctrl-Delete ? I want the user to be able to edit existing rows, but not delete them. TIA, Stephen ...more >>

Problem setting DisplayIndex property of bound DataGridView contro
Posted by Don at 5/15/2006 5:35:01 PM
I am using the following code to initialize the gridFilmedRoutes DataGridView. private void InitializeGrid() { gridFilmedRoutes.DataSource = new BindingList<FilmedRouteInfo>(); // Set up a checkbox column for the Available property gridFilmedRoutes...more >>

Create control with drop-down similar to ComboBox
Posted by Bob Dankert at 5/15/2006 5:01:38 PM
Hello, I have created a control where I am trying to mimic the behavior of the drop-down component of a ComboBox. Currently, when I display the drop-down portion I am changing the size of the control (specifically, the height) and custom painting what I need to paint in the lower drop-down...more >>

Getting Notification of Moving of Form
Posted by Bradley Remedios at 5/15/2006 1:55:19 PM
I have a control that I need to get notification of when it's screen position changes. I have no problem getting the Resize event from its parent form, but cannot get notification when the Form itself is moved by the user. I only get notification via the events when the Form is initially con...more >>

Layered drawing in a control?
Posted by eduwushu at 5/15/2006 11:28:02 AM
Hi there, I have developed a control which can do zoom in and out a design surface where u can place objects. Ok then. The problem is that the control has two zoom buttons that have to be painted always in the same position ,even when we are scrolling the design surface from one side to anot...more >>

Creating and Executing Batch file from Windows Form
Posted by Pauravi at 5/15/2006 10:06:03 AM
Hii I want to create a batch file that checks the latest version of .EXE from the Server and in case of new version it replaces the .EXE on users machine. Can you please guide me how to create and execute batch file for above task? Thanks in advance Regards, Pauravi ...more >>

Customizing ClickOnce Download Mechanism
Posted by Rory Plaire at 5/15/2006 9:20:02 AM
Good day - We'd like to deliver ClickOnce apps and updates via a BITS mechanism, and understand it isn't built into the current release. We would like to replace the OOB functionality with custom, using BITS to make ClickOnce useable in our environment. How can this be accomplished? Documen...more >>

Is it possible to send SMS/text message from WinForm to a cell pho
Posted by Kikoz at 5/15/2006 8:42:02 AM
I would appreciate any links, suggestions, etc.!!!...more >>

desktop color picker
Posted by sajin at 5/15/2006 6:34:26 AM
Hi all, I am a new comer in VB .net windows forms , i need to implement a color picker which is used to select color anywhere from the screen , i searched in the net but no info Plz give me some information Thanks in advance Regards Sajin ...more >>

Crystal Report Viewer Zoom
Posted by Chris at 5/15/2006 4:53:01 AM
Hello, Does anyone know how to set the zoom of a Crystal Report Viewer control to the 'Page Width' option at runtime? Thanks...more >>


DevelopmentNow Blog