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
all groups > dotnet windows forms > august 2006

Filter by week: 1 2 3 4 5

Accessing unmanged COBOL DLL from C#
Posted by Parrot at 8/31/2006 8:50:02 PM
I cannot get my C# program to access a DLL program written in COBOL. I use the following code to represent the program: [DllImport("readmf.dll")] public static extern void CYREAD(string linkfile, linkdata ld); I use the following statement CYREAD(linkfile, ld) a...more >>


Animated GIFs in VB.NET form...
Posted by Tom at 8/31/2006 8:19:29 PM
My application is going to do some file copies, searching, etc. During this time I would like to throw up a small progress window showing the progress of the operation - but what I would also like to do is to show some of the animated GIFs that occur when Windows does a file operation. I.E. Wh...more >>

Data binding combo box with a datagrid
Posted by John Harcourt at 8/31/2006 6:08:01 PM
I have a dataset with two data tables. I created a data relation object to join the two tables by a common field. I set up the data binding to a combo box for the first table. This is the "parent". I set up the data binding for the datagrid for the second table. This is the child. When I run ...more >>

Using Ctrl + C to copy text from Richtextbox
Posted by Anthony at 8/31/2006 5:28:01 PM
Hi, I am having problem on using Keyboard to copy and paste text in a RichTextbox. Nothing is happening when I press Ctrl + C. Right click on the mouse is also no action. I try to see the setting from the RichTextbox properties. I cannot find any related setting. Is anyone k...more >>

Tab control autosize?
Posted by Hans Merkl at 8/31/2006 5:24:30 PM
Hi, Is it possible to make a tab control adapt to the size of the control on the tab pages? I am sure I can do it with code but I am wondering if there is a built-in capability. I can't find an AutoSize property. Thanks Hans...more >>

looking for advanced yet basic knowladge regarding UI developing
Posted by esakal at 8/31/2006 12:59:04 PM
Hello, I'm developing winforms using C# .net 2005. I'm currently a part of UI infrastructure team. I'm not a newb in this area, i want to expand my knwoladge in the field. I wanted to ask where can i find best practices, code examples, ebooks, preffered architacture and others for develo...more >>

Problems with Designer code
Posted by LightWarrior at 8/31/2006 4:44:09 AM
Hello, I created a form (form1) with an tabcontrol on it. This tabcontrol is 'protected'. Now I create a new form (form2) and Inherit from form1. Now I can modify the tabcontrol because of it is protected. But now I get some problems. When I add some tabpages to the control and then compil...more >>

"System Info" Like Application
Posted by Shahid at 8/31/2006 3:36:01 AM
Hi All, i want to create an application, that gets all Hardware & Softwares Installed on windows based system. Thanks SS...more >>



How to spawn a batch process from C# windows forms program
Posted by Parrot at 8/30/2006 3:22:02 PM
How do you spawn a batch process from a C# program in a Windows form? I used to do this in C++ with a spawn command but I can't find the equivalent instruction in C#. Can anyone tell me how to execute an external program from a Windows form program by submitting a command line instruction?...more >>

unique key
Posted by John at 8/30/2006 2:09:18 PM
I want my program to add a unique key to each item added to a table in addition to the PK. What is the best way for me to track the last key generated. The key will be a special string so I cant just increment it. ...more >>

Generating click on LinkLabel Image
Posted by eastlands NO[at]SPAM rightfile.com at 8/30/2006 8:56:16 AM
I am using a LinkLabel control to capture "click" events from the user. This works fine for the text portion of the label, but I would really like to extend this to capture the event from the image portion too. I've tried various ideas without much luck. Does anyone have any suggestions? Stuar...more >>

removing the mouse
Posted by Gregory at 8/30/2006 7:31:02 AM
How can I make mouse symbol disappear completely? I am using Windows Forms, C#, Framework 2.0 Gregory Khrapunovich ...more >>

