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 > april 2007 > threads for april 15 - 21, 2007

Filter by week: 1 2 3 4 5

What are my options in this Windows App?
Posted by news.microsoft.com at 4/21/2007 9:50:04 PM
I am creating a Windows Forms app that will use SQL Server as the database. The app will be used in the following ways. 1. It will be used in the Clients office where the app will sit on the clients desktop pc and connect to the database on the server. 2. It needs to be used by those out...more >>


SelectedNode
Posted by gmb at 4/21/2007 12:00:00 AM
Hi everyone again, How to check SelectedNode's child? There is ->SelectedNode->Parent, but how to check/control a child? Thanks in advance, gmb ...more >>

Menu Control ( 2.0)
Posted by VJ at 4/20/2007 2:14:41 PM
Is there any way I can make the main menu bar for a MDI windows forms application, floating and hidden.. anybody know of the trick? ...more >>

Detecting a tray control
Posted by Larry Smith at 4/20/2007 12:52:02 PM
Hi there, I need to determine if an arbitrary control appears on a form's design tray or the actual form itself (or other parent container). Is the following check reliable or is there an official way (or something cleaner). Thanks. public static bool IsTrayControl(Control control) { ...more >>

Accessing a forms control menu
Posted by Tim Greenwood at 4/20/2007 11:52:01 AM
I've got some base classes I'm creating with a specific set of functionality that needs to be present throughout our app. I'm not finding any way to programmatically get to the control menu in the upper left of each window. I've always been able to add to this in the past. How do I get acces...more >>

is there a 'flush' type method in VB.Net
Posted by Elmo Watson at 4/20/2007 10:32:33 AM
Here's the scenario - I'm iterating through a directory, dynamically adding picturebox controls to a container, with a For Loop On screen, you don't see anything until it actually fully populates In ASP.Net, there is a command - Response.Flush - you can put this before the end of the loop,...more >>

ReportViewer and Terminal Services
Posted by Theresa at 4/19/2007 8:36:01 PM
I have an application with vb.net using reporting services local (rdlc). When I run under windows, it prints fine. When I run under Terminal Services, sometimes it takes 3 times to print. Print, and it looks like it did, but it never appears. Notepad, office apps seem to print fine. I was ...more >>

clickOnce (more instances of installation)
Posted by Ondrej Dobecka at 4/19/2007 1:28:01 PM
Hi, I have created a basic application, which is deployed as clickOnce and has some dll and one config file. Application 1 = main .exe file + dlls + one specific .config file Application 2 = main .exe file + dlls + another specific .config file .... What do I need to set to insta...more >>



Disable Form Resizing
Posted by Mahesh Nimbalkar at 4/19/2007 12:58:00 PM
How do I disable form resizing for users in Winforms 2.0?...more >>

copying an event handler in vb.net
Posted by Adrian Leeming at 4/19/2007 11:26:03 AM
I am using vb.net and basically I am trying to build a series of buttons at runtime based on menu entries created at design time on a ContextMenuStrip What I would like to do is make the Click event of a button created at runtime execute the same event handler as the Click event of the Tool...more >>

Prevent a window from moving when taskbar gets autohide disabled.
Posted by KenDev at 4/19/2007 10:52:04 AM
I have a windows form that shifts position when the taskbar autohide property is disabled. The windows does not move back to the original position when the autohide property is turned back on. I have not been able to catch the position changing anywhere in my code and so I am thinking that...more >>

Internal error in ToolStrip
Posted by Chavdar at 4/19/2007 10:26:01 AM
Please help! System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index) ...more >>

DGV CellValidating event not letting new forms be focused
Posted by LGHummel at 4/19/2007 10:24:00 AM
I have a form with a DataGridView in an MDI application that handles the CellValidating event. If I set DataGridViewCellValidatingEventArgs.Cancel to true, I can't navigate off the cell within the form as expected. However, If I use the MDIParent to create a new instance if the child form, t...more >>

DataGrid Binding / Threading Slow Updates
Posted by Luke at 4/19/2007 8:18:16 AM
I have a VB.NET Windows Form that contains a datagrid control that uses databinding to an object. I have tried using threading and updating the databound object (by marshalling to the UI thread) by using a separate thread however there are still delays when 32000 rows / items are added. It s...more >>

DataGridViewComboBox required two times click to select item
Posted by Neeraj at 4/19/2007 8:15:19 AM
hi guys I put DataGridViewComboBox in datagridview .but its required two times click. i want such that when user click once on DataGridViewComboBox cell, dropdown should comes.I tried but didn't find the exact way to do that. U have any idea plez mail . Thanks Neeraj ...more >>

Dynamically Adding Controls to Forms
Posted by ks at 4/19/2007 4:44:59 AM
Hi , I am required to create a Table like structure in Windows forms to which i need to add controls dynamically. what is the best control available for this requirement. i tryed using TableLayoutPanel but failed coz each row is accepting only one control. Thanks in Advance Happy pr...more >>

