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 > february 2008 > threads for february 8 - 14, 2008

Filter by week: 1 2 3 4

Communicating with a service
Posted by John at 2/14/2008 2:48:03 PM
Hi I need a vb.net winform app to be able to query a service (also written in vb.net) and get info in return. Is it possible? Is there a way to do this? Thanks Regards ...more >>


"Locked" controls?
Posted by Olaf Rabbachin at 2/14/2008 10:04:46 AM
Hi everybody, in a VB.Net (VS 2005) application, there is basically three "states" in which controls are to signal what can be done with them. Usually, values loaded into controls may be looked at, but not edited ("Locked"). In certain cases (simplest: user has the permission to change data), ...more >>

Textbox input from a customized location
Posted by Sujay Ghosh at 2/14/2008 5:07:01 AM
Hi, Environment : VS 2005 / .NET 2.0 / Windows XP SP2 Requirement : class MyTextBox : TextBox { // more code } When I run the application my text box caret blinks in its usual place ( at the left ). I want the cursor to be X pixels from the left of the text box and hence...more >>

Checkbox and selectnextcontrol
Posted by kiwisurfer in UK at 2/14/2008 3:34:01 AM
When selecting a Checkbox using the SelectNextControl() method, i've noticed that the checkbox does not display the focus rectangle. By writing a simple application with a button and two checkboxes (where the checkboes have a tab index value greater than the button's), invoking the SelectNe...more >>

Application settings
Posted by John at 2/13/2008 2:47:35 PM
Hi Is there an easy way to allow user to change application settings at run time short of editing the configuration file manually? Thanks Regards ...more >>

Saving Print Output to Database
Posted by HaySeed at 2/13/2008 1:28:01 PM
I need to save print output to the database for future retrieval. I assumed that the best way to do this was to use a BinaryFormatter to convert my PrintDocument to a byte array - strore the binary stream - then deserialize it upon recall. Unfortunately the PrintDocument is not serializab...more >>

