Answer Questions
chris441962 How can I make update version for application which was signed with certificate now expired?
If I change expired code signing certificate to new one and publish updated application, client will fail to launch. And code signing fails if I try to use expired certificate. How can I make update version for application signed with old certificate I can verify that this is a problem with Verisign certificates too. I just renewed mine, updated my software, and found out it will no longer work unless I uninstall the old version first and then install my new version. This is a unbelievable oversight on Microsoft's part if there is no fix for this. How can they promote the Clickonce technology, encourage people to sign their code, and tell them about all the benefits of using this technology whe ...Show All
licheca MessageBox from worker (Non-GUI) thread
In a C# (.Net 1.x) application, when a user clicks on the "Run Update" button, I launch a function DoRun() in a worker thread Question 1: I need to bring up a confirm dialog while the function is running based on some condition. That cannot be asynchronous. Is it generally Ok to bring up the Dialog (MesageBox.Show.....) from the worker thread If not, what is the way to do this synchronously on the GUI thread Question 2: I need the command button (btn_run) disabled at some point in the function, and then enabled again at the end of the function. While I know how to define delegates and do this with BeginInvoke, is there a simpler way, since I have a lot of buttons and do want to define a separate function to delegate e ...Show All
Blake01 app.application Publish file
Hi, I know this has already been posted, but I need to get it clear in a simple way. The 'app'.application file is created when you publish an application to a web/ftp server, along with other files. The publish.htm page shows a button linking to the 'app'.application file and I can correctly install it, but a friend of mine (and maybe many more people too) get the 'app'.application file contents displayed in his browser. He has the .NET Framework 2.0 installed (installed automatically with VB 2005 Express), and I would like a simple solution to resolve this issue, without reinstalling .NET 2.0 (unless you are sure it resolves it). I also heard that it has to do with MIME types , but I'm not too familiar with this term to unders ...Show All
shivali.sadavarte Can I unsign a ClickOnce manifest
Without breaking the projects and having to reinstall the app. Finally got this to work. MS first sent me an exe that didn't work, then sent me the project, which included renewcert.exe and my certificate is now valid until 2011. The utility has been posted at: http://support.microsoft.com/kb/925521 Try this page for info... assuming you are in the United States: https://support.microsoft.com/oas/default.aspx ln=en-us&x=9&y=9&prid=9141&gprid=358634 We are working on getting this code on the KB article, it's just not quite there yet. And yes, it's available to non-MS customers I also got an .exe that doesn't work... could you se ...Show All
_Simon_ ClickOnce Error When Publishing: PathTooLongException
I have an app that I am trying to deploy via ClickOnce. I get this error during the build process when publishing: Error 1 The "GenerateApplicationManifest" task failed unexpectedly. System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.IO.Path.GetFullPath(String path) at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolvePath(String path, String[] searchPaths) at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolveAssem ...Show All
kawano1h Unsure of code sequence with MyBase call on inherited control when overriding methods
Hello all, I have a control which inherits from Forms.Button and I am overriding the OnClick method. I am not sure which of the following is the correct sequence, can someone please enlighten me Thanks in advance for any ideas and/or suggestions! CODE ' Option 1 Protected Overrides Sub OnClick(ByVal e As System.EventArgs) MyBase.OnClick(e) ' My additional code here End Sub 'On Click CODE ' Option 2 Protected Overrides Sub OnClick(ByVal e As System.EventArgs) ' My additional code here MyBase.OnClick(e) End Sub 'On Click It depends. MyBase.OnClick() will generate the Click event which a form may handle. You'd have to try to guess what your control's user may write in this handl ...Show All
Beckwith Form roll over opacity
Does anyone know how to make a form that is set to 50% opacity and when the mouse runs over the form it turns the form to 100% and when you go off the form it returns to 50%. This sould do it: private void Form1_MouseLeave( object sender, EventArgs e) { this .Opacity = .5; } private void Form1_MouseEnter( object sender, EventArgs e) { this .Opacity = 1; } Hi, To have the required result you need to catch two events : 1- MouseMove event of the form. This event already exists in System.Windows.Form object. So when the mouse moves on the form, change the opacity to 50% (if it's not alr ...Show All
Paarul Parent-child relation using datagridview
i want to implement parent-child relation using win 2.0 ! i dont want to use the master-details approach.. i want to implement the functionality as in infragistic grids.......hierarchy with bands! i tried using datagridview but it does not suppport hierarchy! i tried tree view but there i cannot have multiple columns! Does any body know how to do it Maybe this sample by Mark Rideout will help. i have already seen that. i want the child bands to have different columns names!! ...Show All
DINESH CHAUDHARI WebBrowser control shows HTML code
Hello, I've a project where i'm assigning a HTML string to the DocumentText property of the WebBrower. On most PCs there's no problem with it, but there are PCs which show the actual HTML code instead of the webpage. Any idea's what's the reason and a possible solution :) Regards, Aussie nobody Hi, all Yes, here is the VS2005's requirement details: http://msdn2.microsoft.com/en-us/vstudio/aa718687.aspx Thank you I found exactly the same issue today! I've installed an application on mutiple PC's at a company site but one of these machines fails to render the HTML at all! Jon. Just found out that one mac ...Show All
ishaywei Open winforms with Async threads
Hi, On my application 13 forms, that do something on load (each form is doing something else), and I need to open them all on App load (I'm not showing them, just create instance): <Code=c#> form1 frmOne = new form1; frmOne.LoadData; form2 frmTwo = new form2; frmTwo.LoadData; </Code> I want to load all of them at the same time (each in seperate thread). How can I do this So what can I do I still need to create 13 forms objects (that connect DB and retrieve data for UI use) on load. You say I can't use threads in winforms at all You'll have to create each Form, one-by-one, on the main thread. You can get fooled into thinking you can do w ...Show All
Koalakk How do I change the source of a datagrid?
I have a very simple form with 1 grid and 2 buttons on it. I would like to set the grid's datasource from one table adapter to another. I tried seting up 2 separate databindings and changing the datasource from one to the other, with no luck. Here's the code that I am using to change the datasource and then fill it. Any suggestions would be greatly appreciated. this .dataGridView1.DataSource = dataSet1BindingSource1; this .sO_TYPETableAdapter.Fill( this .dataSet1.SO_TYPE); Thanks, jay0555 is there a way to create the table adapters, etc. without crowding up the form with all the data objects Can I just create them in code this .dataGridView1. ...Show All
Tovdb save an image in VB 2005 to a image column in SQL server 2000
HI All, I need to save an image in VB 2005 to a image column in SQL server 2000. Say, for example in the Customer Master form, i need to save the customer LOGO. How can i accomplish this Alex Hi Ken, I tried the foll.instead & it worked. I defined a column of type IMAGE in SQL server. Is this the right way of dng it Private Sub LinkLabel1_LinkClicked( ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) OpenFileDialog1.ShowDialog() End Sub Private Sub OpenFileDialog1_FileOk( ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk LogoPicture ...Show All
Suren Reddy Problem while adding reference to the project
Hi, I have an api that is written in C which is complied into a dll. I try to add a reference to the dll but for some reason I get an error "Please make sure that the file is accessible, is a valid assesmbly or a com component". I have tried placing the dll in bin/debug, or the project folder. I can see the dll , so I can select it, but when I try to add it I get this error. I checked the privilages as well. Can anyone suggest what the error might be All help is very much appreciated. Thanks! The manifest file needed to be embeded in the dll. It works fine now! If you are using the "Browse" tab in Visual Studio to add the dll, the pro ...Show All
redneon Which event is fired each time a node is added in a treeview?
I have a treeview with nodes loaded dynamically I have designed a class which needs to be notified each time a node is added in this treeView, but I don't find it which event this class should subscribe This event should exist since, each time a node is added, the treeview is updated, no you're absolutely right, i should do that! Maybe, but it doesn't exist as far as I know. Nor do any of the interfaces implemented by the TreeView Nodes property raise an event when an item is added. As a workaround, why do you need to raise an event Aren't the nodes being added programmatically (they cannot be added directly through the TreeView control in the user interfac ...Show All
ro88o Question regarding Web Setup Project
I'm trying to create a web setup project and by default the files are being copied to the inetpub\wwwroot folder. My question is - is there a way the user can specify the location during installation and can I provide a "Folder Dialog" to do the same. Can this be achieved with out any custom coding using Installer class. I appreciate if someone can provide me with some info. Thank you Ajay You'd need to do this with Orca, manually editing the MSI file (install from Orca.msi in the Windows SDK). Open the MSI file with Orca, find the Control table in the left side table list. Then find the WebFolderForm column with TARGETVDIR in the Property column aand change the Attributes value in that row ...Show All
