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 > april 2008

Filter by week: 1 2 3 4 5

title bar
Posted by cal at 4/24/2008 9:13:07 PM
Hi group, I want to hide the titlebar of Form1, VS2005 thanks very much, Carlos. ...more >>

Displaying high-res images in .NET?
Posted by Usenet User at 4/24/2008 5:48:51 PM
..NET 1.1/2.0 I have a need to display high-resolution scrollable images in a .NET application (Windows Forms). One well known solution is to create a Panel with AutoScroll set to "true" and then add a PictureBox or another Panel to it, that is used to display the image. The above approach ...more >>

Reading Data From The Browser
Posted by emarvets@gmail.com at 4/24/2008 9:13:25 AM
I'm working on a stand-alone winform app and could add a really cool feature if I could just get the URL of the active tab in the active browser window. Note that the browser would have focus...my app just sits in the background and based on the current URL, it would change the context of inf...more >>

Application start-up events without start-up form
Posted by John at 4/24/2008 1:10:51 AM
Hi My app needs to use the MyApplication_Startup and MyApplication_StartupNextInstance events but do not need the start-up form. How can I get rid of the start-up form as I can't select the Sub Main when application framework is enabled.? Thanks Regards ...more >>

Opening forms in background thread
Posted by John at 4/24/2008 12:00:00 AM
Hi I have a number of forms which open like this; Dim frm1 As frmForm1 = New frmForm1 Dim frm2 As frmForm2 = New frmForm2 Dim frm3 As frmForm3 = New frmForm3 Dim frm4 As frmForm4 = New frmForm4 ..... and so on and then finally open the first form with frm1.Show(). My question is,...more >>

App design advise
Posted by John at 4/23/2008 8:47:13 PM
Hi I have a third party telephony app that can inform of the any incoming call tel number by one of two methods; a) It can run a windows app with tel number passed as parameter, or b) It can run a vbscript with tel number passed as parameter to the script. My question is how can I desi...more >>

Big Problem with Tabcontrol
Posted by zorrothefox.groups@gmail.com at 4/23/2008 6:36:56 PM
Hi, I have an Windows Forms application written in C# which has a tabcontrol in it. The tabcontrol has many pages in it. Each tabpage deals with a specific feature in the application. e.g. Download, Upload, Erase etc. If I add all the controls directly to the tabpages, then that basi...more >>

C# Application Dies for Only 1 User
Posted by Erik Reiter at 4/22/2008 10:52:00 PM
I have rather odd problem and I am not sure how to go about debugging it. I have an MDI application that I am deploying on the local intranet to about 20 users using ClickOnce deployment. I am just using the default setting in Visual Studio 2005 to deploy the app to an intranet web server. It ...more >>



NullReferenceException from FolderBrowserDialog
Posted by ondrej421 at 4/22/2008 4:53:00 PM
Hi there, My application, which uses the FolderBrowserDialog, sometimes throws a NullReferenceException with the following call stack when calling FolderBrowserDialog.ShowDialog(): at System.Windows.Forms.UnsafeNativeMethods.Shell32.SHBrowseForFolder(BROWSEINFO lpbi) at System.W...more >>

Books recommendations please
Posted by John at 4/21/2008 5:50:32 PM
Hi I need to develop winform database applications and wondering is these two books will get me there; Data Binding with Windows Forms 2.0: Programming Smart Client Data Applications with .Net http://www.amazon.co.uk/Data-Binding-Windows-Forms-2-0/dp/032126892X/ref=wl_it_dp?ie=UTF8&coliid...more >>

Available Bluetooth Serial Ports in Vista
Posted by Dave Harry at 4/21/2008 11:45:40 AM
I'm using the following code to determine the available serial ports: ComboBoxPort.Items.Clear() For Each sp As String In My.Computer.Ports.SerialPortNames ComboBoxPort.Items.Add(sp) Next It worked well in XP, but under Vista (now with SP1) the Bluetooth ...more >>

