johnny_no1_boy's Q&A profile
Visual Studio Tools for Office Behavior of a MenuStrip inside the Actions Pane
I'm posting this here because I have another issue that seems to be related to (the hosting provided by) the VSTO Actions Pane within Word's Task pane. If it would be more appropriate to post this question to a different newsgroup, please let me know which one. I have some UI code that contains several MenuStrips and a TreeView that has a ContextMenuStrip. Basically the same UI code is re-used in two different environments, a standalone WinForms app and in the Actions Pane of a VSTO Word Template project. The UI code when used in a standalone WinForms app acts pretty much as expected. However, when the same UI code is placed in an Actions Pane Control in a VSTO2 Word Template project, both the MenuStrip drop-down menu ite ...Show All
Visual C++ Binary Reading from a file
Hello there I could use some help I would like to read binary, a single bit at a time, from a file! Anytype of file, the one I currently doing reading is a "test.jpg". I've tried fscanf options, it didn't work out so good for me! I tried the ifstream, but that read the values in as a char, and I tried converting it over, but it didn't seem to read in the binary to begin with! I've heard of writef and readf, but I'm unsure how to go about reading in a binary digit. Here is my latest code, it's a bit mess. I am at the debuging stage! ! #include <stdio.h> #include <iostream> #include <fstream> using namespace std; ifstream::pos_type size; void main() { ...Show All
SQL Server Term Extraction frequency per row
Is there a way to perform term extraction on each row in a table, and have the term extraction denote the frequency of the term on a per row basis rather than a per table basis Otherwise, is there a way I can take extracted terms and apply a sql function that returns the occurance of that term in each row Example: Row 1 = 2 hits, row 3 = 5 hits, etc. Then is there any way to take advantage of the normalization (i.e. stemming) functionality to turn records into normalized text ...Show All
Visual Studio Tools for Office Problems creating the install package
Hi, i've managed to create the add-in that i want and i can test it on my development machine and it works fine and integrates with other projects well and all is good with the world on that front. however, when i try to build the setup project that visual studio creates for me the compiler tells me that the build has failed and gives me no errors descriptions for some reason. just says failed and gives no reasons! so i had no idea in which direction to look about solving the problem and i've searched the net up and down trying to find something but i just can't get it. i'm sure i'm doing something silly but i can't for the life of me see it. i saw an article about the whole trust and security thing and i've implemented that into my ...Show All
Visual C# Advanced C# Generics
A cursory perusal of articles about C# generics on the net give me the impression that C# generics are exceedingly primitive compared to, say, C++ generics. But perhaps I'm just looking in the wrong places. Can somebody suggest articles or resources that get into heavy-weight use of templates And for the curious, I'm talking about advanced generics like "traits" and "policy" programming, or "template template parameters" ... the kind of stuff Alexandrescu published for C++. And by the way, when does "code generation" for C# templates occur Is it at compile time (as it is with C++), or is it at execution time I'll assume the former, unless I hear otherwise. Thanks.... I think you're b ...Show All
Windows Forms [C#]datagridview cells arithmetic operations
Hi all. I would like to know how to obtain the difference between 2 cells value. I was able to have the sum: [code] int myLastColumn = 3; //my last column index in dgv decimal dec; decimal sum; bool controlResult; for(int i = 1; i < 3; col++) { if(dgv.Rows[e.RowIndex].Cells .Value != null) { controlResult = Decimal.TryParse(dgv.Rows[e.RowIndex].Cells .Value.ToString(), out dec); sum += dec; } dgv.Rows[e.RowIndex].Cells[myLastColumn].Value = sum; } [/code] This function is in datagridview_CellEndEdit and works fine making the sum between column 1 and column 2. Column 3 show the result. All i need is to have the same procedure with the difference between: (Cells[2] - Cells[1]). Thx in advance. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Probably an easy one: I'd like a class to have its own textures.
I'm converting over an old project I did in GSE Beta 1 where a class (specifically, my 'background image' class) had its own Texture2D. Here's exactly how I went about loading the texture in my old Beta1 version: Vector2 location, offscreen; Texture2D bg; public Background(GraphicsDevice Device) { location = new Vector2(0,0); offscreen = new Vector2(0,480); bg = Texture2D.FromFile(Device,"resources\\background.png"); } Now obviously this doesn't work any longer. As such, I've been trying to convert this over to 1.0 compliant code. I can get my code to compile without any problems, but I can't get the silly thing to run. The error I keep getting is as follows: Error loading "backg ...Show All
SQL Server Group by problem
Hi, I tried to execute the following statement SELECT Po_No , Po_Com_code FROM POAPInvRelate WHERE Inv_Com_Code = '002' AND Inv_No = '5' GROUP BY 1 , 2 However, did not work. Because, I need to put columns names instead: GROUP BY Po_No , Po_Com_code In this case works well. Does it mean I need to use columns names can I not use columns reference numbers cheers, hello alex, you can't do that in group by that syntax belongs to "order by " such as order by 1, 2 regards, joey ...Show All
SQL Server Conditional Split Question
I have a package which has a conditional task which directs rows to its respective OLEDB command. The records are sorted from the source system in chronological order. The problem I am experiencing is that some of the operations do not seem to be occurring in the same order. An example of this would be someone inserts a record, deletes the record and reinserts in the record in that order. When we run the package we can see the records are coming down in chronological order but the delete from the split seems to occur after the inserts. Has anyone else experienced this Is there anything I might be missing to ensure things happen in the order they should Any advice would be greatly appreciated. Thank you. Thank you for your explanation. ...Show All
Visual C# How can I continue my code at next line?
I'm running a C# project in VS2005. If I make a small change to one OCX's property such as a textbox's visible property in the editor while the client is running in debug mode I get a dialog box saying "property value is not valid." This option is enabled in my IDE. I have to hit "OK" and then press stop the app in order to edit. editing. This is happening at least 100 times a day and it is just too frustrating at times. This wasn't the same in VS2003, it would let you edit and would remind you to either continue execution or restart the compilation. Is this still available with VS2005 Please let me know if you have any good idea about this. I don't think it's possible to change the form's design whil ...Show All
Visual Studio Try to clear my Source Control
Hi, I try to clear my Source Control. For some solutions I have (maybe cause some programmers developed without Source Control and I added there projects later to SC): FileName.sln FileName.vssscc and FileName.vbproj.user FileName.vbproj.vspscc Can I delete the last two one (without getting problems) Fanks DDressel Here you can find the description http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/tdlg_ch3.asp ...Show All
.NET Development DefaultButton - Property of Panel
Hi, I have a panel in my aspx page for which I have set the defaultbutton property of panel to submit button. The problem I am facing is that on click of enter the page gets submitted the first time however when I press enter second time the page is not submitted. Also, this is happening at the production installation, the page works fine on the development environment. Do we need to have specific browser settings\.net settings to make this work. Also, we are using AJAX Extension for .Net version 1.0. Any suggestions will be of great help. Not sure, whether this is the right however couldn't get hold of any better place. Please let me know if this can be discussed in any other forum. TIA Ritesh ...Show All
.NET Development wsdl bug in code generation from xsd
hi folks, i am trying to create a web service signature classes from wsdl file using wsdl.exe tool on .NET 1.1 my wsdl uses a xsd for data types. following is a datatype from the xsd. < xs:complexType > < xs:sequence > < xs:element name =" Authentication " type =" nms:Authentication "/> < xs:choice > < xs:element name =" UpdatePermission " type =" nms:UpdatePermissionParams "/> < xs:element name =" DeletePermission " type =" nms:DeletePermissionParams "/> </ xs:choice > </ xs:sequence > </ xs:complexType > when i use the wsdl.exe to generate my web service classes and methods, the above ...Show All
Visual C++ Odd pre-compiled header question
Hi folks, I suspect this is an easy one but I can't seem to solve it. A week ago, I decided to reset my VC++ environment settings to the default values. Now, I'm getting errors related to the PCH whenever I try to build a file that's either creating or using precompiled headers. The error if I try to use a pre-compiled header ("/Yustdafx.h") is C2857 -- included file not found in source. If I try to create one ("/Ycstdafx.h") I get C1010 -- end of file while looking for PCH. The compiler helpfully suggests that perhaps I forgot to include #include "stdafx.h" in my source; I didn't. Figuring maybe I'd screwed something up, I reset to default settings once again, created a brand new Windows Forms app and a ...Show All
Visual Studio Express Editions Compress files ?
Hi, ::Visual Basic 2005 Express Edition:: ---------------------------------------------------------- How can i compress files in VB Express Edition I have app, but yes be done 5MB, and no there much code inside . Hi, if you're referring to your application's files (exe, dlls, ...), look at the resources you added to your project (bitmaps, sound files, etc.). Large pictures can make your compiled files grow to sizes like this. If this is the case, make your pictures smaller in size (using bitmap editor) and include them instead of original pictures. Andrej ...Show All
