Sonic1981's Q&A profile
Windows Forms Custom Updates Problem
I am using ClickOnce, but the application checks for updates by it self, using manual update check. The problem is that if the user doesn't update the application; the next time, when the application starts, it starts like be configure to check for updates before start, so the user get a message from ClickOnce that tells to him that a new version is avaible. How can I avoid this behavior and configure the application to never checks for new updates automatic. The workable solution I found was the one discribed above, basically emulate the ClickOnce functionality... We have an application in production since Feb-2006 using that method and works fine. I tried to report the issue to microsoft as a bug, but th ...Show All
Windows Forms GenerateBootstrapper questions
Hi; First off, I have read the following: http://msdn.microsoft.com/msdnmag/issues/04/10/Bootstrapper/ http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/custom_pkg.asp http://msdn2.microsoft.com/en-us/library/ms164294.aspx http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 Sorry for all the questions - there is a lot of content about using the bootstrapper to do X but none I could find about all the properties for anything other than the samples shown. And unfortunately none showed requiring J# (a prerequisite for us). After reading the above (and some other pages) I have the following questions about using this: 1) Where is complete documentation for GenerateBo ...Show All
Visual Studio Express Editions how to protect code, maybe in a dll as i thinks its not so easy to gen public to open
hell i am writing and app, and one part i would like to protect the content , is there a way, i understand you lot could access it, but to the general computer user maybe not so transparent. I though maybe make a dll and put code in that , but i am not sure of a procedure. if i am on the correct track to do it in a dll and pass some parameters to the black box, then a yes or no is fine and i will try to figure it out. many thanks ian Obfuscate your code . ...Show All
SQL Server Mix and Match Rows
In the trading (stock market) industry there is a practice of rolling up (merging) multiple trades into a single trade in an effort to save on ticket charges. The way this is done is performing a SUM() on the quantities and calculating an average price. (Average price is the SUM(Qty * Price) / SUM(Qty). So, given : Qty Price 20 $5 20 $10 You get: 40 $7.5 -- 20 + 20 and SUM(20 * $5, 20 * $10) / SUM(20 + 20) Here is my dilema: If given a set of trades, I need to loop through them and check every combination to determine which one matches the expected ...Show All
SQL Server connecting to an SQL2005 Server
Hi I am trying to upgrade a system from SQL 2000 to SQL2005. I have installed the Server on a PC with Win XP SP2. Using another PC (also Win XP SP2) on the LAN I need to ODBC to the Server. The Server is NOT the default instance. I cannot connect via ODBC from the Client PC. This all worked fine with SQL 2000. As a test I also tried a fresh install of SQL2005 where it was the default instance, this worked fine. SO the problem is when you have multiple instances. What do I have to do to sort it out Cheers Eugene There are three things that you need to check for... 1) Insure remote connections is enabled for your database instance via the Surface Area Configuration tool for the ...Show All
Visual Studio Go to Definition/Declaration is broke
Visual Studio 2005 When I right click on anything to jump to definition or declaration it says "The symbol 'xx' not defined'. This feature used to work, how did I break it ...Show All
Visual Basic Accessing a User Control
I am using VS2005, and have built a user control, which has a few labels that I want to fill in as the program runs. The user control is duplicated several times in a panel on the main form, giving it names such as uscPerson1, uscPerson2, etc. Functions that will update some of the information on that control are in a seperate module. From code, I would like to reference the control name via a variable, so that if I wanted to update the label "PersonsName" on user control 2, I could write a generic routine, pass in the number in order to deal with "that control" and then update the text displayed there. I am stuck at trying to make the code think I am talking about a specific control. I thought it would be simp ...Show All
SQL Server slow respons time from reporting service over sharepoint
I am running SQL 2005 reporting services on a windows 2003 machine with SharePoint over SSL My reporting services web directories are virtual directories under the SharePoint website. I am having a problem with loading https://sharepoint.mysite.com/Reports/Pages/Folder.aspx When you first open IE and bring up the page it takes about 30 seconds to load. Once you have connected via any machine, all other machines can connect at normal speed 1-2 seconds. All testing is being done on our LAN so there is no bandwidth issues when opening the pages. My guess is that something is going into a sleep mode, but I am not sure where that would be set. Thanks for any suggestions Robert Based ...Show All
SQL Server Where to report SSRS 2005 bugs?
Where can a person go to report SSRS 2005 bugs I didn't see any area for error reporting. These are the few bugs I've recorded, but I've seen so much more :( On 2005sp1, and mainly using ssas 2005 for source data: When you have an existing report parameter that was created by the graphical query designer area for dataset1, and then you go to make another dataset and add the same hierarchy and choose for it to be a parameter, it will overwrite what parameter settings you just had (ie, not multivalue and a special default value I desired). When adding subsequent series or category fields to a chart, the default series/category grouping name remains the same and causes a error when attempting to run the report. IE: chart2_CategoryG ...Show All
Visual Studio Express Editions Using button to browse a image file and load into database
Hi im a begineer. the following is what I do. I created a database table and 1 of the field i put it as varbinary(MAX) let call this field "SmallPhoto" I drag the picturebox from the toolbox to my form1 and i drag a button to my form1 too. Now I need to configure that when i click on the button i can open an explorer to search for an image file and load into the picturebox, and click on the save button to save this image file to the database. Please advise how to do it as i am running out of idea. yep, lastly i had been watching the video clip from visualstudio.net for solution too... thanks in advance Private Sub PassportExpiryDateTimePicker_ValueChanged( ByVal sender As System.Object, ByVal e As System. ...Show All
SQL Server Evaluate as an expression
I have just been brought in a project that is a huge mess....They have specked this project to allow for a user to create ad hoc calculated expressions using tags of data that are supplied by another system. This sort of looks like this ID | Formula | A | B | C | D | 1 A + B + C 1 2 3 4 2 C - D + A 1 2 4 2 3 D - A + 1 4 2 6 8 They want to then evaluate the formula expression using the corresponding column-row values to arrive at a value. As of right now I am a bit lost on how to do this, does anyone have any ideas Thanks! Josh Rogers Josh: If what you are talking about is that you want to pull the data for A, B and C from virtually any table to perform pretty much any arb ...Show All
SQL Server Cluster Rename
I am having problems renaming an existing 64bit 2003 Cluster running SQL 2005. I have renamed 1 node and have added it back to the cluster. It fails over just fine accept SQL will not start. It gives me "Failed" in the status. The following event is also posted each time I try: Event Type: Error Event Source: MSSQLSERVER Event Category: (2) Event ID: 17120 Date: 11/27/2006 Time: 1:54:53 PM User: N/A Computer: TMS12VDB Description: SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems. If I fail back over to the other node, everything works fine. Also, I have renamed the following cluster resources: virtual database, network Name, clu ...Show All
Visual Studio Express Editions Keep application "Docked" on right side of screen?
Hi there! I'm a new-commer to VBE! I am currently trying to make a Vista Sidebar app, but I need it to stay on the right side. Now I bet your saying... "Yea, your trying to make something hard when your new to this." Wrong! My brother (knows more about it) knows how to help, but he says he dont know about how to do this. If you could help guide me in the right direction, it would be greatly appreciated! Thanks! Private Sub Form2_Move ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Move Me . Left = 0 End Sub Now that will keep the form at the left edge of the screen anytime someone tries to move it...now take in consideration when it is loaded, o ...Show All
Visual Studio Team System Load test can't execute more than one simulated user per agent
I'm attempting to load test an application which includes both a WinForms client as well as server components. Because there is a lot of complex client behavior involved in working with a large dataset that's sent back and forth between the client and the web server, I'm using the existing client-side business services layer to help with this in my load test client code. I have four agents currently available on our load test rig and I've noticed that when I attempt to run more than 4 simulated users, the tests start to fail. I eventually determined that I could run up to four, but that any additional tests beyond that number would start to cause problems. The reason I think this is happening is because the client-side business service ...Show All
Visual Basic add plugin containing user control onto a Window form container?
I am getting the idea of basic mechanisms for launching a plugin from within a winforms host app; Dim assembly As Assembly = assembly.Load(filename) 'load the dll from a directory objPlugin = objDLL.CreateInstance(Plugin.ClassName) 'instantiate it Here is the part I don't know how to do. I want to add a somewhat complex user control to a host app's panel as the container. How do I 1. create the UserControl as a dll 2. Add the User Control, with all it's inherent functionality, onto a Host Panel. HostApp.Panel.Controls.Add(objPlugin) I am only familiar with the host calling methods/functions in the dll (like multiply 2 numbers) through a pre-established contract (interface). But if you don't know what functions are ...Show All