ComboBox LostFocus
Posted by Arne Garvander at 4/21/2008 7:21:00 AM
1. I make a selection in a combobox 2. I click outside my window on the desktop Result: The Combobox lostFocus fires multiple times until my application blows up. How can I work around this problem? -- Arne Garvander Certified Geek Professional Data Dude...more >>

Egghead Cafe copying messages on this forum to their web-site
Posted by Bill Woodruff at 4/19/2008 9:10:10 PM
Hi, Recently I posted a message here on issues with setting ShowInTaskBar at runtime; no one's responded yet, but I am not complaining :) I've always felt that getting a response in groups like these is a "bonus," and I'm always appeciative of the generous gift of time by experts that goes...more >>

Datagridview sort
Posted by Arne Garvander at 4/18/2008 2:33:02 PM
When I click a column in my datagrid a sort occur. If I click the column with dates, it sorts in m/d/y order. I would like it to either sort in y/m/d order or I would like to turn off the sort. It seems like by date is in a text format. Maybe I can change the data type to datetime and the sort...more >>

Menu Item Access Keys Not visible
Posted by xakee at 4/18/2008 7:25:20 AM
Hello, I know this topic has been discussed before but my problem is kind of different. I have the following menu items, File View Tools Help Now i have checked "hide underline letters for navigation until i press the Alt key" in the desktop appearance effects. Now when i "click" on file...more >>

Bug in VS.NET 2005 for click-once deployment
Posted by CSharpner at 4/17/2008 4:26:24 PM
It appears there's a bug in Visual Studio 2005 when trying to deploy a click-once application (this is a completely different issue than my last post, in case anyone's keeping track). When I set my publishing settings, the first time, it works just fine. When I want to publish to a different ...more >>

isDirty
Posted by Arne Garvander at 4/17/2008 10:52:01 AM
Does a windows textbox have a property that tells if the user has entered anything into a textbox on a windows. -- Arne Garvander Certified Geek Professional Data Dude...more >>

Application.DoEvents() throws null reference exception
Posted by Bharathi at 4/17/2008 6:46:21 AM
Hi, I have an application where I have used Application.DoEvents() method on the click event of a NumericUpDown. This particular method is throwing "Object reference not set to an instance of an object" error.. Does anyone have any idea about it? Regards, Bharathi...more >>

Deploying native code.
Posted by Lamrin at 4/16/2008 11:36:00 AM
The scenario is we're about to release an exe to our clients. It's a winforms application that uses reflection, remoting, generics, and serialization. We want to protect the intellectual proprety rights of our code. One solution is to obfuscate the exe. I've come across some 3rd party so...more >>

s_URL’s_to_one
Posted by Mohammad S Najdawi at 4/16/2008 12:23:01 AM
Hi Guys, I have multiple domain names www.alnajdawi.com, alnajdawi.com, www.alnajdawi.net, alnajdawi.net as a host headers in IIS 6.0 I want to know how can I redirect all these URL’s to one URL www.alnajdawi.com, so if a user entered one of these URL’s he has to be redirected to www...more >>

GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?
Posted by DR at 4/15/2008 2:04:18 PM
GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist? When all my processign is done i set everything to null and then: GC.Collect(); and then GC.WaitForPendingFinalizers(); but it still shows that my process takes 400 MB of memory. Is there any ea...more >>

ClickOnce: Certificate cannot be validated
Posted by Tony Rogers at 4/14/2008 9:13:10 PM
Hi, We are signing our ClickOnce manifests with a code signing certificate purchased from Thawte. When we install the software a security warning is shown, and when we click on the publisher it says the certificate can not be validated. This is because the "Thawte Code Signing CA" is not ...more >>

Remoting
Posted by Joao Marcelo at 4/14/2008 4:33:18 PM
Hi, i need to share custom object with remoting. Ideas???? Please....more >>

Windows Virtual memory --minimum?
Posted by Patty at 4/14/2008 4:22:00 PM
How do I fix this problem ? It keeps poping up once in a while? Read out says that the virtual memory is low...more >>

c# forms programming book?
Posted by gigs at 4/14/2008 11:30:15 AM
what is good book for learning c# forms programming? thx!...more >>

