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 > january 2005 > threads for january 1 - 7, 2005

Filter by week: 1 2 3 4 5

Nested Groupbox with FlatStyle.System painted wrong
Posted by MarkoH at 1/7/2005 10:38:48 PM
Here - http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=31fe5781-fa8f-410d-8177-7977311094b6 and here - http://www.developerspot.net/archive/2004/12/27/213.aspx This happens in .NET Framework 1.1 SP1 and it seems in 2.0 too, but it was resolved there. It stays in...more >>


UnsafeNativeMethods.CallWindowProc NullReferenceExceptions
Posted by Matt Garven at 1/7/2005 4:54:11 PM
We are receiving error reports with NullReferenceExceptions from our users with stacks like the following: at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.NativeWindow.DefWndProc(Message& m...more >>

How to add toolbar to a stand alone windows form exe?
Posted by Chi Tang at 1/7/2005 4:35:09 PM
Hi, I tried to add a 'toolbar' to a windows form but I did not know what to do next (to add buttons). Is there any .net samples for this? Thanks in advance. CT ...more >>

TextColor
Posted by saurabh at 1/7/2005 4:06:11 PM
I want to change the color of the text shown in a textbox. Is it easily achievable in C# ? TIA, --Saurabh ...more >>

Dynamically adding array of buttons to form
Posted by Hrvoje Vrbanc at 1/7/2005 1:34:57 PM
Hello all, I'm relatively inexperienced with Windows Forms programming so I have one question: what is the best way to dynamically add e.g. 100 buttons in 10 x 10 pattern, each button with different text (numbers from 1 to 100), but with very similar event handlers (each time a certain numb...more >>

Dynamically Access Control
Posted by Casey at 1/7/2005 11:43:15 AM
I have 26 different panels. I'd like to access their properties dynamcially, determined by which "spot" is selected. Here's what I've thought of... Private Function getSpot(ByVal spot As Int16) As Control Select Case spot Case 0 Return Me.pnl0 ...more >>

Writing a simple parent-child dataform
Posted by Danny Liberty at 1/7/2005 10:25:51 AM
Hi, I have a simple windows form with a few textboxes bound to a table in a dataset and a datagrid bound to it's child table. I am trying to perform a very simple task : Programatically add a record to the child table. Of course I can do this using the Rows collection and the Add method, but ...more >>

Pros/Cons of Different Image Formats
Posted by Cole at 1/7/2005 10:20:26 AM
Hi all, I am making several forms that will make heavy use of images to create the look and feel of various controls. I typically have just used the bitmap format to store all of my images. Can anyone give me an idea of what the pros/cons of using other file formats (jpg,gif,png) to store ...more >>



Disabling A Tab Page on A TAb Control
Posted by mh1mark at 1/7/2005 5:47:07 AM
I have a tabcontrol with three tab pages on it and I would like to prevent a user from clicking on another tab page until he has finished entering data on the current page. Is there a way to disable the other tab pages like you would disable a button?...more >>

Text Auto-completion
Posted by Samir at 1/7/2005 4:47:01 AM
Hi All, I am developing an xml editor, inwhich I want to include text auto-completion. When I finish entering start element (ie.<Hello>) on rich text box, the end element (ie.</Hello>) should be entered automatically and also the cursor is automatically positioned in between the start element...more >>

C++ example for threads?
Posted by Dr. Pastor at 1/6/2005 10:45:11 PM
I would like to find C++ example for creating two or more threads, each with its own window, in a .NET and windows forms environment. (No luck in Code Project.) Thanks for any guidance....more >>

Application-Spanning Shortcuts
Posted by edx at 1/6/2005 5:17:02 PM
Hi, I have an application consisting of a parent form and several child-forms. The parent form has a menu and uses the default shortcut CTRL+O to open files. I would like to have the shortcut available in the sub-forms (which are owned by the main window) as well. If I remember correctly this...more >>

Using NET controls in VB 6
Posted by Bob Costello at 1/6/2005 2:29:04 PM
I have a control that was derived from TextBox. I needed special formatting behaviour. Is there any way I can make this usable in a com aware client, for example, VB 6? Thanks in advance. ...more >>

embed Excel file in Windows Form
Posted by Marc Miller at 1/6/2005 12:53:57 PM
Does anyone know of a way to display an existing .xls file in a windows form? Or even references to articles showing how to do this? Is it possible? TIA, m. miller ...more >>

CryptoStream
Posted by Fred Herring at 1/6/2005 11:41:04 AM
If this is not the right new group for a question about CryptoStream please point me to the right place. I have looked at several vb.net code examples for Rijndael encryption but have a couple of questions. My questions concern the byte arrays for key and IV. First, do I provide the key s...more >>

Color a Row in Datagrid
Posted by Rekha at 1/6/2005 11:19:03 AM
I want to display a datagrid with values from a dataset(using Windows application). That works, but now, I want to color the row red if a certain field is empty Can anyone help me? Thanks in Advance Rekha...more >>

Delivering of aspx pages fails
Posted by John at 1/6/2005 10:27:51 AM
My WEB is served from Win2K with sp 4 as well as a 2003 server. All patches and upgrades are in place on both machines. The issue is that my WEB delivers properly, accessing SQL, delivering all information except for five pages and then the browser times out and I get an error message that the ...more >>

Override Localized Resource Resolution Hierarchy
Posted by Eric Goodson at 1/6/2005 9:21:03 AM
Is it possible to override the resource resolution hierarchy of the windows forms resource manager? Basically, I want to create multiple resource files underneath each culture so that an application can have multiple form layouts for each supported culture. Then whenever a form is created, I w...more >>

Object reference not set to an instance of an object.
Posted by Christer Feldeus at 1/6/2005 8:33:01 AM
I’m writing a Windows application with VB.NET. The application I’m creating using a user control which I have written. The user control has some buttons, Panels, Combobox and a Rich textbox. The user control would like to edit some text in the textbox but getting problem. (My Rich textbox ...more >>

TabPage with Comctl32.dll, version 6
Posted by Alexey Vorobyov at 1/5/2005 7:03:03 PM
Hi, I need to show in my application icons with Alpha-channel, so I need to use manifest. And that works fine. But there is a side-effect. Now my TabControl looks strange. Active TabPage has white rectangle as a background. How can I avoid this? TIA, Alexey Vorobyov...more >>

"Cannot access a disposed object" - weird exception.
Posted by bajy NO[at]SPAM intizen.com at 1/5/2005 6:26:54 PM
Hi, //SITUATION I got a panel control that hold a certain position on a form. Every controls or UIs are on this panel. At certain situation, I called dispose() method of this panel control and change it with other panel which contains other business logic and UI controls. //ACTUAL CODE...more >>

Remove Registry keys
Posted by Jeppe Dige Jespersen at 1/5/2005 2:54:34 PM
How would I get key the Uninstaller to remove any keys from Registry that I created during installation? thx /jespersen ...more >>

ListView and ImageList problem - disappearing icons between runs.
Posted by Rik Hemsley at 1/5/2005 12:00:03 PM
Hi, I'm using a ListView in Details mode and have assigned an ImageList to it via its SmallImageList property. If I make a trivial change to the code of my application, and then run it, the images show up within the ListViewItems as expected. The next time, and each subsequent time, tha...more >>

DataBindings documentation
Posted by Al Smith at 1/5/2005 8:36:55 AM
Hi, Last Nov, Neil Allen gave the response I have copied below that forces a = control to update itself. The control updates itself in response to an = event that I raise. I have built a test program and this works great = and what is exactly what I was looking for. What is not so great, is...more >>

Infragistic suite of Windows Controls
Posted by Craig Adams at 1/5/2005 8:03:04 AM
Does anyone have any experience with Infragistic products? I am evaluating them for purchase and I am looking for real life experiences as to their quality and ease of use. I have read some glowing reviews and them seen some reviews that assert that the Infragistics components are extremely...more >>

Inheriting from TabPage
Posted by Diego Deberdt at 1/4/2005 11:14:52 PM
I have a form with a TabControl on it. I would like to create customized TabPages. I have added a few class to my project that inherit from TabPage. I can create instances of my customized TabPages and add them to the TabPage collection of the TabControl. I would like to use the Visual Editor to ...more >>

Getting a text box to focus on application start-up
Posted by scparker62 at 1/4/2005 10:49:01 PM
I'm writing a C# program that I want to have the first text box be in focus on start-up. I am using a Text-to-Speech engine to speak the contents of each text box, so when the program starts, I would like to be able to speak the contents of the first text box. I've hooked the text box event E...more >>

Label / TextBox Hot Keys
Posted by scparker62 at 1/4/2005 10:43:01 PM
I'm trying to write a C# program that will allow the user to navigate to different text boxes using Hot Keys (ie Alt+P). I also want to have the label for the text box display the hot key for the associated text box. I know how to do that, I just don't know how to associate the Hot Key with ...more >>

External componenet has thrown an exception.
Posted by Doug Bratton at 1/4/2005 5:27:17 PM
HELP! OK. I have a Windows form with a tab control. On one of the tab control tab pages, I have an panel. On this panel I am dynamically creating a variable number of customized Buttons based on stored records from a database. For each button, I am over-riding the MouseUp like so to ope...more >>

Problems creating a custom shaped MDI Child Form
Posted by Roger.Smith at 1/4/2005 4:10:32 PM
I have just created an MDI project in VB.NET. I was trying to enhance the looks of a form by making it have a unique shape. I followed the directions from a MSDN article that uses a bitmap for the background, removes the title bar, and sets a transparency color (thus allowing a custom shape ...more >>

exception not propagating correctly
Posted by RRIMSDN at 1/4/2005 3:33:15 PM
Note this is a repost of an earlier thread (from Dec 2004) under my new, no spam MSDN alias since Microsoft changed the no spam alias rules and didn't tell anyone (you have to re-register a no spam alias to get a special domain extension in order for Microsoft to respond to posts). --------...more >>

obfuscate
Posted by Pascal Cloup at 1/4/2005 12:21:40 PM
Hello, When obfuscate a localized windows form application, the resulting assembly always shows the Forms in the default language. Someone have a solution? thanks in advance, Pascal ...more >>

.NET framework apps in Terminal Server
Posted by ranga at 1/4/2005 8:05:02 AM
hello >> are there any issues with running .NET framework apps written in vb.net/c# in a terminal server environment?. If so, any pointers would help thanks ranga...more >>

Multiple Events in a single method
Posted by Forch at 1/4/2005 5:41:05 AM
Hello everyone... I have 4 buttons (Button_1, Button_2, etc...), and I want to call the same method regardless of which button is being clicked. Once I am in the event, how do I know which button was pressed? Or do I have to call a separte method for each button? Or is there magic with ...more >>

Drag and Drop Message from outlook
Posted by martinwlarsen NO[at]SPAM online.nospam at 1/4/2005 12:31:08 AM
I have made a little app that accepts drag and drop from all sources but when I drop a Outlook Email the FileContents is always null. Is there any Microsoft documentation on how to correctly access the .msg using drag and drop from outlook? BRGDS Martin ...more >>

MessageBox and Form load
Posted by Jaydeep at 1/3/2005 7:43:19 PM
Hi, I am getting this error when I wrote MessageBox.Show("message") in my Form_Load event. 'System.NullReferenceException' occurred in system.windows.forms.dll' I am developing windows based C# application My solution structure is like this. 1. Test Application(TestApp) Startup project ...more >>

OT: Replacement for Adobe Acrobat
Posted by Simon Verona at 1/3/2005 7:13:58 PM
I'm using the free Adobe Acrobat ocx that comes with Acrobat (v6) to view and print pdf's within a Windows Forms application. This works, pdf's display and print fine. The problem is that acrobat takes several seconds to start up when the pdf viewer form that I've written is first used, and d...more >>

wiring events
Posted by Harshad at 1/3/2005 3:25:07 PM
Last month Bruce Wood responded to my question as below. Can some one give me a little more detail how to "connect up" as mentioned here. Bruce, are you there? Help again, please. 1. If the purpose of MyClass is to interact tightly with a tree view and nothing but a tree view, and that'...more >>

Outlook Style Calendar Control
Posted by John Smith at 1/3/2005 3:08:20 PM
Hey folks, Is there a .Net Windows Forms Control which looks like the Outlook Calendar? All I can find is the Drop Down Calendar control, but I don't want it to be drop down, and I need to be able to write text on the individual days. I'm pretty sure ASP.Net has one. If Windows doesn't hav...more >>

New Thread
Posted by John Smith at 1/3/2005 3:03:54 PM
Hey folks, This is really simple, but a little hard to explain, so bare with me. I have a C# MDI application. On one of my child Windows there are multiple tabs. One of the tabs is fully populated by a User Control which has on it a 3rd party control. The 3rd party control runs very slow ...more >>

datagrid memory leak?
Posted by cyberstrike at 1/3/2005 2:17:04 PM
okay, I have a wierd problem. first of all, when my app loads, it uses a lot of memory. Most of which goes away if I minimize and reopen the application. Second problem is that I have a datagrid on the application and as long as a mouse is moving over the datagrid, it keeps accumulating memory...more >>

Programming with Dual Monitors
Posted by Ben Dunn at 1/3/2005 2:07:58 PM
Is there a way to control which monitor a form is displayed in with VB .NET? We are running on Windows XP with a Matrox Dual Monitor card. ...more >>

Control Addition safety handling
Posted by joeycalisay at 1/3/2005 1:49:41 PM
I was curious about the following scenario but couldn't find the exact handling using disassembler: What happens if an instance of a control already added in the Controls collection of a form is added again? Is there a reference check on each control addition to handle the said scenario? I...more >>

Clicking a button and pressing Enter key act different in MDI clie
Posted by tsiGeorge at 1/3/2005 12:45:09 PM
In our app (see: MDI Client problem - second try) clicking a button hides (me.visible = false) the current client window and displays another client window (form.show the first time and then me.visible = true thereafter ). We have just noticed that if you tab to the button and press Enter the ...more >>

Drag Drop Data pictures to my Form
Posted by ravisingh11 NO[at]SPAM gmail.com at 1/3/2005 12:43:03 PM
Hello all I have a C# application, with two pictureBox 's I can successfully load an image in one of the box drag and drop to the other box. I want to expand this concept so I can drag and drop images from folders, and other applications. I think I have to use .NET remoting for this. Any id...more >>

Obtain default curtom control size
Posted by MuZZy at 1/3/2005 11:24:40 AM
Hi, I just wonder if someone can help me: I've built a custom UserControl which i use in several apps. Is there a way to obtain it's size (height, width) without actually creating it? Do i need to use reflection to invoke Size property or is there an easier way? Thank you, Andrey...more >>

ListBox:: How to get datavalue
Posted by strout at 1/3/2005 11:19:08 AM
In web ASP.net List Box can get the DataValue on selected Item easily. Is there any way I can get DataValue on a Winform ListBox Selected Item? I don't want to use Ctype(selectedItem, DataRowView).Item("ColumnName").toString, neither SelectedItem("ColumnName").toString will work.... Bec...more >>

Text not being displayed in a Msgbox
Posted by Brandon at 1/3/2005 10:39:03 AM
I was trying to create a simple Hello World application with .Net and when the Message box appears it is blank. There is no text visible on the form or on any of the buttons. If you have any ideas how to fix this problem I would appreciate it....more >>

Adding/Updating assemblies in GAC during runtime and not during Se
Posted by michael at 1/3/2005 8:07:04 AM
Is there an API or suggested technique by which I can add/update assemblies to the GAC during the runtime of my application instead of exclusively during the Setup of the application. I would like to be able to update some libraries without having to completely reinstall the application. ...more >>

MessageBox and Focus
Posted by WhiskyRomeo at 1/3/2005 7:57:05 AM
I have a message box that pops up when there is a problem after a user clicks on a button. After the user clicks OK on the message box, I need the focus to return to a different control (a textbox). Intuitively, you would think the line MyTextbox.Focus after the MessageBox.Show line woul...more >>

Label with Transparent Background
Posted by WhiskyRomeo at 1/2/2005 3:05:03 PM
I need to have text displayed over a picturebox with an image in it. When using a label whose BackColor = System.Drawing.Color.Transparent, the background is not transparent. I came across this explanation as to why .Net does not support transparent backgrounds. ************ [In Visual...more >>

Inheritance in forms which inherit template forms
Posted by michael at 1/2/2005 10:17:03 AM
I have this "template" form which is based on System.Windows.Forms.Form. I created a new form(the derived form) which inherits this form. I have observed that if, at runtime, I run through all of the controls in the controls collection of the "template" form, I can have access to all the co...more >>

Problem with FileSystemWatcher/Tray Notifier App
Posted by Paul at 1/2/2005 9:39:22 AM
Hi, I've been developing an application in VB.NET that uses the FileSystemWatcher and a popup notification in order to tell me when files have been downloaded. The FileSystemWatcher code in my project is basically the same one thats floating all over the VB.NET sites (by Jayesh Jain). T...more >>

Resource Files, Satellite Assembly - newbie
Posted by vb at 1/1/2005 6:35:02 PM
This has been bothering me for the last couple of hours. Here is what I would like to do. I want to create a sample when a button is clicked, depending on Culture I would like to display the flag. What I did was create a resx file using ResxResourceWriter and AddResource Method. I includ...more >>


DevelopmentNow Blog