Answer Questions
Garegin Gulyan How: Cross Thread Operations
Hello everybody. What is the way of accessing something from another thread.... For example, I create an instance of a form and show it... Then I create a new thread and start a method in it.... On the last line in this method I want to close the previously showed form.... Could you point me some directions about this .... thank you in advance! I see! well you can simply call the close method of this progress form: this.Close(); //this being in the progress form alternatively you may need to invoke the UI using delegates. Check this out: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=564275&SiteID=1 question is, where is this really big function which you are going to execute in a thread is this in the ...Show All
wsalomon Can I set specified folder when I open saveas dialog in WebBrowser control using "ShowSaveAsDialog"?
I'm using VB.NET 2005. And it's winform. I'm considering that an Excel file be opened in WebBrowser control and saveas to the network folder. But, there is no way to set specified folder when I using "WebBrowser.ShowSaveAsDialog()" method. So, end-user have to remember the network folder they should save the excel file. Is there any way Thank you in advance. Maybe I'm wrong, but as far as I can get, there is no documented way to specify a folder for ShowSaveAsDialog function of WebBrowser control. Perhaps you may try something else, like using SaveAsDialog component instead, and pass the filename to WebBrowser control. Hope this help, -chris Thank you for your replying and ...Show All
DebroyV SelectionForeColor in DataGridViewLinkColumn
I have a DataGridView where one of the columns is a DataGridViewLinkColumn. The links are always displayed with the LinkColor, which is blue, even when the cell is selected. This means that when a cell is sellected the text is blue against a dark blue background! I've tried overiding the forecolor in the CellFormatting event and this has no effect. How can I make the links be displayed with the SelectionForeColor when selected, so that they are readable Good job. I converted to VB and it works fine. VB code below If TypeOf DataGridView1.Columns(e.ColumnIndex) Is DataGridViewLinkColumn Then If DataGridView1.Rows(e.RowIndex).Selected = True Then Dim myDataGridViewLinkCell As ...Show All
mohdtmn Problem creating a derived DataViewManager component: DataTable internal index corrupted
I have a component that serves as a read-only DataViewManager to which various controls are bound: public partial class PickListProvider : DataViewManager { public PickListProvider() : base(static_dataSet) { } As you can see, the DataSet containing the data is shared amongst all component instances. Here's the problem: From time to time it loads updated data in a seperate thread which seems to cause problems (one background thread updating the one static data set for all component instances). Im doing it like this: DataSet newData = remoting.Picklists.GetAll(); DataHelper.BeginChangeData(static_dataSet); static_dataSet.EnforceConstraints = false; static_dataSet.Clear(); static_dataSet.Merge(newData); ...Show All
thukralz Working with GridViews
When I select on field ( a checkbox ) in the gridview I want to make that given row only readable, how do I do it Thanks JM Adamus: I'll have a submit button to submit the changes, once the button is pressed I want to make this given row only readable and insert the data in a table. Thanks Thank you Paul. This is what I'm trying to do, when user see the Gridview he/she has a choice to edit some fields...one of the fields is an approving field, if the user click in the given box then the whole record should be only readable then it cannot be changed again. If this given field is filled or the box marked this user or any other user should not be able to edit it again, in other words make all the editable fie ...Show All
xlordt Visual Studio 2005 Reinstallation Critical problem
I was getting fata errors running my apps in the design apps, so I decided to uninstall and then Install Visual Studio Professional edition again. After the installation, when I open an existing form or even or adding a new form, I get all kind of errors wherever the System.ComponentModel is used. When I tried to edit the code - on doing a "System.ComponentModel." - the only function that comes up is Design. Where did all "System.ComponentModel.ComponentResourceManager" or "System.ComponentModel.IContainer"....... go................... Any help is deeeply appreciated..... thanks. ...Show All
A kid Possible to remove "SHIP" option from ClickOnceUpgrade?
Hello Is it possible to remove the ship button in the click once upgrade dialog We cannot let the users run with an old version. We have a buildin versioncheck that display an errormessage and exit the program, but the next time the user start the program he will not get an upgrade dialog at all. Yes, a typo there... Thank you! Hi, you're probably referring to the Skip button Set the minimum required version for your application, before publishing it [you'll find this setting under Project properties, Publish tab, Updates... button]. Andrej ...Show All
Microsoft_hates_me How to increase maximun folder/file path value
Hi All, Windows operating system do not allow user to create a folder/file whose full path is greater than 260 characters. For example if we try to create the following folder hierarchy in windows OS, it will not allow us to create the same because last folder's full path contains more than 260 characters: C:\This is my folder on level 1\This is my folder on level 2\This is my folder on level 3\This is my folder on level 4\This is my folder on level 5\This is my folder on level 6\This is my folder on level 7\This is my folder on level 8\This is my folder on level 9 In my current project we can't restrict user for the same, so using small names for the folders is not an option for us. &nb ...Show All
jiangtao.liu Install fails to register com objects on mapped drive
Due to reasons beyond my control, the product is sometimes installed to a drive which is mapped to a local folder. During install, the user selects this "drive" as the target location. The install copies the files then fails to register any com files which exist on that mapped drive. The error is "Module z:\xyz.ocx failed to register" I "continue" through the errors and the install finishes. I can then register the com files manually without any problem. What is the restriction that the installer's RegSelfReg has that regsvr32 does not rr12 Can anyone help me here ...Show All
Zero_ New Row Creation Problem
Why dosent this code create a row in the database CookBookDataSet . CookBookRow row = cookBookDataSet.CookBook.NewCookBookRow(); row.Titlu = txtbxTitlu.ToString(); row.Reteta = txtbxReteta.ToString(); row.Ingrendiente = txtbxIngrendiente.ToString(); this .cookBookDataSet.CookBook.Rows.Add(row); this .cookBookTableAdapter.Update( this .cookBookDataSet.CookBook); row.AcceptChanges(); Nefer-Ra wrote: Why is it there is so little help on this forums It drives many to abandon the Microsoft suite and stroll to more Linux-Type forums where there is always help ... is it SO hard to answer questions http://www.catb.org/~esr/faqs/smart-questions.html ...Show All
wolfman-x How do I get the prerequisits to install from my Setup.msi?
Visual Studio 2005 Profesional: I am using Windows Installer to create a Setup.msi. I want users to be able to download a 30 day free trial of my Windows app from my website. The download worked fine on my development computer. When I tried it from a friend's computer, with my download button linked to my Setup.msi file, it tried to get the prerequisits from Microsoft. This is way too complicated. I want it to be as simple as possible. In my Setup properties, I specified "download prerequisites from the same location as my application"! I entered my website in the installation URL. Why did it go to Microsoft instead of downloading it from my website With my download button linked to my Setup.exe file, I go ...Show All
jackrudolf How to navigate between muliple screens?
Hi, I am trying to create an winforms (v2.0) application and I need to use multiple screens. I am not sure how to create multiple screens that become visible/invisible when users click different menu items on the menu strip. 1)Should I use form inheritance for this How do I embed one form in another I can only get it to pop up a new form. I need to embed one for in another... 2) Should I use a panel to group the screen controls on and then make the panel visible and invisible depending on what menu item the user selects None of the above things have worked for me. Thanks David The forms need to be show in the main application window. I don't want separate windows which is the issue I am having. I only ...Show All
Socrates Kapetaneas Threading
Hi all, I have a Client Server Chat application in which i have created a server application that accepts messages and then sends back to the users. The client application is a thread that starts and connects to the server A list of connected clients is maintained in the db and is visible to all the clients. Now when the user selects a user from the list and starts a client to send a private message with that user, this message is sent to the server the server sends this message to the another user and a the client receives this message, Now when this message is received the client starts a new client window, The problem is this window is created but the controls on this window is not displayed. Any ideas will be ...Show All
Kestutis Updating a specific row in Access database
Hi, I have another question regarding my database application. After my other question being answered here , I was able to populate a listbox with data from a column of an Access database. I now need to edit a specific item of the listbox and then update it in the database. The idea is the following: below the Listbox is a Textbox and a button labeled 'Update'. The user selects an item from the listbox and then writes something in the textbox below. When the Save button is pressed, the content of the textbox replace the value of that specific item in the database. How can this be achieved Or is there an easier way similar to what I have in mind And I don't have a DataSource associated with my project. (please refer to the code for ...Show All
mrLarry1975 MS Word In C# Application
I need to have the ability to open a new word document or edit an existing one in my windows app. Once created or edited I need to then be able to perform a mail merge with data from a row in a sql table. I would prefer to open the word document within my form( is that possible ). I'm kinda new at all of this. Could anyone give any ideas on how to do this. Any help would be greatly appreciated! Thanks Curt Thanks so much for your help. I am looking into thise articles. Seems like there is a lot involved. Vertical learning curve here I come. Curt The following links might be useful http://support.microsoft.com/kb/316384 http://www.c-sharpcorner.com/ ...Show All