Button stuck disabled when running under VS Debugger
Posted by Ben Schwehn at 4/14/2008 7:24:52 AM
Hello all, I'm experiencing a samewhat strange behaviour when running my Windows Forms app from withing Visual Studio 2008. The application is multithreaded and the workerthread fires an event that should enable a button in the GUI. I'm using BeginInvoke to call the method that enables t...more >>

First chance exceptions
Posted by John at 4/13/2008 11:01:21 PM
Hi When running my app in vs 2008 IDE I get the below messages in the Immediate Window repeatedly. A first chance exception of type 'System.NullReferenceException' occurred in MyApp.exe A first chance exception of type 'System.Runtime.InteropServices.InvalidComObjectException' occurred ...more >>

Form-to-Form Control
Posted by Thom Little at 4/13/2008 5:03:03 AM
I am using C # .NET Framework 3.5. I have a calling form that invokes dialog box (called form). I want a button in the called form to change the value of a property in a control in the calling form. Clearly I could set a return code in the called form and have it acted on when control is r...more >>

Accessing the status bar
Posted by BillG at 4/12/2008 9:17:57 PM
In my winforms app, I have a MainForm which has a panel on it called ContentPanel. ContentPanel holds a User Control which consists of a grid of records depending on whether it is customers, invoices etc. From within the user control which is sitting in the panel on the MainForm how can I acces...more >>

Can I create a Windows Explorer Icon type object in .NET
Posted by Roßert_G._Schaffrath at 4/12/2008 11:22:45 AM
I am trying to create a Windows Explorer icon type object in .NET that will display an icon image and have a label that works like the label on an icon in Windows Explorer; maximum two-line display that expands to full-size when selected and is editable. I would also like to be able to have...more >>

Creating GroupBox with Radio Buttons from enum using reflection
Posted by Gugale at Lincoln at 4/11/2008 5:55:06 PM
Hi, I am using reflection to read names from enum and creating radio buttons inside a groupbox. Everything is working fine. However, I am not able to adjust the size of the group box to fit the content. Is there a simple solution to this problem? Parent of group box is FlowLayoutPanel which...more >>

TableNewRow event handling issue
Posted by Bob Shiflett at 4/11/2008 5:35:00 PM
Greetings, Using VS 2005 SP1; I created a simple form by dragging and dropping a data table. I changed it to a details view, so I have a mixture of text boxes, combo boxes and a check box (no dgv). I want to programatically populate the controls when the user clicks on the Add New button, s...more >>

Saving file dialog
Posted by John at 4/11/2008 1:39:04 PM
Hi I am using an open file dialog which allows me to select a file to open. This is all great. But it does not allow me to give a filename and select folder to save the file to if the file does not already exist. How can I implement save file functionality? Thanks Regards ...more >>

Slow app response
Posted by John at 4/11/2008 12:01:58 PM
Hi I have replaced an ms access app with its vb.net version at a client site. Now the clients keeps complaining about how slow the app response is. The complains they have are for example when app is minimised and then trying to maximise it after a while takes a while for app to get maximis...more >>

Pagefile on iSCSI Disks
Posted by JasonF88 at 4/11/2008 8:42:00 AM
I'm having problems creating large pagefiles on os disk conencted via MS iSCSI Initiator. I'm guessing this is because the iSCSI disk is not available at the time Windows tries to create the pagefile, does anyone know a way arond this ? Thanks...more >>

Bootmgr. missing
Posted by Thomas M. at 4/11/2008 3:08:01 AM
Hey all you fine technological geniuses! I have seen some of you having some problem as I have encountered the last week. When starting up the computer says: 'Bootmgr. missing - press ctrl.-alt-delete to restart'. I think I might have tried everything you have suggested and more to it, but the...more >>

Upgrade to Vista Ultimate broke VS 2008
Posted by Chris Botha at 4/11/2008 1:05:01 AM
I had Vista Home Premium with VS 2008 - worked just great. Upgraded to Vista Ultimate - now with a Windows App the following happens: 1. Try to open Form1 in designers mode (new app or existing app), error = "The service Microsoft.VisualStudio.Shell.Interop.ISelectionContainer already exists i...more >>

