Thymen's Q&A profile
Visual Studio Tools for Office C#, Word VSTO and OnAction (oh my)
I'm working on a VSTO Word solution that will run on a Tablet PC. Part of our requirements is that the Word document be protected (WdProtectionType.wdAllowOnlyFormFields) to prevent consumers of said document from making modifications to the form text; easy enough. However, when a document is protected, this also prevents a user from inking on the document, makes sense; but we want to allow the users to ink on a protected document ... so what I've done is as follows: On the "Annotation Pen" CommandBar, I've attached, via an Anonymous Method, to the click event for each of the CommandBarButtons logic that disables the form protection. This way, when the user choose to Ink on the "protected" form, they can. Then when the ...Show All
Visual C# Build a 'long' number from two int's
Hello, i'm wondering whether it is possible to "build" a long number from two int's. My aim is to make it platform independent, thus i can't use any shift operators. With them, i would do something like that: long number = (long)myInt | (((long)myInt2) << 32); Does anybody have an idea georg The "endian-ness" of the platform should be hidden by .Net, so as far as I know the simple solution using shifts should work... ...Show All
SQL Server Incremental Backup in Ms Sql Server
Hi All, How i can take incremental backup in the Microsoft Sql Server I expect ur valuable replies Regards Mejo SQL Server has only the option for a differential backup /changes since the last base backup) HTH , Jens Suessmeyer . --- http :// www . sqlserver2005 . de --- ...Show All
Windows Forms DataGridView - If a ROW is NOT selected Then ....?
I am building a trainee tracking system. One one of the web forms I have placed a datagridview. This grid is populated from an Access database that contains the list of trainees. I have designed it, thus far, so that when a ROW is selected, the user can select the "Delete" button and the trainee will be deleted from the database. This part works. However, when I have only a cell selected, I get an error because no rows have been selected. I want to run a check to assure that a row has been selected before the code I have written will run. Here is an example of code similar to what I am using: Dim test = DataGrid.SelectedRows(0).Cells(0).Value Dim strConn As OleDbConnection = New OleDbConnection(String.Format("Provider= ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to display text mesh without lights.
hi im into development of a cad system using vb.net and managed directx. and i use the vertex format - positioncolored now i have display text and im using mesh.textfromfont. after having creating the mesh object. i am not able to display it. i am just using tmesh.drawsubset(0) inside the begin.....end scene block..... i cant use lights coz all my other vertices use position colored vertex format....plz help......i moreover dont find any things to determine the x,y,z of the mesh.......how do i place it if i was able to draw it on screen. ------------------------------------------------------------- well sorry now i found that the text mesh does appear but the problem is that its too small.....even if i give more font si ...Show All
Visual Basic please any one help me
i want any code to compute the factorial of high numbers like 1000000 in aspeed way & didnt cause the break down of memory any bode cane help me mn_fci@hotmail.com mn_fci@yahoo.com You can refer to this post over Code Project: A class for operations with Large Integer Numbers ( http://www.codeproject.com/cpp/largenumber.asp ) where George Anescu presents some algorithms for operations with large integer numbers in a C++ class using the STL vector container where you can then use it in your VB.net code. I my self will vote for usnig strings for large numbers and if you can manage it I think there is a possibility to integrate java's big number class and perhaps even karbutstra's algorithm for efficient multiplication. ...Show All
Visual C++ Ref class and friends
I've been using CPPUNIT for unit testing unmanaged classes. In particular, I can write an unit test class to test a private function of a class. However, the unit test class must be defined as "friend" in the under test class. Since, Ref classes (managed ones) does not support friends, as such, how do I test its private functions hello Managed type cannot have any friend function/classes/interface, this is by-design. I would like to recommend you to find an open discussion group for CppUnit like cppunit forums to obtain more experimental suggestions. thanks rico ...Show All
Smart Device Development Using Resources
Hi I have a solution with two projects : 1) Smartphone 2005 project (s_ui) 2) Pocket PC wm 5.0 project (p_ui) Project 2 (p_ui) has a usercontrol which is to be added in a form in s_ui. This Usercontrol (usrLogin) has to be multiple languages depending on the culture info on the device. It should detect if the device is using "Danish" da-DK or english. So I have made to resource files (resx) in the p_ui project, one named Resources.resx and the danish one called Resources.da-DK.resx. The two files contains the values "Test" - "Hello" and for the danish "Test" - "Hej". When the control is added in a s_ui project form, the resources does not change for my string. But if I make the two ...Show All
SQL Server Unable to start SQLEXPRESS
Hi I have downloaded and installed the trial version of MS Visual Studio 2005 Team System. The installation was successful. However, I am not able to start SQLEXPRESS using the SQL Server Configuration Manager. It shows me SQLEXPRESS but when I right click and select Start it tries to start the service and after some time gives the following error "The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details." The event log shows the following errors: 1. FCB::Open: Operating system error 5(Access is denied.) occurred while creating or opening file 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf'. Diagnose and correct the o ...Show All
Visual C++ Vista "for loop" problem
In code that runs correctly in XP, I have a for loop. 1. for (int nIndex = 0; nIndex < 256; nIndex++) { 2. array[nIndex] = something; ... In Vista, at line 2, nIndex = -856238756375 or something like that, ie. uninitialized. Obviously, this causes a crash. Is this a known bug I installed Build 5728 yesterday and cannot reproduce the problem. I did have problems with crashes related to USB driver. In my VM, I removed the USB port and now it seems pretty stable. ...Show All
Smart Device Development PictureBox displays white background
Hi, I need to develop a menu form which contains icons and when user clicks those icons they will be directed to respected forms. Easiest way is to use PictureBox and set PictureBox.Image property to icon images. For this, I'm using .ico format of images since PictureBox can accept that. Then i handle the click event of those PictureBoxes. It works just fine except those PictureBoxes can't display transparent background, instead they display white background. No matter what color I chose for the BackColor property, they still produce white bground. It took me hours to think what is going wrong. I googled this problem and some say PictureBox can't display transparent bground. Kinda weird here, it is not just fail to go transparent, Pi ...Show All
Community Chat Using Vista?
Good idea Joe! Okay, I'll go first. I'm using Vista RC1 full time now. The computer seems quieter--doesn't take so many trips to the hard disk for VM paging. I find going back to XP an unpleasantry, so I think Microsoft is succeeding here. Glass is nice. I think the performance is what I expected it to be on an Intel Advanced Graphics card (Dell Dimension 9100). Office 2007 is also pleasant to use, but they stil have some cleanup work to do on their UI. Who else is using Vista Brian its actually also stated and recommended by Microsoft to NOT install beta/prebeta/RC products over your existing configuration - it's as simple as that I remember about 2 yea ...Show All
Visual Studio Express Editions Hyperlink capture MS Access VBA
Hi All, I've been doing some VBA stuff for a while and have run into a problem and I'm not sure if there is a simple answer, maybe I'm just going blind on this. I have a database system that logs a serires of quality assesments, and so far all is good, but the problem I have is with the automated link geraneration response capture. To explain; The system held in Access XP will automatically score each record on a set of rules, and is they fail the pass mark, the person checking the scoring will click the button to send an email to the person whom will need to deal with this. There are two disticnt way I can deal with this, the first is to create a shortcut, embed this in the email along with /CMD open arguments, though the creatio ...Show All
SQL Server Including Sql Express DB with Winforms Application
We are thinking of using a Sql Server Express database ( .mdb .mdf) as a data resource in a Windows Forms application that we will be distributing to clients. When the application is built, the mdb file is copied to the bin directory. In order for clients to access this database, will they need to have an instance of the SQLEXPRESS server installed on their computer Or since the .mdb .mdf file is being accessed from a .Net 2.0 application, there is no need to install a separate db component If I do have to separately install the db component on the client end, is this the way to go about it This Or is there a different/better way When you do distribute you can package up the SQL Engine (SQL ...Show All
.NET Development connect WinForm via internet to database
Hey, i have created a winform, and connected it to my database. The next step is to connect my winform to the database over the internet, so clients can download my winform and access the database from their computer. I have no idea what i have to do to the database to make it available over the net, and i have no idea how to connect to it. I imagine its using SOAP, however, i can't find anything on the internet where sumone has done sumthing similar. This is for my final year project, if you need me to explain a little more then i can as i am in desparate need of help! Cheers, Simon. Also break your problem down...don't ask for the world in one post. MSDN is a great resource but there are those who try to get people to write their co ...Show All
