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 > july 2006 > threads for july 8 - 14, 2006

Filter by week: 1 2 3 4 5

How to make asynchronous call ?
Posted by Laurent at 7/14/2006 5:50:55 PM
Hi all, First, I use C# with the .NET Framework 2.0. I would like in the method OnButtonClick, call the method A.DoSomething but in a way that executes after OnButtonClick has finished its execution. I am looking for something like a PostMessage in Win32 in fact. How can I do that in C# ?...more >>


crystal reports
Posted by John at 7/14/2006 3:38:02 PM
Why would using crystal reports run fine from one pc but not anpther? I disabled filewalls, had admin rights, selected the install prerequsits. I get a log in screen that won't accept any login. Logged in as the same user from another pc, it works fine. It seems on the pc that worked a w...more >>

Why does a WinForm stay in memory if the local reference var goes out of scope?
Posted by ernstr NO[at]SPAM xs4all.nl at 7/14/2006 1:40:43 PM
Why does a WinForm stay in memory if the local reference var goes out of scope? Hello all, After programming in C# and VB.NET for 4 years, it finally dawned upon me that something Very Fishy is going on when you create a second form. Why does it stay in memory when the form-variable goes ...more >>

Using Microsoft Chart Control in dotnet
Posted by Bob Dankert at 7/14/2006 11:14:37 AM
I am trying to use the Microsoft Chart Control COM component in dotnet 2.0 but keep getting "class not registered" exceptions when I try to run the code. I have done the following so far to try and get around this issue: - registered mschart20.ocx using "regsvr32 mschrt20.ocx" - registered ...more >>

Custom form drag, does not work... why?
Posted by ThunderMusic at 7/14/2006 10:14:07 AM
Hi, I have a borderless form and I try to drag it. When I do it, the form start to jump from position to position even when I don't move the mouse... My formula seems right, but the result is not... can somebody help me please? here is the code: private void managementConsoleBarSmall1_...more >>

How to fire the database call when a person open and read the email using .net.
Posted by srinivas at 7/14/2006 2:06:47 AM
Hi, We have developed a project in .net. Now our customer is asking when ever we open a email (that is sent from our application ) we need to insert a record in a database table. When user reads the email we need to insert a record in the database.How can we fire the db method when us...more >>

Treeview problem
Posted by MaPet at 7/13/2006 1:33:00 PM
I'm trying to create a treeview that will show data from access database in hierarchical way. Database structure is: ID, FirstName, LastName, IDBoss - IDBoss is referenced to ID. Treeview should look like this: -employee1 ---employee2 ---employee3 ------employee4 ---employee5 ---employee6 ...more >>

Question about MDI child form...
Posted by rhaazy at 7/13/2006 12:10:39 PM
I have an MDI main form that shows a child. WHen the child is shown it maximizes to fit in the space available in the main form. FOr some reason when I set the window property of my child to maximize when the app runs it shows the controlbox buttons (minimize,maximize). I have disabled all th...more >>



Limit to range of colors displayed by Label control?
Posted by Evan Stone at 7/13/2006 10:37:21 AM
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, whic...more >>

Question about DataRows/DataGrids
Posted by rustyryan at 7/13/2006 10:14:57 AM
Hey all, I have a question about using DataRows (and ultimately, its interplay with a DataGrid) So I create my DataSet, create a DataTable, configure it with columns and then add rows like so: (C++ .NET) DataTable* table; //assume setup DataRow* row = table->NewRow(); //columns 0,1, and 2...more >>