Change the Internet Explorer Window Title in C#
Posted by imad.sabonji NO[at]SPAM globeexpress.com at 4/19/2007 3:39:39 AM
HI I am using Visual Studio.Net 2003 and using C# I would like to know how is it possible to change the Internet explorer window title? ie. i want to get rid of "Microsot Internet Explorer" that appears after my application name on the title bar and if possible, get rid of the IE logo at...more >>

How to install a font in VB.Net?
Posted by Elmo Watson at 4/18/2007 11:38:13 PM
How can you 'install' a font, using VB.Net? I tried System.IO - just copying it, but it didn't add it to the system's list of installed fonts immediately. when my app loads, it populates a combobox with the installed fonts - then, I need to install a font, clear the list, and then fill the ...more >>

Form.Closing event not fired always when i call Form.Close method
Posted by berylwilson at 4/18/2007 11:32:37 PM
Hi, Form1 form1 = Form1; //Form2 is created and closed inside Form1. When I call form1.form2.Close() method the following method is called when I run the application in few machine but not in others. private void Form2_Closing(...) Any clues on this? Thanks in advance. ...more >>

Get computer's Windows or Windows Fonts directory
Posted by Elmo Watson at 4/18/2007 7:25:26 PM
In vb.net 2005 - I know that to get the system directory, it's system.environment.systemdirectory. I need to find the fonts directory - - which is normally inside the Windows directory - so how can I locate either or both of these (if I find the windows directory with a global variable, th...more >>

Application.Run questions
Posted by SushiSean at 4/18/2007 5:24:03 PM
I need create winForm application with this architecture I have code [STAThread] static void Main() { Application.Run(); } Now I need show Icon in tray bar and attach some "context menu strip" to this icon. So when user select one menu item - ...more >>

ClickOnce broken
Posted by GiddyUpHorsey at 4/18/2007 4:13:00 PM
One of our users has a problem reinstalling ClickOnce after running System Restore and uninstalling our ClickOnce application. They get the following error when trying to reinstall the ClickOnce application. Why does this problem happen and how can I fix it? PLATFORM VERSION INFO Windows ...more >>

Activated and Enter events not called on MDI children
Posted by Richard Lewis Haggard at 4/18/2007 2:17:02 PM
I'm having trouble with the MDI activate chain of events that happen as a result of a Ctrl+Tab event in my client's MDI application. A mouse click on an inactive MDI child executes normally but Ctrl+Tab event processing handling is only partially handled. The active MDI child window is changed...more >>

windows program deploy question
Posted by Paul at 4/18/2007 12:30:01 PM
Hi, I did a batch build on a 2005 .net windows app and copied the exe file to a machine running windows windows 2000. When I tried to run it I got the error missing dll mscoree.dll. I then tried to run it on another machine with windows xp and the error was missing .net frame work. Just won...more >>

How to find Internet IP address from vb.net
Posted by Tim at 4/18/2007 9:55:17 AM
Please give me some advices. I know how to find my machine IP address, but don't know how to find Internet IP. Please help me. Thanks, Tim ...more >>

Shared settings
Posted by MarcG at 4/18/2007 8:12:44 AM
I have a solution with multiple projects, each with its own EXE, and its own Properties.Settings.... They are all part of the same solution. I want to have a set of settings that are shared by all of the EXEs. That is, each project will have its own set of settings that are a superset of the ...more >>

Hexadecimal displayed instead of Integer
Posted by Ibrahim. at 4/18/2007 7:10:03 AM
Hello all, I have a c# project, while debugging I get the object values in Hexadecimal format, how do I get it Integer format by default, in debugging mode. I dont want to see it in Hexadecimal format. do I have to make any setting in visual studio.net 2005 Thanks, ...more >>

SHGetFileInfo
Posted by JB at 4/18/2007 4:37:06 AM
I am using SHGetFileInfo to get the list of icons for a bunch of files, and taking those icons and putting them in an ImageList. The ImageList is then being used with a ListView control to display the list of files and their associated icons. Unfortunately the alpha transparencies appear as b...more >>

Two-layered image control
Posted by Massimo at 4/17/2007 11:03:43 PM
Hi to all. I need to create a custom control which does the following: - It should contain a first, fixed image. - It should manage a second image, which will change programmatically. - It should display the second image on top of the first one, updating it in response to user events; th...more >>

dual hard drive
Posted by cordezzy at 4/17/2007 5:42:02 PM
i was trying 2 insall windows on a intenal haeddrive for my laptop. i gave up on it because i keep getting a error message, so i took off the harddrive. now when it trys to boot up it gives me the option of booting up from two windows how do i take that off?...more >>

Error when calling a webservice from a windows service
Posted by GD at 4/17/2007 4:42:34 PM
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test application. However, it generates a kind of security error after I install and start the service in...more >>

Global Variable
Posted by Elmo Watson at 4/17/2007 2:32:25 PM
I have a handfull of variables that I'd like to make Global to my application In the old VB6 days, I'd create a Module, and put them there, accessible from any form in the application However, in VS.Net 2005, I added a module, and it acts somewhat like a class, in that, to access a Public ...more >>