Execution context for an event handler
Posted by mehdi_mousavi at 8/30/2006 5:32:42 AM
Hi folks, Consider the following code: MyClass c = new MyClass(); c.MyEvent += new MyEventHandler(MyHandler); where MyClass is defined as follows: public class MyClass { public delegate void MyEventHandler(object sender, EventArgs e); public event MyEventHandler MyEvent = null;...more >>

.NET 2.0 Bug? :The report doen't print the first time
Posted by Ehsan at 8/29/2006 11:38:01 PM
After generating a report in ReportViewer, clicking the Print button once and trying to print doesn't work. You have to try to print twice for the report to be printed. Any suggestions about this behavior? Thanks....more >>

Very annoying Designer error message
Posted by Bob Costello at 8/29/2006 4:53:02 PM
I am working on a solution which has a number of forms. At some point, mostly during builds, I get an error message box displaying the following line of text: Array rank '2' is too high. A search of the on-line doc reveals the following explanation: "Visual Studio only supports single-...more >>

MaskedTextBox.Modified not worknig
Posted by Locker at 8/29/2006 4:17:01 PM
I am using Visual Studio 2005 to develop a Windows Application using Visual Basic. I have added a MaskedTextBox to one of my forms and am trying to check it for changes. There is a property called MaskedTextBox.Modified that is suppose to return 'True' if the controls contents have been mod...more >>

Data binding ComboBox, DataGrid
Posted by John Harcourt at 8/29/2006 2:52:02 PM
I have a dataset with two data tables. I created a data relation object to join the two tables by a common field. I set up the data binding to a combo box for the first table. This is the "parent". I set up the data binding for the datagrid for the second table. This is the child. When I ru...more >>

Typed Dataset Factory for Singelton
Posted by Jack at 8/29/2006 2:20:02 PM
I have a specific need to implement a singleton typed dataset and still use drag and drop binding via project data source. Specifically, I have a dll assembly that contains the typed dataset. When I reference it in my WinForms app, I want all forms and user-controls referencing the dataset ty...more >>

crystal reports exception help
Posted by Paul at 8/29/2006 12:15:14 PM
Lousy help in msdn. What would cause a "Invalid export options." exception in a windows forms app using ExportFormatType.HTML40? report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.HTML40, "rpt1.htm"); Details: CrystalDecisions.CrystalReports.Engine.InvalidArgumentEx...more >>

MultiThreaded App always reverts back to UI Thread
Posted by greener.jay NO[at]SPAM gmail.com at 8/29/2006 8:49:48 AM
I'm a C# newb and am trying to write a multithreaded app to free up my UI thread so that it can repaint the screen etc. The application does spawn another thread (I've verified this with Performance Monitor and by naming the different threads I am working with), which spawns another thread that...more >>

MultiThreaded App always reverts back to UI Thread
Posted by greener.jay NO[at]SPAM gmail.com at 8/29/2006 8:44:15 AM
I'm a C# newb and am trying to write a multithreaded app to free up my UI thread so that it can repaint the screen etc. The application does spawn another thread (I've verified this with Performance Monitor and by naming the different threads I am working with), which spawns another thread whic...more >>

Number Textbox
Posted by Jared at 8/29/2006 12:00:00 AM
Hi, I have decided the best way to prevent characters from data entry is to use numericupdown control. The only problem is I need way to hide the updown control....wish there was a property for this. Anyone now easy way to get rid of updown arrows. Thanks Jared ...more >>

Virtual desktop makes .NET modal dialog panels disappear
Posted by jbrock NO[at]SPAM panix.com at 8/28/2006 6:22:54 PM
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. If I start my app, open a test form using ShowDialog() (this is a menu choice on the main app), and ...more >>

ContextMenuStrip and Image
Posted by Luca Giuffrida\\ at 8/28/2006 6:14:32 PM
Hi all, i have an image associated to every items in my ContextMenuStrip. When i go over an item with the cursor and the element is focused I can see only the text while image is covered by the focus. Any suggestion is appreciated. Luca...more >>

'System.Resources.MissingManifestResourceException'
Posted by Paraclete at 8/28/2006 5:00:02 PM
Hi All, I am working on a winforms project. There are couple of .bmp images in the main form. Previously it was running ok. But today, I changed couple of controls in the designer and then the following exception started to appear. Does any one know how to work around this thing and why it i...more >>

