Answer Questions
Tony1059 BackgroundWorker RunCompleted Not Thread Safe?
I created a StatusStrip using VS.NET 2005 Beta 2. A thread is started to grab data from a database. The StatusStripLabel is updated when a data row is changed/added. I put the codes that changes the StatusStripLabel inside a BackgroundWorker's RunCompleted event. Here's a sample of my codes: [ ... snip ...] private string _StatusMessage = ""; private void StatusChange ( string message ) { lock (_StatusMessage)   ...Show All
DavWein Default Settings to open a file...
Hi All, I've some .DLS file on my desktop which are read by another application. When i double click on the file it use to prompt for "CHOOSE PROGRAM" then i choose notepad to open the file and view the content. Now, after selecting Notepad someone has mistakenly clicked on "Always use the selected program to open this kind of file" in "Open With" window. This makes these .DLS files unreadable by another appli ...Show All
ISV Royalty Program How to change color of control's border ?
Dear all, As you knew, the BorderStyle property of controls (Ex: panel, textbox...) is : None, FixedSingle and Fixed3D. With FixedSingle, the border of control's color is black. I want to customize border of control is another colors, so what i should do Thanks for your help. Steven Probably you may want to draw the border yourself: Graphics g = panel1.CreateGraphics(); ControlPaint.DrawBorde ...Show All
Marchionni Daniele update button.text before api .wav plays
I have a button that increments it's text value by 1 when you click it. It then plays a .wav file by an Api Module Public Declare Function sndPlaySound Lib "winmm.dll" It works fine But I need to Know how can i update the&nb ...Show All
Jeff Coe Force XP Themes usage (even user turns it off in WinXP settings )
Hi all, As everybody knows we can use XP Themes to change visualistion to more futuristic (like Win XP does). I use <b>Application.EnableVisualStyles</b> and it works fine. But my question is: Is this possible to force using themes even user turns it o ...Show All
Cezary Again Winform Datagrid: Individual row height and Vertical Scrollbar
Hi, We are using Windows.Forms.DataGrid control in our application. Let me explain what i have done so far so it will easy to understand the problem: We have used DataGridIconColumnStyle for one icon column and second is DataGridTextBoxColumn for some other purpose In second column i am showing Comboboxes when user clicks on it directly. Now when user clicks on first column's icon, we are showing a big panel in second column in the same row wher ...Show All
dOUbleOfour Add custom button to a form caption
Hi, I'm looking for a way to add a custom button to a form caption (like and near the minimize/maximize boxes). Has anyone done that with Windows Forms I've searched the net for such an example, but with no success. Thanks. There's this& ...Show All
Martin Sommer How to find is a form already open in a Multiple form application
hi, Please tell me how to find if a form is already open so I won't open multiple copies of the same form in the application. many thanks. -VJ By the look of it. If a single instance is needed. You can scope the form object of that MDIChild to the Class, then detect if it's null. If it's not, then use form.BringtoFront(). Hi Paul, I'm opening the form from a menu ...Show All
freon Source code, server and future
So as several of you have noticed, the source code for 1.2 hasn't been released yet. I am trying to figure out what is the best approach for releasing the source code and the future of Terrarium 1.2. Here are the current thoughts.&n ...Show All
MPSIperson GDI+ borderless/transparent form bugs... No context menu in taskbar. Maximizes on top of taskbar.
Does anyone know of any workarounds for these bugs When I build a form with no border and transparency key (to make a non-rectangular custom-skinned form with a Region), I get no context menu in the taskbar (right-click -> move/resize/minimize/maxim ...Show All
csaba legany Casting EventArgs object to KeyEventArgs - is it possible?
Hi all , I am receiving a casting error message when I try to perform the following code... private void txtSnagDetailsActionBy_GotFocus(object sender, System.EventArgs e) { KeyEventArgs ke = (KeyEventArgs)e; } Is this type of casting not possible Tryst A better way to cast, would actually be the following (that way you are not excluding classes that derive from KeyEventArgs): KeyEventArgs ke = e as KeyEventArgs; if (k ...Show All
dreamw13 How do you turn 'redraw' off/on?
Hi, suppose you have written winform with a checkedlistbox. Suppose you have say, a dozen items in the collection. Then you have a button on the winform that will have a loop that goes through the list of items, and enables the checkbox& ...Show All
Vasudev Problem using FolderBrowser control in Setup project
Hi All, I am using Microsoft Visual Studio .Net 2003. I'm experiencing some problems using FolderBrowserDialog control in a Form run by an Installer class during the Setup process of an application. I have to ask the user to choose a folder for a one specified file during the Setup process. When I try to Browse for Folders, I get a Window showing only OK and Cancel buttons, the description and nothing more (the treeview does not appear) An ...Show All
DrP how to set timeout for a thread
Hi, How canI set timeout for a thread, so that if it hangs for sometime the thread times out automatically and does'nt get hung forever. Thats my thread private System.Threading.Thread tPollMcastThread; tPollMcastThread = new System.Threading.Thread( new ThreadStart( this .DoMulticastTest)); tPollMcastThread.Start(); Hi, Take a look at the Join Method: Join Method(Int32) That allows for a timeou ...Show All
Michelle Alexander - MS Primary Key Violations
Hi. I have a simply table called "DryingSetup" with the following fields. DryingSetupID : Int : Identity : Primary Key Description : VarChar(100) I have a DataGridView on my form the is bound to the above table. If I insert records one at a time in the grid and save after each of the record additions then all works 100%. If however I add a few records (4 or more) and only then click "Save", then I get errors. Some ...Show All