Calling a form in second project
Posted by John at 4/10/2008 8:42:59 PM
Hi Can I run a from in one project from a second project, both projects being in the same solution? Thanks Regards ...more >>

ClickOnce Updates from a Different Publish Server
Posted by OscarM at 4/10/2008 1:32:04 PM
Hi, I'm currently using ClickOnce to deploy an application written in Visual C# 2005. The client has it installed already. I'm wondering if there is a way to change the client to point to a different publish server (http://66.x.x.x/app) to download updates without uninstalling and insta...more >>

PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this?
Posted by DR at 4/10/2008 12:26:03 PM
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this? ...more >>

Driving me nuts! How to do two-levels inheritance under UserControl?
Posted by Jeannot at 4/10/2008 8:49:43 AM
I have a few types of panels (each with different controls), which I will create dynamically and place on a form. I can make them UserControls if I need to. However I would like to have a base class for these, so that I have a class hierarchy like: System.Windows.Forms.Panel | | MyBasePa...more >>

tracking logged in User
Posted by BillG at 4/9/2008 10:26:38 AM
I have a winform app that validates a user against a table in my database. I want to track the user throughout the program for maintaining permissions to access parts of the program etc. In a web app, I would just throw the current user into a session varaible and access it from any webform. ...more >>

Keys.Control and Keys.ControlKey
Posted by Jeremy at 4/9/2008 7:47:38 AM
Does anyone know what the difference between Keys.Control and Keys.ControlKey is? Same goes for Keys.Shift and Keys.ShiftKey. What's the correct usage for these values? ...more >>

custom TextBox
Posted by cronusf@gmail.com at 4/7/2008 12:54:22 PM
Hello all, I wanted some advice on the easiest way to go about the following: I have some TextBoxes that are enabled/disabled at various times in the program. When they are disabled, the default is a gray background with dark gray text. Is it possible to customize the text color when the Te...more >>

Storing string with variable as app setting
Posted by John at 4/5/2008 11:20:49 AM
Hi I have a string expression which is evaluated based on value of a variable like this; "MyTable.MyField = (" & MyVar.ToString & ")" I need to save this expression as app setting so I can change it without having to recompile and reinstall the app every time. How do I do this? Creat...more >>

Click once issue & desktop shortcuts
Posted by eschneider at 4/4/2008 11:11:58 AM
Hello, The location of the Click Once Client update was changed (Cert expired), while the users desktop shortcuts remained from the Original install. I confirmed that the application starts using Start Menu / Programs, but not the old desktop shortcuts. This makes sense to me, but is there ...more >>

DPI issues
Posted by Jeff at 4/3/2008 8:18:00 PM
Are there any suggestions for developing large windows form applications (1000+ forms some with 30-50 controls on the form) in .NET 2.0 that scale properly in 96DPI and 120DPI. Microsoft ISV is discussing to switch to WPF but am curious on others have handled this. We are seeing labels...more >>

custom control size
Posted by cronusf@gmail.com at 4/3/2008 1:25:22 PM
I have a custom control that draws a special grid. The size of the control should be computed based on the number of rows and columns (plus some padding). Right now I set the Width and Height of the control manually in OnPaint() (based on the number of rows/columns). This is working, but I am ...more >>

How to modify HScrollBar
Posted by cronusf@gmail.com at 4/3/2008 1:17:55 PM
I want to do a control like this: http://img216.imageshack.us/img216/1629/ctrlib6.jpg The HScrollBar class almost does this. However, instead of rendering the scroll "knob", I'd like to draw text to show the position (e.g., in the image, it draws 13/16). Any tips on how to do this?...more >>

How to read sequentially from a random point in a large Xml File. (200 - 2000 MB)
Posted by Schwartzberg at 4/3/2008 12:59:08 PM
Hello Have a huge XML file with multitudes of "LogEntry" nodes / text lines. A small sample of this xml/text content is below. The file could be anywhere between 200 to 2000 MB. My questions comes in two parts. (A) I would like a solution (or ideas for it), in C#, -- to randomly access ...more >>


DevelopmentNow Blog