Drag Drop (C1 and windows forms)
Posted by feudalac! at 8/28/2006 2:21:40 PM
I need a litle help with dragdrop... I can't find anything useful on google... I have a ComponentOne True Grid and Windows Forms Treeview i want to drag an item from the grid and into Microsoft Treeview... so far i have done this: grid.allowdrag = true tree.allowdrop = true privat...more >>

Access treeView.selectednode from another form
Posted by rhaazy at 8/28/2006 12:05:05 PM
Using C# and VS 2003 I have two forms and a treeView, the treeView is on Form1 On Form1 Form frmAddOrgSystem = new frmAddOrgSystem(); frmAddOrgSystem.ShowDialog(); on frmAddOrgSystem orgsystemid = Form1.treeView2.SelectedNode.Index.ToString(); I get this error: An object refere...more >>

User Control and Textbox Inheritance
Posted by houghtelling NO[at]SPAM gmail.com at 8/28/2006 11:46:51 AM
Is it posible to inherit from a textbox and then place that inherited textbox onto a user control in that same project? When I try to do this I get the error: "Could not find type 'MyTextBox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of y...more >>

Books You Like
Posted by Dave T at 8/28/2006 7:31:02 AM
Do you all like any books ... particularly VB 2005, VS 2005, WinForms, ADO.net? There are so many, I can't see the forest for the trees!...more >>

PrintDialog.UseEXDialog
Posted by MLM450 NO[at]SPAM hotmail.com at 8/28/2006 5:42:59 AM
When I set PrintDialog.UseEXDialog to true and then show the dialog, the window does not automatically get the focus? I need to click the window once, then it behaves normally. Does anyone know how to get around this? ...more >>

wintimer
Posted by luca at 8/28/2006 2:09:17 AM
hi all i have a question with win form and timer.. The situation: i have a winform c# application (developped with visual studio 2005) which has to check the status of an internet connection on regular intervals. If the connection is avaible the application has to connect to a database to down...more >>

Multiple-forms WinForm app with only 1 Taskbar button?
Posted by pedestrian via DotNetMonster.com at 8/28/2006 12:57:34 AM
I'm creating a multiple-forms windows application. When I launch second form (says, frmSecond) from the main from the Main form(frmMain) with ShowDialog() method, the taskbar add another button for the second form, thus, if I then open the third form (frmThird), the taskbar add yet another button...more >>

Sending emails from app
Posted by John at 8/27/2006 5:59:51 PM
Hi I have a vb.net win form app that runs on a MS Small Business Server 2003 (windows 20003 server + ISA 2000 + exchange 2000). My question is how can I send external emails from the app via code? Is there any way to leave a copy of the sent emails in a mailbox on exchange? Thanks Reg...more >>

Systray drag/drop functionality
Posted by Joseph De Guzman at 8/27/2006 12:30:25 AM
Is it possible to make an application whose notifyicon can receive a drag/drop messages? For instance, i would like to have certain files that when drop to the application's notifyicon would let the app process it. Any ideas? ...more >>

