J. Hammer's Q&A profile
Visual Studio Can't Register or Unregister Recipe
Hello there. I was working with the HOL and After few bumps and bruises I was able get to as far as modifying the HolPackage.xml with Snippet. But After that when I went back to start the DSP project , I get error and says that the reinstallation of GAT is required since the HolPackage.xml has been changed. When I went back to the hands on lab I started to get error on Register and Unregister recipe too. I reinstalled the GAT but that didn't help. Has anyone faced this problem. I am pretty sure I am not the only one with this problem. Anyone willing the share the solution Here is the Guidance output window error. I can see the error is in the template. Cause when I go to HolPackage\Templates\projects\DataClient\DataClient. ...Show All
Visual Studio Express Editions image in picturebox
Hi I wonder if anyone can help with a piece of code. I want a image in the picturebox to corrospond to a number in a text box . So I have put numerous pictureboxes on top of each other to show images as the numbers would change . But it only works once. How can I write code to clear the last command and accept the new command. ie new number = new image. Thanks Rob First of all r = Double .Parse(TextBox1.Text) TextBox1.Text = r.ToString() Looks really strange. I think it should be an integer and look like this: Dim r as integer = Cint(TextBox1.Text) 'The nextpart should look like this: Select case r Case 2 PictureBox1.visible = true Case 3 &nb ...Show All
.NET Development Always inherit from MarshalByRefObject?
When using .NET remoting, it's obvious you must have some way of passing object values and refrerences to the remote server; but should you apply one of these practices always as a matter of course public class Password : MarshalByRefObject { ... } [ Serializable ()] public class Password { ... } I have noticed that the .NET framework inherits most (if not all) of it's objects from MarshallByRefObject. I seem to find myself now doing the same. Also, when is it best to use Serializable() instead of MarshallByRefObject Your reply didn't directly answer my question. My question was rather "is it good practice to always inherit from MarshallByRefObject " rather than the questio ...Show All
SQL Server Change Background Color
Hi, I am using toggle visibility feature in one of my reports and I am trying to change the background color of some cells when I toggle the view. Please help, any help will be appreciated. Thanks, -Rohit To be more precise, there is a parent and it has several children. At first children are hidden, but when I click parent then children become visible. I would like to change the color of the parent when children are visible and go back to transparent when children are hidden. I hope I clearly discribe my question. Thanks. ...Show All
Visual C# Button Madness (one of many posts to come)
I know I should have been more descriptive in the subject, but the question is too long to fit. I'm trying to make a charicter creation application for a RPG. I want to have it so that when a person clicks the + button (button2), it will subtract one for the remaining points which is displayed in label20, add it to the Strength score (int Str) and then display the modified Strength in label11. Next, I have a subtract button (button10) that does the same but adds one to the remaining points and subtracts 1 from the Strength score (int Str) and displayes the remaining points and Strength in thier appropriate label boxes. To complicate matters worse, I have to 1: have to do this for 7 other stats, which none of them can go lower than ...Show All
Visual Studio Tools for Office Handling mail item
hi all I am new to outlook programming, and i hope you bare with me. My goal is to get a copy of currently selected Email and pass it to my database When the user will opens the mail window . a dropdown should be there in the Standard toolbar . this dropdown will be populated with a list of categories from the database when user select any category. press enter. the a copy of the current mail should get transfered to my database. please let me know if it is possible , and provide ur suggestions and any code snippet of how to create a drop down in the toolbar of the mail window and handle its click event i am using c# or Vb.net in VS2005 with VSTO SE i shall be highly grateful Thanks Zubair What you are trying to do is ce ...Show All
Visual Studio Express Editions Colours
Is there any other way of using RGB colours in the bitmap.setpixel function other than Color.FromArgb Its hard to customize it as it is an integer.... BMap.SetPixel(x + 1, y + 1, Color.FromArgb(&HFF0000FF)) I cannot base this off a variable by simply doing this: &HFF00 & green & 00. .... give me a hand No need to be rude about it. When I try to load the program it points to a lot of lines of code that are wrong. ...Show All
SQL Server Outlook / Word Interface not registered
I use outlook as my e-mail front end for all my e-mail accounts. I have recently installed my software (MS Office Pro) on a new PC. When I try to send an e-mail created in Outlook I get an error message - "Microsoft Word - Interface Not Registered" I have tried re-installing / repairing the software and this doesn't work. Can anyone please help u can check the Article ID : 870707 http://support.microsoft.com/default.aspx/kb/870707 'You receive the “Interface not registered” error message when you try to send or to save an e-mail message to the Drafts folder in Outlook 2002' its worked for outlook 2003 also, i've tried myself. ...Show All
Visual Studio Mixed-mode debugger hangs
We have a quite large native C++ application with some parts in C++/CLI, and some GUI components written in C#. Recently, the mixed-mode debugger has become unusable for us because it hangs with a high CPU load as soon as the managed components are used. Visual Studio itself stays responsive, until I select 'break all' -- then VS itself also hangs, now without CPU load. During the high-CPU-load hang, VS uses ca. 59% of the CPU, our program (the debuggee) uses ca. 17%. The process explorer (from sysinternals) shows that VS uses CPU mainly in two threads which stay in ntoskrnl.exe. The number of objects marshalled also increases continuously. Here are typical call stacks for those two threads if I debug the devenv.exe and break execution: &g ...Show All
SQL Server Temp tables in Integration Service
I am trying to move a flat file into a temporary table but the pre-execute phase looks for the table and fails the package. Is there away around this I have set the connection RetainSameConnection to true but that doesn't appear to help in the dataflow. Phil026 wrote: On the task. I tried the delay validation = true and that gets me to where I can save the insert task but as soon as I click go the insert task fails with [DTS.Pipeline] Error: component "OLE DB Command" (3070) failed the pre-execute phase and returned error code 0xC0202009. I would guess that that is the same problem and can therefore be solved in the same way. Your tasks are expecting an external table (be it a temp table or otherwise) to exist ...Show All
Windows Forms multiple projects in a solution
Hi, i get problems when i have multiple projects in my solution, each time i debug and make changes after that, i get... Error 2 Unable to copy file "..\..\..\ControlsLibrary\ControlsLibrary\obj\Release\ControlsLibrary.xml" to "bin\Release\ControlsLibrary.xml". Access to the path '..\..\..\ControlsLibrary\ControlsLibrary\obj\Release\ControlsLibrary.xml' is denied. Costing and i need to exit .net and get in again. how can i prevent this any command line thingi to clear the hold on the file S I see you are using VB 2005 for your projects. There is a performance hotfix available for VB 2005. See Chris Mayo's post for more info. ...Show All
Visual Basic (VB)Updating row data in SQL
Hey guys, I have a small issue doing the following. Before inserting rows into a table I need to make sure that the rows is not already there.. If they are, I want to update the rows, else insert new rows .. I have the inserting of new rows figured out, but can't figure out how to check if the row is already there .. This is where I need your help.. Thanks, Nilysg Hmm... I redraw my "simple" statement for now .. Code: Private Sub AddHublist(ByRef sMyinfo As String) Dim s() As String = sMyinfo.Split("|", 7, StringSplitOptions.None) 'parse Dim Dr As DataRow = DixwebDataSet.Hubs.Rows.Find(s(2)) ' <----Table doesn't have a primary key. If No ...Show All
Visual Studio Express Editions Need help with screen workarea
Hi, im working on a sidebar for my desktop. I want it to work like the task bar, meaning that all windows forms i open (e.g. internet explorer) will only go up to the task bar, and not the end of the screen. Does anyone know how to do this thanks. http://vbnet.mvps.org/index.html code/screen/systemparaminfo.htm Check this site out, and search online for SPI_SETWORKAREA. Using the example above you should be able to work it out. Sorry, I had a bit of code lying around that did this but must have lost it in recent cleanup. ...Show All
Software Development for Windows Vista All WorkflowRuntimeServices running in the same thread?
Hi, If I add three services to WorkflowRuntime, does the services will run in the same thread (3 services inside only one thread) Regards RL In WF - the WorkflowRuntime uses a SchedulerService to "schedule" pieces of work. These work items might be workflows that need to run - or services that need to be invoked. In the case of a service - whether it runs on the same thread that invoked the workflow or on a CLR thread pool thread is determined by the ScheduleService that is used by your WorkflowRuntime. If you do nothing - you get the DefaultSchedulerService. ...Show All
SQL Server Why I got added rows when using FULL OUTER JOIN?
I've met a curiouse thing when using full outer join, that I got some rows belong to neither tables @_@ The SQL statement is like this: SELECT PreviousMonth.InvoiceID, PreviousMonth.CategoryName, PreviousMonth.ProdName, PreviousMonth.Qty, ISNULL(CurrentMonth.SellTotal, 0) AS SellTotal, ISNULL(PreviousMonth.SellTotal, 0) AS PriorSellTotal FROM (SELECT SellTotal, InvoiceID, CategoryName, ProdName, Qty &nb ...Show All
