benktesh's Q&A profile
Microsoft ISV Community Center Forums Disable "Unprotect Document" in Tools Menu Item
Is it possible to disable "Unprotect Document" in Tools Menu Item in MS Word using VBA We are accessing and modifying documents in Java using JACOB. If the document is protected we are unprotecting the document and doing modifications. But if the document is protected using a password there is no way we can provide the password programatically as each document could have different passwords. So if it is possible to disable the "Unprotect Document" menu using VBA then the menu can be disabled and the document protected without password. This way the document can be accessed and modified only programatically and not by the ...Show All
Visual C++ (MSVCRT) _iob disappeared?
What can I do to replace the functionality of _iob Seems to be missing in MSVCR7/8 (using VS2005). Error 1 error LNK2001: unresolved external symbol _iob main.def In my def, I'm redirecting this export as such: _iob=MSVCR80._iob I also tried: _iob=MSVCRT._iob ...Show All
Windows Forms Esc in maskedtextbox
Is there any solution for the Esc keystroke to change text back to its last state Just like regular Textbox. Wei, The idea is your solution....it is not easy and you will have to code your solution: Private Sub TextBox4_KeyPress ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyPressEventArgs ) Handles TextBox4 . KeyPress Dim MyString As String = TextBox4 . Text If Asc ( e . KeyChar ) = Keys . Escape Then TextBox4 . Text = MyString End If End Sub Don't know what you are trying to accomplish but that should give you an idea of ho ...Show All
Windows Forms How do I get the dimensions of the TRUE Drawable area of a form?
I am writing a DirectX app that uses windows form menus and controls. I want to get the TRUE drawable area of a form excluding menus and things like panels and other controls like that that cannot be drawn on.. I know about the Form.ClientSize property but that does not take into account any menus/status bars within the form. Only the size of the window minus the borders. I thought it wasn't possible for the Form to directly know its drawable area without manually calculating it until I started using the MouseEnter and MouseLeave events. These events trigger when the mouse leave the TRUE drawable area (eg if my mouse goes over them men ...Show All
SQL Server Deployment Error for Report Model
I am trying to deploy a Report Model for the first time using the classic Adventure Works sample found commonly on the net. But while deploying the Report Model, i get the following error: "permissions granted to user 'myDomain\MyuserId' are insufficient for performing this operation" and the file mentioned is "Adventure Works.smdl". Kindly advice if there are any permissions to be set up for deploying Report Models ...Show All
Visual Basic VB6 > .Net Conversion Error: Character Device names?
Hi At my wits end... I am experiencing a problem when trying to convert a rather large VB6 application into a .Net 2005 application. Everytime I try to convert the project I get the following error: "Upgrade Failed: Exception occurred: Can't use character device names in file names" The weird thing is i have tried to convert the project using .Net 2003 and I do not get the error, it does convert. Can someone point me in the right direction... Many thanks Brad Look for a file in your VB6 project that has a name like the old DOS device names (CON, COMx, LPTx, KBD, NUL, AUX, PRN). R ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mouse input
why am i getting theses numbers from my mouse http://img393.imageshack.us/img393/4944/untitled5tb.jpg please help thanks private ACEIDev ACEMouse; public int ACEMouseX=0; public int ACEMouseY = 0; public int ACEMouseZ = 0; public ACEMou(Control ff) { ACEMouse = new ACEIDev(SystemGuid.Mouse); ACEMouse.Properties.AxisModeAbsolute = true ; ACEMouse.SetCooperativeLevel(ff, CooperativeLevelFlags.Foreground | CooperativeLevelFlags.Exclusive); ACEMouse.Acquire(); } public Vector3 ACEMouseGetPos() { MouseState ACEState = ACEMouse.CurrentMouseState; ACEMouseX=ACEState.X; ACEMouseY = ACEState.Y; A ...Show All
Visual Studio 2008 (Pre-release) Graphics Example Strictly C#
Just looking for a simple c# example that adds even a simple shape to a canvas in WinFX application at runtime. I've been searching the forums and MSDN for the past couple of hours without a solid example of someone trying to create an app in strictly c# or any other .net language. I'm trying to code an app that doesn't have a specific amount of visual elements that are add at runtime, and i'm just trying to figure out if it's even possible. Thanx. YES! viliescu, you just achieved god status over here i should have known, i encountered the same thing a few weeks ago while i was testing out a simple indigo a ...Show All
Visual Studio URGENT: Error with Microsoft.Reporting.WebForms.LocalReport.InternalRender
Brian We are experiencing some internal errors with the reporting services engine in the local mode. It seems to be working fine on all our dev boxes but seems to blow up in our production sites. Here are some messages found in the System Event log. Let us know if something pops up as you see the message. Basically, the code does the report render is given below. Call me stupid, i must have put a try/catch around the render method as it is the one that is blowing up Appreciate your prompt response. Thanks private byte [] GetImage() { Warning [] warnings; string [] streamids; string mimeType; string ...Show All
Windows Forms datagrid currentcell highlighting
Hi! How can I make highlighted cell in the datagrid control Thank you! Yes. I want the cell to be highlighted by the border. Like Excel cell. Thanks ...Show All
Windows Forms Recieving an Open File request from Windows
I have an application that I'm developing that uses a custom file format for storing users files in and I'm wondering how to set my application up so that when a user opens a file of this type the application runs and opens the file. I've added the filetype to Windows list of file extensions and linked its open with to the appropriate applica ...Show All
SQL Server Loading data in SQL Mobile 2005 from the server side and not on the handheld
Hello, We are in need of some help around the use of SQL Server 2005 Mobile Edition. The problem comes in when we have to import a large list of equipment ID’s into the database. The way that things work today is that the database only runs on the handheld computer, so we are having to process a large amount of data on the handheld therefore taking a lot of time. If there were a way to have a “seed” database on the server side (running on Windows Server 2003 or similar) and import all of this data on the server side it would be more efficient and require less time. Once the data was imported on the server side we can simply transfer ...Show All
Windows Forms Making an App ClickOnce Aware
Is there anyway for an application to determine that was deployed as part of ClickOnce In a sense I am wondering if there is any call I can make to allow a set of libraries to become ClickOnce aware. I can imagine various scenarios whereby I would want my application to behave differently when operating in this somewhat open deployment framework ...Show All
.NET Development Setting "Text" variable in combo box
Hi! Normally, my combo box is non-editable and has items in it. However, when I don't have any items, I want to offer a "< New >" option, which users would select, then they'd type in the name in the combo box, and a new option would be selected. So, here's what I tried: private void ClientComboBox_SelectedIndexChanged( object sender, System.EventArgs e) { // Are we trying to create a new one if ( ((System.Windows.Forms.ComboBox)sender).SelectedItem.ToString() == "< New ...Show All
SQL Server Can't get results from JDBC
I'm having problems getting query results for my web-app using jdbc. The connection I make to the server looks fine, but whenever I execute a query, I get no results. I'm using something like the code below: Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); con = java.sql.DriverManager.getConnection(connectionUrl,userName,password); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("select * from someTable"); I'm using SQL Squirrel Client as a back-end interface, and it is using the same drivers that m ...Show All