TLB using problem
Posted by vul at 7/13/2006 9:42:54 AM
I created very simple Class Library in VB 2005 (let's call it COMInterop). I set Register For COM Interop property to true to make it accessible by VB6 program. After I compiled it, I got COMInterop.dll and COMInterop.tlb files, I have no problem with using both of them on the machine where the...more >>

Windows Service and Threading
Posted by Techno_Dex at 7/13/2006 8:57:50 AM
What is the proper way to terminate a Thread in a Windows Service? I have a windows service which starts up three threads which run in a while loop as long as a boolean flag is set to true. These threads each sleep for X ammount of time then start processing again. Since this is a service i...more >>

print form
Posted by John at 7/13/2006 7:09:09 AM
If I want to set up my Vb 2005 windows app so users can print some data from a dataset, what options do I have to do this? It seems I should be able to find a whole section on printing data but I haven't been able to find my way around in "Help" to well. ...more >>

Embed SQL2K5 Express into windows apps
Posted by carol chen at 7/13/2006 12:00:00 AM
I have developed a desktop applicatio with synchronization feature. I wanna embed the sql into my application, and have following questions: 1. I can't just attach the database file (.mdf) as connectivity components are required for sync function, right? 2. When install the sql2k5 expre...more >>

ClickOnce and login on as a different user
Posted by Anders K. Olsen at 7/12/2006 4:56:45 PM
Hello group I'm developing an C# Windows Forms application that I would like to deploy using ClickOnce. One of the computers that the application is deployed on, is a computer that is always loged on as a generic "controlroom" user. This is necessary for some of the other applications ru...more >>

Change the value of a Listview subitem
Posted by tmoeller at 7/12/2006 4:16:02 PM
I have a ListView box in my form which is populated by an array : Dim item2 As New ListViewItem(index & ".") item2.Checked = True item2.SubItems.Add(r.description) item2.SubItems.Add(r.host) How can I change the value of these subitems afterwards? For exam...more >>

ToolBar Click event
Posted by Marcos M Ribeiro at 7/12/2006 3:43:28 PM
On a regular button I can use the PerformClick method How to perform the same effect on a Tollbar Button? Thanks Marcos PS: Pls send a copy to kiko@barretos.com.br ...more >>

TreeView text truncated
Posted by PIEBALD at 7/12/2006 12:23:02 PM
Using .net 2.0 and C# I have a TreeView in which I put some nodes with rather long text. The problem is that some times the text gets truncated and other times the horizontal scrollbar appears but doesn't allow the control to scroll all the way to the end of the text. ...more >>

Can't print in landscape orientation
Posted by egarcia1970 NO[at]SPAM gmail.com at 7/12/2006 7:48:40 AM
Hi group. I'm having problems getting this C# code to print in landscape orientation: private void MyPrintDocument_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e) { MyPrintDocument.PrinterSettings.DefaultPageSettings.Landscape = true; MyPrintDocument.Print...more >>

How to find the parent form for a ContextMenuStrip
Posted by Alexander at 7/12/2006 5:48:01 AM
Hi, I have a ContextMenuStrip that is used on various forms. When somebody opens the context menu on a specific form (e.g. Form2) and clicks a menu item, I need to execute some action on that form. Is there a way to determine the form from which the context menu was invoked in the click ev...more >>

Problem with Crystal Report
Posted by Robe at 7/12/2006 5:47:02 AM
I'm doing a cross tab report with crystal report for Visual Studio ..NET 2005 and I want to print the page number of each page of the report. But I can't do that because the page number is printed only in the last page. Any idea? Thanks...more >>

How to paint 4 panels on a form separately at the same time without flicker
Posted by vahid.xplod NO[at]SPAM gmail.com at 7/12/2006 5:45:17 AM
hi, i've got a big problem with painting 4 or more than 4 control such as panel on a form. i have 4 panel that their width and height is 3000px on form and also a hscrollbal control that when i move the scroll bar the 4 panels move with it. but my problem is when i want to paint a grid on the ...more >>

override maximize event
Posted by rich NO[at]SPAM rwbaker.com at 7/12/2006 4:42:15 AM
I'm looking to execute a function when the Max button is clicked. I'd like to override the maximize event on an MDI child form so that instead of maximizing, it just fills the MDI area. I've found the code to max the form to the mdi size, but no luck on how to execute my function on the Max bu...more >>

Make Enter key act like Tab key
Posted by BobRoyAce at 7/11/2006 10:35:47 PM
I am using Visual Studio 2005, with VB, and I have a form where I would like pressing the Enter key to act like pressing the Tab key. In other words, if user is on a control, and presses Enter, focus would move to next control in tab order. ...more >>

Draw one label on top of another
Posted by illegal.prime NO[at]SPAM gmail.com at 7/11/2006 9:57:43 AM
Hi all, is there a simple way to draw one label on top of another? Or does this require overriding OnPaint? Thanks, Novice ...more >>

FontDialog Only Allows Integrals?
Posted by Mike at 7/11/2006 9:14:02 AM
I've noticed that the FontDialog only allows positive integers as input when you show the dialog. Is there some reason for this? The font that it returns allows singles and I can't really find anywhere that explains why this might be. We're writing our own FontDialog (due to some other li...more >>

Help with form.treeview control?
Posted by rhaazy at 7/11/2006 8:04:50 AM
Using C# I want to know if it is possible to limit the user to only being able to see the path of the current node. In other words I dont wan't the user to be able to see any expanded stuff that isn't part of the path of the selected node. So I need some kind of function that will Collap...more >>

Change Display pattern of Datagrid
Posted by shreelu at 7/11/2006 5:41:32 AM
Hi I am trying to change the way the datagrid looks like ie, i want to have only two columns one for the column names and the other for the values of the columns,instead of displaying in a single row For Example: Suppose in Employee table , Iam displaying a single record f...more >>

Custom title bar size in Non-client area
Posted by Anze V at 7/11/2006 3:21:02 AM
Hi! I am trying to make a custom size title-bar in the non-client area of the form. I've tried hooking to the NCCALCSIZE message with this code: case (int)Native.NativeMethods.WindowMessages.WM_NCCALCSIZE: if (m.WParam == IntPtr.Zero) { ...more >>

FileSystem.WriteAllText (broken methodl)
Posted by Jared at 7/11/2006 12:00:00 AM
Hi - I am trying to dynamically write vbscript file to c drive. But it will not execute. I have notice some crap in windiff which suggest that VB has unusual way of creating a file. Anyway it doesn't work and I was hoping to use the script to bypass some chunky .NET schedule task code. An...more >>

Detecting application close
Posted by Neven Klofutar at 7/11/2006 12:00:00 AM
hi, A friend is configuring windows in a way that he's not using explorer shell, he's using something else (I hope I wrot this corectlly :) ). Now ... when shell is closed he want's to close windows down. Is it possible to create windows service that can "listen" when will an application ...more >>