Localization problem - settings keep getting reset for (default) l
Posted by Markus Galuschka at 8/26/2006 8:04:02 PM
I am currently developing an application that will be available in german and english. I set the localizable attribute of all forms to true, english text/settings are used with "(default)" as the language, german with "german" as the language. The text of buttons, etc is shown correctly (i....more >>

TrayIcon problem
Posted by Ron M. Newman at 8/26/2006 4:56:53 PM
Hi, I have an app whcih I want to be 100% tray icon, no pre-launched "main" form. I don't know how to get rid of my main form. setting it to minimized and show-taskbar=false doesn't help the ALT-TAB situation. how do i make sure nothing is EVER visible other than my tray icon? thanks R...more >>

Start an App once each PC
Posted by Zorro at 8/26/2006 12:00:00 AM
Hi all, I've got a little problem with my current App. This app should only start once on each computer. Currently I make this in following way: static void Main() { int Count = 0; foreach(System.Diagnostics.Process pro in System.Diagnostics.Pr...more >>

Debugging a memory leak
Posted by Petri at 8/25/2006 11:15:01 PM
Hi, I have a memory leak (or at least had one) in my App. I've now added several Dispose methods to different places, eg I now dispose all SQLCommands, DataAdapters etc. So in theory I have fixed the problem. But how can I verify that, since the GC process runs whenever it feels like it...more >>

System.Security.Permissions.SecurityPermission error
Posted by julio at 8/25/2006 9:31:01 PM
Im trying to develop a windows form program to read and write excel sheets But, on the begining, when I try to open the sheet, returns an System.Security.Permissions.SecurityPermission error The full error is: {"Request for the permission of type 'System.Security.Permissions.SecurityPermissio...more >>

Detect if vertical scrollbar currently shows on the control
Posted by MuZZy at 8/25/2006 7:27:52 PM
Hi, I was wondering if anyone could help me on this: i need to know if a particular Control currently shows a vertical scroll bar. I need some generic way as that Control can be of any type (grid, textbox, listbox, checkedlistbox, etc.). I didn't find a way to do that with .NET so i would...more >>

Autocomplete ComboBox with DataSource
Posted by Benton at 8/25/2006 7:04:40 PM
Hi there, I have a ComboBox (.NET 2.0) that's filled from a DataSource (actually a Business Objects collection). I haven't found any way to make it AutoComplete, i.e., to automatically find the closest item as I type in. Seems that AutoComplete only works if the ComboBox isn't filled from ...more >>

Argument Exception UnHandled.
Posted by Laurence at 8/25/2006 1:46:06 PM
I am in Win XP Prog, Using VB.2005, programming in VB.NET I am getting: Argument exception was unhandled. Argument 'Length' must be greater or equal to zero. The code: Dim AboutBox As New UnexAbout.AboutBox AboutBox.ShowAbout(Me) It doesn't like the (Me). This runs fine from oth...more >>

bindingsource.find method not working
Posted by Mohan at 8/25/2006 12:37:58 PM
I am having trouble with the find method. It gives an method not supported error. Has anyone else faced this problem. The code i have is int rowindex = BindingSource1.Find("ColumnName", "461"); I would appreciate any help in resolving this issue Thanks MB ...more >>

systray app - help
Posted by Arvi at 8/25/2006 10:35:22 AM
Hello, Im quite new to c# windows application. i need to write a application which stays on the systray and listens to the SQL Table. (when the value is inserted as 0 - done thru Dataset and check it every2 seconds?) i need to open another application thru command prompt and pass the parame...more >>

Rendermode (Menustrip/Toolstrip) System and Separator!?
Posted by juvi at 8/25/2006 9:15:02 AM
Hi, When I set the Rendermode from my Menustrip,Toolstrip then the separator is not visible. What can I do to make it visible again? thank you.....juvi...more >>

how to make a mouse double-click behave like a single-click
Posted by Techsatish at 8/25/2006 8:42:53 AM
Hi, I have created a user control build over infragistics tree control and this control is placed on a mdi form where on clicking on the node on the tree control displays a new form on the right side.the problem i get is when i make a single mouse click.it works fine ...i get the right side f...more >>

ComboBox.SelectedIndexChanged by user or code?
Posted by Mark Raishbrook at 8/25/2006 7:37:01 AM
This is more of a grumble than a question really. I have a config file that reads various settings into my app on start-up. One of these settings sets the selected item in a combo box, which in turn fires the combo's SelectedIndexChanged event, which in turn causes all hell to break loose. ...more >>

Displaying Korean text
Posted by Ghanashyam at 8/24/2006 10:13:01 PM
In a windows form application(C#) I have to support international font(say Korean) For this application uses a resource file that contains korean text. I set the current UI culture as below // Override the default user culture with the neutral culture System.Threading.Thread.CurrentThread.Cu...more >>

Printing PDF document using Visual Basic.NET
Posted by BobRoyAce at 8/24/2006 8:10:09 PM
I am using Visual Studio .NET 2005, using Visual Basic, to create a Windows Forms application. I want to add the ability to the application to print a PDF file that already exists when the user clicks on a button. Any ideas on how I can accomplish this? Also, does anyone have experience with a...more >>

How to create a wizard
Posted by WT at 8/24/2006 7:56:15 PM
Hello, Is there a MS windowsform component to create a wizard in C# with vs2005 ? Thanks CS ...more >>


DevelopmentNow Blog