Visual Studio 2005 and XAML
Posted by Flack at 4/17/2007 2:08:03 PM
Hey guys, I've never used WPF/XAML and would like to start playing around with it. Am I able to do so using VS 2005? If so, can someone tell me what I need to download/install to be able to develop apps using XAML? Thanks a lot....more >>

problem with inherited Windows Form
Posted by Brandon Owensby at 4/17/2007 12:05:34 PM
I wrote a screen that has a grid on it and a few controls. Later I needed the same screen but with a few more controls...but I still needed the old configuration. Since this was the case and since there was alot of code driving the grid I created another windows form that inherited from my ...more >>

Winform blinks when Java application is activated.
Posted by Dave DiFilippo at 4/17/2007 9:32:02 AM
Hello, We are having an unusual issue with a .NET 1.1 Winforms application. There is one particular Winform within the application that blinks, or quickly diappears and reappears on the screen, when a Java application is maximized and sharing the screen with the Winform. It almost looks l...more >>

ClickOnce Deployment in a Plug-in architecture context
Posted by Frank at 4/17/2007 8:18:04 AM
Hi all, I've been browsing through the different posts for a few days now but I didn't found the answer. We are considering the use of the ClickOnce deployment framework for a C# application that has a plug-in architecture. Plug-ins are developed as independent DLL projects. The plugin...more >>

Generated Program.cs uses special way of disposing native resource
Posted by martin at 4/17/2007 4:54:00 AM
Hi, To properly clean up native resources, one should always use "using (Blah blah = new Blah())" for types "Blah" that implement IDisposable. It seems to me that the code generated by Visual Studio in Program.cs doesn't live by this rule? A form is always IDisposable, so who calls the .Dis...more >>

Forms and labels
Posted by Allen Maki at 4/17/2007 2:55:09 AM
Hi Everybody, I am new to Famework Programming and I need your help. In Visual C++ .NET Forms. Labels. If I want to add XXXX to the label, I can do that through the "Text" property in the property editor. But I want to add the XXXX during run time. In other words I w...more >>

datagridview multiselect without keyboard !
Posted by oliharvey NO[at]SPAM googlemail.com at 4/17/2007 2:53:44 AM
howdy.... in a datagridview - the user can select multiple rows by holding the Control key down as they click with the mouse. I am looking for a way to achieve the same result without the use of the keyboard (I have a touchscreen application). any ideas? - I'm a bit stuck :) thanks, O...more >>

Open File Dialog problem
Posted by Elmo Watson at 4/16/2007 2:48:38 PM
I have a combobox, listing file extensions (JPG, BMP, etc) in my OpenFileDialog, I have: Const sFilters As String = "JPG (*.jpg)|*.jpg|GIF (*.gif)|*.gif|BMP (*.bmp)|*.bmp|PNG (*.png)|*.png|TIF (*.tif)|*.tif|Wmf (*.wmf)|*.wmf" Dim ofd As New OpenFileDialog ofd.DefaultExt = ComboBox1.Text.To...more >>

Login window vs Main window
Posted by Flomo Togba Kwele at 4/16/2007 12:34:19 PM
I have developed a Windows application which is started with a Shared Main object. The first thing it does is launch a login window. If the user types in a correct company, username and password, the login window is disposed and the main application is run (Application.Run(newprg)). This works...more >>

How to read Default Values from App.Config for User Settings?
Posted by herceg NO[at]SPAM im.ns.ac.yu at 4/16/2007 5:54:25 AM
Hi all; How can I read default values for user settings from the app.config file? I've seen someone mention using the .DefaultSettingValueAttribute and reflection, but I don't know how to use them. I am trying to do the following: 1) Create a simple Windows App that has one user setting ...more >>

Draw in form titlebar from external code? [.NET 2.0]
Posted by Steve Marshall at 4/15/2007 7:31:42 PM
I want to be able to insert some text into the active form's title bar, from code that is external to the form. It's essentially a timer showing time elapsed since something happened in the application. I have seen posts about using the WM_NCPAINT message, but that requires code in the forms t...more >>

Save File Dialog question
Posted by Elmo Watson at 4/15/2007 6:31:18 PM
Let's say I have a filename in my Save File Dialog - then, from the filter dropdown, I choose a different filetype - - How can I change the filename (in the textbox), to show the extension that was just changed in the filter dropdown? ...more >>

print the current time on the screen
Posted by Allen Maki at 4/15/2007 3:10:50 PM
Hi everybody, I need help. I want to print the current time on the screen. After research I managed to run the codes below in regular C++. But I could not make it to run in .NET Framework environment. Can anybody tell me how to make these codes to work in .NET Framework or sho...more >>

Newbie question: how to set focus to a usercontrol
Posted by Christian Stapfer at 4/15/2007 12:00:00 AM
I have a usercontrol that contains another usercontrol, which in turn contains a PictureBox control. Under a certain condition, I need to set the input focus on the outermost usercontrol. But once the PictureBox control (the outermost usercontrol's grandchild) has got the input focus, I can...more >>


DevelopmentNow Blog