Delphieur's Q&A profile
Visual C# Label Properties
I am trying to write label text in vertical direction. How can I do thanks You can't make the text appear in a vertical direction such that you'd have to flip the monitor sideways to read it but you can make the text layer itself vertically like so: A l a b e l To do this set the Autosize property to False and then resize the label such that the letters lay themselves out like you want. Michael Taylor - 8/16/06 ...Show All
.NET Development Issue with Windows services
HI, I have created a windows service which runs a batch file. I also set the "Allow service to interact with desktop" option on the log on tab of the service properties. This will open up the console when I start the service. Now when I install the service on Win XP and start the service it opens up a console ( the batch file is run when the service is started), but this does not happen in Windows 2003 server. Can someone tell me know what might be the issue Hi, You are right, it disappear the option if you are not local system. I have found this example that maybe it will help you http://www.codeproject.com/csharp/cswindowsservicedesktop.asp You have to change a registry setting, check if this works and let me ...Show All
Visual Basic Applying changes to form before ending sub.
Time for a newb question. How do you apply visual changes to a form before the sub ends I'm trying to cause a picturebox to change its background color multiple times but its just changing to the last color that was set. What are you trying to accomplish If you use the following code: Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click Me . PictureBox1 . BackColor = Color . AliceBlue Me . PictureBox1 . BackColor = Color . AntiqueWhite Me . PictureBox1 . BackColor = Color . Black Me . PictureBox1 . BackColor = Color . Blue End Sub When you click the button the user will see a Blue backgro ...Show All
Visual C++ Managed array of pointers to elements in another managed array
Hello, I have some problems using arrays (system.array) in managed code. I have a two-dimensional array available and I would like to sort the values in this array by making a second, jagged array of pointers to the elements in the first array. However, there are some problems: the first array is of course declared on the managed heap. Pointers to elements in that array can change as the CLR rearranges the heap. The solution to this is could be an interior_ptr (which makes sure the pointer is updated when the heap is rearranged) or a pin_ptr (which makes sure the 'pointed' part of the heap isn't rearranged). The problem is that both pointers are only declared on the local stack: it is not allowed to form an array of pin_ptr or inter ...Show All
Visual Studio Tools for Office How to access "Compress Images" function with VSTO
Hi there, I'm sure everybody knows the functionaltity to compress Images within Office Documents. With the contextmenu of any image you can access the properties of the image an there is a button "compress". (I've never used the english version of office so I home my translation is correct). Then you can select some options for the compression (crop image, resolution,...) What I'd like to do is, access this functionality with VB.NET in VSTO I've already tried to find it within the Interop.Word Classes but didn't find anything. Does anybody know how to do this Thx in Advance Steve Hi Steve There's just some functionality that's not exposed in the Word object model, especially a few t ...Show All
SQL Server Job activity = slow, non job = fast
I have created an integration services package with a script-source reading data from Active directory. Pretty much data is read and written into a sql2005 database. I have notised that when I run the package via right-clicking the package (Under stored packages\MSDB) and selecting "Run Package" it takes about 45 minutes for it to complete successfully. The same goes if I run the package from inside Visual Studio. However, when I create a job and put this package as one of it's tasks the task takes about 1h 40min. This is more then double the time! In neither case the server is occupied with soething else. And I have tried it several times so it wasn't just an "accident". Any idea of what this depends on regard ...Show All
Visual Studio Express Editions Where do I start, Classic-C++ or .NET style?
Hey there everybody. I wanted to learn Visual C++, completely in and out. But now I can't decide where to start. Do I start learning : i) The Classic style, Visual C++ 6.0 using the windows.h header an' all, OR ii) Do I start with the .NET Eventually, I wanna learn both. But can anyone tell me which would be the better way to start I know the generic C++ completely (I've worked on Turbo-C++, which means I don't know the windows core libraries). I have several questions, I'll just organize them into a list : Note : I refer to programs written in C++ using the windows.h header as Classic-style C++, and those C++ programs using .NET as C++ .NET, or simply .NET 1) Where do I start, Classic or .NET 2) Which is of higher prior ...Show All
SQL Server How to change name of filter in Report Builder
Hi Im creating a filter in Report Builder with a start date and an end date. That is I want the user to able to choose a dateinterval. How do I change the label shown in the report for the interval. I want it to say Startdate and Enddate not what I have in my Sql server Thanks /Stefan Would be nice if it did this for you when you rename a parameter in the editor, cant see the reason for this function otherwise ...Show All
Windows Forms Problem adding files to deployment project.
I am having problems adding text files (xml) to a deployment project. I check out the deployment project and try to add a file (from both the File System View and the Solution Explorer). I select the desired file from the Add File dialog and click Open. The Add File dialog closes and nothing happens. In the past I found when I observed this behavior I had to make sure the file I was trying to add was writable so I would check it out from the source control (I am using ClearCase) and I would be able to add the file. Now this doesn't seem to make a difference, no matter what I do, the Add File dialog closes and nothing happens. I have not seen any sort of error message anywhere obvious. I can add project outputs, but not files. Has anyone se ...Show All
Windows Forms Component One chart
hi, for windows 64 bit which version of component one chart i can use . Is there any dependency on 32 bit or 64 bit os's for component one chart ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D fade transitions
I'm attempting to do a 2d fade in/fade out effect on the screen, but I have no idea how to get that rolling. I've never played with .fx files or anything before. Could someone lend me some ideas Thanks! Jason Thanks for the idea... Would you mind giving a little example code I'm not sure what you mean by 'modulate the alpha'. Er... I mean, I know what alpha is... but I'm not sure what you mean by modulate. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I load a 3d mesh (.x file)?
How do I load a .x mesh into my scene The space game seems to use its own format (which it names .swm), and there's nothing in the help. I've been scanning through through the classes in the Framework namespace, but I can't see anything obvious! Is .x the recommended format for objects like this (If not, I change my question to be about the recommended format :D) If anyone knows anywhere that has some nice .x meshes I can play with, that'd be cool too. The only one I have lying around is a chair, and that's going to look a bit funny running around my game :D Zumwalt wrote: So basically what you are telling everyone is don't bother with the SDK at the moment because it is pre-alpha still an ...Show All
.NET Development How to Change ASPNET version of the virtual directory during Installing an ASP.NET 2.0 Web Service using MSI Package
Hi All I have written an ASP.Net2.0 web Service and I want to install it through a set up package. I installed it successfully in my system but the problem is that the ASP.NEt version of the virtual directory under which the web service is installed remains 1.1.4322 which should be 2.0.50727 to run my web service perfectly. How can I change this verion to 2.0.50727 during installation If anyone knows it please help me to do that Regards Bijaya Kumar Pathia Hi, You can do that with the aspnet_regiis.exe tool provided by the .NET framework. Just in case, the following JS script performs that task programatically, Sub UpdateScriptMaps( folderName ) Dim winPath, netPath, toolPath Dim wsShell Di ...Show All
Visual Basic Reading .doc Files
Hi, I'm fairly new to VB and learned on VB 2003. I just upgraded to VBE 2005. I'm trying to make a multiple document reader I'm trying to be able to read MS Word documents, Works documents, Text files, Rich Text files, and an AutoCAD lisp file(its basically a text file). I was just reading the article titled " Accessing information in an opend word document ". Is that anything like what I'm trying to Do The main thing I need is to find out how to access these Items. If anyone can point me in the right direction it would be appreciated. Thanks in advance for the replies. <<Thank you for the information. That lead has pointed me into the right direction. Now if I can only figure out what I'm doing ( ...Show All
Windows Forms binding datagrid column
I have a standard orders/orderdetails setup. The datagrids ItemID is set to a combobox which is populated with the product table data. What I want to do is somehow bind this so when a user selects an item from the combobox the correct price is shown in the datagrid price column. Thanks for the help. Hi,Cammyr You can do in this way, I write the following sample for your information: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form22 : Form &nb ...Show All
