Answer Questions
sapaplanus Form background problem
Hello everyone, In my MDIParent form, I've pointed my background image. What happens, is that it fills the space with copies of that image... Is there any way to center the background, instead of tile (think that's the name of this "style&quo ...Show All
Irishmanco DGVComboBoxColumn gives ThreadStateException
I'm having a problem when selecting cells in a DataGridViewComboBoxColumn. Each time a cell is selected I see the following error: "DataGridView Default Error Dialog: System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you Main function has STAThreadAttribute marked on it. ..." Firstly, I don't use any Main() methods in my application.  ...Show All
jblakelytx Security Pane
Hi, Whenever I click on the Security Pane in the Project Designer, I get the following error. I am using Whidbey Betat 2 on Win XP SP2 machine. Is this a beta bug I know i can configure it using Mage, but just wanted to see the Security Pane. --------------------------- DataGridView Default Error Dialog --------------------------- The following exception occurred in the DataGridView: System.ArgumentException: Value does not fall within the expe ...Show All
ChasWorth Set my application to be on top!?
I'm developing a windows application using VS2005 and C#. My application is composed of various modules/projects: 1 is a WIndows Forms executable that contains the main form. All the others are c# class libraries. However, all the class libraries contain windows forms that are instantiated from the main form. Right now I'm having an issue when opening my login form. The process is more or less like this: The Windows Application Executable runs, ...Show All
MuppetMonkey C# and Crystal report creating a report
Dear all, I am using C# creating webform application and I am using the crystal report creating reports in the Visual Studio 2003. I have a report that is shown as the following:- Quotation Hire Date Date   ...Show All
adamhearn best practices question: setting application focus
So there are two applications, Cow and Sheep, animals from the same farm. User clicks on something in Sheep which sends a message to Cow, who opens up a Cow.Milk form and calls .BringToFront on it. The Sheep still has focus. But, the Cow.Milk dialog is hidden behind the sheep application. I was hoping that Cow.Milk would show up on top of the Sheep app, but with the focus still on Sheep. However, the user can't see Cow.Milk until they focus anyw ...Show All
Stephen020960 No FindString method in ListView! What to do?
Hi All, I had a dapper little ListBox which showed an index of files in alphabetic order. Above it, I had a textbox and when the user started typing in a file name, I could use the ListBox.FindString function and select the first matching file. Now, I also wanted to do some drag and drop and found that ListBox didn't have the DragItem event (and others) but that ListView does. Switching to ListView thus improved certain things. However, ...Show All
jreyes97 Obfuscating Web Reference Problem
Judging by the number of posts (less than 10) that discuss obfuscating applications, I'll probably not get much input on this matter but here goes anyway. I have a windows application that calls a webservice to license the product. If I obfuscate&n ...Show All
Stephen912 launch winform apps from winform apps.
This is probably a simple matter, But I can't find a reference to it. I have a VS.Net solution that contains two forms applications. I need to be able to launch them independently so they are set up as two seperate applications. I also want to& ...Show All
VCProgrammer threading
i have two question: 1. my code starts two threads. I want to check something only after both of them are finished. I did it by creating two booleans and changed their value in the Completed event of both of the threads. Is it the right way to it here is the code: private void StartTwoThreads_Click(object sender, EventArgs e) { BackgroundWorker bgw1; BackgroundWorker bgw2; bgw ...Show All
Silverdragontech Global Parameters needed ...
Hi, I'm using C# for a Windows Forms based application. I need to share across several classes/objects some global parameters like path names. So far the only method I found is to pass to each class constructor a pointer to a class that contains my parameters. Does anybody knows how can I define Global Parameters to my application Thank you namespace MyApplication { public cl ...Show All
RLyda Updating image of single listview item?
Hi is there a way to update just a single item instead of the whole view Example: ... myListViewItem.ImageIndex=-1; myListViewImageList.Images[0]=new Bitmap("somepic.bmp"); myListViewItem.ImageIndex=0; //now do update the item ... The effect I would like to achieve would be the only redrawing of the updated item. You can simulate that by clicking on the updated item. Tthis causes to redraw only the selected item. Greetings ...Show All
Marko Mihovilic When will the WinForms control reflect the results of data binding
I have a CheckedListBox which draws its contents from a datasource, and this is set at design time. When the form loads up, there are 8 items in the CheckedListBox, but no matter where I seem to intercept events before the form appears, there&n ...Show All
Scott Lloyd Can't apply a DataGridTableStyle to a Datagrid
Hello, I've this code: Private Sub BuildDgStyle() Dim dgStyle As New DataGridTableStyle dgStyle.MappingName = Me.Tabella Dim colCodice As New DataGridTextBoxColumn col ...Show All
Steven Muise Help with custom DataGrid control
I have created a custom DataGrid control which implements a custom property HighlightRow of type Boolean. I have another custom DataGridTextBoxColumn class, which Overrides the Paint method in order to facilitate row highlighting. My question is how I can a ...Show All