datagridview binding and object properties
Posted by brianlanning at 2/13/2008 12:39:05 PM
Suppose I have an object that looks like this: public class thing private mOne as string private mTwo as string private mThree as string private mFour as string public property one as string bla end property (and so on, public properties for the others...more >>

Different color text in textbox
Posted by tshad at 2/13/2008 11:21:52 AM
Can you have different color text is a standard TextBox? I know you can in a RichText box but what about the TextBox. Same with bolding - can you bold one line of text in the text box and then unbold the next line? Thanks, Tom ...more >>



Selecting target net version
Posted by John at 2/13/2008 11:17:19 AM
Hi Is there a way to select 2.0 .net as target framework AFTER project has already been created or imported into vs2008? Thanks Regards ...more >>

Tabcontrol focus
Posted by Arne Garvander at 2/13/2008 11:10:02 AM
I would like to connect a tabpage on a tabcontrol with a function key. I know how to capture a function key. I can programmatically find my selected tabpage. Mytabpage.focus does not seem to do anything. Do I need to create a tabpage click event? -- Arne Garvander Certified Geek Professi...more >>

newlines in textbox
Posted by tshad at 2/13/2008 10:28:59 AM
I am using a TextBox as my status display and "\n" doesn't work. What would I use to go to the next line in a TextBox. I am doing something like: Status.Text += String.Format("Opening {0}\n",Path.GetFileName(strFile)); But the next line just continues on the same line. Thanks,...more >>

Can't see textbox control
Posted by tshad at 2/13/2008 9:40:10 AM
This makes not sense at all. I created a textbox on my screen and set the name property to "Status". If I double click on the textbox, it goes to the code page and shows: private void Status_TextChanged(object sender, EventArgs e) { } So obviously, it sees the...more >>

Application Frameworks for .NET
Posted by LP at 2/12/2008 10:31:17 PM
Hello, We are about to start a big project replacing legacy application with an application that will be developed on .NET framework. Some people on our team have experience with application frameworks in Java and FoxPro, and they want to use some equivalent frameworks in .NET like Spring, CSL...more >>

Single instance app
Posted by John at 2/12/2008 3:28:24 PM
Hi Is there a way to ensure that an app is only run once and if it is run twice it terminates? Thanks Regards ...more >>

Minimize + NotifyIcon
Posted by MPF at 2/12/2008 8:44:27 AM
Thanks in advance for any assistance. I'm developing a "panic button" application where the user single clicks on a notify icon to activate a window, then clicks on a button to send a broadcast to connected clients, then I minimize the form to hide the notification. The issue is, when the f...more >>

laoding data from csv file
Posted by AVL at 2/12/2008 3:55:03 AM
Hi, I've a requirement to load the data froma csv file to sql server table programaticlly.. I'm working with .net 1.1..so i can't use sqlbulkcopy concept.. which is the best approach to load the daat wrt performance... as of now, i'm planning to populate into a dataset and loop through th...more >>

datetime help
Posted by AVL at 2/12/2008 3:55:01 AM
Hi, I've need some info regarding datetime conversions.. I've a string in the below format'"dd/mm/yyyy"..I want it to be converted to Datetime object with the date format as "mm/dd/yyyy" I've used the below code.. Dim provider As IFormatProvider provider = New System.Globalization.Cu...more >>

Autocomplete with custom filter behaviour
Posted by Roberto at 2/12/2008 12:36:59 AM
Hi all, I'd like to have a textbox column in a DataGridView with autocomplete functionality, but the default behaviour (get with AutoCompleteMode, AutoCompleteSource and AutoCompleteCustomSource properties) filters the items from the initial letters (e.g. if I press 'A', in the AutoComplete ...more >>

Wpf Browser Application and resources
Posted by Marek Kolesar at 2/11/2008 10:36:31 PM
Hi ... i develop now Wpf Browser Application ... now i have very ease web app ... i have only 1 page wit h 2 buttons .... in resources added file languages.xml resources acces modifier set to public and now my problem .... how to load this resource ? i try a few function .. but eve...more >>

Assigning datasource to combo box
Posted by John at 2/11/2008 9:58:30 PM
Hi I am using below code to fill the drop down list of a combo box from a table in the dataset; Dim dv As New DataView(ds.Companies) Me.txtParent.DataSource = dv Me.txtParent.DataMember = "Company" dv.Dispose() dv = Nothing Unfortunately no data turns up in combo box. What am I doing ...more >>

How to change forms title color and it's font..
Posted by Amb k at 2/11/2008 7:40:03 PM
IS there any way to change the forms title color and font type to some other color and font type? (vs2005) ...more >>

.sdf?
Posted by Elmo Watson at 2/11/2008 3:18:43 PM
I just tried something in VS.Net 2008 that gave me a little surprise (using SQL Server 2005) I've had previous 2005 projects, in which I've added a new database to the project, and it gave me a .mdf file, However, my surprise came when I got MyDatabaseName.sdf I'm assuming it can be used...more >>

KeyEventArgs
Posted by Arne Garvander at 2/11/2008 2:46:02 PM
I know how to capture keys when I am focused on a textbox. I would like to capture a help key, such as Alt+1, when my focus is on a arbitrary point on my windows form. How do I do that? -- Arne Garvander Certified Geek Professional Data Dude...more >>

DataGridViewRadioButtonColumn
Posted by DJE at 2/11/2008 9:42:43 AM
Using DataGridViewRadioButtonColumn/Cell (http://msdn2.microsoft.com/ en-us/library/aa730882(VS.80).aspx) I want to select in all rows, 1 of 3 radiobuttons in a column of my datagridview programmatically. I am trying: string selectedRadioButton=1; foreach(DataG...more >>

Changing string Format
Posted by deepak at 2/11/2008 9:03:02 AM
Hi All, How to convert the 1st format of string to 2nd one in vb.net 1st(datetype string) : "2/12/2008 6:00:00 PM" 2nd(datatype string): "2008-2-12T17:00:00" note: in 2nd string ,the T is just a alpahbet Thanks, Deepak...more >>

Microsoft XP Pro 64 Bit..Title Bar is gone.. How to fix without re
Posted by eaemnc at 2/11/2008 6:32:00 AM
Microsoft XP Pro 64 Bit Title Bar is missing. I have no Minimize, Maximize and close option. On a Maximized page for Internet Explorer, the Title Bar is black above the: website, locked site, refresh icon. On a Maximized page for a Microsoft Word Document, the Title Bar is black abov...more >>

do you drink/use your own pee/urine for health/peace/memory improvement
Posted by erach27@gmail.com at 2/11/2008 1:33:53 AM
---------- Forwarded message ---------- From: Erach <erach27@gmail.com> Date: Feb 11, 2008 2:38 PM Subject: Re: ghee-water-sugar therapy butter-water-sugar therapy To: Dr Rakshak Mal Lodha <rakshakmal@gmail.com> Cc: lodhas-urine-therapy@googlegroups.com Dear Dr Lodha, I had significan...more >>

Creating Smart Tag Designer
Posted by Jack Jackson at 2/10/2008 5:23:48 PM
I'm trying to create my first Smart Tag designer in VB 2005 but am unable to create a class derived from System.ComponentModel.Design.DesignerActionList. Public Class xx Inherits System.ComponentModel.Design.DesignerActionList gives on the Inherits line the error: Type 'System.ComponentM...more >>

Bound controls do not copy across data to underlying data row
Posted by John at 2/10/2008 2:37:57 PM
Hi I have a small app with bound controls that do not seem to be copying across the data entered into them to the underlying row for the update. This one really has me stump even though these are very simple steps and I can't see where I am going wrong. Any help would be appreciated. The...more >>

DataGridView Column Headers from First Row of Excel DataTable
Posted by noip@joekerswild.com at 2/9/2008 8:06:07 PM
I'm sure this is something ridiculously simple or just not possible without custom coding: How do I tell a DataGridView NOT to create column headers from the first row of a data table using an Excel datasource? All I want to do is have the first row of data from the Excel worksheet be the f...more >>

Concurrency error deleting record with vs 2008 generated code
Posted by John at 2/9/2008 4:06:52 PM
Hi I have a very simple db app that was created by dragging a couple of fields onto a windows form. No additional code was added. The problem is that app gives a concurrency error while deleting a record even though no other user has access to the app. Steps to create problem 1. Creat...more >>

How SQL Express works with an application
Posted by Elmo Watson at 2/9/2008 3:03:02 PM
Let's say I build an app which includes a new sql Express database. I build the database and it's a totally independent .mdf file When it's distributed with the database file, does the end-user need to have SQL Express installed on his computer, or will the application work with the databas...more >>

ClickOnce "skip" update is not reprompted
Posted by Bill Fuller at 2/8/2008 8:36:00 PM
If ClickONce detects a potential update and the user selects to skip the update, it appears that they are not reprompted after that. Is there some why to not allow a "skip" option? ...more >>

How do I resolve a "401" error on a ClickOnce deployed application
Posted by Bill Fuller at 2/8/2008 1:11:04 PM
I have a ClickOnce applicaton that has been published to a remote server. It requires logging in. However, when running the install it fails with a "401" error... I am not sure why since we are able to log onto the install page. Anyone have an idea on how to diagnose this? ...more >>

Create/Send Office Outlook Email
Posted by jp2msft at 2/8/2008 11:32:01 AM
I've got some forms that our internal application has generated, and our departments want the ability to email these reports to others. Whenever I create HTML pages, I can display them quickly using: Process.Start("IExplore.exe", m_strPhoneFile); // C# How would I go about sending an Offi...more >>

windows form in service
Posted by Raan at 2/8/2008 7:40:25 AM
hi all, i am creating a windows service. i have created a windows form on the same. when i logout the windows form get closed. Is it possible to only hide the form at the time of logoff. i want that my form remains till the windows service is not stopped regards, raan...more >>


DevelopmentNow Blog