Design time Drag and Drop
Posted by Solitude at 7/10/2006 7:02:01 PM
Hi, we have this custom control we have designed. We want to allow the user in VS .NET 2005 environment to drag another control onto our control at design time and receive information of what type of control was dragged onto it. Any help would be great. Thanks, Matt...more >>

Get Icon from CallingAssembly (or ...)
Posted by Pieter at 7/10/2006 3:59:43 PM
Hi, I have a Control Library which shows a Form, and i would like to hev the icon of the CallingAssembly to be shown on this Form. Does anybody knows how to do this? I can't be able to get this Icon... Even worse, I don't find how to get it in the application itself :-) Does anybody has a...more >>

Capturing mouse event at higher level in containment hierarchy
Posted by illegal.prime NO[at]SPAM gmail.com at 7/10/2006 1:07:07 PM
Hey all, I have fairly deep nesting of controls in my Form. At a relatively high level in this hierarchy I would like to react to mouse click, mouse down, mouse up events. But the events don't seem to perculate up through the containment hierarchy. Any suggestions? Thanks, Novice ...more >>

Unhandled exception ignored?
Posted by sb at 7/10/2006 10:22:57 AM
In the simplified code below, shouldn't the thrown exception cause the app to terminate since it is unhandled? It doesn't seem to do anything in Debug or Release mode. I do get a first-chance exception message in the debugger but that's it. Something seems to be intercepting the exception a...more >>

Bug in SaveFileDialog
Posted by picander77 NO[at]SPAM yahoo.de at 7/9/2006 10:02:15 AM
Hello there, I found a bug using SaveFileDialog and I was not able to find any similar issue on the web. This seems to apply to any .NET Applications using SaveFileDialog. To perform the bug: 1. Open a SaveFileDialog and save any File, e.g. TestDocument0.txt: This should create a document ...more >>

control in user control to adjust with size
Posted by David C at 7/9/2006 12:00:00 AM
I have a datagrid control encapsulated inside a user control. When I use the user control on a form and change its size, is there a way to get the datagrid inside the user control to adjust with it accordingly? Thanks. ...more >>

usercontrol with readonly property that can be set at design time
Posted by mmcd79 NO[at]SPAM tampabay.rr.com at 7/8/2006 4:19:31 PM
Can someone tell me if it's possible to create a property for a usercontrol, that is essentially readonly, but able to be set via the designer before runtime? I have a property for a control that I want to set essentially one time. This property is basically a static property that can change ...more >>

BackgroundWorker and RunWorkerCompleted event
Posted by Kevin Burton at 7/8/2006 3:49:01 PM
I have a BackgroundWorker component that I am using as: Dim arguments As XmlSentArguments = New XmlSentArguments arguments.TransactionId = 10 arguments.OrderId = "na" workerThread.RunWorkerAsync(arguments) The thread seems to get started and i...more >>

Can't Create New Data Connection
Posted by JamesJ at 7/8/2006 7:49:40 AM
Just installed Visual Basic 2005 Express Edition. When attempting to link to a data source which is a ms access database I get the following error (if I wrote it down properly). Format of the initialization string does not conform to specification starting at 0. I thought it would be a bit e...more >>


DevelopmentNow Blog